['免手续费']

This commit is contained in:
2021-09-30 11:58:03 +08:00
parent 8e533f9bf7
commit 1adf3d7912
3 changed files with 26 additions and 15 deletions

View File

@@ -34,7 +34,7 @@
</view>
<view class="total" v-if="total">≈ ¥{{total.toFixed(2)}} </view>
<view class="btn" @click="actions">提现至银行卡</view>
<view class="des">预计5- 10个工作日到账 手续费: {{tax}}%</view>
<view class="des">预计5- 10个工作日到账 手续费: {{tax === '0'?'免手续费':tax+'%'}}</view>
</view>
</template>
@@ -74,6 +74,7 @@
this.cost = res.cost
this.bank_accounts = res.bank_accounts.length
this.withdraw_input = Number(res.balance)
this.total = Number(res.balance) * Number(res.cost)
uni.setStorageSync('refresh', false)
}).catch(err => {
uni.showToast({
@@ -148,7 +149,7 @@
}
uni.showModal({
title: '温馨提示',
content: '您是否确认提现将会扣除' + this.tax + '%手续费',
content:this.tax === '0'?'您是否确认提现交易将免手续费':'您是否确认提现将会扣除' + this.tax + '%手续费',
confirmColor: '#7c52fc',
cancelColor: '#cacaca',
cancelText: '我再想想',