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

分享有问题

上级 c270ab20
...@@ -310,6 +310,7 @@ export default { ...@@ -310,6 +310,7 @@ export default {
isShowFFDialog: false, isShowFFDialog: false,
needShort: false, needShort: false,
showDownloadButton: false, showDownloadButton: false,
uuid: '',
}; };
}, },
components: { components: {
...@@ -342,7 +343,17 @@ export default { ...@@ -342,7 +343,17 @@ export default {
created() { created() {
let _this = this; let _this = this;
this.from = this.$route.query.from || this.from || "native"; this.from = this.$route.query.from || this.from || "native";
this.uuid = this.$route.query.uuid || '07F9625472D6444EBAE4BF7D2EF83BC4'; let href = location.href;
let uuidIndex = href.indexOf('uuid') || 0;
if(uuidIndex > 0) {
this.uuid = href.substr(uuidIndex + 5, 32);
} else {
this.uuid = '07F9625472D6444EBAE4BF7D2EF83BC4'
}
if(href.indexOf('singlemessage') >= 0) {
let shareUrl = getWebPageUrl(`profexam/#/sharecoop?uuid=${this.uuid}`);
location.replace(shareUrl);
}
const { token, info } = this.$store.state.user; const { token, info } = this.$store.state.user;
// 如果有token,但没有用户信息,则获取用户信息 // 如果有token,但没有用户信息,则获取用户信息
...@@ -748,7 +759,8 @@ export default { ...@@ -748,7 +759,8 @@ export default {
// 二次分享 // 二次分享
// let shareUrl = encodeURIComponent(location.href); // let shareUrl = encodeURIComponent(location.href);
let shareUrl = location.href; // let shareUrl = location.href;
let shareUrl = getWebPageUrl(`profexam/#/sharecoop?uuid=${this.uuid}`);
this.wechatShare( this.wechatShare(
{ {
link: shareUrl, link: shareUrl,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册