Просмотр исходного кода

fix(mall): 调整店铺导航与类型配置

- 店铺底部导航及商品详情购物车入口改用 navigateTo,保留页面返回路径
- 修正小程序类型包声明并移除应用入口无用依赖
shizhongqi 10 часов назад
Родитель
Сommit
fca9074652

+ 0 - 2
mallApp/src/App.vue

@@ -1,6 +1,4 @@
 <script>
-import { mapMutations, mapActions, mapGetters } from "vuex";
-import { getUser, wxLoginFn } from "@/utils/auth";
 import {
   TOKEN_STORAGE_KEY,
   LEGACY_TOKEN_STORAGE_KEY,

+ 1 - 1
mallApp/src/pages/goods/detail.vue

@@ -791,7 +791,7 @@ export default {
       const hdId = this.hdId || (this.option && this.option.hdId) || uni.getStorageSync('hdId') || 0;
       this.$util.pageTo({
         url: '/pages/home/cart?account=' + account + '&hdId=' + hdId,
-        type: 2,
+        type: 1,
       });
     },
     /** 拼混合结算页地址(与花材详情立即购买一致) */

+ 4 - 4
mallApp/src/pages/home/components/shop-tab-bar.vue

@@ -94,7 +94,7 @@ export default {
       if (item.key === 'home') {
         this.$util.pageTo({
           url: '/pages/home/index',
-          type: 2,
+          type: 1,
           query: shopQuery
         })
         return
@@ -102,7 +102,7 @@ export default {
       if (item.key === 'category') {
         this.$util.pageTo({
           url: '/pages/home/shop-category',
-          type: 2,
+          type: 1,
           query: shopQuery
         })
         return
@@ -110,7 +110,7 @@ export default {
       if (item.key === 'cart') {
         this.$util.pageTo({
           url: '/pages/home/cart',
-          type: 2,
+          type: 1,
           query: shopQuery
         })
         return
@@ -119,7 +119,7 @@ export default {
       if (item.key === 'order') {
         this.$util.pageTo({
           url: '/pages/home/course',
-          type: 2,
+          type: 1,
           query: shopQuery
         })
       }

+ 2 - 2
mallApp/tsconfig.json

@@ -20,8 +20,8 @@
     "types": [
       "uni-app",
       "html5plus",
-      "miniprogram-api-typings/types/lib.wx.api.d.ts",
-      "mini-types/types/api"
+      "miniprogram-api-typings",
+      "mini-types"
     ]
   },
   "include": [