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
01051606
Commit
01051606
authored
May 30, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
26b173b1
3e18852c
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
178 additions
and
161 deletions
+178
-161
index.html
dist/index.html
+116
-116
index.html
index.html
+2
-2
prizepop.jsx
src/components/prizepop/prizepop.jsx
+3
-3
settlechance.jsx
src/components/settlechance/settlechance.jsx
+1
-0
HomePage.less
src/pages/HomePage/HomePage.less
+22
-21
HomePage.tsx
src/pages/HomePage/HomePage.tsx
+12
-7
sharepage.jsx
src/pages/agentSharepage/sharepage.jsx
+4
-2
sharepage.jsx
src/pages/sharepage/sharepage.jsx
+6
-3
taskpop.jsx
src/panels/taskpop/taskpop.jsx
+12
-7
No files found.
dist/index.html
View file @
01051606
This diff is collapsed.
Click to expand it.
index.html
View file @
01051606
...
@@ -89,8 +89,8 @@
...
@@ -89,8 +89,8 @@
//代理人仅分享渠道
//代理人仅分享渠道
CFG
.
agentShare
=
getUrlParam
(
"agentShare"
)
||
0
;
CFG
.
agentShare
=
getUrlParam
(
"agentShare"
)
||
0
;
// 环境,test测试,prod生产 TIAN_TODO
// 环境,test测试,prod
生产 TIAN_TODO
CFG
.
env
=
"
test
"
;
//注意sdk 也分环境!
CFG
.
env
=
"
prod
"
;
//注意sdk 也分环境!
if
(
CFG
.
env
==
"test"
)
{
if
(
CFG
.
env
==
"test"
)
{
// 测试
// 测试
// eslint-disable-next-line @spark/best-practices/no-url-in-js
// eslint-disable-next-line @spark/best-practices/no-url-in-js
...
...
src/components/prizepop/prizepop.jsx
View file @
01051606
...
@@ -15,18 +15,18 @@ class Prizepop extends React.Component {
...
@@ -15,18 +15,18 @@ class Prizepop extends React.Component {
super
(
props
);
super
(
props
);
}
}
componentDidMount
(){
componentDidMount
(){
pageView
(
"b1428
1
"
,
{
pageView
(
"b1428
2
"
,
{
page_name
:
"抽中中奖弹窗"
,
page_name
:
"抽中中奖弹窗"
,
});
});
sensorLog
(
LOG_KEY
.
exposure
,
"b1428
1
"
,
"d14283"
,
{
sensorLog
(
LOG_KEY
.
exposure
,
"b1428
2
"
,
"d14283"
,
{
page_name
:
"抽中中奖弹窗"
,
page_name
:
"抽中中奖弹窗"
,
button_name
:
"开心收下按钮"
,
button_name
:
"开心收下按钮"
,
});
});
}
}
handleReceive
=
_asyncThrottle
(()
=>
{
handleReceive
=
_asyncThrottle
(()
=>
{
sensorLog
(
LOG_KEY
.
click
,
"b1428
1
"
,
"d14283"
,
{
sensorLog
(
LOG_KEY
.
click
,
"b1428
2
"
,
"d14283"
,
{
page_name
:
"抽中中奖弹窗"
,
page_name
:
"抽中中奖弹窗"
,
button_name
:
"开心收下按钮"
,
button_name
:
"开心收下按钮"
,
});
});
...
...
src/components/settlechance/settlechance.jsx
View file @
01051606
...
@@ -11,6 +11,7 @@ import { SvgaPlayer } from "@grace/svgaplayer";
...
@@ -11,6 +11,7 @@ import { SvgaPlayer } from "@grace/svgaplayer";
import
lightSvga
from
"../../assets/svga/6输出弹窗.svga"
;
import
lightSvga
from
"../../assets/svga/6输出弹窗.svga"
;
import
Capsulepage
from
"../../pages/CapsulePage/CapsulePage"
;
import
Capsulepage
from
"../../pages/CapsulePage/CapsulePage"
;
import
{
LOG_KEY
,
MatterShareOpt
,
MatterViewDuration
,
MatterViewOpt
,
pageView
,
sensorLog
}
from
"../../utils/sensors.js"
;
import
HomePage
from
"../../pages/HomePage/HomePage"
;
import
HomePage
from
"../../pages/HomePage/HomePage"
;
@
observer
@
observer
class
Settlechance
extends
React
.
Component
{
class
Settlechance
extends
React
.
Component
{
...
...
src/pages/HomePage/HomePage.less
View file @
01051606
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
left: 0px;
left: 0px;
top: 0px;
top: 0px;
position: absolute;
position: absolute;
.sparkBg("
h
omePage/bg.png");
.sparkBg("
H
omePage/bg.png");
}
}
.equipment {
.equipment {
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
left: 60px;
left: 60px;
top: 499px;
top: 499px;
position: absolute;
position: absolute;
.sparkBg("
h
omePage/equipment.png");
.sparkBg("
H
omePage/equipment.png");
}
}
.icon {
.icon {
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
left: 400px;
left: 400px;
top: 987px;
top: 987px;
position: absolute;
position: absolute;
.sparkBg("
h
omePage/icon.png");
.sparkBg("
H
omePage/icon.png");
}
}
.book {
.book {
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
left: 60px;
left: 60px;
top: 1192px;
top: 1192px;
position: absolute;
position: absolute;
.sparkBg("
h
omePage/book.png");
.sparkBg("
H
omePage/book.png");
}
}
.brain {
.brain {
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
left: 179px;
left: 179px;
top: 573px;
top: 573px;
position: absolute;
position: absolute;
.sparkBg("
h
omePage/brain.png");
.sparkBg("
H
omePage/brain.png");
}
}
.wenhao {
.wenhao {
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
left: 326px;
left: 326px;
top: 644px;
top: 644px;
position: absolute;
position: absolute;
.sparkBg("
h
omePage/wenhao.png");
.sparkBg("
H
omePage/wenhao.png");
}
}
.title {
.title {
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
left: 29px;
left: 29px;
top: 131px;
top: 131px;
position: absolute;
position: absolute;
.sparkBg("
h
omePage/title.png");
.sparkBg("
H
omePage/title.png");
}
}
.draw {
.draw {
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
left: 5px;
left: 5px;
top: 1344px;
top: 1344px;
position: absolute;
position: absolute;
.sparkBg("
h
omePage/draw.png");
.sparkBg("
H
omePage/draw.png");
}
}
.task {
.task {
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
left: 591px;
left: 591px;
top: 1344px;
top: 1344px;
position: absolute;
position: absolute;
.sparkBg("
h
omePage/task.png");
.sparkBg("
H
omePage/task.png");
}
}
.matter {
.matter {
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
left: 0px;
left: 0px;
top: 0px;
top: 0px;
position: absolute;
position: absolute;
.sparkBg("
h
omePage/m_bg.png");
.sparkBg("
H
omePage/m_bg.png");
}
}
.answer {
.answer {
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
left: 109px;
left: 109px;
top: 32px;
top: 32px;
position: absolute;
position: absolute;
.sparkBg("
h
omePage/answer.png");
.sparkBg("
H
omePage/answer.png");
}
}
.remain {
.remain {
...
@@ -143,7 +143,7 @@
...
@@ -143,7 +143,7 @@
left: 0px;
left: 0px;
top: 0px;
top: 0px;
position: absolute;
position: absolute;
.sparkBg("
h
omePage/r_bg.png");
.sparkBg("
H
omePage/r_bg.png");
}
}
.name {
.name {
...
@@ -153,10 +153,11 @@
...
@@ -153,10 +153,11 @@
top: 67px;
top: 67px;
position: absolute;
position: absolute;
// font-size: 30px;
// font-size: 30px;
font-size: 2
8
px;
font-size: 2
7
px;
line-height: 33px;
line-height: 33px;
color: rgba(30, 76, 169, 1);
color: rgba(30, 76, 169, 1);
.lineClamp1();
white-space: nowrap;
// .lineClamp1();
}
}
.head {
.head {
...
@@ -165,7 +166,7 @@
...
@@ -165,7 +166,7 @@
left: 37px;
left: 37px;
top: 34px;
top: 34px;
position: absolute;
position: absolute;
// .sparkBg("
h
omePage/head.png");
// .sparkBg("
H
omePage/head.png");
border-radius: 15px;
border-radius: 15px;
}
}
...
@@ -175,7 +176,7 @@
...
@@ -175,7 +176,7 @@
left: 477px;
left: 477px;
top: 103px;
top: 103px;
position: absolute;
position: absolute;
.sparkBg("
h
omePage/myRank.png");
.sparkBg("
H
omePage/myRank.png");
-webkit-user-select: none;
-webkit-user-select: none;
user-select: none;
user-select: none;
...
@@ -203,7 +204,7 @@
...
@@ -203,7 +204,7 @@
left: 636px;
left: 636px;
top: 510px;
top: 510px;
position: absolute;
position: absolute;
.sparkBg("
h
omePage/prize.png");
.sparkBg("
H
omePage/prize.png");
}
}
.rule {
.rule {
...
@@ -212,7 +213,7 @@
...
@@ -212,7 +213,7 @@
left: 0px;
left: 0px;
top: 510px;
top: 510px;
position: absolute;
position: absolute;
.sparkBg("
h
omePage/rule.png");
.sparkBg("
H
omePage/rule.png");
}
}
.visit {
.visit {
...
@@ -221,7 +222,7 @@
...
@@ -221,7 +222,7 @@
left: 566px;
left: 566px;
top: 616px;
top: 616px;
position: absolute;
position: absolute;
.sparkBg("
h
omePage/visit.png");
.sparkBg("
H
omePage/visit.png");
}
}
.share {
.share {
...
@@ -230,7 +231,7 @@
...
@@ -230,7 +231,7 @@
left: 552px;
left: 552px;
top: 817px;
top: 817px;
position: absolute;
position: absolute;
.sparkBg("
h
omePage/share.png");
.sparkBg("
H
omePage/share.png");
}
}
.logo {
.logo {
...
@@ -239,7 +240,7 @@
...
@@ -239,7 +240,7 @@
left: 232px;
left: 232px;
top: 85px;
top: 85px;
position: absolute;
position: absolute;
.sparkBg("
h
omePage/logo.png");
.sparkBg("
H
omePage/logo.png");
}
}
.musicBtn {
.musicBtn {
...
...
src/pages/HomePage/HomePage.tsx
View file @
01051606
...
@@ -22,24 +22,29 @@ import gameStore from "@/store/gameStore.ts";
...
@@ -22,24 +22,29 @@ import gameStore from "@/store/gameStore.ts";
import
GamePage
from
"@/pages/GamePage/GamePage.tsx"
;
import
GamePage
from
"@/pages/GamePage/GamePage.tsx"
;
import
MusicBtn
from
'@/core/components/MusicBtn/MusicBtn.tsx'
;
import
MusicBtn
from
'@/core/components/MusicBtn/MusicBtn.tsx'
;
import
{
onInitShare
}
from
'@/utils/share.ts'
;
import
{
onInitShare
}
from
'@/utils/share.ts'
;
const
startTime
=
+
new
Date
()
@
observer
@
observer
class
Homepage
extends
React
.
Component
{
class
Homepage
extends
React
.
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
);
super
(
props
);
this
.
handleButtonClick
=
this
.
handleButtonClick
.
bind
(
this
);
this
.
handleButtonClick
=
this
.
handleButtonClick
.
bind
(
this
);
}
}
async
componentDidMount
()
{
async
componentDidMount
()
{
if
(
isWeiXin
())
{
//
if (isWeiXin()) {
if
(
!
await
store
.
checkBindStatus
())
return
;
//
if (!await store.checkBindStatus()) return;
}
//
}
await
shareStore
.
doAssist
();
await
shareStore
.
doAssist
();
await
store
.
updateIndex
();
await
store
.
updateIndex
();
this
.
initSensor
();
this
.
initSensor
();
}
}
componentWillUnmount
()
{
if
(
CFG
.
channel
==
CHANNEL_PARAMS
.
YK_MINI
||
CFG
.
channel
==
CHANNEL_PARAMS
.
YK_PUBLIC
)
{
MatterViewDuration
(
"b14268"
,
+
new
Date
()
-
startTime
,
{
page_name
:
"友客首页"
,
});
}
}
handleButtonClick
=
_asyncThrottle
(
async
(
number
)
=>
{
handleButtonClick
=
_asyncThrottle
(
async
(
number
)
=>
{
// 活动时间判断
// 活动时间判断
// 规则 奖品始终可以点击 我的排名结束可以点击 其余常规逻辑
// 规则 奖品始终可以点击 我的排名结束可以点击 其余常规逻辑
...
@@ -121,7 +126,7 @@ class Homepage extends React.Component {
...
@@ -121,7 +126,7 @@ class Homepage extends React.Component {
// 6 拜访清单
// 6 拜访清单
case
6
:
case
6
:
// TODO
// TODO
sensorLog
(
LOG_KEY
.
click
,
"b14268"
,
"d1426
8
"
,
{
sensorLog
(
LOG_KEY
.
click
,
"b14268"
,
"d1426
9
"
,
{
page_name
:
"友客首页"
,
page_name
:
"友客首页"
,
button_name
:
"拜访清单按钮"
,
button_name
:
"拜访清单按钮"
,
});
});
...
...
src/pages/agentSharepage/sharepage.jsx
View file @
01051606
...
@@ -22,7 +22,6 @@ class AgentSharepage extends React.Component {
...
@@ -22,7 +22,6 @@ class AgentSharepage extends React.Component {
}
}
this
.
startTime
=
+
new
Date
();
this
.
startTime
=
+
new
Date
();
this
.
shareRef
=
null
;
this
.
shareRef
=
null
;
this
.
startTime
=
+
new
Date
();
}
}
async
componentDidMount
()
{
async
componentDidMount
()
{
...
@@ -49,6 +48,9 @@ class AgentSharepage extends React.Component {
...
@@ -49,6 +48,9 @@ class AgentSharepage extends React.Component {
}
}
componentWillUnmount
()
{
componentWillUnmount
()
{
MatterViewDuration
(
"b14316"
,
+
new
Date
()
-
this
.
startTime
,
{
page_name
:
"落地页"
,
});
}
}
...
@@ -74,7 +76,7 @@ class AgentSharepage extends React.Component {
...
@@ -74,7 +76,7 @@ class AgentSharepage extends React.Component {
}
}
handleShareAct
=
_throttle
(()
=>
{
handleShareAct
=
_throttle
(()
=>
{
MatterShareOpt
(
"b14316"
,
"d143
2
7"
,
{
MatterShareOpt
(
"b14316"
,
"d143
1
7"
,
{
button_name
:
"分享活动按钮"
,
button_name
:
"分享活动按钮"
,
page_name
:
"落地页"
,
page_name
:
"落地页"
,
})
})
...
...
src/pages/sharepage/sharepage.jsx
View file @
01051606
...
@@ -56,6 +56,9 @@ class Sharepage extends React.Component {
...
@@ -56,6 +56,9 @@ class Sharepage extends React.Component {
}
}
componentWillUnmount
()
{
componentWillUnmount
()
{
MatterViewDuration
(
"b14316"
,
+
new
Date
()
-
this
.
startTime
,
{
page_name
:
"落地页"
,
});
}
}
...
@@ -105,9 +108,9 @@ class Sharepage extends React.Component {
...
@@ -105,9 +108,9 @@ class Sharepage extends React.Component {
`
${
!!
CFG
.
workerCode
?
`&ykCode=
${
CFG
.
workerCode
}
`
:
""
}
`
+
`
${
!!
CFG
.
workerCode
?
`&ykCode=
${
CFG
.
workerCode
}
`
:
""
}
`
+
`&agentCode=
${
CFG
.
agentCode
||
""
}
&actPlatforms=
${
CFG
.
actPlatforms
||
""
}
&actId=
${
CFG
.
actId
||
""
}
`
;
`&agentCode=
${
CFG
.
agentCode
||
""
}
&actPlatforms=
${
CFG
.
actPlatforms
||
""
}
&actId=
${
CFG
.
actId
||
""
}
`
;
// alert(url)
// alert(url)
// MatterViewDuration("b13548
", +new Date() - this.startTime, {
MatterViewDuration
(
"b14316
"
,
+
new
Date
()
-
this
.
startTime
,
{
// page_name: "非遗-
落地页",
page_name
:
"
落地页"
,
//
});
});
setTimeout
(()
=>
{
setTimeout
(()
=>
{
location
.
href
=
url
;
location
.
href
=
url
;
},
500
)
},
500
)
...
...
src/panels/taskpop/taskpop.jsx
View file @
01051606
...
@@ -71,13 +71,18 @@ class Taskpop extends React.Component {
...
@@ -71,13 +71,18 @@ class Taskpop extends React.Component {
/** 去完成 */
/** 去完成 */
taskDoHandle
=
_asyncThrottle
(
async
(
item
)
=>
{
taskDoHandle
=
_asyncThrottle
(
async
(
item
)
=>
{
const
{
taskStatus
,
code
}
=
item
||
{};
const
{
taskStatus
,
code
}
=
item
||
{};
// if(code == TASK_CODE.INVITE){
if
(
code
==
TASK_CODE
.
INVITE
){
// MatterShareOpt(LOG_KEY.click,"b7870","d8729")
MatterShareOpt
(
"b14312"
,
"d14313"
,
{
// }
button_name
:
"做任务,赚次数弹窗"
,
sensorLog
(
LOG_KEY
.
click
,
"b14312"
,
"d14313"
,
{
page_name
:
"去完成按钮"
,
page_name
:
"做任务,赚次数弹窗"
,
})
button_name
:
"去完成按钮"
,
}
else
{
});
sensorLog
(
LOG_KEY
.
click
,
"b14312"
,
"d14313"
,
{
page_name
:
"做任务,赚次数弹窗"
,
button_name
:
"去完成按钮"
,
});
}
await
taskStore
.
doTask
(
item
);
await
taskStore
.
doTask
(
item
);
})
})
...
...
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