diff --git a/src/views/ebiz/poster/PosterPreview.vue b/src/views/ebiz/poster/PosterPreview.vue index ab792567d..a24664a4b 100644 --- a/src/views/ebiz/poster/PosterPreview.vue +++ b/src/views/ebiz/poster/PosterPreview.vue @@ -1,6 +1,7 @@ @@ -32,7 +45,11 @@ export default { imgUrl: '', // 分享的图片 base64: '', // 分享的base64 imgPath: '', - isShow: false + isShow: false, + showBut:false, + showDialog: false, + schoolName:"", + className:"" } }, async created() { @@ -72,6 +89,9 @@ export default { this.$toast.clear() if (res.result == 0) { this.posterInfo = res.infoDTOList[0] + if(res.infoDTOList[0].isLearn=='0'){ + this.showBut=true; + } resolve() } else { reject() @@ -116,7 +136,10 @@ export default { }, agentMobile: this.userMobile, agentName: this.userName, - companyName: this.manageComName || '国富人寿保险股份有限公司' + companyName: this.manageComName || '国富人寿保险股份有限公司', + schoolName:this.schoolName, + className:this.className + } if (this.posterType == 'product') { shareUrlWithQR(params).then(res => { @@ -171,7 +194,26 @@ export default { } } xhr.send() - } + }, + showPopup() { + this.showDialog = true; + }, + // 弹窗提交处理 + checkModelConfirm() { + let that = this + if(that.schoolName.trim()==''){ + that.schoolName="0"; + }; + if(that.className.trim()==''){ + that.className="0"; + }; + that.getShareImg(); + that.schoolName=""; + that.className=""; + location.reload(); + }, + + }, filters: { urlFormat(url) { @@ -226,4 +268,13 @@ export default { } - +