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

获取uuid的方式修改

上级 57aa7fcf
...@@ -384,7 +384,9 @@ export default { ...@@ -384,7 +384,9 @@ 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;
this.uuid = href.substr(uuidIndex + 5, 32) || '07F9625472D6444EBAE4BF7D2EF83BC4';
const { token, info } = this.$store.state.user; const { token, info } = this.$store.state.user;
// 如果有token,但没有用户信息,则获取用户信息 // 如果有token,但没有用户信息,则获取用户信息
if (token && !info.id) { if (token && !info.id) {
...@@ -879,9 +881,10 @@ export default { ...@@ -879,9 +881,10 @@ export default {
} }
// let shareUrl = encodeURIComponent(location.href); // let shareUrl = encodeURIComponent(location.href);
let shareUrl = getWebPageUrl(`profexam/#/sharecoop?uuid=${this.uuid}`);
this.wechatShare( this.wechatShare(
{ {
link: location.href, link: shareUrl,
title: this.project.projectName, title: this.project.projectName,
friendtitle: this.project.projectName, friendtitle: this.project.projectName,
desc: this.project.projectName, desc: this.project.projectName,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册