Przeglądaj źródła

【修复】显示数字错误
http://chandao.zbc6b.com/zentao/bug-view-1013.html

zouyong 5 lat temu
rodzic
commit
debd336186

+ 1 - 1
assets/script/game/module/redBagCode/RedBagCodeItem.ts

@@ -29,7 +29,7 @@ export default class RedBagCodeItem extends cc.Component {
      */
     private initItem(item_data: TCashList) {
         this.item_data = item_data;
-        this.lbl_rmb.string = item_data.amount + '元';
+        this.lbl_rmb.string = ((item_data.amount / 100).toFixed(2)) + '元';
         this.lbl_time.string = mk.time.getNowDayString(item_data.applyTime * 1000);
         this.lbl_code.string = item_data.withdrawalCode ? '红包码:' + item_data.withdrawalCode : '';
     }