diff --git a/src/views/ebiz/poster/PosterLoading.vue b/src/views/ebiz/poster/PosterLoading.vue index 13315b21b..a708de4bf 100644 --- a/src/views/ebiz/poster/PosterLoading.vue +++ b/src/views/ebiz/poster/PosterLoading.vue @@ -43,8 +43,8 @@ export default { methods: { // 初始化页面 async initThisPage() { - let res = await this.saveShareRecord('1',this.$route.query.token,this.$route.query.linkType) - if (this.herfUrl && res) { + let res = await this.saveShareRecord('1',this.$route.query.token,this.$route.query.linkType,this.$route.query.redirectUrl) + if (this.herfUrl) { window.location.href = this.herfUrl } }, @@ -53,12 +53,14 @@ export default { * flag 0-分享 1-打开 * key redisKey * linkType 类型 + * shareUrl 分享的链接内容 */ - saveShareRecord(flag,key,linkType) { + saveShareRecord(flag,key,linkType,shareUrl) { let data = { linkType: linkType, flag: flag, - redisKey: key + redisKey: key, + shareUrl: shareUrl } return new Promise((resolve) => { saveShareRecord(data).then((res) => {