提交 fb9fed66 编写于 作者: guangjun.yang's avatar guangjun.yang

带上返回路径

上级 a3f4b4cb
...@@ -349,6 +349,7 @@ export default { ...@@ -349,6 +349,7 @@ export default {
needShort: false, needShort: false,
uuid: '', uuid: '',
token: '', token: '',
shareUrl: '',
shareParam: {}, shareParam: {},
}; };
}, },
...@@ -390,11 +391,13 @@ export default { ...@@ -390,11 +391,13 @@ export default {
this.uuid = href.substr(uuidIndex + 5, 32); this.uuid = href.substr(uuidIndex + 5, 32);
} else { } else {
this.uuid = '07F9625472D6444EBAE4BF7D2EF83BC4' this.uuid = '07F9625472D6444EBAE4BF7D2EF83BC4'
} }
this.shareUrl = location.href;
if(href.indexOf('singlemessage') >= 0 || href.indexOf('wx_code') >= 0) { if(href.indexOf('singlemessage') >= 0 || href.indexOf('wx_code') >= 0) {
let shareUrl = getWebPageUrl(`cme/#/sharecoop?uuid=${this.uuid}`); let shareUrl = getWebPageUrl(`cme/#/sharecoop?uuid=${this.uuid}`);
location.replace(shareUrl); location.replace(this.shareUrl);
} }
const { token, info } = this.$store.state.user; const { token, info } = this.$store.state.user;
this.token = getCookie('token') || token; this.token = getCookie('token') || token;
// 如果有token,但没有用户信息,则获取用户信息 // 如果有token,但没有用户信息,则获取用户信息
...@@ -612,7 +615,7 @@ export default { ...@@ -612,7 +615,7 @@ export default {
// component_tag: `882#88203` // component_tag: `882#88203`
// }); // });
this.commonCheckToken( () => { this.commonCheckToken( () => {
let jumpUrl = getWebPageUrl(`profexam/#/goods-detail?goodsId=${this.cardInfo.id}&token=${this.token}`); let jumpUrl = getWebPageUrl(`profexam/#/goods-detail?goodsId=${this.cardInfo.id}&projectId=${this.projectId}&returnUrl=${encodeURIComponent(this.shareUrl)}`);
window.location.href = jumpUrl; window.location.href = jumpUrl;
}) })
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册