diff --git a/components/m-goods-list/seckill.vue b/components/m-goods-list/base-list.vue similarity index 94% rename from components/m-goods-list/seckill.vue rename to components/m-goods-list/base-list.vue index 4e7b834..df3b036 100644 --- a/components/m-goods-list/seckill.vue +++ b/components/m-goods-list/base-list.vue @@ -3,7 +3,7 @@
- +
@@ -55,6 +55,14 @@ return [] } }, + }, + methods:{ + // 跳转到商品详情 + navigateToDetailPage(item) { + uni.navigateTo({ + url: `/pages/product/goods?id=${item.id}&goodsId=${item.goodsId}`, + }); + }, } } diff --git a/pages/cart/payment/payOrder.vue b/pages/cart/payment/payOrder.vue index 71be635..a145a4b 100644 --- a/pages/cart/payment/payOrder.vue +++ b/pages/cart/payment/payOrder.vue @@ -98,18 +98,18 @@ }, onBackPress(e) { if (e.from == "backbutton") { - if(this.routerVal.recharge_sn){ - uni.switchTab({ - url: '/pages/tabbar/user/my' - }); - } - else{ - uni.redirectTo({ - url: "/pages/order/myOrder?status=0", - }); - } - return true; //阻止默认返回行为 - } + if(this.routerVal.recharge_sn){ + uni.switchTab({ + url: '/pages/tabbar/user/my' + }); + } + else{ + uni.navigateTo({ + url: "/pages/order/myOrder?status=0", + }); + } + return true; //阻止默认返回行为 + } }, mounted() { this.cashierData();