卡单学平险:处理学平险分享 --提交人:阳华祥

This commit is contained in:
阳华祥
2020-06-24 11:23:19 +08:00
parent d5ed363119
commit ea9d5a30d3

View File

@@ -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