From 43c44c091cc3e1cf5d8da07c8c7056549f7e98d7 Mon Sep 17 00:00:00 2001 From: dwq <15731277156@163.com> Date: Wed, 16 Jun 2021 17:31:34 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=AD=A6=E5=B9=B3=E9=99=A9=E4=B8=9A?= =?UTF-8?q?=E5=8A=A1=E5=AD=97=E6=AE=B5=E9=9C=80=E6=B1=82=E3=80=91=20=20?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E7=A1=AE=E8=AE=A4=E9=80=BB=E8=BE=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/poster/PosterPreview.vue | 41 ++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 4 deletions(-) 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() + } + }) + + }); + + },