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

参数问题

上级 f895ddf7
...@@ -186,6 +186,7 @@ export default { ...@@ -186,6 +186,7 @@ export default {
shareTitleInfo: "", shareTitleInfo: "",
isShowShare: true, isShowShare: true,
isShowCantBuyTips: false, isShowCantBuyTips: false,
couponToken: "",
}; };
}, },
computed: { computed: {
...@@ -228,6 +229,8 @@ export default { ...@@ -228,6 +229,8 @@ export default {
this.projectId = this.$route.query.projectId; this.projectId = this.$route.query.projectId;
this.goodsId = this.$route.query.goodsId; this.goodsId = this.$route.query.goodsId;
this.courseUrl = this.$route.query.courseUrl || ""; // this.courseUrl = this.$route.query.courseUrl || ""; //
this.couponToken = this.$route.query.couponToken || ""
alert(this.couponToken);
this.shareUrl = getWebPageUrl( this.shareUrl = getWebPageUrl(
`profexam/#/goods-detail?goodsId=${this.goodsId}` `profexam/#/goods-detail?goodsId=${this.goodsId}`
); );
...@@ -277,7 +280,7 @@ export default { ...@@ -277,7 +280,7 @@ export default {
if (this.isWeb) { if (this.isWeb) {
let { token, info } = this.$store.state.user; let { token, info } = this.$store.state.user;
token = token =
token || token || this.couponToken ||
localStorage.getItem("couponToken") || localStorage.getItem("couponToken") ||
getCookie("couponToken"); getCookie("couponToken");
this.token = token; this.token = token;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册