Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RB_StrongestBrain_250520
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
RB_StrongestBrain_250520
Commits
07fdff1c
Commit
07fdff1c
authored
May 22, 2025
by
cc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
3d1f55b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
HomePage.tsx
src/pages/HomePage/HomePage.tsx
+1
-0
store.ts
src/store/store.ts
+21
-2
No files found.
src/pages/HomePage/HomePage.tsx
View file @
07fdff1c
...
@@ -80,6 +80,7 @@ class Homepage extends React.Component {
...
@@ -80,6 +80,7 @@ class Homepage extends React.Component {
// 7 分享活动
// 7 分享活动
case
7
:
case
7
:
// TODO
// TODO
shareStore
.
doShare
();
break
;
break
;
default
:
default
:
...
...
src/store/store.ts
View file @
07fdff1c
...
@@ -81,7 +81,7 @@ class Store {
...
@@ -81,7 +81,7 @@ class Store {
}
}
}
=
{};
}
=
{};
firstIn
=
true
;
async
updateIndex
()
{
async
updateIndex
()
{
const
{
success
,
data
}
=
await
API
.
index
();
const
{
success
,
data
}
=
await
API
.
index
();
if
(
!
success
)
{
if
(
!
success
)
{
...
@@ -89,7 +89,26 @@ class Store {
...
@@ -89,7 +89,26 @@ class Store {
}
}
this
.
indexData
=
data
;
this
.
indexData
=
data
;
/** 绑定业务员code判断 */
if
(
data
?.
boundYkCode
)
{
// 已绑定
CFG
.
workerCode
=
data
?.
boundYkCode
;
}
else
{
// 未绑定 从链接上取-无论是否有都要调用
if
(
!
data
?.
isAgent
)
{
/**后端说增加非业务员才调用 */
const
res
=
await
this
.
bindYkCode
(
CFG
.
workerCode
||
""
);
if
(
res
.
success
&&
res
.
data
?.
code
)
{
CFG
.
workerCode
=
res
.
data
?.
code
;
}
}
}
if
(
this
.
firstIn
&&
data
.
validUid
){
API
.
visit
()
this
.
firstIn
=
false
}
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment