diff --git a/src/views/ebiz/poster/PosterPreview.vue b/src/views/ebiz/poster/PosterPreview.vue index 8b1d519b2..86657411f 100644 --- a/src/views/ebiz/poster/PosterPreview.vue +++ b/src/views/ebiz/poster/PosterPreview.vue @@ -49,7 +49,9 @@ export default { showBut:false, showDialog: false, schoolName:"", - className:"" + className:"", + isShareLimit:'', + shareLimitDesc:'' } }, async created() { @@ -64,6 +66,9 @@ export default { }, methods: { shareFriends() { + if(this.isShareLimit=='1'){ + this.$toast(this.shareLimitDesc) + }else{ // eslint-disable-next-line no-undef EWebBridge.webCallAppInJs('bridge', { flag: 'share', @@ -72,6 +77,7 @@ export default { img: this.imgUrl } }) + } }, async getPosterDetail() { return new Promise((resolve, reject) => { @@ -92,6 +98,8 @@ export default { if(res.infoDTOList[0].isLearn=='0'){ this.showBut=true; } + this.isShareLimit =res.isShareLimit + this.shareLimitDesc=res.shareLimitDesc resolve() } else { reject()