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

提现金额

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