Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RB-studyChina-20250617
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-studyChina-20250617
Commits
f1afc867
Commit
f1afc867
authored
Jun 19, 2025
by
俞嘉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 规则引导
parent
8ce118dc
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
84 deletions
+12
-84
index.ts
mock/index.ts
+0
-18
main.ts
mock/main.ts
+2
-27
project.settings.json
project.settings.json
+1
-1
spark.config.json
spark.config.json
+1
-1
index.ts
src/api/index.ts
+6
-37
rulepop.jsx
src/components/rulepop/rulepop.jsx
+2
-0
No files found.
mock/index.ts
View file @
f1afc867
...
...
@@ -211,22 +211,4 @@ export default [
},
},
{
url
:
"/customActivity/kouweiwang/prize/queryOrderNo"
,
method
:
'get'
,
response
:
({
query
})
=>
{
return
{
"success"
:
true
,
"message"
:
"报错了~"
,
"code"
:
null
,
"data"
:
{
"recordId"
:
1
,
"projectId"
:
1
,
"orderNo"
:
1234567890
,
"activityId"
:
1
,
"uid"
:
1
,
},
}
}
},
]
mock/main.ts
View file @
f1afc867
...
...
@@ -22,12 +22,13 @@ export default [
"isAgent"
:
true
,
"boundYkCode"
:
"eiusmod in dolor"
,
"agreePrivacyFlag"
:
true
,
"newGuideFlag"
:
0
,
// 从0开始
}
}
},
},
{
url
:
'/
main/completeG
uide.do'
,
url
:
'/
game/g
uide.do'
,
response
:
({
query
})
=>
{
return
{
success
:
true
,
...
...
@@ -58,30 +59,4 @@ export default [
}
},
},
{
url
:
'/main/receiveBubble.do'
,
response
:
({
query
})
=>
{
return
{
success
:
true
,
code
:
""
,
message
:
""
,
data
:
{
creditNum
:
888
,
}
}
},
},
{
url
:
'/main/startVideo.do'
,
response
:
({
query
})
=>
{
return
{
success
:
true
,
code
:
""
,
message
:
""
,
data
:
{
creditNum
:
888
,
}
}
},
},
]
project.settings.json
View file @
f1afc867
{
"proSetting"
:{
"projectxIDs"
:{
"testId"
:[{
"label"
:
"test"
,
"value"
:
"p
e11c307f"
}],
"prodId"
:[{
"label"
:
"线上测试"
,
"value"
:
"pbad47607
"
},{
"label"
:
"线上正式"
,
"value"
:
"pd3ee4a37"
}]},
"skinVariables"
:[],
"mockSetting"
:{
"projectId"
:
""
,
"pageId"
:
""
}},
"envSetting"
:{},
"psdSetting"
:{
"psdFSSetting"
:
true
,
"psdCenterSetting"
:
true
}}
{
"proSetting"
:{
"projectxIDs"
:{
"testId"
:[{
"label"
:
"test"
,
"value"
:
"p
d4041589"
}],
"prodId"
:[{
"label"
:
"线上测试"
,
"value"
:
"p519a8ed4
"
},{
"label"
:
"线上正式"
,
"value"
:
"pd3ee4a37"
}]},
"skinVariables"
:[],
"mockSetting"
:{
"projectId"
:
""
,
"pageId"
:
""
}},
"envSetting"
:{},
"psdSetting"
:{
"psdFSSetting"
:
true
,
"psdCenterSetting"
:
true
}}
spark.config.json
View file @
f1afc867
{
"proName"
:
"未命名项目"
,
"proDesc"
:
""
,
"proPath"
:
"
D:
\\
Duiba
\\
人保
\\
最强大脑
\\
RB_StrongestBrain_250520
"
,
"createTime"
:
1729847802806
}
{
"proName"
:
"未命名项目"
,
"proDesc"
:
""
,
"proPath"
:
"
/Users/yujiating/Documents/programme/人保-研学游中国-20250617/RB-studyChina-20250617
"
,
"createTime"
:
1729847802806
}
src/api/index.ts
View file @
f1afc867
...
...
@@ -28,11 +28,6 @@ const API = generateAPI({
showMsg
:
false
,
},
// 奖品记录
records
:
"common/records.do"
,
// 红包补领
redpacket
:
"common/moneyReissue.do"
,
getInviteCode
:
{
uri
:
'customInvite1/getInviteCode.do'
,
withToken
:
true
,
...
...
@@ -47,30 +42,6 @@ const API = generateAPI({
/** 获取地区 */
getParentCode
:
"/gaw/address/getChildrenByParentCode"
,
// 挑战-首页
getChallengeIndex
:
"challenge/index.do"
,
//挑战-基础首页
getChallengeBaseIndex
:
"challenge/baseIndex.do"
,
// 挑战-补签
getChallengeResign
:
"challenge/resign.do"
,
// 挑战-任务完成接口
getChallenegeComplete
:
"challenge/taskComplete.do"
,
//挑战-获取邀请码
getChallengeInviteCode
:
"challenge/inviteCode.do"
,
// 挑战-助力
getChallengeAssist
:
{
uri
:
"challenge/assist.do"
,
showMsg
:
false
,
},
// 挑战-选择挑战
getChooseChallenge
:
"challenge/chooseChallenge.do"
,
// 扣积分
queryStatus
:
"credits/queryStatus.do"
,
creditsCost
:
{
...
...
@@ -78,14 +49,12 @@ const API = generateAPI({
method
:
"post"
},
// 奖品
queryOrder
:
"/customActivity/kouweiwang/prize/queryOrderNo"
,
index
:
"game/index.do"
,
completeGuide
:
"main/completeGuide.do"
,
sign
:
"main/sign.do"
,
receiveBubble
:
"main/receiveBubble.do"
,
startVideo
:
"main/startVideo.do"
,
completeGuide
:
{
uri
:
"game/guide.do"
,
withToken
:
true
,
method
:
"post"
,
},
/** 奖品页 */
prize
:
"/crecord/getrecordmn"
,
...
...
@@ -173,7 +142,7 @@ const API = generateAPI({
showMsg
:
false
,
},
/** 落地页 */
coop_getLoadingInfo
:
"c
ommon
/outside.do"
,
coop_getLoadingInfo
:
"c
ustomInvite1
/outside.do"
,
////////////////////////////// Game //////////////////////////////
start
:
{
...
...
src/components/rulepop/rulepop.jsx
View file @
f1afc867
...
...
@@ -9,6 +9,7 @@ import {_asyncThrottle} from "../../utils/utils";
import
{
PageCtrl
}
from
"@/core/ctrls/PageCtrl"
;
import
{
ModalCtrl
}
from
"@/core/ctrls/ModalCtrl"
;
import
{
LOG_KEY
,
MatterShareOpt
,
MatterViewOpt
,
pageView
,
sensorLog
,
MatterViewDuration
}
from
'../../utils/sensors.js'
;
import
API
from
'../../api/index.js'
;
@
observer
class
Rulepop
extends
React
.
Component
{
constructor
(
props
)
{
...
...
@@ -17,6 +18,7 @@ class Rulepop extends React.Component {
componentDidMount
()
{
store
.
initRule
();
API
.
completeGuide
({
flag
:
1
})
pageView
(
"b14294"
,
{
page_name
:
"活动规则弹窗"
,
...
...
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