From 005b2916eb6a7910a20c4909205fe3167baa75b8 Mon Sep 17 00:00:00 2001 From: "bai.jinyan" Date: Thu, 5 Aug 2021 16:33:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BB=BA=E8=AE=AE=E4=B9=A6=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=E4=BC=98=E5=8C=96--=E4=B8=89=E6=AC=A1?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=20=20=E6=8F=90=E4=BA=A4=E4=BA=BA=EF=BC=9A?= =?UTF-8?q?=E7=99=BD=E9=87=91=E5=B2=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/product/ProductDetail.vue | 1 + src/views/ebiz/proposal/ProposalInfo.vue | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/ebiz/product/ProductDetail.vue b/src/views/ebiz/product/ProductDetail.vue index 64584f034..0add9e072 100644 --- a/src/views/ebiz/product/ProductDetail.vue +++ b/src/views/ebiz/product/ProductDetail.vue @@ -91,6 +91,7 @@ export default { // }) }, goProposal() { + this.$CacheUtils.removeLocItem('orderNo') // 跳转到制作建议书( 投保人信息 ) this.$jump({ flag: 'h5', diff --git a/src/views/ebiz/proposal/ProposalInfo.vue b/src/views/ebiz/proposal/ProposalInfo.vue index f5a8f6c9c..3eda2e290 100644 --- a/src/views/ebiz/proposal/ProposalInfo.vue +++ b/src/views/ebiz/proposal/ProposalInfo.vue @@ -471,6 +471,11 @@ export default { proposalNo: '' } } + if (this.$route.query.proposalNo) { + this.proposalNo = this.$route.query.proposalNo; + params.proposalInfoDTO.proposalNo = this.$route.query.proposalNo + this.$CacheUtils.setLocItem('orderNo',this.$route.query.proposalNo) + } if (this.isWeixin) { //在微信端 params.proposalInfoDTO.proposalNo = this.$route.query.proposalNo @@ -504,7 +509,7 @@ export default { } } else { //在app端 - params.proposalInfoDTO.proposalNo = this.$CacheUtils.getLocItem('orderNo') + params.proposalInfoDTO.proposalNo = this.$route.query.proposalNo getDemo(params).then(res => { this.formatLocal(res) }) @@ -519,7 +524,7 @@ export default { extra: { title: this.wxTitle, content: '国富为您量身定制的保险产品,请查收', - url: location.origin + '/#/proposal/proposalInfo?proposalNo=' + encodeURI(localStorage.orderNo) + '&token=' + encodeURI(res.content), + url: location.origin + '/#/proposal/proposalInfo?proposalNo=' + encodeURI(this.proposalNo) + '&token=' + encodeURI(res.content), img: this.$assetsUrl + 'images/logo.png' } }) @@ -548,7 +553,7 @@ export default { extra: { title: this.wxTitle, content: '国富为您量身定制的保险产品,请查收', - url: location.origin + '/#/proposal/proposalInfo?proposalNo=' + encodeURI(localStorage.orderNo) + '&token=' + encodeURI(res.content), + url: location.origin + '/#/proposal/proposalInfo?proposalNo=' + encodeURI(this.proposalNo) + '&token=' + encodeURI(res.content), img: this.$assetsUrl + 'images/logo.png' } })