Commit c260e295 authored by 陈子煜's avatar 陈子煜

1

parent 07453ccf
......@@ -152,7 +152,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 16.455000000000013,
"x": 19.681999999999988,
"y": 0.3269999999999911,
"z": 0
},
......@@ -193,7 +193,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 18.431991577148438,
"width": 110.59194946289062,
"height": 50.4
},
"_anchorPoint": {
......@@ -229,7 +229,7 @@
"b": 255,
"a": 255
},
"_string": "0",
"_string": "999999",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 32,
......
import Panel from "../../Module/Panel";
import {_decorator, Button, RichText, UITransform, Node, Sprite, Texture2D, ImageAsset, SpriteFrame, Label} from "cc";
import {observer, render} from "../store/decorators";
import {sendWebNetWithToken, WebNetName} from "db://assets/Scripts/Utils/WebNet/WebNet";
import {changeScene, showPanel} from "db://assets/Module/UIFast";
import {MyBagPanel} from "db://assets/Scripts/Panels/MyBagPanel";
const {ccclass, property} = _decorator;
......@@ -30,11 +33,14 @@ export default class ExchangeSuccess extends Panel {
}
clickLook() {
console.log(12312312);
showPanel(MyBagPanel, {tab:"TOOL"})
this.hidePanel()
}
clickClose = () => {
clickClose = async () => {
this.hidePanel()
await sendWebNetWithToken(WebNetName.propExchange)
}
}
......@@ -56,7 +56,7 @@ export class MyBagPanel extends Panel {
toolDate: any[] = [];
onLoad() {
this.tab = TAB.PRIZE;
this.tab = TAB.PRIZE;
this.closeBtn.on(Button.EventType.CLICK, this.clickClose, this);
this.prize_btn.on(Button.EventType.CLICK, this.clickSheng, this);
......@@ -65,6 +65,7 @@ export class MyBagPanel extends Panel {
async start() {
this.Prize_List.numberOfItems = () => this.prizeDate.length;
this.Prize_List.onCellDisplay = this.onShengCellDisplay;
......@@ -98,7 +99,7 @@ export class MyBagPanel extends Panel {
this.hidePanel();
}
// 点击省榜
// 点击省榜
clickSheng() {
this.tab = TAB.PRIZE;
// this.Prize.getChildByName(`goCheck`).active = true;
......
import Panel from "../../Module/Panel";
import {_decorator, Button, Node, Sprite, Label} from "cc";
import {observer} from "../store/decorators";
import { showPanel, showToast } from "db://assets/Module/UIFast";
import {showPanel, showToast} from "db://assets/Module/UIFast";
import ExchangeSuccess from "db://assets/Scripts/Panels/ExchangeSuccess";
import { creditsCost, sendWebNetWithToken, WebNetName } from "db://assets/Scripts/Utils/WebNet/WebNet";
import { _asyncThrottle } from "../Utils/Utils";
import {creditsCost, sendWebNetWithToken, WebNetName} from "db://assets/Scripts/Utils/WebNet/WebNet";
import {_asyncThrottle} from "../Utils/Utils";
const {ccclass, property} = _decorator;
......@@ -47,7 +47,7 @@ export default class ProPop extends Panel {
}
clickExchange = _asyncThrottle(async () => {
const { consumeSp, item, conditionsItem } = this.data;
const {consumeSp, item, conditionsItem} = this.data;
const {
success: costSuc,
......@@ -60,7 +60,7 @@ export default class ProPop extends Panel {
}
//兑换接口
const { success, data } = await sendWebNetWithToken(WebNetName.propExchange, {
const {success, data} = await sendWebNetWithToken(WebNetName.propExchange, {
ticketNum: ticket,
ruId: item.ruleId,
gear: conditionsItem.gear,
......@@ -72,8 +72,8 @@ export default class ProPop extends Panel {
// if (conditionsItem.credits >= consumeSp.quantity) {
showPanel(ExchangeSuccess, {consumeSp, item, conditionsItem})
showPanel(ExchangeSuccess, {consumeSp, item, conditionsItem})
this.hidePanel();
// }
})
}
{
"success": true,
"message": "ok",
"data": 2
"data": 1
}
\ No newline at end of file
......@@ -45,8 +45,8 @@
"progress": 1,
"state": "success",
"stage": "build",
"message": "2024-12-12 14:33:29 build success in 1 min 14 s!",
"detailMessage": "%c兑吧发布插件 >> 版本号:1733985135346\rcolor: green\r",
"message": "2024-12-12 12:38:18 build success in 1 min 23 s!",
"detailMessage": "%c兑吧发布插件 >> 版本号:1733978214944\rcolor: green\r",
"options": {
"name": "cocos-template-3d",
"server": "",
......@@ -109,7 +109,7 @@
"__version__": "1.3.8",
"logDest": "project://temp/builder/log/web-mobile2024-11-6 15-39.log"
},
"time": "2024-12-12 14:32:15",
"time": "2024-12-12 12:36:54",
"dirty": false
}
}
......
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