|
@@ -218,55 +218,63 @@
|
|
|
userId: uni.getStorageSync('username'),
|
|
userId: uni.getStorageSync('username'),
|
|
|
bankNumber: this.bankCardInfo.bankNumber
|
|
bankNumber: this.bankCardInfo.bankNumber
|
|
|
})
|
|
})
|
|
|
- if(signResult.data.bizCode === '1') { // 未签约
|
|
|
|
|
- uni.showModal({
|
|
|
|
|
- title: '温馨提示',
|
|
|
|
|
- content: '尚未签约,需先去签约!',
|
|
|
|
|
- showCancel: true,
|
|
|
|
|
- confirmText: '去签约',
|
|
|
|
|
- cancelText: '稍后签约',
|
|
|
|
|
- async success(res) {
|
|
|
|
|
- if(res.confirm) {
|
|
|
|
|
- let srcResult = await that.$http.post('/ttqf/signingAddress', {
|
|
|
|
|
- userId: uni.getStorageSync('username')
|
|
|
|
|
- })
|
|
|
|
|
- if(srcResult.data) {
|
|
|
|
|
- plus.runtime.openURL(srcResult.data.url)
|
|
|
|
|
|
|
+ if(signResult.code == '200') {
|
|
|
|
|
+ if(signResult.data.bizCode === '1') { // 未签约
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ title: '温馨提示',
|
|
|
|
|
+ content: '尚未签约,需先去签约!',
|
|
|
|
|
+ showCancel: true,
|
|
|
|
|
+ confirmText: '去签约',
|
|
|
|
|
+ cancelText: '稍后签约',
|
|
|
|
|
+ async success(res) {
|
|
|
|
|
+ if(res.confirm) {
|
|
|
|
|
+ let srcResult = await that.$http.post('/ttqf/signingAddress', {
|
|
|
|
|
+ userId: uni.getStorageSync('username')
|
|
|
|
|
+ })
|
|
|
|
|
+ if(srcResult.data) {
|
|
|
|
|
+ plus.runtime.openURL(srcResult.data.url)
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- } else if(signResult.data.bizCode === '2') { // 签约未完成
|
|
|
|
|
- uni.showModal({
|
|
|
|
|
- title: '温馨提示',
|
|
|
|
|
- content: '签约进行中,是否去查看?',
|
|
|
|
|
- showCancel: true,
|
|
|
|
|
- confirmText: '去查看',
|
|
|
|
|
- cancelText: '取消',
|
|
|
|
|
- success(res) {
|
|
|
|
|
- if(res.confirm) {
|
|
|
|
|
- if(signResult.data) {
|
|
|
|
|
- plus.runtime.openURL(signResult.data.url)
|
|
|
|
|
|
|
+ })
|
|
|
|
|
+ } else if(signResult.data.bizCode === '2') { // 签约未完成
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ title: '温馨提示',
|
|
|
|
|
+ content: '签约进行中,是否去查看?',
|
|
|
|
|
+ showCancel: true,
|
|
|
|
|
+ confirmText: '去查看',
|
|
|
|
|
+ cancelText: '取消',
|
|
|
|
|
+ success(res) {
|
|
|
|
|
+ if(res.confirm) {
|
|
|
|
|
+ if(signResult.data) {
|
|
|
|
|
+ plus.runtime.openURL(signResult.data.url)
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- } else if(signResult.data.bizCode === '3' || signResult.data.bizCode === '0') { // 签约完成
|
|
|
|
|
- let res = await this.$http.post('/userBank/getUserBankList', {
|
|
|
|
|
- auditStatus: '1',
|
|
|
|
|
- delFlag: '0'
|
|
|
|
|
- });
|
|
|
|
|
- if (res.data.length) {
|
|
|
|
|
- this.navigate({
|
|
|
|
|
- url: `/pages/wallet/withdraw?amount=${this.totalAssetAmount}`,
|
|
|
|
|
- }, "navigateTo", true)
|
|
|
|
|
- } else {
|
|
|
|
|
- uni.showToast({
|
|
|
|
|
- title: '暂无审核通过的银行卡,不可提现',
|
|
|
|
|
- duration: 3000,
|
|
|
|
|
- icon: "none"
|
|
|
|
|
|
|
+ })
|
|
|
|
|
+ } else if(signResult.data.bizCode === '3' || signResult.data.bizCode === '0') { // 签约完成
|
|
|
|
|
+ let res = await this.$http.post('/userBank/getUserBankList', {
|
|
|
|
|
+ auditStatus: '1',
|
|
|
|
|
+ delFlag: '0'
|
|
|
});
|
|
});
|
|
|
|
|
+ if (res.data.length) {
|
|
|
|
|
+ this.navigate({
|
|
|
|
|
+ url: `/pages/wallet/withdraw?amount=${this.totalAssetAmount}`,
|
|
|
|
|
+ }, "navigateTo", true)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ title: '暂无审核通过的银行卡,不可提现',
|
|
|
|
|
+ duration: 3000,
|
|
|
|
|
+ icon: "none"
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+ } else {
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ title: signResult.msg,
|
|
|
|
|
+ duration: 3000,
|
|
|
|
|
+ icon: "none"
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|