【学平险业务字段需求】 弹窗确认逻辑修改

This commit is contained in:
dwq
2021-06-16 17:31:34 +08:00
parent fc84dc4853
commit 2d541df736

View File

@@ -207,10 +207,43 @@ export default {
if(that.className.trim()==''){ if(that.className.trim()==''){
that.className="0"; that.className="0";
}; };
that.getShareImg(); return new Promise((resolve, reject) => {
that.schoolName=""; this.$toast.loading({
that.className=""; duration: 0, // 持续展示 toast
location.reload(); forbidClick: true, // 禁用背景点击
loadingType: 'spinner',
message: '加载中……'
})
let params = {
posterInfoDTO: {
posterName: this.posterInfo.posterName
},
agentMobile: this.userMobile,
agentName: this.userName,
companyName: this.manageComName || '国富人寿保险股份有限公司',
schoolName:this.schoolName,
className:this.className
}
shareUrlWithQR(params).then(res => {
this.$toast.clear()
if (res.result == 0) {
this.imgUrl = config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.content.path}`
this.imgPath = res.content.path
this.isShow = true
this.schoolName="";
this.className="";
resolve()
location.reload();
} else {
reject()
}
})
});
}, },