diff --git a/src/views/ebiz/poster/PosterPreview.vue b/src/views/ebiz/poster/PosterPreview.vue index a24664a4b..c22c37cdc 100644 --- a/src/views/ebiz/poster/PosterPreview.vue +++ b/src/views/ebiz/poster/PosterPreview.vue @@ -207,10 +207,43 @@ export default { if(that.className.trim()==''){ that.className="0"; }; - that.getShareImg(); - that.schoolName=""; - that.className=""; - location.reload(); + return new Promise((resolve, reject) => { + this.$toast.loading({ + duration: 0, // 持续展示 toast + 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() + } + }) + + }); + + },