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
14c780cd
Commit
14c780cd
authored
May 22, 2025
by
cc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
b484b04a
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
128 additions
and
11 deletions
+128
-11
main.ts
mock/main.ts
+1
-0
index.ts
src/api/index.ts
+4
-3
bg.png
src/assets/yinsirulepop/bg.png
+0
-0
btn.png
src/assets/yinsirulepop/btn.png
+0
-0
close.png
src/assets/yinsirulepop/close.png
+0
-0
CodePop.jsx
src/components/CodePop/CodePop.jsx
+6
-6
HomePage.tsx
src/pages/HomePage/HomePage.tsx
+7
-2
yinsirulepop.jsx
src/panels/yinsirulepop/yinsirulepop.jsx
+58
-0
yinsirulepop.less
src/panels/yinsirulepop/yinsirulepop.less
+51
-0
store.ts
src/store/store.ts
+1
-0
No files found.
mock/main.ts
View file @
14c780cd
...
@@ -14,6 +14,7 @@ export default [
...
@@ -14,6 +14,7 @@ export default [
"uid"
:
"laboris Lorem sit officia aliqua"
,
"uid"
:
"laboris Lorem sit officia aliqua"
,
"currentTimestamp"
:
99790918.1204935
,
"currentTimestamp"
:
99790918.1204935
,
"actEndTimestamp"
:
42625488.007563084
,
"actEndTimestamp"
:
42625488.007563084
,
"privacyText"
:
'143sjhbkrjgjkfgbjfb fnsjnfdrhgkfngjknfcmgfcm fjkxdngjhrdkghkfxgjfb'
,
"rankPop1"
:
{
"rankPop1"
:
{
"prizeName"
:
null
,
"prizeName"
:
null
,
"prizeImg"
:
"//yun.duiba.com.cn/polaris/045CCBB8-F6C7-43DB-9F81-45F52430A878.441c8f13daf61c48b85fe383e764d9089f1d4a66.png"
,
"prizeImg"
:
"//yun.duiba.com.cn/polaris/045CCBB8-F6C7-43DB-9F81-45F52430A878.441c8f13daf61c48b85fe383e764d9089f1d4a66.png"
,
...
...
src/api/index.ts
View file @
14c780cd
...
@@ -155,9 +155,6 @@ const API = generateAPI({
...
@@ -155,9 +155,6 @@ const API = generateAPI({
////////////////////////////////////////////////////////
////////////////////////////////////////////////////////
/** 同意隐私协议接口*/
agreePrivacy
:
"main/agreePrivacy.do"
,
buriedPoint
:
{
buriedPoint
:
{
uri
:
"home/buriedPoint.do"
,
uri
:
"home/buriedPoint.do"
,
showMsg
:
false
,
showMsg
:
false
,
...
@@ -199,6 +196,10 @@ const API = generateAPI({
...
@@ -199,6 +196,10 @@ const API = generateAPI({
withToken
:
true
,
withToken
:
true
,
},
},
/** 同意隐私协议接口 */
agreePrivacy
:
{
uri
:
"zqdn/agreePrivacy.do"
,
},
})
})
...
...
src/assets/yinsirulepop/bg.png
0 → 100644
View file @
14c780cd
194 KB
src/assets/yinsirulepop/btn.png
0 → 100644
View file @
14c780cd
17.2 KB
src/assets/yinsirulepop/close.png
0 → 100644
View file @
14c780cd
4.64 KB
src/components/CodePop/CodePop.jsx
View file @
14c780cd
...
@@ -16,11 +16,11 @@ class CodePop extends React.Component {
...
@@ -16,11 +16,11 @@ class CodePop extends React.Component {
componentDidMount
=
async
()
=>
{
componentDidMount
=
async
()
=>
{
await
this
.
creatCode
();
await
this
.
creatCode
();
pageView
(
"b1
2854
"
,
{
pageView
(
"b1
4292
"
,
{
page_name
:
"
扫码唤端页
"
,
page_name
:
"
换端弹窗
"
,
});
});
sensorLog
(
LOG_KEY
.
exposure
,
"b1
2854"
,
"d12855
"
,
{
sensorLog
(
LOG_KEY
.
exposure
,
"b1
4292"
,
"d14293
"
,
{
page_name
:
"
扫码唤端页
"
,
page_name
:
"
换端弹窗
"
,
button_name
:
"关闭按钮"
,
button_name
:
"关闭按钮"
,
});
});
};
};
...
@@ -40,8 +40,8 @@ class CodePop extends React.Component {
...
@@ -40,8 +40,8 @@ class CodePop extends React.Component {
/** 关闭 */
/** 关闭 */
clickClose
=
()
=>
{
clickClose
=
()
=>
{
modalStore
.
closePop
();
modalStore
.
closePop
();
sensorLog
(
LOG_KEY
.
click
,
"b1
2854"
,
"d12855
"
,
{
sensorLog
(
LOG_KEY
.
click
,
"b1
4292"
,
"d14293
"
,
{
page_name
:
"
扫码唤端页
"
,
page_name
:
"
换端弹窗
"
,
button_name
:
"关闭按钮"
,
button_name
:
"关闭按钮"
,
});
});
};
};
...
...
src/pages/HomePage/HomePage.tsx
View file @
14c780cd
...
@@ -11,6 +11,7 @@ import Rulepop from "../../components/rulepop/rulepop.jsx";
...
@@ -11,6 +11,7 @@ import Rulepop from "../../components/rulepop/rulepop.jsx";
import
CapsulePage
from
"../CapsulePage/CapsulePage.jsx"
;
import
CapsulePage
from
"../CapsulePage/CapsulePage.jsx"
;
import
store
from
'@/store/store'
;
import
store
from
'@/store/store'
;
import
Taskpop
from
'@/panels/taskpop/taskpop.jsx'
;
import
Taskpop
from
'@/panels/taskpop/taskpop.jsx'
;
import
Yinsirulepop
from
'@/panels/yinsirulepop/yinsirulepop.jsx'
;
import
RankPage
from
'../RankPage/RankPage.js'
;
import
RankPage
from
'../RankPage/RankPage.js'
;
import
MyPrize
from
'../MyPrize/MyPrize.js'
;
import
MyPrize
from
'../MyPrize/MyPrize.js'
;
import
shareStore
from
'@/store/share.js'
;
import
shareStore
from
'@/store/share.js'
;
...
@@ -31,7 +32,6 @@ class Homepage extends React.Component {
...
@@ -31,7 +32,6 @@ class Homepage extends React.Component {
await
store
.
updateIndex
();
await
store
.
updateIndex
();
await
shareStore
.
doAssist
();
await
shareStore
.
doAssist
();
this
.
initSensor
();
this
.
initSensor
();
}
}
handleButtonClick
=
_asyncThrottle
(
async
(
number
)
=>
{
handleButtonClick
=
_asyncThrottle
(
async
(
number
)
=>
{
...
@@ -95,7 +95,12 @@ class Homepage extends React.Component {
...
@@ -95,7 +95,12 @@ class Homepage extends React.Component {
page_name
:
"活动首页"
,
page_name
:
"活动首页"
,
button_name
:
"奖品按钮"
,
button_name
:
"奖品按钮"
,
});
});
PageCtrl
.
changePage
(
MyPrize
);
if
(
!
store
.
indexData
?.
agreePrivacy
)
{
ModalCtrl
.
showModal
(
Yinsirulepop
);
}
else
{
PageCtrl
.
changePage
(
MyPrize
);
}
break
;
break
;
// 5 活动规则
// 5 活动规则
...
...
src/panels/yinsirulepop/yinsirulepop.jsx
0 → 100644
View file @
14c780cd
'use strict'
;
import
React
from
'react'
;
import
{
observer
}
from
'mobx-react'
;
import
'./yinsirulepop.less'
;
import
{
ModalCtrl
}
from
"@/core/ctrls/ModalCtrl"
;
import
{
PageCtrl
}
from
"@/core/ctrls/PageCtrl"
;
import
{
_asyncThrottle
}
from
'../../utils/utils.ts'
;
import
API
from
'../../api/index.ts'
;
import
store
from
'/src/store/store.ts'
;
import
{
LOG_KEY
,
MatterShareOpt
,
MatterViewOpt
,
pageView
,
sensorLog
,
MatterViewDuration
}
from
'../../utils/sensors.js'
;
@
observer
class
Yinsirulepop
extends
React
.
Component
{
constructor
(
props
)
{
super
(
props
);
}
componentDidMount
()
{
pageView
(
"b14296"
,
{
page_name
:
"隐私协议页"
,
});
sensorLog
(
LOG_KEY
.
exposure
,
"b14296"
,
"d14297"
,
{
page_name
:
"隐私协议页"
,
button_name
:
"同意按钮"
,
});
}
clickClose
=
()
=>
{
ModalCtrl
.
closeModal
();
}
clickTo
=
_asyncThrottle
(
async
()
=>
{
sensorLog
(
LOG_KEY
.
click
,
"b14296"
,
"d14297"
,
{
page_name
:
"隐私协议页"
,
button_name
:
"同意按钮"
,
});
const
{
success
}
=
await
API
.
agreePrivacy
()
if
(
!
success
)
return
PageCtrl
.
changePage
(
MyPrize
);
ModalCtrl
.
closeModal
();
})
render
()
{
return
(
<
div
className=
"yinsirulepop modal_center"
>
<
div
className=
"cont"
>
<
span
className=
"bg"
></
span
>
<
span
className=
"close"
onClick=
{
this
.
clickClose
}
></
span
>
<
div
className=
"ruletext"
dangerouslySetInnerHTML=
{
{
__html
:
store
?.
indexData
?.
privacyText
,
}
}
/>
<
span
className=
"btn md39"
onClick=
{
this
.
clickTo
}
></
span
>
</
div
>
</
div
>
);
}
}
export
default
Yinsirulepop
;
src/panels/yinsirulepop/yinsirulepop.less
0 → 100644
View file @
14c780cd
@import "../../res.less";
.yinsirulepop {
width: 750px;
height: 1624px;
left: 0px;
top: 0px;
position: absolute;
.popupCenterShow();
.cont {
width: 750px;
height: 1051px;
left: 0px;
top: 318px;
position: absolute;
.bg {
width: 606px;
height: 956px;
left: 80px;
top: 0px;
position: absolute;
.sparkBg("yinsirulepop/bg.png");
}
.close {
width: 64px;
height: 64px;
left: 336px;
top: 959px;
position: absolute;
.sparkBg("yinsirulepop/close.png");
}
.ruletext {
width: 429px;
height: 523px;
left: 158px;
top: 170px;
position: absolute;
font-size: 25px;
color: #99391b;
word-wrap: break-word;
overflow-y: scroll;
}
.btn {
width: 263px;
height: 92px;
left: 238px;
top: 726px;
position: absolute;
.sparkBg("yinsirulepop/btn.png");
}
}
}
src/store/store.ts
View file @
14c780cd
...
@@ -83,6 +83,7 @@ class Store {
...
@@ -83,6 +83,7 @@ class Store {
url
:
string
,
url
:
string
,
},
},
isAgent
:
string
,
isAgent
:
string
,
agreePrivacy
:
boolean
,
}
=
{};
}
=
{};
firstIn
=
true
;
firstIn
=
true
;
...
...
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