|
|
@@ -2,7 +2,7 @@
|
|
|
* @Author: mojunshou 1637302775@qq.com
|
|
|
* @Date: 2025-04-19 11:34:46
|
|
|
* @LastEditors: mojunshou 1637302775@qq.com
|
|
|
- * @LastEditTime: 2025-04-19 14:39:08
|
|
|
+ * @LastEditTime: 2025-04-19 17:00:16
|
|
|
* @Description: 微信转账中界面
|
|
|
*/
|
|
|
import { _decorator, Component, Node, Animation } from 'cc';
|
|
|
@@ -11,6 +11,7 @@ import { smc } from '../../common/SingletonModuleComp';
|
|
|
import { oops } from 'db://oops-framework/core/Oops';
|
|
|
import { UIID } from '../../common/config/GameUIConfig';
|
|
|
import { DeviceUtil } from 'db://oops-framework/core/utils/DeviceUtil';
|
|
|
+import { Format } from '../../utils/Format';
|
|
|
const { ccclass, property } = _decorator;
|
|
|
|
|
|
@ccclass('WechatTransfer')
|
|
|
@@ -45,14 +46,17 @@ export class WechatTransfer extends VMParent {
|
|
|
this.setButton();
|
|
|
this.showNode1.active = true;
|
|
|
this.showNode2.active = false;
|
|
|
- this.data.gameName = oops.config.game.gameName
|
|
|
+ this.data.gameName = oops.config.game.gameName;
|
|
|
+ this.updateData();
|
|
|
}
|
|
|
|
|
|
//设置数据
|
|
|
updateData() {
|
|
|
if (DeviceUtil.isAndroid && DeviceUtil.isNative) {
|
|
|
- this.data.money = smc.account.AccountModel.wxCoin;
|
|
|
- this.data.cost = smc.game.GameModel.handlingCharge;
|
|
|
+ this.data.money = Format.formatWxCoin(smc.account.AccountModel.wxCoin);
|
|
|
+ this.data.cost = smc.game.GameModel.costInfo.handlingCharge;
|
|
|
+ this.data.creditNum = smc.game.GameModel.costInfo.giftNum;
|
|
|
+ this.data.differ = smc.game.GameModel.costInfo.handlingCharge - smc.game.GameModel.costInfo.giftNum;
|
|
|
}
|
|
|
}
|
|
|
|