Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MingSnake_241120
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
MingSnake_241120
Commits
72e08e0e
Commit
72e08e0e
authored
Jan 09, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
背包奖品高亮
parent
aebd3ff3
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
534 additions
and
260 deletions
+534
-260
BlessingBagPage.scene
assets/Bundles/BlessingBagPage/BlessingBagPage.scene
+347
-146
MainGame.scene
assets/Bundles/MainGame/MainGame.scene
+110
-110
MyBagPanel.prefab
assets/Bundles/MyBagPanel/MyBagPanel.prefab
+4
-4
BlessingBagPage.ts
assets/Scripts/Scenes/BlessingBagPage.ts
+18
-0
WebNet.ts
assets/Scripts/Utils/WebNet/WebNet.ts
+2
-0
bagRecords.do.json
preview-template/mock/bag/bagRecords.do.json
+53
-0
No files found.
assets/Bundles/BlessingBagPage/BlessingBagPage.scene
View file @
72e08e0e
This diff is collapsed.
Click to expand it.
assets/Bundles/MainGame/MainGame.scene
View file @
72e08e0e
This diff is collapsed.
Click to expand it.
assets/Bundles/MyBagPanel/MyBagPanel.prefab
View file @
72e08e0e
...
...
@@ -1755,7 +1755,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 880,
"height": 4
0
0
"height": 4
2
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -2069,7 +2069,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 880,
"height": 4
0
0
"height": 4
2
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -2098,8 +2098,8 @@
"_target": null,
"_left": 0,
"_right": 0,
"_top": 1
8
0,
"_bottom":
2
0,
"_top": 1
7
0,
"_bottom":
1
0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
...
...
assets/Scripts/Scenes/BlessingBagPage.ts
View file @
72e08e0e
...
...
@@ -12,6 +12,7 @@ import store from "../store/store";
import
{
VList
}
from
"../../Test/VList"
;
import
{
_asyncThrottle
}
from
"../Utils/Utils"
;
import
{
unwatchPageVisibility
,
watchPageVisibility
}
from
"../Utils/pageVisibilityNotify"
;
import
{
LuckRecordPanel
}
from
"../Panels/LuckRecordPanel"
;
const
{
ccclass
,
property
}
=
_decorator
;
...
...
@@ -64,6 +65,8 @@ export class BlessingBagPage extends Scene {
@
property
(
Prefab
)
earn_list
:
Prefab
=
null
;
@
property
(
Node
)
content
:
Node
=
null
;
@
property
(
Node
)
luckRecord
:
Node
=
null
;
onLoad
()
{
this
.
backBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
backbtn
,
this
);
...
...
@@ -79,6 +82,8 @@ export class BlessingBagPage extends Scene {
this
.
Diamond_One_Btn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
DiamondOneBtn
,
this
);
this
.
Diamond_Five_Btn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
DiamondFiveBtn
,
this
);
this
.
luckRecord
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickLuckRecord
,
this
);
//赚福袋任务界面
// this.Task1_invite_btn.on(Button.EventType.CLICK, this.DiamondFiveBtn, this);
...
...
@@ -112,6 +117,7 @@ export class BlessingBagPage extends Scene {
this
.
active_goldBag
.
active
=
false
;
this
.
active_diamondBag
.
active
=
false
;
this
.
active_toEarn
.
active
=
false
;
this
.
luckRecord
.
active
=
true
;
const
suc
=
await
store
.
getBagInfo
();
...
...
@@ -155,6 +161,10 @@ export class BlessingBagPage extends Scene {
watchPageVisibility
(
this
.
pageVisibilityNotify
);
}
clickLuckRecord
=
()
=>
{
showPanel
(
LuckRecordPanel
);
};
protected
onDestroy
()
{
unwatchPageVisibility
(
this
.
pageVisibilityNotify
);
}
...
...
@@ -234,6 +244,8 @@ export class BlessingBagPage extends Scene {
this
.
active_goldBag
.
active
=
false
;
this
.
active_diamondBag
.
active
=
false
;
this
.
active_toEarn
.
active
=
false
;
this
.
luckRecord
.
active
=
true
;
}
//金福袋按钮
...
...
@@ -247,6 +259,8 @@ export class BlessingBagPage extends Scene {
this
.
active_goldBag
.
active
=
true
;
this
.
active_diamondBag
.
active
=
false
;
this
.
active_toEarn
.
active
=
false
;
this
.
luckRecord
.
active
=
true
;
}
//钻石福袋按钮
...
...
@@ -260,6 +274,8 @@ export class BlessingBagPage extends Scene {
this
.
active_goldBag
.
active
=
false
;
this
.
active_diamondBag
.
active
=
true
;
this
.
active_toEarn
.
active
=
false
;
this
.
luckRecord
.
active
=
true
;
}
//去赚福袋按钮
...
...
@@ -273,6 +289,8 @@ export class BlessingBagPage extends Scene {
this
.
active_goldBag
.
active
=
false
;
this
.
active_diamondBag
.
active
=
false
;
this
.
active_toEarn
.
active
=
true
;
this
.
luckRecord
.
active
=
false
;
}
//银福袋开启一个
...
...
assets/Scripts/Utils/WebNet/WebNet.ts
View file @
72e08e0e
...
...
@@ -31,6 +31,8 @@ export enum WebNetName {
reviveGame
=
"game/reviveGame.do"
,
avatarGuide
=
"game/avatarGuide.do"
,
bagRecords
=
"bag/bagRecords.do"
,
/**
* 获取QrCode
*/
...
...
preview-template/mock/bag/bagRecords.do.json
0 → 100644
View file @
72e08e0e
{
"message"
:
"sit"
,
"success"
:
"officia proident consequat eu reprehenderit"
,
"data"
:
{
"totalCount"
:
1000
,
"totalPage"
:
10
,
"list"
:
[
{
"desc"
:
"121221312阿文倒萨德"
,
"num"
:
18
,
"changeType"
:
1
,
"time"
:
1639840000000
},
{
"desc"
:
"121221312阿文倒萨德"
,
"num"
:
18
,
"changeType"
:
2
,
"time"
:
1639840000000
},
{
"desc"
:
"121221312阿文倒萨德"
,
"num"
:
18
,
"changeType"
:
1
,
"time"
:
1639840000000
},
{
"desc"
:
"121221312阿文倒萨德"
,
"num"
:
18
,
"changeType"
:
1
,
"time"
:
1639840000000
},
{
"desc"
:
"121221312阿文倒萨德"
,
"num"
:
18
,
"changeType"
:
2
,
"time"
:
1639840000000
},
{
"desc"
:
"121221312阿文倒萨德"
,
"num"
:
18
,
"changeType"
:
2
,
"time"
:
1639840000000
},
{
"desc"
:
"121221312阿文倒萨德"
,
"num"
:
18
,
"changeType"
:
1
,
"time"
:
1639840000000
}
]
},
"code"
:
"deserunt non labore consectetur ex"
}
\ No newline at end of file
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