Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
2
20250310_人保春游
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
20250310_人保春游
Commits
2ce6ec9d
Commit
2ce6ec9d
authored
Mar 13, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
c48d34a0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
8 deletions
+18
-8
yinsirulepop.jsx
src/components/yinsirulepop/yinsirulepop.jsx
+1
-1
prizepage.jsx
src/pages/prizepage/prizepage.jsx
+2
-1
userhomepage.jsx
src/pages/userhomepage/userhomepage.jsx
+1
-1
index.js
src/store/index.js
+14
-5
No files found.
src/components/yinsirulepop/yinsirulepop.jsx
View file @
2ce6ec9d
...
@@ -23,7 +23,7 @@ class Yinsirulepop extends React.Component {
...
@@ -23,7 +23,7 @@ class Yinsirulepop extends React.Component {
clickTo
=
_asyncThrottle
(
async
()
=>
{
clickTo
=
_asyncThrottle
(
async
()
=>
{
const
{
success
}
=
await
API
.
agreePrivacy
();
const
{
success
}
=
await
API
.
agreePrivacy
();
if
(
!
success
)
return
;
if
(
!
success
)
return
;
store
.
changePage
(
PAGE_MAP
.
PRIZE_PAGE
,
{
from
:
this
.
props
.
popData
?.
from
}
);
store
.
changePage
(
PAGE_MAP
.
PRIZE_PAGE
);
store
.
getHomeInfo
();
store
.
getHomeInfo
();
modalStore
.
closePop
(
"Yinsirulepop"
);
modalStore
.
closePop
(
"Yinsirulepop"
);
});
});
...
...
src/pages/prizepage/prizepage.jsx
View file @
2ce6ec9d
...
@@ -222,7 +222,8 @@ class Prizepage extends React.Component {
...
@@ -222,7 +222,8 @@ class Prizepage extends React.Component {
});
});
back
=
_throttle
(
async
()
=>
{
back
=
_throttle
(
async
()
=>
{
store
.
changePage
(
this
.
props
?.
from
||
PAGE_MAP
.
HOME_PAGE
);
// store.changePage(this.props?.from || PAGE_MAP.HOME_PAGE);
store
.
backPage
();
sensorLog
(
LOG_KEY
.
click
,
"b12124"
,
"d12126"
,
{
sensorLog
(
LOG_KEY
.
click
,
"b12124"
,
"d12126"
,
{
operation_name
:
"返回"
,
operation_name
:
"返回"
,
button_name
:
"返回"
,
button_name
:
"返回"
,
...
...
src/pages/userhomepage/userhomepage.jsx
View file @
2ce6ec9d
...
@@ -47,7 +47,7 @@ class Userhomepage extends React.Component {
...
@@ -47,7 +47,7 @@ class Userhomepage extends React.Component {
modalStore
.
pushPop
(
"Yinsirulepop"
);
modalStore
.
pushPop
(
"Yinsirulepop"
);
return
;
return
;
}
}
store
.
changePage
(
PAGE_MAP
.
PRIZE_PAGE
,
{
from
:
PAGE_MAP
.
USER_HOME_PAGE
}
);
store
.
changePage
(
PAGE_MAP
.
PRIZE_PAGE
);
};
};
/** 抽奖按钮*/
/** 抽奖按钮*/
...
...
src/store/index.js
View file @
2ce6ec9d
...
@@ -25,8 +25,22 @@ const store = makeAutoObservable({
...
@@ -25,8 +25,22 @@ const store = makeAutoObservable({
index
:
PAGE_MAP
.
HOME_PAGE
,
index
:
PAGE_MAP
.
HOME_PAGE
,
}[
skinId
]
||
PAGE_MAP
.
HOME_PAGE
,
}[
skinId
]
||
PAGE_MAP
.
HOME_PAGE
,
prevPage
:
[],
pageData
:
{},
pageData
:
{},
/** 场景切换 */
changePage
(
page
,
data
=
{})
{
this
.
prevPage
.
push
(
this
.
curPage
);
this
.
pageData
=
data
;
this
.
curPage
=
page
;
},
backPage
()
{
if
(
this
.
prevPage
.
length
===
0
)
return
;
this
.
curPage
=
this
.
prevPage
.
pop
();
},
/** 绑定友客业务员 */
/** 绑定友客业务员 */
async
bindYkCode
(
code
)
{
async
bindYkCode
(
code
)
{
const
res
=
await
API
.
bindYk
({
const
res
=
await
API
.
bindYk
({
...
@@ -39,11 +53,6 @@ const store = makeAutoObservable({
...
@@ -39,11 +53,6 @@ const store = makeAutoObservable({
shareStore
.
doShare
();
shareStore
.
doShare
();
},
},
/** 场景切换 */
changePage
(
page
,
data
=
{})
{
this
.
pageData
=
data
;
this
.
curPage
=
page
;
},
homeInfo
:
{},
homeInfo
:
{},
/** 获取活动规则 */
/** 获取活动规则 */
...
...
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