Commit 71a93ecc authored by 全球's avatar 全球

提现金额

parent 5e9fe1d1
......@@ -10,7 +10,7 @@
type="number"
label="¥"
class="money"
maxlength="8"
:maxlength="maxValue"
center
@blur="onFillMoneyBlur"
@input="inputClick"
......@@ -124,7 +124,8 @@ export default {
textName: "",
validCodeDialogShow: false,
validCode: null,
time: 60
time: 60,
maxValue:8,
};
},
created() {
......@@ -164,6 +165,9 @@ export default {
inputClick() {
this.rate = this.money * 0.02;
this.account = this.money - this.rate;
let num = this.money
var re = /([0-9]+\.[0-9]{2})[0-9]*/;
this.money=num.replace(re,"$1");
},
canCashOut() {
const params = {
......
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