From ea9d5a30d343e37f9ef52a0156873fc5d7411f3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=B3=E5=8D=8E=E7=A5=A5?= Date: Wed, 24 Jun 2020 11:23:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=A1=E5=8D=95=E5=AD=A6=E5=B9=B3=E9=99=A9?= =?UTF-8?q?=EF=BC=9A=E5=A4=84=E7=90=86=E5=AD=A6=E5=B9=B3=E9=99=A9=E5=88=86?= =?UTF-8?q?=E4=BA=AB=20--=E6=8F=90=E4=BA=A4=E4=BA=BA=EF=BC=9A=E9=98=B3?= =?UTF-8?q?=E5=8D=8E=E7=A5=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/cardList/productDetails.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/ebiz/cardList/productDetails.vue b/src/views/ebiz/cardList/productDetails.vue index e86683ed8..3aaf7e86d 100644 --- a/src/views/ebiz/cardList/productDetails.vue +++ b/src/views/ebiz/cardList/productDetails.vue @@ -111,13 +111,6 @@ export default { this.shareInfo.shareURL = res.productShowInfo.itemProductBaseInfoDTO.itemDesc + ''; this.productCode = res.productShowInfo.itemProductDTOS[0].productCode this.results = res.productShowInfo.itemProductDTOS[0] - if(this.shareInfo.isShare == '2'){ - const resAgent = getAgentInfo({}); - if (resAgent.result == 0) { - this.shareInfo.shareURL = this.shareInfo.shareURL + resAgent.jobNo - this.shareInfo.shareFlag = false - } - } } else { Toast.fail(res.resultMessage) } @@ -125,6 +118,13 @@ export default { .catch(err => { console.log('errerr', err) }) + if(this.shareInfo.isShare == '2'){ + const resAgent = await getAgentInfo({}); + if (resAgent.result == 0) { + this.shareInfo.shareURL = this.shareInfo.shareURL + 'agentCode='+ resAgent.jobNo + this.shareInfo.shareFlag = false + } + } }, shareItem() { // eslint-disable-next-line no-undef