Kaynağa Gözat

fix(frontend): goShop navigates to correct product pages instead of broken action/index

User 4 ay önce
ebeveyn
işleme
7c01dc313f

+ 1 - 1
cfc-frontend/pages/discover/index.vue

@@ -169,7 +169,7 @@ export default {
       this.loadProducts()
     },
     goShop() {
-      uni.switchTab({ url: '/pages/shop/index' })
+      uni.navigateTo({ url: '/pages/points/mall' })
     },
     goDetail(id) {
       var token = uni.getStorageSync('token')

+ 2 - 2
cfc-frontend/pages/index/index.vue

@@ -192,7 +192,7 @@ export default {
     }
     return {
       currentRole: _currentRole,
-      showTabTransition: false,
+      showTabTransition: true,
 
       typeList: [
         { label: '全部', value: '' },
@@ -346,7 +346,7 @@ export default {
       this.loadProducts()
     },
     goShop() {
-      uni.navigateTo({ url: '/pages/action/index' })
+      uni.navigateTo({ url: '/pages/discover/index' })
     },
     goDetail(id) {
       uni.navigateTo({ url: '/pages/discover/product-detail/product-detail?id=' + id })