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
98fab2ad
Commit
98fab2ad
authored
Mar 18, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
music
parent
0b6485ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
16 deletions
+53
-16
userhomepage.jsx
src/pages/userhomepage/userhomepage.jsx
+53
-16
No files found.
src/pages/userhomepage/userhomepage.jsx
View file @
98fab2ad
...
...
@@ -33,48 +33,77 @@ class Userhomepage extends React.Component {
async
componentDidMount
()
{
this
.
startTime
=
+
new
Date
();
if
(
isWeChat
())
{
if
(
!
await
store
.
checkBindStatus
())
return
;
}
// modalStore.pushPop("AssistSucPanel");
await
store
.
getHomeInfo
();
if
(
store
.
setIndex
?.
agent
)
{
MatterViewOpt
(
"b12839"
,
{
page_name
:
"业务员端首页-友客小程序"
});
sensorLog
(
LOG_KEY
.
exposure
,
"b12839"
,
"d12841"
,
{
button_name
:
"去拜访按钮"
,
page_name
:
"业务员端首页-友客小程序"
});
if
(
+
CFG
.
channel
==
5
)
{
sensorLog
(
LOG_KEY
.
exposure
,
"b12839"
,
"d12840"
,
{
button_name
:
"分享按钮"
,
page_name
:
"业务员端首页-友客小程序"
});
}
}
else
{
MatterViewOpt
(
"b12833"
,
{
page_name
:
"活动首页"
,
page_name
:
"活动首页"
});
}
sensorLog
(
LOG_KEY
.
exposure
,
"b12833"
,
"d12838"
,
{
button_name
:
"邀请好友助力按钮"
,
page_name
:
"活动首页"
,
page_name
:
"活动首页"
});
sensorLog
(
LOG_KEY
.
exposure
,
"b12833"
,
"d12837"
,
{
button_name
:
"抽奖按钮"
,
page_name
:
"活动首页"
,
page_name
:
"活动首页"
});
sensorLog
(
LOG_KEY
.
exposure
,
"b12833"
,
"d12836"
,
{
button_name
:
"邀请明细按钮"
,
page_name
:
"活动首页"
,
page_name
:
"活动首页"
});
sensorLog
(
LOG_KEY
.
exposure
,
"b12833"
,
"d12835"
,
{
button_name
:
"奖品按钮"
,
page_name
:
"活动首页"
,
page_name
:
"活动首页"
});
sensorLog
(
LOG_KEY
.
exposure
,
"b12833"
,
"d12834"
,
{
button_name
:
"规则按钮"
,
page_name
:
"活动首页"
,
page_name
:
"活动首页"
});
if
(
isWeChat
())
{
if
(
!
await
store
.
checkBindStatus
())
return
;
}
// modalStore.pushPop("AssistSucPanel");
await
store
.
getHomeInfo
();
this
.
flushCD
();
shareStore
.
doAssist
();
}
componentWillUnmount
()
{
MatterViewDuration
(
"b12833"
,
+
new
Date
()
-
this
.
startTime
,{
page_name
:
"活动首页"
,
if
(
store
.
setIndex
?.
agent
)
{
MatterViewDuration
(
"b12839"
,
+
new
Date
()
-
this
.
startTime
,
{
page_name
:
"业务员端首页-友客小程序"
});
}
else
{
MatterViewDuration
(
"b12833"
,
+
new
Date
()
-
this
.
startTime
,
{
page_name
:
"活动首页"
});
}
}
/** 规则按钮*/
clickRule
=
()
=>
{
accessLog
(
"502"
,
{
...
...
@@ -123,6 +152,10 @@ class Userhomepage extends React.Component {
accessLog
(
"502"
,
{
from
:
CFG
.
channel
});
sensorLog
(
LOG_KEY
.
click
,
"b12839"
,
"d12841"
,
{
button_name
:
"去拜访按钮"
,
page_name
:
"业务员端首页-友客小程序"
});
if
(
!
store
.
checkActTime
())
return
;
windowJumpUrl
(
store
.
frontVariable
?.
SaleManUrl
+
"&actPlatforms="
+
getUrlParam
(
"actPlatforms"
)
...
...
@@ -160,6 +193,10 @@ class Userhomepage extends React.Component {
accessLog
(
"502"
,
{
from
:
CFG
.
channel
});
MatterShareOpt
(
"b12839"
,
"d12840"
,
{
button_name
:
"分享按钮"
,
page_name
:
"业务员端首页-友客小程序"
})
if
(
!
store
.
checkActTime
())
return
;
shareStore
.
doShare
();
};
...
...
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