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

重置页面URL

上级 8e6cea16
......@@ -14,6 +14,7 @@ export const envConfig = {
hactiveUrl: 'https://dev-hactive.yunqueyi.com',
fileUrl: 'https://dev-www.yunqueyi.com',
appId: 'wx08b383d002c73f26', // 用于微信授权登录
wxType: 15, // 分享、用户信息对应的appid
// appId: 'wxf4e66242d31c81c2', // 用于微信授权登录
......
......@@ -130,9 +130,22 @@ export default {
return this.tabW * num;
},
},
mounted() {
created() {
let href = location.href;
this.shareUrl = href;
this.projectId = this.$route.query.projectId;
this.goodsId = this.$route.query.goodsId || 74;
if (href.indexOf("singlemessage") >= 0 || href.indexOf("wx_code") >= 0) {
if(this.projectId) {
this.shareUrl = getWebPageUrl(`profexam/#/goods-detail?goodsId=${this.goodsId}&projectId=${this.projectId}`);
} else {
this.shareUrl = getWebPageUrl(`profexam/#/goods-detail?goodsId=${this.goodsId}`);
}
location.replace(this.shareUrl);
}
localStorage.setItem('returnUrl', this.shareUrl);
},
mounted() {
this.getGoodsInfo();
this.getTabW();
const { token, info } = this.$store.state.user;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册