From 4db2742ae180295ab4201252aadf0fa2f8ab9159 Mon Sep 17 00:00:00 2001 From: "tian.guangyuan" Date: Fri, 8 May 2020 15:44:26 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=E3=80=91=20=E5=A4=84=E7=90=86?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98=E6=97=B6=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E5=9C=A8=E9=9C=80=E8=A6=81=E8=BE=93=E5=85=A5=E9=93=B6=E8=A1=8C?= =?UTF-8?q?=E5=8D=A1=E5=8F=B7=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/cardList/Pay.vue | 117 +++++++++++++++++++------------- 1 file changed, 71 insertions(+), 46 deletions(-) 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' } })