|
@@ -23,6 +23,12 @@
|
|
|
onKeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class='item acea-row row-between-wrapper'>
|
|
|
+ <view class='name'>交易账号</view>
|
|
|
+ <view class='input'><input placeholder='请输入交易账号' placeholder-class='placeholder'
|
|
|
+ name="account"></input>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<view class='item acea-row row-between-wrapper'>
|
|
|
<view class='name'>转换能量</view>
|
|
|
<view class='input'><input v-model="allMoney" @input='inputNum' :maxlength="moneyMaxLeng"
|
|
@@ -31,7 +37,7 @@
|
|
|
</view>
|
|
|
<view class='tip'>
|
|
|
当前可转能量值:<text class="price">{{userInfo.energy}}</text>
|
|
|
- 时价:<text class="price">{{stock_price}}</text>
|
|
|
+ 时价:<text class="price">{{stock_price}}</text>
|
|
|
</view>
|
|
|
<view class='tip'>
|
|
|
手续费:<text class="price">{{withdraw_fee}}%</text>实际到账:<text
|
|
@@ -111,8 +117,8 @@
|
|
|
this.moneyMaxLeng = 8
|
|
|
}
|
|
|
try {
|
|
|
- this.true_money = +((val - val*this.withdraw_fee/100)/this.stock_price).toFixed(2);
|
|
|
- console.log(this.true_money,'this.true_money');
|
|
|
+ this.true_money = +((val - val * this.withdraw_fee / 100) / this.stock_price).toFixed(2);
|
|
|
+ console.log(this.true_money, 'this.true_money');
|
|
|
} catch (e) {
|
|
|
uni.showToast({
|
|
|
title: e,
|
|
@@ -142,6 +148,10 @@
|
|
|
subCash: function(e) {
|
|
|
let that = this,
|
|
|
value = e.detail.value;
|
|
|
+ console.log(value,'value')
|
|
|
+ if (value.account.length == 0) return that.$util.Tips({
|
|
|
+ title: '请填写交易账户'
|
|
|
+ });
|
|
|
if (value.name.length == 0) return that.$util.Tips({
|
|
|
title: '请填写持卡人姓名'
|
|
|
});
|