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
4e57f859
Commit
4e57f859
authored
Mar 18, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
music
parent
207d3a40
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
0 deletions
+33
-0
sharepage.jsx
src/pages/agentSharepage/sharepage.jsx
+5
-0
sharepage.jsx
src/pages/sharepage/sharepage.jsx
+6
-0
userhomepage.jsx
src/pages/userhomepage/userhomepage.jsx
+22
-0
No files found.
src/pages/agentSharepage/sharepage.jsx
View file @
4e57f859
...
@@ -8,6 +8,7 @@ import { extranceName } from '@src/utils/constants';
...
@@ -8,6 +8,7 @@ import { extranceName } from '@src/utils/constants';
import
shareStore
from
'@src/store/share'
;
import
shareStore
from
'@src/store/share'
;
import
{
LOG_KEY
,
MatterShareOpt
,
MatterViewOpt
,
sensorLog
}
from
'@src/utils/sensors'
;
import
{
LOG_KEY
,
MatterShareOpt
,
MatterViewOpt
,
sensorLog
}
from
'@src/utils/sensors'
;
import
{
Button
}
from
"@src/components/Button"
;
import
{
Button
}
from
"@src/components/Button"
;
import
{
accessLog
}
from
"duiba-utils"
;
@
observer
@
observer
class
AgentSharepage
extends
React
.
Component
{
class
AgentSharepage
extends
React
.
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -17,6 +18,10 @@ class AgentSharepage extends React.Component {
...
@@ -17,6 +18,10 @@ class AgentSharepage extends React.Component {
async
componentDidMount
()
{
async
componentDidMount
()
{
accessLog
(
"505"
,
{
from
:
CFG
.
channel
});
MatterViewOpt
(
"b12850"
,
{
MatterViewOpt
(
"b12850"
,
{
page_name
:
"分享落地页"
,
page_name
:
"分享落地页"
,
});
});
...
...
src/pages/sharepage/sharepage.jsx
View file @
4e57f859
...
@@ -9,6 +9,7 @@ import store from "../../store";
...
@@ -9,6 +9,7 @@ import store from "../../store";
import
{
LOG_KEY
,
MatterViewDuration
,
MatterViewOpt
,
sensorLog
}
from
"../../utils/sensors"
;
import
{
LOG_KEY
,
MatterViewDuration
,
MatterViewOpt
,
sensorLog
}
from
"../../utils/sensors"
;
import
shareStore
from
"@src/store/share"
;
import
shareStore
from
"@src/store/share"
;
import
{
Button
}
from
"@src/components/Button"
;
import
{
Button
}
from
"@src/components/Button"
;
import
{
accessLog
}
from
"duiba-utils"
;
@
observer
@
observer
class
Sharepage
extends
React
.
Component
{
class
Sharepage
extends
React
.
Component
{
...
@@ -25,6 +26,11 @@ class Sharepage extends React.Component {
...
@@ -25,6 +26,11 @@ class Sharepage extends React.Component {
async
componentDidMount
()
{
async
componentDidMount
()
{
// accessLog(506)
// accessLog(506)
accessLog
(
"505"
,
{
from
:
CFG
.
channel
});
await
store
.
checkBindStatus
();
await
store
.
checkBindStatus
();
API
.
outside
();
API
.
outside
();
// await this.getShareInfo();
// await this.getShareInfo();
...
...
src/pages/userhomepage/userhomepage.jsx
View file @
4e57f859
...
@@ -17,6 +17,7 @@ import MusicBtn from "@src/components/MusicBtn/MusicBtn";
...
@@ -17,6 +17,7 @@ import MusicBtn from "@src/components/MusicBtn/MusicBtn";
import
API
from
"@src/api"
;
import
API
from
"@src/api"
;
import
{
isWeChat
}
from
"@src/utils/share"
;
import
{
isWeChat
}
from
"@src/utils/share"
;
import
{
LOG_KEY
,
MatterShareOpt
,
MatterViewDuration
,
MatterViewOpt
,
pageView
,
sensorLog
}
from
"@src/utils/sensors"
;
import
{
LOG_KEY
,
MatterShareOpt
,
MatterViewDuration
,
MatterViewOpt
,
pageView
,
sensorLog
}
from
"@src/utils/sensors"
;
import
{
accessLog
}
from
"duiba-utils"
;
@
observer
@
observer
...
@@ -76,6 +77,9 @@ class Userhomepage extends React.Component {
...
@@ -76,6 +77,9 @@ class Userhomepage extends React.Component {
/** 规则按钮*/
/** 规则按钮*/
clickRule
=
()
=>
{
clickRule
=
()
=>
{
accessLog
(
"502"
,
{
from
:
CFG
.
channel
});
sensorLog
(
LOG_KEY
.
click
,
"b12833"
,
"d12834"
,
{
sensorLog
(
LOG_KEY
.
click
,
"b12833"
,
"d12834"
,
{
button_name
:
"规则按钮"
,
button_name
:
"规则按钮"
,
page_name
:
"活动首页"
,
page_name
:
"活动首页"
,
...
@@ -86,6 +90,9 @@ class Userhomepage extends React.Component {
...
@@ -86,6 +90,9 @@ class Userhomepage extends React.Component {
/** 奖品按钮*/
/** 奖品按钮*/
clickPrize
=
()
=>
{
clickPrize
=
()
=>
{
accessLog
(
"502"
,
{
from
:
CFG
.
channel
});
sensorLog
(
LOG_KEY
.
click
,
"b12833"
,
"d12835"
,
{
sensorLog
(
LOG_KEY
.
click
,
"b12833"
,
"d12835"
,
{
button_name
:
"奖品按钮"
,
button_name
:
"奖品按钮"
,
page_name
:
"活动首页"
,
page_name
:
"活动首页"
,
...
@@ -100,6 +107,9 @@ class Userhomepage extends React.Component {
...
@@ -100,6 +107,9 @@ class Userhomepage extends React.Component {
/** 抽奖按钮*/
/** 抽奖按钮*/
clickDraw
=
()
=>
{
clickDraw
=
()
=>
{
accessLog
(
"502"
,
{
from
:
CFG
.
channel
});
sensorLog
(
LOG_KEY
.
click
,
"b12833"
,
"d12837"
,
{
sensorLog
(
LOG_KEY
.
click
,
"b12833"
,
"d12837"
,
{
button_name
:
"抽奖按钮"
,
button_name
:
"抽奖按钮"
,
page_name
:
"活动首页"
,
page_name
:
"活动首页"
,
...
@@ -110,6 +120,9 @@ class Userhomepage extends React.Component {
...
@@ -110,6 +120,9 @@ class Userhomepage extends React.Component {
};
};
clickVisit
=
()
=>
{
clickVisit
=
()
=>
{
accessLog
(
"502"
,
{
from
:
CFG
.
channel
});
if
(
!
store
.
checkActTime
())
return
;
if
(
!
store
.
checkActTime
())
return
;
windowJumpUrl
(
store
.
frontVariable
?.
SaleManUrl
windowJumpUrl
(
store
.
frontVariable
?.
SaleManUrl
+
"&actPlatforms="
+
getUrlParam
(
"actPlatforms"
)
+
"&actPlatforms="
+
getUrlParam
(
"actPlatforms"
)
...
@@ -119,6 +132,9 @@ class Userhomepage extends React.Component {
...
@@ -119,6 +132,9 @@ class Userhomepage extends React.Component {
};
};
clickDetails
=
()
=>
{
clickDetails
=
()
=>
{
accessLog
(
"502"
,
{
from
:
CFG
.
channel
});
sensorLog
(
LOG_KEY
.
click
,
"b12833"
,
"d12836"
,
{
sensorLog
(
LOG_KEY
.
click
,
"b12833"
,
"d12836"
,
{
button_name
:
"邀请明细按钮"
,
button_name
:
"邀请明细按钮"
,
page_name
:
"活动首页"
,
page_name
:
"活动首页"
,
...
@@ -128,6 +144,9 @@ class Userhomepage extends React.Component {
...
@@ -128,6 +144,9 @@ class Userhomepage extends React.Component {
};
};
clickInvite
=
()
=>
{
clickInvite
=
()
=>
{
accessLog
(
"502"
,
{
from
:
CFG
.
channel
});
MatterShareOpt
(
"b12833"
,
"d12838"
,
{
MatterShareOpt
(
"b12833"
,
"d12838"
,
{
button_name
:
"邀请好友助力按钮"
,
button_name
:
"邀请好友助力按钮"
,
page_name
:
"活动首页"
,
page_name
:
"活动首页"
,
...
@@ -138,6 +157,9 @@ class Userhomepage extends React.Component {
...
@@ -138,6 +157,9 @@ class Userhomepage extends React.Component {
};
};
clickShare
=
()
=>
{
clickShare
=
()
=>
{
accessLog
(
"502"
,
{
from
:
CFG
.
channel
});
if
(
!
store
.
checkActTime
())
return
;
if
(
!
store
.
checkActTime
())
return
;
shareStore
.
doShare
();
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