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
3ac65d4b
Commit
3ac65d4b
authored
May 26, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
f94a6142
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
4 deletions
+20
-4
project.settings.json
project.settings.json
+1
-1
spark.config.json
spark.config.json
+1
-1
GamePage.tsx
src/pages/GamePage/GamePage.tsx
+13
-2
gameStore.ts
src/store/gameStore.ts
+5
-0
No files found.
project.settings.json
View file @
3ac65d4b
{
"proSetting"
:{
"projectxIDs"
:{
"testId"
:[{
"label"
:
"test"
,
"value"
:
"pe11c307f"
}],
"prodId"
:[
{
"label"
:
"线上测试"
,
"value"
:
"p69bb35bf"
}
]},
"skinVariables"
:[],
"mockSetting"
:{
"projectId"
:
""
,
"pageId"
:
""
}},
"envSetting"
:{},
"psdSetting"
:{
"psdFSSetting"
:
true
,
"psdCenterSetting"
:
true
}}
{
"proSetting"
:{
"projectxIDs"
:{
"testId"
:[{
"label"
:
"test"
,
"value"
:
"pe11c307f"
}],
"prodId"
:[]},
"skinVariables"
:[],
"mockSetting"
:{
"projectId"
:
""
,
"pageId"
:
""
}},
"envSetting"
:{},
"psdSetting"
:{
"psdFSSetting"
:
true
,
"psdCenterSetting"
:
true
}}
spark.config.json
View file @
3ac65d4b
{
"proName"
:
"未命名项目"
,
"proDesc"
:
""
,
"proPath"
:
"
/Users/duiba/Desktop/duiba项目/sparkproject/2025 1-6/5.20 人保-谁是最强大脑/rb_strongestb
rain_250520"
,
"createTime"
:
1729847802806
}
{
"proName"
:
"未命名项目"
,
"proDesc"
:
""
,
"proPath"
:
"
D:
\\
Duiba
\\
人保
\\
最强大脑
\\
RB_StrongestB
rain_250520"
,
"createTime"
:
1729847802806
}
src/pages/GamePage/GamePage.tsx
View file @
3ac65d4b
...
...
@@ -21,6 +21,7 @@ import { ModalCtrl } from "@/core/ctrls/ModalCtrl.tsx";
import
TipPanel
from
"@/panels/TipPanel/TipPanel.tsx"
;
import
{
LevelArr
}
from
"@/pages/GamePage/Level/LevelConfig.ts"
;
import
ExitPop
from
'@/components/exitPop/exitPop'
;
import
{
_throttle
}
from
"@/utils/utils.ts"
;
export
function
getApp
():
Application
{
return
window
[
"__app"
];
...
...
@@ -105,12 +106,22 @@ class GamePage extends React.Component<any, any> {
// PageCtrl.backPage();
}
clickTip
=
()
=>
{
clickTip
=
_throttle
(
async
()
=>
{
if
(
gameStore
.
gameInfo
.
remainTipTimes
<=
0
)
{
ModalCtrl
.
showModal
(
TipPanel
,
{
tip
:
"获取提示机会已用完"
});
}
const
success
=
await
gameStore
.
suggest
();
if
(
!
success
)
return
;
gameStore
.
gameInfo
.
remainTipTimes
--
;
const
{
levelIndex
,
levelIdxArr
}
=
gameStore
.
gameInfo
;
const
levelIdx
=
levelIdxArr
[
levelIndex
];
const
{
tip
,
cls
}
=
LevelArr
[
levelIdx
];
ModalCtrl
.
showModal
(
TipPanel
,
{
tip
});
}
}
)
render
()
{
const
{}
=
store
.
indexData
;
...
...
src/store/gameStore.ts
View file @
3ac65d4b
...
...
@@ -37,6 +37,11 @@ class GameStore {
return
success
;
}
async
suggest
()
{
const
{
success
,
data
}
=
await
API
.
suggest
();
return
success
;
}
async
middleSubmit
(
score
:
number
)
{
console
.
log
(
score
);
const
param
=
AESEncrypt
(
JSON
.
stringify
({
...
...
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