diff --git a/src/views/ebiz/cardList/Pay.vue b/src/views/ebiz/cardList/Pay.vue index 51192f096..d3494219d 100644 --- a/src/views/ebiz/cardList/Pay.vue +++ b/src/views/ebiz/cardList/Pay.vue @@ -33,7 +33,7 @@ - + { - console.log('res', res) - this.$toast.clear() - if (res.result == '0') { this.$toast.loading({ duration: 0, // 持续展示 toast forbidClick: true, // 禁用背景点击 loadingType: 'spinner', message: '加载中……' }) - + /* + 支付之前要先保存银行账户信息 + */ + let res = await saveOrUpdateAccount(data) + // .then(res => { + console.log('res', res) + this.$toast.clear() + if (res.result == '0') { + this.$toast.loading({ + duration: 0, // 持续展示 toast + forbidClick: true, // 禁用背景点击 + loadingType: 'spinner', + message: '加载中……' + }) + + if (!flag) { + let rs = await this.underWrite() + + if (rs.result != '0') { + this.$toast.clear() + return this.$toast(rs.resultMessage) + } + + if (rs.uwResult != '02') { + return this.$toast(rs.message) + } + } + + this.acceptInsurance() + } else { + this.$toast(res.resultMessage) + this.isLoading = false + } + // }) + }else{ + this.$toast.loading({ + duration: 0, // 持续展示 toast + forbidClick: true, // 禁用背景点击 + loadingType: 'spinner', + message: '加载中……' + }) + if (!flag) { let rs = await this.underWrite() - + if (rs.result != '0') { this.$toast.clear() return this.$toast(rs.resultMessage) } - + if (rs.uwResult != '02') { return this.$toast(rs.message) } } - + this.acceptInsurance() - } else { - this.$toast(res.resultMessage) - this.isLoading = false } - // }) }, // 选择微信支付校验身份证类型 vxVerify() { @@ -685,13 +709,7 @@ export default { localStorage.bankCode = this.underWriteData.bankCode localStorage.bankListName = this.bankListName console.log(this.underWriteData.bankName, this.underWriteData.bankCode, this.bankListName, this.underWriteData.name) - EWebBridge.webCallAppInJs('bridge', { - flag: 'share', - extra: { - title: `国富人寿卡单投保(${shareName})付款`, - content: '付款进行', - url: - location.origin + + let url = location.origin + '/#/cardList/pay?orderNo=' + localStorage.orderNo + '&token=' + @@ -703,7 +721,14 @@ export default { '&bankCode=' + this.underWriteData.bankCode + '&bankListName=' + - this.bankListName, + this.bankListName + console.log(url); + EWebBridge.webCallAppInJs('bridge', { + flag: 'share', + extra: { + title: `国富人寿卡单投保(${shareName})付款`, + content: '付款进行', + url: url, img: this.$assetsUrl + 'images/logo.png' } })