|
@@ -69,7 +69,14 @@ export default class WalletCashOut extends cc.Component {
|
|
|
this.sp_progress.fillRange = data.progressRate;
|
|
this.sp_progress.fillRange = data.progressRate;
|
|
|
let value = data.cashmoney / 100;
|
|
let value = data.cashmoney / 100;
|
|
|
let v = this.multiply(value, data.progressRate);
|
|
let v = this.multiply(value, data.progressRate);
|
|
|
- this.lbl_noviceValue.string = v.toString() + '元';
|
|
|
|
|
|
|
+ let len = v.toString().split('.')[1].length;
|
|
|
|
|
+ if(len >4)
|
|
|
|
|
+ {
|
|
|
|
|
+ this.lbl_noviceValue.string = v.toString() + '元';
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.lbl_noviceValue.string = v.toFixed(4) + '元';
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
this.intV = Math.round(value);
|
|
this.intV = Math.round(value);
|
|
|
this.lbl_tipUp.string = `进度加满后必得${this.intV}元现金`;
|
|
this.lbl_tipUp.string = `进度加满后必得${this.intV}元现金`;
|
|
|
this.lbl_cashOut.string = `满${this.intV}元提现`;
|
|
this.lbl_cashOut.string = `满${this.intV}元提现`;
|