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
a08015df
Commit
a08015df
authored
May 21, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5
parent
c7487e4d
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
41 additions
and
97 deletions
+41
-97
App.tsx
src/App.tsx
+1
-1
close.png
src/assets/TipPanel/close.png
+0
-0
close.png
src/assets/common/close.png
+0
-0
LevelBase.ts
src/pages/GamePage/Components/LevelBase.ts
+2
-0
Game.ts
src/pages/GamePage/Game.ts
+2
-2
GamePage.tsx
src/pages/GamePage/GamePage.tsx
+3
-0
TipPanel.less
src/panels/TipPanel/TipPanel.less
+25
-88
TipPanel.tsx
src/panels/TipPanel/TipPanel.tsx
+8
-6
No files found.
src/App.tsx
View file @
a08015df
...
@@ -29,7 +29,7 @@ class App extends Component {
...
@@ -29,7 +29,7 @@ class App extends Component {
const
defaultPage
=
{
const
defaultPage
=
{
myPrize
:
MyPrize
,
// TODO 举例子 新宿台奖品页
myPrize
:
MyPrize
,
// TODO 举例子 新宿台奖品页
index
:
LoadingDemo
,
index
:
LoadingDemo
,
}[
skinId
]
||
Ho
mePage
;
}[
skinId
]
||
Ga
mePage
;
PageCtrl
.
changePage
(
defaultPage
);
PageCtrl
.
changePage
(
defaultPage
);
}
}
...
...
src/assets/TipPanel/close.png
deleted
100644 → 0
View file @
c7487e4d
4.78 KB
src/assets/common/close.png
View replaced file @
c7487e4d
View file @
a08015df
1.54 KB
|
W:
|
H:
4.78 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/pages/GamePage/Components/LevelBase.ts
View file @
a08015df
...
@@ -10,6 +10,8 @@ export abstract class LevelBase extends Base {
...
@@ -10,6 +10,8 @@ export abstract class LevelBase extends Base {
this
.
qs
=
this
.
addChild
(
new
Sprite
(
Assets
.
get
(
`level
${
this
.
level
}
/qs.png`
)));
this
.
qs
=
this
.
addChild
(
new
Sprite
(
Assets
.
get
(
`level
${
this
.
level
}
/qs.png`
)));
this
.
qs
.
anchor
.
set
(
0.5
);
this
.
qs
.
anchor
.
set
(
0.5
);
this
.
qs
.
position
.
set
(
375
,
505
);
this
.
qs
.
position
.
set
(
375
,
505
);
console
.
log
(
this
.
level
)
}
}
setTouchEnable
(
enable
:
boolean
)
{
setTouchEnable
(
enable
:
boolean
)
{
...
...
src/pages/GamePage/Game.ts
View file @
a08015df
...
@@ -26,13 +26,13 @@ export class Game extends Base {
...
@@ -26,13 +26,13 @@ export class Game extends Base {
const
qsBg
=
this
.
addChild
(
new
Sprite
(
Assets
.
get
(
"问题.png"
)));
const
qsBg
=
this
.
addChild
(
new
Sprite
(
Assets
.
get
(
"问题.png"
)));
qsBg
.
position
.
set
(
49
,
316
);
qsBg
.
position
.
set
(
49
,
316
);
this
.
level
=
this
.
addChild
(
new
Level9
());
//
this.level = this.addChild(new Level9());
gameStore
.
start
();
gameStore
.
start
();
globalEvent
.
on
(
GameEvent
.
NextLevel
,
this
.
nextLevel
,
this
);
globalEvent
.
on
(
GameEvent
.
NextLevel
,
this
.
nextLevel
,
this
);
//
this.nextLevel();
this
.
nextLevel
();
}
}
...
...
src/pages/GamePage/GamePage.tsx
View file @
a08015df
...
@@ -17,6 +17,8 @@ import gameStore from "@/store/gameStore.ts";
...
@@ -17,6 +17,8 @@ import gameStore from "@/store/gameStore.ts";
import
.
meta
.
env
.
DEV
&&
initDevtools
({});
import
.
meta
.
env
.
DEV
&&
initDevtools
({});
import
bgImg
from
"../../assets/GamePage/bg.jpg"
;
import
bgImg
from
"../../assets/GamePage/bg.jpg"
;
import
{
ModalCtrl
}
from
"@/core/ctrls/ModalCtrl.tsx"
;
import
TipPanel
from
"@/panels/TipPanel/TipPanel.tsx"
;
export
function
getApp
():
Application
{
export
function
getApp
():
Application
{
return
window
[
"__app"
];
return
window
[
"__app"
];
...
@@ -108,6 +110,7 @@ class GamePage extends React.Component<any, any> {
...
@@ -108,6 +110,7 @@ class GamePage extends React.Component<any, any> {
const
{
levelIndex
,
levelIdxArr
}
=
gameStore
.
gameInfo
;
const
{
levelIndex
,
levelIdxArr
}
=
gameStore
.
gameInfo
;
const
titleIdx
=
levelIdxArr
[
levelIndex
]
+
1
;
const
titleIdx
=
levelIdxArr
[
levelIndex
]
+
1
;
console
.
log
(
titleIdx
)
return
<
div
className=
{
styles
.
root
}
ref=
{
(
el
)
=>
this
.
gameDiv
=
el
}
>
return
<
div
className=
{
styles
.
root
}
ref=
{
(
el
)
=>
this
.
gameDiv
=
el
}
>
...
...
src/panels/TipPanel/TipPanel.less
View file @
a08015df
@import "../../res.less";
@import "../../res.less";
.
SignSuc
Panel {
.
Tip
Panel {
width: 750px;
width: 750px;
height: 1624px;
height: 1624px;
position: absolute;
position: absolute;
left: 0;
left: 0;
top: 0;
top: 0;
.bgEffect {
width: 750px;
height: 1624px;
position: absolute;
left: 0;
top: 0;
}
.bg {
.bg {
position: absolute;
position: absolute;
left:
0
;
left:
105px
;
top:
397
px;
top:
491
px;
width:
750
px;
width:
593
px;
height:
741
px;
height:
475
px;
.webpBg("
SignSuc
Panel/bg.png");
.webpBg("
Tip
Panel/bg.png");
}
}
.t
itle
{
.t
ext
{
position: absolute;
position: absolute;
left: 138px;
left: 138px;
top: 306px;
top: 550px;
width: 384px;
width: 464px;
height: 84px;
height: 215px;
.webpBg("SignSucPanel/签到成功.png");
}
.normal {
.tip {
font-family: "zzgfyht";
font-size: 53.62px;
color: #8f2245;
position: absolute;
left: 0;
top: 485px;
width: 100%;
text-align: center;
}
.img {
font-size: 36px;
position: absolute;
color: rgb(153, 57, 27);
left: 245px;
font-weight: bold;
top: 583px;
width: 263px;
height: 253px;
.webpBg("SignSucPanel/金币堆.png");
}
}
.vip {
color: #8f2245;
text-align: center;
text-align: center;
font-family: "zzgfyht";
display: flex;
align-items: center;
.tip {
justify-content: center;
font-size: 54.52px;
position: absolute;
left: 0;
top: 481px;
width: 100%;
text-align: center;
}
.left {
position: absolute;
left: 105px;
top: 581px;
width: 300px;
font-size: 43.19px;
}
.right {
position: absolute;
left: 340px;
top: 581px;
width: 300px;
font-size: 43.19px;
}
.img {
position: absolute;
left: 168px;
top: 643px;
width: 402px;
height: 184px;
.webpBg("SignSucPanel/会员金币堆.png");
}
}
}
.btn {
.btn {
position: absolute;
position: absolute;
left:
16
4px;
left:
24
4px;
top:
925
px;
top:
766
px;
width:
420
px;
width:
263
px;
height:
123
px;
height:
92
px;
.webpBg("
SignSucPanel/按钮
.png");
.webpBg("
TipPanel/btn
.png");
}
}
.close {
.close {
position: absolute;
position: absolute;
left: 3
36
px;
left: 3
43
px;
top: 1
194
px;
top: 1
058
px;
width:
79
px;
width:
64
px;
height:
79
px;
height:
64
px;
.webpBg("common/close.png");
.webpBg("common/close.png");
}
}
...
...
src/panels/TipPanel/TipPanel.tsx
View file @
a08015df
...
@@ -6,7 +6,7 @@ import {_asyncThrottle} from "@/utils/utils.ts";
...
@@ -6,7 +6,7 @@ import {_asyncThrottle} from "@/utils/utils.ts";
import
{
ModalCtrl
}
from
"@/core/ctrls/ModalCtrl.tsx"
;
import
{
ModalCtrl
}
from
"@/core/ctrls/ModalCtrl.tsx"
;
export
interface
ITipPanelProps
{
export
interface
ITipPanelProps
{
tip
:
string
;
level
:
number
;
}
}
@
observer
@
observer
...
@@ -19,16 +19,18 @@ class TipPanel extends React.Component<ITipPanelProps> {
...
@@ -19,16 +19,18 @@ class TipPanel extends React.Component<ITipPanelProps> {
ModalCtrl
.
closeModal
();
ModalCtrl
.
closeModal
();
};
};
clickBtn
=
_asyncThrottle
(
async
()
=>
{
clickBtn
=
()
=>
{
ModalCtrl
.
closeModal
();
ModalCtrl
.
closeModal
();
}
)
;
};
render
()
{
render
()
{
const
{
tip
}
=
this
.
props
;
const
{
level
}
=
this
.
props
;
console
.
log
(
level
);
return
<
div
className=
"
SignSuc
Panel modal_center"
>
return
<
div
className=
"
Tip
Panel modal_center"
>
<
div
className=
"bg"
/>
<
div
className=
"bg"
/>
<
div
>
</
div
>
<
div
className=
"text"
>
5=1
</
div
>
<
Button
className=
"btn"
onClick=
{
this
.
clickBtn
}
/>
<
Button
className=
"btn"
onClick=
{
this
.
clickBtn
}
/>
<
Button
className=
"close"
onClick=
{
this
.
clickClose
}
/>
<
Button
className=
"close"
onClick=
{
this
.
clickClose
}
/>
</
div
>;
</
div
>;
...
...
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