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

分享有问题

上级 53870d78
...@@ -349,7 +349,7 @@ export default { ...@@ -349,7 +349,7 @@ export default {
isShowEndDialog: false, isShowEndDialog: false,
isShowFFDialog: false, isShowFFDialog: false,
needShort: false, needShort: false,
uuid: '' uuid: '',
}; };
}, },
components: { components: {
...@@ -387,12 +387,15 @@ export default { ...@@ -387,12 +387,15 @@ export default {
let href = location.href; let href = location.href;
let uuidIndex = href.indexOf('uuid') || 0; let uuidIndex = href.indexOf('uuid') || 0;
this.uuid = href.substr(uuidIndex + 5, 32) || '07F9625472D6444EBAE4BF7D2EF83BC4'; this.uuid = href.substr(uuidIndex + 5, 32) || '07F9625472D6444EBAE4BF7D2EF83BC4';
if(href.indexOf('singlemessage') >= 0) {
let shareUrl = getWebPageUrl(`cme/#/sharecoop?uuid=${this.uuid}`);
location.replace(shareUrl);
}
const { token, info } = this.$store.state.user; const { token, info } = this.$store.state.user;
// 如果有token,但没有用户信息,则获取用户信息 // 如果有token,但没有用户信息,则获取用户信息
if (token && !info.id) { if (token && !info.id) {
this.$store.dispatch('getUserInfo'); this.$store.dispatch('getUserInfo');
} }
alert(this.uuid);
this.queryByUuid(this.uuid); this.queryByUuid(this.uuid);
// 调用广告位接口 // 调用广告位接口
...@@ -882,7 +885,7 @@ export default { ...@@ -882,7 +885,7 @@ export default {
} }
// let shareUrl = encodeURIComponent(location.href); // let shareUrl = encodeURIComponent(location.href);
let shareUrl = getWebPageUrl(`profexam/#/sharecoop?uuid=${this.uuid}`); let shareUrl = getWebPageUrl(`cme/#/sharecoop?uuid=${this.uuid}`);
this.wechatShare( this.wechatShare(
{ {
link: shareUrl, link: shareUrl,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册