Commit 72e08e0e authored by haiyoucuv's avatar haiyoucuv

背包奖品高亮

parent aebd3ff3
This diff is collapsed.
...@@ -1755,7 +1755,7 @@ ...@@ -1755,7 +1755,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 880, "width": 880,
"height": 400 "height": 420
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -2069,7 +2069,7 @@ ...@@ -2069,7 +2069,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 880, "width": 880,
"height": 400 "height": 420
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -2098,8 +2098,8 @@ ...@@ -2098,8 +2098,8 @@
"_target": null, "_target": null,
"_left": 0, "_left": 0,
"_right": 0, "_right": 0,
"_top": 180, "_top": 170,
"_bottom": 20, "_bottom": 10,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
"_isAbsLeft": true, "_isAbsLeft": true,
......
...@@ -12,6 +12,7 @@ import store from "../store/store"; ...@@ -12,6 +12,7 @@ import store from "../store/store";
import { VList } from "../../Test/VList"; import { VList } from "../../Test/VList";
import { _asyncThrottle } from "../Utils/Utils"; import { _asyncThrottle } from "../Utils/Utils";
import { unwatchPageVisibility, watchPageVisibility } from "../Utils/pageVisibilityNotify"; import { unwatchPageVisibility, watchPageVisibility } from "../Utils/pageVisibilityNotify";
import { LuckRecordPanel } from "../Panels/LuckRecordPanel";
const {ccclass, property} = _decorator; const {ccclass, property} = _decorator;
...@@ -64,6 +65,8 @@ export class BlessingBagPage extends Scene { ...@@ -64,6 +65,8 @@ export class BlessingBagPage extends Scene {
@property(Prefab) earn_list: Prefab = null; @property(Prefab) earn_list: Prefab = null;
@property(Node) content: Node = null; @property(Node) content: Node = null;
@property(Node) luckRecord: Node = null;
onLoad() { onLoad() {
this.backBtn.on(Button.EventType.CLICK, this.backbtn, this); this.backBtn.on(Button.EventType.CLICK, this.backbtn, this);
...@@ -79,6 +82,8 @@ export class BlessingBagPage extends Scene { ...@@ -79,6 +82,8 @@ export class BlessingBagPage extends Scene {
this.Diamond_One_Btn.on(Button.EventType.CLICK, this.DiamondOneBtn, this); this.Diamond_One_Btn.on(Button.EventType.CLICK, this.DiamondOneBtn, this);
this.Diamond_Five_Btn.on(Button.EventType.CLICK, this.DiamondFiveBtn, 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); // this.Task1_invite_btn.on(Button.EventType.CLICK, this.DiamondFiveBtn, this);
...@@ -112,6 +117,7 @@ export class BlessingBagPage extends Scene { ...@@ -112,6 +117,7 @@ export class BlessingBagPage extends Scene {
this.active_goldBag.active = false; this.active_goldBag.active = false;
this.active_diamondBag.active = false; this.active_diamondBag.active = false;
this.active_toEarn.active = false; this.active_toEarn.active = false;
this.luckRecord.active = true;
const suc = await store.getBagInfo(); const suc = await store.getBagInfo();
...@@ -155,6 +161,10 @@ export class BlessingBagPage extends Scene { ...@@ -155,6 +161,10 @@ export class BlessingBagPage extends Scene {
watchPageVisibility(this.pageVisibilityNotify); watchPageVisibility(this.pageVisibilityNotify);
} }
clickLuckRecord = () => {
showPanel(LuckRecordPanel);
};
protected onDestroy() { protected onDestroy() {
unwatchPageVisibility(this.pageVisibilityNotify); unwatchPageVisibility(this.pageVisibilityNotify);
} }
...@@ -234,6 +244,8 @@ export class BlessingBagPage extends Scene { ...@@ -234,6 +244,8 @@ export class BlessingBagPage extends Scene {
this.active_goldBag.active = false; this.active_goldBag.active = false;
this.active_diamondBag.active = false; this.active_diamondBag.active = false;
this.active_toEarn.active = false; this.active_toEarn.active = false;
this.luckRecord.active = true;
} }
//金福袋按钮 //金福袋按钮
...@@ -247,6 +259,8 @@ export class BlessingBagPage extends Scene { ...@@ -247,6 +259,8 @@ export class BlessingBagPage extends Scene {
this.active_goldBag.active = true; this.active_goldBag.active = true;
this.active_diamondBag.active = false; this.active_diamondBag.active = false;
this.active_toEarn.active = false; this.active_toEarn.active = false;
this.luckRecord.active = true;
} }
//钻石福袋按钮 //钻石福袋按钮
...@@ -260,6 +274,8 @@ export class BlessingBagPage extends Scene { ...@@ -260,6 +274,8 @@ export class BlessingBagPage extends Scene {
this.active_goldBag.active = false; this.active_goldBag.active = false;
this.active_diamondBag.active = true; this.active_diamondBag.active = true;
this.active_toEarn.active = false; this.active_toEarn.active = false;
this.luckRecord.active = true;
} }
//去赚福袋按钮 //去赚福袋按钮
...@@ -273,6 +289,8 @@ export class BlessingBagPage extends Scene { ...@@ -273,6 +289,8 @@ export class BlessingBagPage extends Scene {
this.active_goldBag.active = false; this.active_goldBag.active = false;
this.active_diamondBag.active = false; this.active_diamondBag.active = false;
this.active_toEarn.active = true; this.active_toEarn.active = true;
this.luckRecord.active = false;
} }
//银福袋开启一个 //银福袋开启一个
......
...@@ -31,6 +31,8 @@ export enum WebNetName { ...@@ -31,6 +31,8 @@ export enum WebNetName {
reviveGame = "game/reviveGame.do", reviveGame = "game/reviveGame.do",
avatarGuide = "game/avatarGuide.do", avatarGuide = "game/avatarGuide.do",
bagRecords = "bag/bagRecords.do",
/** /**
* 获取QrCode * 获取QrCode
*/ */
......
{
"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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment