【优化】优化首页宫格调整优惠券列表页面失败的问题。

This commit is contained in:
大灰灰
2022-06-19 18:10:42 +08:00
parent c0a10cd887
commit ea2969e69a

View File

@@ -256,7 +256,7 @@ module.exports = {
if (val == '/pages/index/default/default' || val == '/pages/category/index/index' || val == '/pages/index/cart/cart' || val == '/pages/index/member/member') {
this.$u.route({ type: 'switchTab', url: val });
return;
} else if (val.indexOf('/pages/coupon/coupon') > -1) {
} else if (val.indexOf('/pages/coupon/coupon?id=') > -1) {
var id = val.replace('/pages/coupon/coupon?id=', "");
this.receiveCoupon(id)
} else {