提交 d7d539d1 编写于 作者: guofeng.chen's avatar guofeng.chen

去掉returnUrl

上级 d1047687
...@@ -133,7 +133,7 @@ export default { ...@@ -133,7 +133,7 @@ export default {
mounted() { mounted() {
this.projectId = this.$route.query.projectId; this.projectId = this.$route.query.projectId;
this.goodsId = this.$route.query.goodsId || 74; this.goodsId = this.$route.query.goodsId || 74;
this.returnUrl = encodeURIComponent(this.$route.query.returnUrl); // this.returnUrl = encodeURIComponent(this.$route.query.returnUrl);
this.getGoodsInfo(); this.getGoodsInfo();
this.getTabW(); this.getTabW();
const { token, info } = this.$store.state.user; const { token, info } = this.$store.state.user;
...@@ -214,6 +214,8 @@ export default { ...@@ -214,6 +214,8 @@ export default {
costPriceText: (totalPrice / 100).toFixed(2), costPriceText: (totalPrice / 100).toFixed(2),
} }
this.goodsNum = num; this.goodsNum = num;
} else if (res.code === "200006") {
this.$store.dispatch('logout')
} }
}) })
}, },
...@@ -367,9 +369,9 @@ export default { ...@@ -367,9 +369,9 @@ export default {
if (that.projectId) { if (that.projectId) {
query.projectId = that.projectId query.projectId = that.projectId
} }
if (that.returnUrl) { // if (that.returnUrl) {
query.returnUrl = that.returnUrl // query.returnUrl = that.returnUrl
} // }
that.$router.push({ path: '/prezult', query }); that.$router.push({ path: '/prezult', query });
}, },
fail: function() { fail: function() {
...@@ -417,9 +419,9 @@ export default { ...@@ -417,9 +419,9 @@ export default {
if (this.projectId) { if (this.projectId) {
path += `&projectId=${this.projectId}` path += `&projectId=${this.projectId}`
} }
if (this.returnUrl) { // if (this.returnUrl) {
path += `&returnUrl=${this.returnUrl}` // path += `&returnUrl=${this.returnUrl}`
} // }
return getWebPageUrl(path); return getWebPageUrl(path);
}, },
// 绑定项目和订单的关系 // 绑定项目和订单的关系
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册