|
|
@@ -83,10 +83,12 @@ export default class Reward extends cc.Component {
|
|
|
* 底部提现相关样式
|
|
|
*/
|
|
|
private initCashOutStyle() {
|
|
|
- // 测试数据
|
|
|
- this.lbl_cash.string = 0.0 + '元';
|
|
|
- this.lbl_cash_out.string = 0 + '/' + 100;
|
|
|
- this.spr_cash_out.fillRange = 0.8;
|
|
|
+ const cash_bar = gData.redBagCash.cash_bar
|
|
|
+ let cash_data = gData.redBagCash.getItemDataByIndex(cash_bar)
|
|
|
+
|
|
|
+ this.lbl_cash.string = cash_data.money + '元';
|
|
|
+ this.lbl_cash_out.string = gData.gameData.gameData.redMoney + '/' + cash_data.type_value;
|
|
|
+ this.spr_cash_out.fillRange = gData.gameData.gameData.redMoney / cash_data.type_value;
|
|
|
}
|
|
|
|
|
|
/**
|