绿满眶商城微信小程序-uniapp
xiangpei
2025-07-09 032ff5ffbbbdfa6ecbbb8010d22a5bee1dd6c9fb
pages.json
@@ -2,20 +2,21 @@
   "easycom": {
      "autoscan": true,
      "custom": {
         "^u-(.*)": "@/uview-components/uview-ui/components/u-$1/u-$1.vue", //uview,
         "^uni-(.*)": "@/uni_modules/uni-$1/components/uni-$1/uni-$1.vue" // uniapp组件
         "^u-(.*)": "@/components/uview-components/uview-ui/components/u-$1/u-$1.vue"
         //uview,
         // "^uni-(.*)": "@/uni_modules/uni-$1/components/uni-$1/uni-$1.vue" // uniapp组件
      }
   },
   "preloadRule": {
      "pages/tabbar/index/home": // 页面路径
      // 页面的预下载配置
      {
         "network": "all", // all(不限网络) wifi(仅wifi下预下载)
         "packages": [
            "uview-components"
         ] // 预下载分包的 root 或 name。__APP__ 表示主包
      }
   },
   // "preloadRule": {
   //    "pages/tabbar/index/home": // 页面路径
   //    // 页面的预下载配置
   //    {
   //       "network": "all", // all(不限网络) wifi(仅wifi下预下载)
   //       "packages": [
   //          "components/uview-components"
   //       ] // 预下载分包的 root 或 name。__APP__ 表示主包
   //    }
   // },
   "pages": [
      // 第一个就是首页
      {
@@ -23,37 +24,41 @@
         "style": {
            // "navigationBarTitleText" : "视频",
            "enablePullDownRefresh": false,
            "navigationStyle": "custom" // 隐藏顶部导航栏
            "navigationStyle": "custom"
            // 隐藏顶部导航栏
         }
      },
      // {
      //    "path": "pages/tabbar/index/home1",
      //    "path": "pages/tabbar/home/index",
      //    "style": {
      //       "navigationBarTitleText": ""
      //       "navigationBarTitleText": "首页",
      //       "navigationStyle": "custom", // 隐藏系统导航栏
      //       "navigationBarTextStyle": "black",
      //       "enablePullDownRefresh": true
      //    }
      // },
      {
         "path": "pages/tabbar/home/index",
         "style": {
            "navigationBarTitleText": "首页",
            "navigationStyle": "custom", // 隐藏系统导航栏
            "navigationBarTextStyle": "black",
            "enablePullDownRefresh": true
         }
      },
      {
         "path": "pages/tabbar/home/title",
         "style": {
            "navigationBarTitleText": "消息"
         }
      },
      // {
      //    "path": "pages/kitchen/KitchenVideo",
      //    "style": {
      //       "navigationBarTitleText": "神厨",
      //       "navigationStyle": "custom" // 隐藏系统导航栏
      //    }
      // },
      // {
      //    "path": "pages/tabbar/home/title",
      //    "style": {
      //       "navigationBarTitleText": "消息"
      //    }
      // },
      {
         "path": "pages/tabbar/cart/cartList",
         "style": {
            "navigationBarTitleText": "购物车",
            "navigationStyle": "custom", // 隐藏系统导航栏
            "navigationStyle": "custom",
            // 隐藏系统导航栏
            "navigationBarBackgroundColor": "#fff",
            "enablePullDownRefresh": true, //实现下拉刷新样式
            "enablePullDownRefresh": true,
            //实现下拉刷新样式
            "componentPlaceholder": {
               "u-navbar": "view",
               "u-checkbox-group": "view",
@@ -68,22 +73,24 @@
            }
         }
      },
      {
         "path": "pages/tabbar/category/category",
         "style": {
            "navigationBarTitleText": "分类",
            "navigationStyle": "custom", // 隐藏系统导航栏
            "navigationBarTextStyle": "black",
            "disableScroll": true,
            "bounce": "none",
            "scrollIndicator": "none",
            "componentPlaceholder": {
               "u-navbar": "view",
               "u-search": "view",
               "u-image": "view"
            }
         }
      },
      // {
      //    // "path": "pages/tabbar/category/category",
      //    "path": "pages/commodity-square/commoditySquare",
      //    "style": {
      //       "navigationBarTitleText": "商品广场",
      //       "navigationStyle": "custom", // 隐藏系统导航栏
      //       "navigationBarTextStyle": "black",
      //       // "disableScroll": true,
      //       "bounce": "none",
      //       "scrollIndicator": "none",
      //       "componentPlaceholder": {
      //          "u-navbar": "view",
      //          "u-search": "view",
      //          "u-image": "view"
      //       }
      //    }
      // },
      {
         "path": "components/m-search-revision/m-search-revision",
         "style": {
@@ -236,27 +243,60 @@
            }
         }
      },
      // {
      //    "path": "pages/supplier/publish-goods/publishGoods",
      //    "style": {
      //       "enablePullDownRefresh": true,
      //       "navigationBarTitleText": "新增商品",
      //       "componentPlaceholder": {
      //          "u-icon": "view",
      //          "u-button": "view",
      //          "u-form": "view",
      //          "u-form-item": "view",
      //          "u-input": "view",
      //          "u-popup": "view",
      //          "u-search": "view",
      //          "u-upload": "view"
      //       }
      //    }
      // },
      {
         "path": "pages/goods-manager/addGoods/addGoods",
         "path": "pages/goods-manager/updateSkus/updateSkus",
         "style": {
            "enablePullDownRefresh": true,
            "navigationBarTitleText": "新增商品",
            "navigationBarTitleText": "调整库存",
            "componentPlaceholder": {
               "u-icon": "view",
               "u-button": "view",
               "u-form": "view",
               "u-form-item": "view",
               "u-input": "view",
               "u-popup": "view",
               "u-search": "view",
               "u-upload": "view"
               "u-popup": "view"
            }
         }
      },
      // {
      //    "path": "pages/userPermissions/userPermissions",
      //    "style": {
      //       "navigationBarTitleText": "用户权限",
      //       "componentPlaceholder": {
      //          "u-icon": "view",
      //          "u-button": "view",
      //          "u-form": "view",
      //          "u-form-item": "view",
      //          "u-input": "view",
      //          "u-popup": "view",
      //          "u-search": "view",
      //          "u-loading": "view",
      //          "u-navbar": "view",
      //          "u-loadmore":"view"
      //       }
      //    }
      // },
      {
         "path": "pages/userPermissions/userPermissions",
         "path": "pages/news/news",
         "style": {
            "navigationBarTitleText": "用户权限",
            "navigationBarTitleText": "新闻",
            "componentPlaceholder": {
               "u-icon": "view",
               "u-button": "view",
@@ -267,14 +307,14 @@
               "u-search": "view",
               "u-loading": "view",
               "u-navbar": "view",
               "u-loadmore":"view"
               "u-loadmore": "view"
            }
         }
      },
      {
         "path": "pages/customerManager/customerManager",
         "path": "pages/news/detail",
         "style": {
            "navigationBarTitleText": "客户管理",
            "navigationBarTitleText": "新闻详情",
            "componentPlaceholder": {
               "u-icon": "view",
               "u-button": "view",
@@ -284,50 +324,75 @@
               "u-popup": "view",
               "u-search": "view",
               "u-loading": "view",
               "u-checkbox": "view",
               "u-checkbox-group": "view",
               "u-navbar": "view",
               "u-loadmore":"view"
            }
         }
      },
      {
         "path": "pages/userPermissions/addStoreMember",
         "style": {
            "navigationBarTitleText": "",
            "navigationStyle": "custom", // 隐藏顶部导航栏
            "componentPlaceholder": {
               "u-icon": "view",
               "u-button": "view",
               "u-form": "view",
               "u-form-item": "view",
               "u-input": "view",
               "u-popup": "view",
               "u-search": "view",
               "u-loading": "view",
               "u-checkbox": "view",
               "u-checkbox-group": "view",
               "u-navbar": "view",
               "u-loadmore":"view",
               "u-switch": "view"
               "u-loadmore": "view"
            }
         }
      }
      // {
      //    "path": "pages/customerManager/customerManager",
      //    "style": {
      //       "navigationBarTitleText": "客户管理",
      //       "componentPlaceholder": {
      //          "u-icon": "view",
      //          "u-button": "view",
      //          "u-form": "view",
      //          "u-form-item": "view",
      //          "u-input": "view",
      //          "u-popup": "view",
      //          "u-search": "view",
      //          "u-loading": "view",
      //          "u-checkbox": "view",
      //          "u-checkbox-group": "view",
      //          "u-navbar": "view",
      //          "u-loadmore":"view"
      //       }
      //    }
      // },
      // {
      //    "path": "pages/userPermissions/addStoreMember",
      //    "style": {
      //       "navigationBarTitleText": "",
      //       "navigationStyle": "custom", // 隐藏顶部导航栏
      //       "componentPlaceholder": {
      //          "u-icon": "view",
      //          "u-button": "view",
      //          "u-form": "view",
      //          "u-form-item": "view",
      //          "u-input": "view",
      //          "u-popup": "view",
      //          "u-search": "view",
      //          "u-loading": "view",
      //          "u-checkbox": "view",
      //          "u-checkbox-group": "view",
      //          "u-navbar": "view",
      //          "u-loadmore":"view",
      //          "u-switch": "view"
      //       }
      //    }
      // },
      // {
      //    "path" : "pages/supplier/publish-goods/goodsInfo",
      //    "style" :
      //    {
      //       "navigationBarTitleText" : ""
      //    }
      // }
   ],
   "subPackages": [
      {
         "root": "uview-components", // 必须与preloadRule中的名称完全一致
         "name": "uview-components",
         "pages": [
            {
               "path": "pages/empty-page/empty-page",
               "style": {
                  "navigationBarTitleText": "",
                  "disableScroll": true
               }
            }
         ]
      },
      // {
      //    "root": "components/uview-components", // 必须与preloadRule中的名称完全一致
      //    "name": "uview-components",
      //    "pages": [
      //       {
      //          "path": "pages/empty-page/empty-page",
      //          "style": {
      //             "navigationBarTitleText": "",
      //             "disableScroll": true
      //          }
      //       }
      //    ]
      // },
      {
         "root": "pages/mine",
         "pages": [
@@ -360,7 +425,8 @@
               "path": "myCollect",
               "style": {
                  "navigationBarTitleText": "收藏",
                  "enablePullDownRefresh": true, //下拉刷新
                  "enablePullDownRefresh": true,
                  //下拉刷新
                  "navigationStyle": "custom",
                  "app-plus": {
                     "scrollIndicator": "none"
@@ -492,7 +558,12 @@
               "path": "address/address",
               "style": {
                  "enablePullDownRefresh": true,
                  "navigationBarTitleText": "地址管理"
                  "navigationBarTitleText": "地址管理",
                  "componentPlaceholder": {
                     "u-empty": "view",
                     "u-icon": "view",
                     "u-action-sheet": "view"
                  }
               }
            },
            {
@@ -563,7 +634,8 @@
            {
               "path": "im/list",
               "style": {
                  "navigationStyle": "custom", // 隐藏系统导航栏
                  "navigationStyle": "custom",
                  // 隐藏系统导航栏
                  "enablePullDownRefresh": true,
                  "app-plus": {}
               }
@@ -571,7 +643,8 @@
            {
               "path": "im/index",
               "style": {
                  "navigationStyle": "custom", // 隐藏系统导航栏
                  "navigationStyle": "custom",
                  // 隐藏系统导航栏
                  "enablePullDownRefresh": true,
                  "app-plus": {}
               }
@@ -694,7 +767,8 @@
               "path": "activity/detail",
               "style": {
                  "navigationBarTitleText": "活动详情",
                  "enablePullDownRefresh": true, //下拉刷新
                  "enablePullDownRefresh": true,
                  //下拉刷新
                  "componentPlaceholder": {
                     "u-form": "view",
                     "u-form-item": "view",
@@ -713,7 +787,8 @@
               "path": "activity/myActivity",
               "style": {
                  "navigationBarTitleText": "我的活动",
                  "enablePullDownRefresh": true, //下拉刷新
                  "enablePullDownRefresh": true,
                  //下拉刷新
                  "componentPlaceholder": {
                     "u-form": "view",
                     "u-form-item": "view",
@@ -732,7 +807,10 @@
               "path": "activity/reportActivity",
               "style": {
                  "navigationBarTitleText": "活动",
                  "enablePullDownRefresh": true, //下拉刷新
                  "enablePullDownRefresh": true,
                  //下拉刷新
                  "navigationStyle": "custom",
                  // 隐藏顶部导航栏
                  "componentPlaceholder": {
                     "u-form": "view",
                     "u-form-item": "view",
@@ -752,7 +830,8 @@
               "path": "myCollect/myCollect",
               "style": {
                  "navigationBarTitleText": "我的收藏",
                  "enablePullDownRefresh": true, //下拉刷新
                  "enablePullDownRefresh": true,
                  //下拉刷新
                  "componentPlaceholder": {
                     "u-icon": "view",
                     "u-button": "view",
@@ -767,6 +846,13 @@
                     "u-loadmore": "view"
                  }
               }
            },
            {
               "path": "myAttention",
               "style": {
                  "navigationBarTitleText": "关注列表",
                  "enablePullDownRefresh": true
               }
            }
         ]
      },
@@ -776,8 +862,7 @@
            {
               "path": "shopPage",
               "style": {
                  "navigationBarTitleText": "",
                  "navigationStyle": "custom"
                  "navigationBarTitleText": ""
               }
            },
            {
@@ -912,7 +997,8 @@
                  }
               }
            },
            { //商品评价
            {
               //商品评价
               "path": "comment",
               "navigationStyle": "custom",
               "style": {
@@ -921,7 +1007,8 @@
                  "scrollIndicator": "none"
               }
            },
            { // 客服
            {
               // 客服
               "path": "customerservice/index",
               "style": {
                  "navigationBarTitleText": "客服",
@@ -967,6 +1054,21 @@
               "path": "video-edit",
               "style": {
                  "navigationBarTitleText": "视频编辑"
               }
            },
            {
               "path": "video-goods-detail",
               "style": {
                  "navigationBarTitleText": "视频推荐商品",
                  "componentPlaceholder": {
                     "u-button": "view"
                  }
               }
            },
            {
               "path": "video-search",
               "style": {
                  "navigationBarTitleText": ""
               }
            }
         ]
@@ -1086,7 +1188,8 @@
               "path": "seckill",
               "style": {
                  "navigationBarTitleText": "限时抢购",
                  "navigationStyle": "custom", // 隐藏系统导航栏
                  "navigationStyle": "custom",
                  // 隐藏系统导航栏
                  "navigationBarTextStyle": "black",
                  "app-plus": {
                     "titleNView": {
@@ -1099,7 +1202,8 @@
               "path": "joinGroup",
               "style": {
                  "navigationBarTitleText": "拼团活动",
                  "navigationStyle": "custom", // 隐藏系统导航栏
                  "navigationStyle": "custom",
                  // 隐藏系统导航栏
                  "navigationBarTextStyle": "black",
                  "app-plus": {
                     // 将回弹属性关掉
@@ -1196,7 +1300,8 @@
               "style": {
                  "navigationBarTitleText": "支付订单",
                  "app-plus": {
                     "popGesture": "none" //禁止侧滑退出
                     "popGesture": "none"
                     //禁止侧滑退出
                  }
               }
            },
@@ -1204,10 +1309,12 @@
               "path": "payment/success",
               "style": {
                  "navigationBarTitleText": "支付成功",
                  "navigationStyle": "custom", // 隐藏系统导航栏
                  "navigationStyle": "custom",
                  // 隐藏系统导航栏
                  "navigationBarTextStyle": "white",
                  "app-plus": {
                     "popGesture": "none", //禁止侧滑退出
                     "popGesture": "none",
                     //禁止侧滑退出
                     "titleNView": false
                  }
               }
@@ -1234,6 +1341,17 @@
               "path": "complain/complainInfo",
               "style": {
                  "navigationBarTitleText": "投诉详情"
               }
            },
            {
               "path": "invoice/setInvoice",
               "style": {
                  "navigationBarTitleText": "",
                  "navigationStyle": "custom",
                  "componentPlaceholder": {
                     "u-popup": "view",
                     "u-input": "view"
                  }
               }
            },
            {
@@ -1379,7 +1497,156 @@
            {
               "path": "fillorder",
               "style": {
                  "navigationBarTitleText": "填写订单"
                  "navigationBarTitleText": "填写订单",
                  "componentPlaceholder": {
                     "u-image": "view",
                     "u-row": "view",
                     "u-col": "view",
                     "u-input": "view",
                     "u-icon": "view",
                     "u-select": "view",
                     "u-notice-bar": "view"
                  }
               }
            }
         ]
      },
      {
         "root": "pages/health",
         "pages": [
            {
               "path": "healthVideo",
               "style": {
                  "navigationBarTitleText": "大健康",
                  "navigationStyle": "custom"
               }
            }
         ]
      },
      {
         "root": "pages/kitchen",
         "pages": [
            {
               "path": "KitchenVideo",
               "style": {
                  "navigationBarTitleText": "神厨",
                  "navigationStyle": "custom"
                  // 隐藏系统导航栏
               }
            }
         ]
      },
      {
         "root": "pages/supplier/suppler-order",
         "pages": [
            {
               "path": "suppler-order",
               "style": {
                  "navigationBarTitleText": "供应商端"
                  // "navigationStyle": "custom"
               }
            },
            {
               "path": "order-detail",
               "style": {
                  "navigationBarTitleText": "订单详情"
                  // "navigationStyle": "custom"
               }
            }
         ]
      },
      {
         "root": "pages/supplier/publish-goods",
         "pages": [
            {
               "path": "publishGoods",
               "style": {
                  "enablePullDownRefresh": true,
                  "navigationBarTitleText": "新增商品",
                  "componentPlaceholder": {
                     "u-icon": "view",
                     "u-button": "view",
                     "u-form": "view",
                     "u-form-item": "view",
                     "u-input": "view",
                     "u-popup": "view",
                     "u-search": "view",
                     "u-upload": "view"
                  }
               }
            },
            {
               "path": "goodsInfo",
               "style": {
                  "navigationBarTitleText": ""
               }
            }
         ]
      },
      {
         "root": "pages/userPermissions",
         "pages": [
            {
               "path": "addStoreMember",
               "style": {
                  "navigationBarTitleText": "",
                  "navigationStyle": "custom",
                  // 隐藏顶部导航栏
                  "componentPlaceholder": {
                     "u-icon": "view",
                     "u-button": "view",
                     "u-form": "view",
                     "u-form-item": "view",
                     "u-input": "view",
                     "u-popup": "view",
                     "u-search": "view",
                     "u-loading": "view",
                     "u-checkbox": "view",
                     "u-checkbox-group": "view",
                     "u-navbar": "view",
                     "u-loadmore": "view",
                     "u-switch": "view"
                  }
               }
            },
            {
               "path": "userPermissions",
               "style": {
                  "navigationBarTitleText": "用户权限",
                  "componentPlaceholder": {
                     "u-icon": "view",
                     "u-button": "view",
                     "u-form": "view",
                     "u-form-item": "view",
                     "u-input": "view",
                     "u-popup": "view",
                     "u-search": "view",
                     "u-loading": "view",
                     "u-navbar": "view",
                     "u-loadmore": "view"
                  }
               }
            }
         ]
      },
      {
         "root": "pages/commodity-square",
         "pages": [
            {
               "path": "commoditySquare",
               "style": {
                  "navigationBarTitleText": "商品广场",
                  "navigationStyle": "custom",
                  // 隐藏系统导航栏
                  "navigationBarTextStyle": "black",
                  // "disableScroll": true,
                  "bounce": "none",
                  "scrollIndicator": "none",
                  "componentPlaceholder": {
                     "u-navbar": "view",
                     "u-search": "view",
                     "u-image": "view"
                  }
               }
            }
         ]
@@ -1397,49 +1664,51 @@
         "bounce": "none"
      }
   },
   "tabBar": {
      "custom": true,
      "color": "#666",
      "selectedColor": "#ff573e",
      "borderStyle": "black",
      "backgroundColor": "#ffffff",
      "list": [
         {
            "pagePath": "pages/tabbar/index/home",
            "iconPath": "static/tabbar/home.png",
            "selectedIconPath": "static/tabbar/home-s.png",
            "text": "首页"
         },
         {
            "pagePath": "pages/tabbar/category/category",
            "iconPath": "static/tabbar/category.png",
            "selectedIconPath": "static/tabbar/category-s.png",
            "text": "商城"
         },
         {
            "pagePath": "pages/tabbar/video/video",
            "iconPath": "static/tabbar/video.png",
            "selectedIconPath": "static/tabbar/video-selected.png"
         },
         {
            "pagePath": "pages/tabbar/cart/cartList",
            "iconPath": "static/tabbar/cart.png",
            "selectedIconPath": "static/tabbar/cart-s.png",
            "text": "购物车"
         },
         {
            "pagePath": "pages/tabbar/user/my",
            "iconPath": "static/tabbar/mine.png",
            "selectedIconPath": "static/tabbar/mine-s.png",
            "text": "我的"
         }
      ]
   },
   // "tabBar": {
   //    "custom": true,
   //    "color": "#666",
   //    "selectedColor": "#ff573e",
   //    "borderStyle": "black",
   //    "backgroundColor": "#ffffff",
   //    "list": [
   //       {
   //          "pagePath": "pages/tabbar/index/home",
   //          "iconPath": "static/tabbar/home.png",
   //          "selectedIconPath": "static/tabbar/home-s.png",
   //          "text": "首页"
   //       },
   //       {
   //          // "pagePath": "pages/tabbar/category/category",
   //          "pagePath": "pages/kitchen/KitchenVideo",
   //          "iconPath": "static/tabbar/category.png",
   //          "selectedIconPath": "static/tabbar/category-s.png",
   //          "text": "神厨"
   //       },
   //       {
   //          "pagePath": "pages/tabbar/video/video",
   //          "iconPath": "static/tabbar/video.png",
   //          "selectedIconPath": "static/tabbar/video-selected.png"
   //       },
   //       {
   //          "pagePath": "pages/tabbar/cart/cartList",
   //          "iconPath": "static/tabbar/cart.png",
   //          "selectedIconPath": "static/tabbar/cart-s.png",
   //          "text": "购物车"
   //       },
   //       {
   //          "pagePath": "pages/tabbar/user/my",
   //          "iconPath": "static/tabbar/mine.png",
   //          "selectedIconPath": "static/tabbar/mine-s.png",
   //          "text": "我的"
   //       }
   //    ]
   // },
   // #todo 为什么要注释condition下代码? 
   // IOS plus.runtime.arguments 添加 condition节点后, 框架会修改 runtime.arguments
   // 会影响什么功能?
   //    -在h5中唤醒app会一直返回默认值 {"name":"","path":"","query":"","id":0}
   "condition": { //模式配置,仅开发期间生效
   "condition": {
      //模式配置,仅开发期间生效
      // "current": 0, //当前激活的模式(list 的索引项)
      // "list": [{
      //    "name": "", //模式名称