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
c8982d06
Commit
c8982d06
authored
May 26, 2025
by
徐士卿
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab2.dui88.com:sparkprojects/rb_strongestbrain_250520
parents
a2e35a7f
bb4d337d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
6 deletions
+12
-6
settlechance.jsx
src/components/settlechance/settlechance.jsx
+5
-2
settlenochance.jsx
src/components/settlenochance/settlenochance.jsx
+4
-1
GamePage.tsx
src/pages/GamePage/GamePage.tsx
+1
-1
gameStore.ts
src/store/gameStore.ts
+2
-2
No files found.
src/components/settlechance/settlechance.jsx
View file @
c8982d06
...
...
@@ -11,18 +11,21 @@ import { SvgaPlayer } from "@grace/svgaplayer";
import
lightSvga
from
"../../assets/svga/6输出弹窗.svga"
;
import
Capsulepage
from
"../../pages/CapsulePage/CapsulePage"
;
import
HomePage
from
"../../pages/HomePage/HomePage"
;
@
observer
class
Settlechance
extends
React
.
Component
{
constructor
(
props
)
{
super
(
props
);
}
handleClose
=
_asyncThrottle
(()
=>
{
ModalCtrl
.
closeModal
()
PageCtrl
.
changePage
(
HomePage
)
})
handleKnow
=
_asyncThrottle
(()
=>
{
ModalCtrl
.
closeModal
()
PageCtrl
.
changePage
(
HomePage
)
})
handleDraw
=
_asyncThrottle
(()
=>
{
...
...
@@ -47,7 +50,7 @@ class Settlechance extends React.Component {
<
span
className=
"bg"
></
span
>
<
Button
className=
"draw md19"
onClick=
{
this
.
handleDraw
}
/>
<
Button
className=
"know md17"
onClick=
{
this
.
handleKnow
}
/>
<
img
className=
"icon"
<
img
className=
"icon"
src
=
{
img
}
alt
=
{
title
}
/>
...
...
src/components/settlenochance/settlenochance.jsx
View file @
c8982d06
...
...
@@ -11,6 +11,7 @@ import { SvgaPlayer } from "@grace/svgaplayer";
import
lightSvga
from
"../../assets/svga/6输出弹窗.svga"
;
import
{
LOG_KEY
,
MatterShareOpt
,
MatterViewDuration
,
MatterViewOpt
,
pageView
,
sensorLog
}
from
"../../utils/sensors.js"
;
import
HomePage
from
"@/pages/HomePage/HomePage"
;
@
observer
class
Settlenochance
extends
React
.
Component
{
...
...
@@ -46,10 +47,12 @@ class Settlenochance extends React.Component {
}
handleClose
=
_asyncThrottle
(()
=>
{
PageCtrl
.
changePage
(
HomePage
)
ModalCtrl
.
closeModal
()
})
handleKnow
=
_asyncThrottle
(()
=>
{
PageCtrl
.
changePage
(
HomePage
)
ModalCtrl
.
closeModal
()
})
render
()
{
...
...
@@ -65,7 +68,7 @@ class Settlenochance extends React.Component {
<
SvgaPlayer
className=
"light"
src=
{
lightSvga
}
/>
<
span
className=
"bg"
></
span
>
<
Button
className=
"know md17"
onClick=
{
this
.
handleKnow
}
/>
<
img
className=
"icon"
<
img
className=
"icon"
src
=
{
img
}
alt
=
{
title
}
/>
...
...
src/pages/GamePage/GamePage.tsx
View file @
c8982d06
...
...
@@ -127,7 +127,7 @@ class GamePage extends React.Component<any, any> {
const
{
levelIndex
,
levelIdxArr
,
cd
}
=
gameStore
.
gameInfo
;
const
titleSrc
=
new
URL
(
`../../assets/GamePage/title/title
${
(
levelIndex
+
1
)
||
1
}
.png?x-oss-process=image/format,webp`
,
`../../assets/GamePage/title/title
${
Math
.
min
(
levelIndex
+
1
,
levelIdxArr
.
length
)
||
1
}
.png?x-oss-process=image/format,webp`
,
import
.
meta
.
url
).
href
;
...
...
src/store/gameStore.ts
View file @
c8982d06
...
...
@@ -76,9 +76,9 @@ class GameStore {
}
if
(
data
.
drawChance
)
{
ModalCtrl
.
showModal
(
Settlechance
,
{
score
,
...
data
});
ModalCtrl
.
showModal
(
Settlechance
,
{
data
});
}
else
{
ModalCtrl
.
showModal
(
Settlenochance
,
{
score
,
...
data
});
ModalCtrl
.
showModal
(
Settlenochance
,
{
data
});
}
return
success
;
...
...
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