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

传递商品ID给课程页面

返回路径放在session中
样式问题
上级 3d5917d6
...@@ -141,6 +141,7 @@ ...@@ -141,6 +141,7 @@
:cmeType="project.cmeType" :cmeType="project.cmeType"
:logged="logged" :logged="logged"
:projectId="projectId" :projectId="projectId"
:goodsId="cardInfo.id"
/> />
</div> </div>
</div> </div>
...@@ -417,6 +418,7 @@ export default { ...@@ -417,6 +418,7 @@ export default {
this.shareUrl = getWebPageUrl(`cme/#/sharecoop?uuid=${this.uuid}`); this.shareUrl = getWebPageUrl(`cme/#/sharecoop?uuid=${this.uuid}`);
location.replace(this.shareUrl); location.replace(this.shareUrl);
} }
sessionStorage.setItem('returnUrl', 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;
...@@ -690,7 +692,7 @@ export default { ...@@ -690,7 +692,7 @@ export default {
this.projectId this.projectId
}&returnUrl=${encodeURIComponent(this.shareUrl)}` }&returnUrl=${encodeURIComponent(this.shareUrl)}`
); );
sessionStorage.setItem('returnUrl', encodeURIComponent(this.shareUrl)); // sessionStorage.setItem('returnUrl', encodeURIComponent(this.shareUrl));
window.location.href = jumpUrl; window.location.href = jumpUrl;
}); });
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册