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