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
a43f309a
Commit
a43f309a
authored
May 22, 2025
by
韦燕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:merge
parent
ec595bee
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
81 additions
and
1 deletion
+81
-1
bg.png
src/assets/exitPop/bg.png
+0
-0
closeBtn.png
src/assets/exitPop/closeBtn.png
+0
-0
continueBtn.png
src/assets/exitPop/continueBtn.png
+0
-0
sureBtn.png
src/assets/exitPop/sureBtn.png
+0
-0
exitPop.jsx
src/components/exitPop/exitPop.jsx
+33
-0
exitPop.less
src/components/exitPop/exitPop.less
+45
-0
GamePage.tsx
src/pages/GamePage/GamePage.tsx
+3
-1
No files found.
src/assets/exitPop/bg.png
0 → 100644
View file @
a43f309a
165 KB
src/assets/exitPop/closeBtn.png
0 → 100644
View file @
a43f309a
4.78 KB
src/assets/exitPop/continueBtn.png
0 → 100644
View file @
a43f309a
16.4 KB
src/assets/exitPop/sureBtn.png
0 → 100644
View file @
a43f309a
14.2 KB
src/components/exitPop/exitPop.jsx
0 → 100644
View file @
a43f309a
import
{
observer
}
from
'mobx-react'
;
import
React
,
{
Component
}
from
'react'
;
import
'./exitPop.less'
;
import
{
Button
}
from
'@grace/ui'
;
import
{
ModalCtrl
}
from
"@/core/ctrls/ModalCtrl"
;
import
{
PageCtrl
}
from
"@/core/ctrls/PageCtrl"
;
import
HomePage
from
'@/pages/HomePage/HomePage.tsx'
;
@
observer
class
ExitPop
extends
Component
{
closeModal
=
()
=>
{
ModalCtrl
.
closeModal
();
}
backHome
=
()
=>
{
PageCtrl
.
changePage
(
HomePage
)
this
.
closeModal
();
}
render
()
{
return
(
<
div
className=
"exitPop modal_center"
>
<
div
className=
"bg"
></
div
>
<
Button
className=
"continueBtn"
onClick=
{
this
.
closeModal
}
></
Button
>
<
Button
className=
"sureBtn"
onClick=
{
this
.
backHome
}
></
Button
>
<
Button
className=
"closeBtn"
onClick=
{
this
.
closeModal
}
></
Button
>
</
div
>
);
}
}
export
default
ExitPop
;
src/components/exitPop/exitPop.less
0 → 100644
View file @
a43f309a
@import '../../res.less';
.exitPop {
width: 100%;
height: 100%;
position: absolute;
.bg {
position: absolute;
left: 72px;
top: 405px;
width: 632px;
height: 642px;
.sparkBg("exitPop/bg.png");
}
.continueBtn {
position: absolute;
left: 141px;
top: 792px;
width: 210px;
height: 87px;
.sparkBg("exitPop/continueBtn.png");
}
.sureBtn {
position: absolute;
left: 373px;
top: 792px;
width: 210px;
height: 87px;
.sparkBg("exitPop/sureBtn.png");
}
.closeBtn {
position: absolute;
left: 343px;
top: 1048px;
width: 64px;
height: 64px;
.sparkBg("exitPop/closeBtn.png");
}
}
\ No newline at end of file
src/pages/GamePage/GamePage.tsx
View file @
a43f309a
...
...
@@ -20,6 +20,7 @@ import bgImg from "../../assets/GamePage/bg.jpg";
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'
;
export
function
getApp
():
Application
{
return
window
[
"__app"
];
...
...
@@ -100,7 +101,8 @@ class GamePage extends React.Component<any, any> {
};
clickBack
=
()
=>
{
PageCtrl
.
backPage
();
ModalCtrl
.
showModal
(
ExitPop
)
// PageCtrl.backPage();
}
clickTip
=
()
=>
{
...
...
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