From 1cfac897a5460bfde0fe99bad88a338d5f28181e Mon Sep 17 00:00:00 2001 From: "bai.jinyan" Date: Wed, 22 Sep 2021 13:37:33 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=B5=B7=E6=8A=A5=E5=88=86=E4=BA=AB?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E6=97=B6=E6=95=88=E9=97=AE=E9=A2=98=E3=80=91?= =?UTF-8?q?-=E8=AE=B0=E5=BD=95=E5=88=86=E4=BA=AB=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=89=93=E5=8D=B0=20=20--=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E4=BA=BA=EF=BC=9A=E7=99=BD=E9=87=91=E5=B2=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/poster/PosterLoading.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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) => {