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

去掉alert日志

上级 ff85213f
...@@ -186,7 +186,7 @@ export default { ...@@ -186,7 +186,7 @@ export default {
shareTitleInfo: "", shareTitleInfo: "",
isShowShare: true, isShowShare: true,
isShowCantBuyTips: false, isShowCantBuyTips: false,
couponToken: "", couponToken: ""
}; };
}, },
computed: { computed: {
...@@ -229,8 +229,8 @@ export default { ...@@ -229,8 +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 || "" this.couponToken = this.$route.query.couponToken || "";
alert(this.couponToken); console.log('this.couponToken', this.couponToken);
this.shareUrl = getWebPageUrl( this.shareUrl = getWebPageUrl(
`profexam/#/goods-detail?goodsId=${this.goodsId}` `profexam/#/goods-detail?goodsId=${this.goodsId}`
); );
...@@ -280,7 +280,8 @@ export default { ...@@ -280,7 +280,8 @@ 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 || this.couponToken || token ||
this.couponToken ||
localStorage.getItem("couponToken") || localStorage.getItem("couponToken") ||
getCookie("couponToken"); getCookie("couponToken");
this.token = token; this.token = token;
...@@ -505,10 +506,9 @@ export default { ...@@ -505,10 +506,9 @@ export default {
100 100
).toFixed(2); ).toFixed(2);
} else { } else {
savePrice = ( savePrice = ((goods.costPrice - goods.couponPrice) / 100).toFixed(
(goods.costPrice - goods.couponPrice) / 2
100 );
).toFixed(2);
} }
} }
if (goods.goodsDescWhere) { if (goods.goodsDescWhere) {
...@@ -676,7 +676,7 @@ export default { ...@@ -676,7 +676,7 @@ export default {
preCreateOrder() { preCreateOrder() {
this.commonCheckToken(() => { this.commonCheckToken(() => {
const { goodsType, cardType } = this.goods; const { goodsType, cardType } = this.goods;
console.log('goodsType, cardType', goodsType, cardType); console.log("goodsType, cardType", goodsType, cardType);
// 只有一类卡才做相应判断 // 只有一类卡才做相应判断
if (goodsType == 2 && cardType == 1) { if (goodsType == 2 && cardType == 1) {
this.GET( this.GET(
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册