绿满眶商城微信小程序-uniapp
xiangpei
2025-07-09 032ff5ffbbbdfa6ecbbb8010d22a5bee1dd6c9fb
pages.json
@@ -2,7 +2,8 @@
   "easycom": {
      "autoscan": true,
      "custom": {
         "^u-(.*)": "@/components/uview-components/uview-ui/components/u-$1/u-$1.vue" //uview,
         "^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组件
      }
   },
@@ -23,31 +24,41 @@
         "style": {
            // "navigationBarTitleText" : "视频",
            "enablePullDownRefresh": false,
            "navigationStyle": "custom" // 隐藏顶部导航栏
            "navigationStyle": "custom"
            // 隐藏顶部导航栏
         }
      },
      {
         "path": "pages/tabbar/home/index",
         "style": {
            "navigationBarTitleText": "首页",
            "navigationStyle": "custom", // 隐藏系统导航栏
            "navigationBarTextStyle": "black",
            "enablePullDownRefresh": true
         }
      },
      {
         "path": "pages/tabbar/home/title",
         "style": {
            "navigationBarTitleText": "消息"
         }
      },
      // {
      //    "path": "pages/tabbar/home/index",
      //    "style": {
      //       "navigationBarTitleText": "首页",
      //       "navigationStyle": "custom", // 隐藏系统导航栏
      //       "navigationBarTextStyle": "black",
      //       "enablePullDownRefresh": true
      //    }
      // },
      // {
      //    "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",
@@ -62,24 +73,24 @@
            }
         }
      },
      {
         // "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": "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": {
@@ -232,23 +243,23 @@
            }
         }
      },
      {
         "path": "pages/goods-manager/addGoods/addGoods",
         "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/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/updateSkus/updateSkus",
         "style": {
@@ -264,10 +275,28 @@
            }
         }
      },
      // {
      //    "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",
