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

传递courseUrl问题

上级 806ab491
......@@ -228,7 +228,10 @@ export default {
this.shareUrl = href;
this.projectId = this.$route.query.projectId;
this.goodsId = this.$route.query.goodsId;
this.courseUrl = this.$route.query.courseUrl || ""; //
this.courseUrl = this.$route.query.courseUrl || "";
if(this.courseUrl) {
sessionStorage.setItem("courseUrl", this.courseUrl);
}
this.couponToken = this.$route.query.couponToken || "";
console.log('this.couponToken', this.couponToken);
this.shareUrl = getWebPageUrl(
......@@ -404,7 +407,8 @@ export default {
// 微信支付回调
paycallback(params) {
// 0成功 -1错误 -2 用户取消 -3 没有安装微信
let courseUrl = encodeURIComponent(this.courseUrl);
// let courseUrl = encodeURIComponent(this.courseUrl);
let courseUrl = sessionStorage.getItem("courseUrl");
let url =
getHactiveUrl() +
`/message_push/#/order?orderBack=1&id=${this.orderId}&courseUrl=${courseUrl}`;
......@@ -890,7 +894,10 @@ export default {
yuan(fen) {
return convertToYuan(fen);
}
}
},
beforeDestroy() {
sessionStorage.removeItem("courseUrl");
},
};
</script>
......
......@@ -591,6 +591,7 @@ export default {
`profexam/#/index?id=${projectId}&projectName=${this.project.projectName}&profexamProjectId=${projectId}`
);
let courseUrl = encodeURIComponent(pageUrl);
// sessionStorage.setItem("courseUrl", courseUrl);
let paramPageUrl = getWebPageUrl(`profexam/#/goods-detail?goodsId=${this.cardInfo.id}&projectId=${projectId}&courseUrl=${courseUrl}`);
let paramList = [
{
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册