From 4b2f61f1260c358ce42cbd243d4a15282a3de8fe Mon Sep 17 00:00:00 2001 From: liyuetong Date: Fri, 5 Nov 2021 15:05:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=97=A0=E6=B3=95=E6=89=93=E5=BC=80=EF=BC=8C=E5=A6=82?= =?UTF-8?q?=E6=9E=9C=E6=98=AF=E5=BE=AE=E4=BF=A1=E7=9B=B4=E6=8E=A5=E8=B0=83?= =?UTF-8?q?=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/sale/PayMent.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/views/ebiz/sale/PayMent.vue b/src/views/ebiz/sale/PayMent.vue index 3a86f5ea5..65b251723 100644 --- a/src/views/ebiz/sale/PayMent.vue +++ b/src/views/ebiz/sale/PayMent.vue @@ -197,10 +197,23 @@ export default { let orderNo = this.$route.query.orderNo localStorage.token = token localStorage.orderNo = orderNo - this.payMent() + // this.twounderWrite().then + this.payMentWx(orderNo) //直接调支付 } }, methods: { + async payMentWx(orderNo){ + const res = await payFlag({ orderNo: orderNo }) + console.dir(res) + if (res.content.payFlag == 'Y') { + this.getAcceptInsurance() + } else { + this.$toast(res.resultMessage) + setTimeout(() => { + this.$router.push({ path: '/sale/payResultFail' }) + }, 2000) + } + }, getAcceptInsurance() { let that = this let data = { @@ -326,6 +339,7 @@ export default { } let mobile = res.orderDTO.appntDTO.mobile this.encyCustomerMobile = mobile.slice(0, 3) + '****' + mobile.slice(-4) + console.log(this.encyCustomerMobil,'手机号') } else { let underWriteData = { accountName: '',