@@ -278,10 +307,28 @@
               "u-search": "view",
               "u-loading": "view",
               "u-navbar": "view",
               "u-loadmore":"view"
               "u-loadmore": "view"
            }
         }
      },
      {
         "path": "pages/news/detail",
         "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/customerManager/customerManager",
      //    "style": {
@@ -302,28 +349,35 @@
      //       }
      //    }
      // },
      {
         "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/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": [
      // {
@@ -371,7 +425,8 @@
               "path": "myCollect",
               "style": {
                  "navigationBarTitleText": "收藏",
                  "enablePullDownRefresh": true, //下拉刷新
                  "enablePullDownRefresh": true,
                  //下拉刷新
                  "navigationStyle": "custom",
                  "app-plus": {
                     "scrollIndicator": "none"
@@ -579,7 +634,8 @@
            {
               "path": "im/list",
               "style": {
                  "navigationStyle": "custom", // 隐藏系统导航栏
                  "navigationStyle": "custom",
                  // 隐藏系统导航栏
                  "enablePullDownRefresh": true,
                  "app-plus": {}
               }
@@ -587,7 +643,8 @@
            {
               "path": "im/index",
               "style": {
                  "navigationStyle": "custom", // 隐藏系统导航栏
                  "navigationStyle": "custom",
                  // 隐藏系统导航栏
                  "enablePullDownRefresh": true,
                  "app-plus": {}
               }
@@ -710,7 +767,8 @@
               "path": "activity/detail",
               "style": {
                  "navigationBarTitleText": "活动详情",
                  "enablePullDownRefresh": true, //下拉刷新
                  "enablePullDownRefresh": true,
                  //下拉刷新
                  "componentPlaceholder": {
                     "u-form": "view",
                     "u-form-item": "view",
@@ -729,7 +787,8 @@
               "path": "activity/myActivity",
               "style": {
                  "navigationBarTitleText": "我的活动",
                  "enablePullDownRefresh": true, //下拉刷新
                  "enablePullDownRefresh": true,
                  //下拉刷新
                  "componentPlaceholder": {
                     "u-form": "view",
                     "u-form-item": "view",
@@ -748,7 +807,10 @@
               "path": "activity/reportActivity",
               "style": {
                  "navigationBarTitleText": "活动",
                  "enablePullDownRefresh": true, //下拉刷新
                  "enablePullDownRefresh": true,
                  //下拉刷新
                  "navigationStyle": "custom",
                  // 隐藏顶部导航栏
                  "componentPlaceholder": {
                     "u-form": "view",
                     "u-form-item": "view",
@@ -768,7 +830,8 @@
               "path": "myCollect/myCollect",
               "style": {
                  "navigationBarTitleText": "我的收藏",
                  "enablePullDownRefresh": true, //下拉刷新
                  "enablePullDownRefresh": true,
                  //下拉刷新
                  "componentPlaceholder": {
                     "u-icon": "view",
                     "u-button": "view",
@@ -783,6 +846,13 @@
                     "u-loadmore": "view"
                  }
               }
            },
            {
               "path": "myAttention",
               "style": {
                  "navigationBarTitleText": "关注列表",
                  "enablePullDownRefresh": true
               }
            }
         ]
      },
@@ -792,8 +862,7 @@
            {
               "path": "shopPage",
               "style": {
                  "navigationBarTitleText": "",
                  "navigationStyle": "custom"
                  "navigationBarTitleText": ""
               }
            },
            {
@@ -928,7 +997,8 @@
                  }
               }
            },
            { //商品评价
            {
               //商品评价
               "path": "comment",
               "navigationStyle": "custom",
               "style": {
@@ -937,7 +1007,8 @@
                  "scrollIndicator": "none"
               }
            },
            { // 客服
            {
               // 客服
               "path": "customerservice/index",
               "style": {
                  "navigationBarTitleText": "客服",
@@ -986,13 +1057,18 @@
               }
            },
            {
               "path" : "video-goods-detail",
               "style" :
               {
                  "navigationBarTitleText" : "视频推荐商品",
               "path": "video-goods-detail",
               "style": {
                  "navigationBarTitleText": "视频推荐商品",
                  "componentPlaceholder": {
                     "u-button": "view"
                  }
               }
            },
            {
               "path": "video-search",
               "style": {
                  "navigationBarTitleText": ""
               }
            }
         ]
@@ -1112,7 +1188,8 @@
               "path": "seckill",
               "style": {
                  "navigationBarTitleText": "限时抢购",
                  "navigationStyle": "custom", // 隐藏系统导航栏
                  "navigationStyle": "custom",
                  // 隐藏系统导航栏
                  "navigationBarTextStyle": "black",
                  "app-plus": {
                     "titleNView": {
@@ -1125,7 +1202,8 @@
               "path": "joinGroup",
               "style": {
                  "navigationBarTitleText": "拼团活动",
                  "navigationStyle": "custom", // 隐藏系统导航栏
                  "navigationStyle": "custom",
                  // 隐藏系统导航栏
                  "navigationBarTextStyle": "black",
                  "app-plus": {
                     // 将回弹属性关掉
@@ -1222,7 +1300,8 @@
               "style": {
                  "navigationBarTitleText": "支付订单",
                  "app-plus": {
                     "popGesture": "none" //禁止侧滑退出
                     "popGesture": "none"
                     //禁止侧滑退出
                  }
               }
            },
@@ -1230,10 +1309,12 @@
               "path": "payment/success",
               "style": {
                  "navigationBarTitleText": "支付成功",
                  "navigationStyle": "custom", // 隐藏系统导航栏
                  "navigationStyle": "custom",
                  // 隐藏系统导航栏
                  "navigationBarTextStyle": "white",
                  "app-plus": {
                     "popGesture": "none", //禁止侧滑退出
                     "popGesture": "none",
                     //禁止侧滑退出
                     "titleNView": false
                  }
               }
@@ -1432,24 +1513,144 @@
      },
      {
         "root": "pages/health",
         "pages": [{
            "path": "healthVideo",
            "style": {
               "navigationBarTitleText": "大健康"
         "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"
                  }
               }
            }
         ]
      }
      // ,
      // {
      //    "root": "pages/commodity-square",
      //    "pages": [{
      //       "path" : "commoditySquare",
      //       "style" :
      //       {
      //          "navigationBarTitleText" : "商品广场"
      //       }
      //    }]
      // }
   ],
   "globalStyle": {
      "navigationBarTextStyle": "black",
@@ -1463,50 +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",
            "pagePath": "pages/commodity-square/commoditySquare",
            "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": "", //模式名称