['用户提现、通证兑换红包等个人认证限制']

This commit is contained in:
2021-11-01 16:33:43 +08:00
parent 267f9cf17f
commit f47eb531b7
2 changed files with 42 additions and 5 deletions

View File

@@ -45,7 +45,8 @@
card: '', // 银行卡号
withdraw_input: '', // 提现通证数量
bank_accounts: 0,
bankInfo: {}
bankInfo: {},
certification:false,//默认没有认证
};
},
onLoad() {
@@ -65,6 +66,7 @@
this.balance = res.balance
this.cost = res.cost
this.total = Number(res.balance) * Number(res.cost)
this.certification = res.certification
uni.setStorageSync('refresh', false)
}).catch(err => {
uni.showToast({
@@ -125,6 +127,24 @@
})
return;
}
if (!this.certification) {
uni.showModal({
title: '提示',
content: '为了保障您的用户权益,未个人认证无法提现通证',
cancelColor: '#555',
cancelText: '稍后认证',
confirmColor: '#8b64fd',
confirmText: '立即认证',
success: res => {
if (res.confirm) {
this.$Router.push({
name: 'Personal'
})
}
}
})
return
}
uni.showModal({
title: '温馨提示',
content:'您是否确认提现到现金红包账户,交易将免手续费',

View File

@@ -51,7 +51,8 @@
card: '', // 银行卡号
withdraw_input: '', // 提现通证金额
bank_accounts: 0,
bankInfo: {}
bankInfo: {},
certification:false,// 认证状态
};
},
onLoad() {
@@ -73,6 +74,7 @@
this.bank_accounts = res.bank_accounts.length
this.withdraw_input = Number(res.balance)
this.total = Number(res.balance) * Number(res.cost)
this.certification = res.certification
uni.setStorageSync('refresh', false)
}).catch(err => {
uni.showToast({
@@ -105,10 +107,7 @@
this.withdraw_input = this.balance
this.total = this.balance * this.cost
}
}
},
// 点击全部
all() {
@@ -144,6 +143,24 @@
})
return;
}
if (!this.certification) {
uni.showModal({
title: '提示',
content: '为了保障您的用户权益未个人认证无法提现红包',
cancelColor: '#555',
cancelText: '稍后认证',
confirmColor: '#8b64fd',
confirmText: '立即认证',
success: res => {
if (res.confirm) {
this.$Router.push({
name: 'Personal'
})
}
}
})
return
}
uni.showModal({
title: '温馨提示',
content:this.tax === '0'?'您是否确认提现交易将免手续费':'您是否确认提现将会扣除' + this.tax + '%手续费',