From 032ff5ffbbbdfa6ecbbb8010d22a5bee1dd6c9fb Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期三, 16 七月 2025 10:19:18 +0800 Subject: [PATCH] 解决主包过大问题 --- pages.json | 573 +++++++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 418 insertions(+), 155 deletions(-) diff --git a/pages.json b/pages.json index a1d9881..4f57a8c 100644 --- a/pages.json +++ b/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(浠厀ifi涓嬮涓嬭浇) - "packages": [ - "uview-components" - ] // 棰勪笅杞藉垎鍖呯殑 root 鎴� name銆俖_APP__ 琛ㄧず涓诲寘 - } - }, + // "preloadRule": { + // "pages/tabbar/index/home": // 椤甸潰璺緞 + // // 椤甸潰鐨勯涓嬭浇閰嶇疆 + // { + // "network": "all", // all(涓嶉檺缃戠粶) wifi(浠厀ifi涓嬮涓嬭浇) + // "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", @@ -266,14 +306,15 @@ "u-popup": "view", "u-search": "view", "u-loading": "view", - "u-navbar": "view" + "u-navbar": "view", + "u-loadmore": "view" } } }, { - "path": "pages/customerManager/customerManager", + "path": "pages/news/detail", "style": { - "navigationBarTitleText": "瀹㈡埛绠$悊", + "navigationBarTitleText": "鏂伴椈璇︽儏", "componentPlaceholder": { "u-icon": "view", "u-button": "view", @@ -283,47 +324,75 @@ "u-popup": "view", "u-search": "view", "u-loading": "view", - "u-checkbox": "view", - "u-checkbox-group": "view", - "u-navbar": "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-navbar": "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", // 蹇呴』涓巔reloadRule涓殑鍚嶇О瀹屽叏涓�鑷� - "name": "uview-components", - "pages": [ - { - "path": "pages/empty-page/empty-page", - "style": { - "navigationBarTitleText": "", - "disableScroll": true - } - } - ] - }, + // { + // "root": "components/uview-components", // 蹇呴』涓巔reloadRule涓殑鍚嶇О瀹屽叏涓�鑷� + // "name": "uview-components", + // "pages": [ + // { + // "path": "pages/empty-page/empty-page", + // "style": { + // "navigationBarTitleText": "", + // "disableScroll": true + // } + // } + // ] + // }, { "root": "pages/mine", "pages": [ @@ -356,7 +425,8 @@ "path": "myCollect", "style": { "navigationBarTitleText": "鏀惰棌", - "enablePullDownRefresh": true, //涓嬫媺鍒锋柊 + "enablePullDownRefresh": true, + //涓嬫媺鍒锋柊 "navigationStyle": "custom", "app-plus": { "scrollIndicator": "none" @@ -488,7 +558,12 @@ "path": "address/address", "style": { "enablePullDownRefresh": true, - "navigationBarTitleText": "鍦板潃绠$悊" + "navigationBarTitleText": "鍦板潃绠$悊", + "componentPlaceholder": { + "u-empty": "view", + "u-icon": "view", + "u-action-sheet": "view" + } } }, { @@ -559,7 +634,8 @@ { "path": "im/list", "style": { - "navigationStyle": "custom", // 闅愯棌绯荤粺瀵艰埅鏍� + "navigationStyle": "custom", + // 闅愯棌绯荤粺瀵艰埅鏍� "enablePullDownRefresh": true, "app-plus": {} } @@ -567,7 +643,8 @@ { "path": "im/index", "style": { - "navigationStyle": "custom", // 闅愯棌绯荤粺瀵艰埅鏍� + "navigationStyle": "custom", + // 闅愯棌绯荤粺瀵艰埅鏍� "enablePullDownRefresh": true, "app-plus": {} } @@ -690,7 +767,8 @@ "path": "activity/detail", "style": { "navigationBarTitleText": "娲诲姩璇︽儏", - "enablePullDownRefresh": true, //涓嬫媺鍒锋柊 + "enablePullDownRefresh": true, + //涓嬫媺鍒锋柊 "componentPlaceholder": { "u-form": "view", "u-form-item": "view", @@ -709,7 +787,8 @@ "path": "activity/myActivity", "style": { "navigationBarTitleText": "鎴戠殑娲诲姩", - "enablePullDownRefresh": true, //涓嬫媺鍒锋柊 + "enablePullDownRefresh": true, + //涓嬫媺鍒锋柊 "componentPlaceholder": { "u-form": "view", "u-form-item": "view", @@ -728,7 +807,10 @@ "path": "activity/reportActivity", "style": { "navigationBarTitleText": "娲诲姩", - "enablePullDownRefresh": true, //涓嬫媺鍒锋柊 + "enablePullDownRefresh": true, + //涓嬫媺鍒锋柊 + "navigationStyle": "custom", + // 闅愯棌椤堕儴瀵艰埅鏍� "componentPlaceholder": { "u-form": "view", "u-form-item": "view", @@ -748,7 +830,8 @@ "path": "myCollect/myCollect", "style": { "navigationBarTitleText": "鎴戠殑鏀惰棌", - "enablePullDownRefresh": true, //涓嬫媺鍒锋柊 + "enablePullDownRefresh": true, + //涓嬫媺鍒锋柊 "componentPlaceholder": { "u-icon": "view", "u-button": "view", @@ -763,6 +846,13 @@ "u-loadmore": "view" } } + }, + { + "path": "myAttention", + "style": { + "navigationBarTitleText": "鍏虫敞鍒楄〃", + "enablePullDownRefresh": true + } } ] }, @@ -772,8 +862,7 @@ { "path": "shopPage", "style": { - "navigationBarTitleText": "", - "navigationStyle": "custom" + "navigationBarTitleText": "" } }, { @@ -908,7 +997,8 @@ } } }, - { //鍟嗗搧璇勪环 + { + //鍟嗗搧璇勪环 "path": "comment", "navigationStyle": "custom", "style": { @@ -917,7 +1007,8 @@ "scrollIndicator": "none" } }, - { // 瀹㈡湇 + { + // 瀹㈡湇 "path": "customerservice/index", "style": { "navigationBarTitleText": "瀹㈡湇", @@ -966,13 +1057,18 @@ } }, { - "path" : "video-goods-detail", - "style" : - { - "navigationBarTitleText" : "瑙嗛鎺ㄨ崘鍟嗗搧", + "path": "video-goods-detail", + "style": { + "navigationBarTitleText": "瑙嗛鎺ㄨ崘鍟嗗搧", "componentPlaceholder": { "u-button": "view" } + } + }, + { + "path": "video-search", + "style": { + "navigationBarTitleText": "" } } ] @@ -1092,7 +1188,8 @@ "path": "seckill", "style": { "navigationBarTitleText": "闄愭椂鎶㈣喘", - "navigationStyle": "custom", // 闅愯棌绯荤粺瀵艰埅鏍� + "navigationStyle": "custom", + // 闅愯棌绯荤粺瀵艰埅鏍� "navigationBarTextStyle": "black", "app-plus": { "titleNView": { @@ -1105,7 +1202,8 @@ "path": "joinGroup", "style": { "navigationBarTitleText": "鎷煎洟娲诲姩", - "navigationStyle": "custom", // 闅愯棌绯荤粺瀵艰埅鏍� + "navigationStyle": "custom", + // 闅愯棌绯荤粺瀵艰埅鏍� "navigationBarTextStyle": "black", "app-plus": { // 灏嗗洖寮瑰睘鎬у叧鎺� @@ -1202,7 +1300,8 @@ "style": { "navigationBarTitleText": "鏀粯璁㈠崟", "app-plus": { - "popGesture": "none" //绂佹渚ф粦閫�鍑� + "popGesture": "none" + //绂佹渚ф粦閫�鍑� } } }, @@ -1210,10 +1309,12 @@ "path": "payment/success", "style": { "navigationBarTitleText": "鏀粯鎴愬姛", - "navigationStyle": "custom", // 闅愯棌绯荤粺瀵艰埅鏍� + "navigationStyle": "custom", + // 闅愯棌绯荤粺瀵艰埅鏍� "navigationBarTextStyle": "white", "app-plus": { - "popGesture": "none", //绂佹渚ф粦閫�鍑� + "popGesture": "none", + //绂佹渚ф粦閫�鍑� "titleNView": false } } @@ -1240,6 +1341,17 @@ "path": "complain/complainInfo", "style": { "navigationBarTitleText": "鎶曡瘔璇︽儏" + } + }, + { + "path": "invoice/setInvoice", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom", + "componentPlaceholder": { + "u-popup": "view", + "u-input": "view" + } } }, { @@ -1385,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" + } } } ] @@ -1403,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 // 浼氬奖鍝嶄粈涔堝姛鑳斤紵 // -鍦╤5涓敜閱抋pp浼氫竴鐩磋繑鍥為粯璁ゅ�� {"name":"","path":"","query":"","id":0} - "condition": { //妯″紡閰嶇疆锛屼粎寮�鍙戞湡闂寸敓鏁� + "condition": { + //妯″紡閰嶇疆锛屼粎寮�鍙戞湡闂寸敓鏁� // "current": 0, //褰撳墠婵�娲荤殑妯″紡(list 鐨勭储寮曢」) // "list": [{ // "name": "", //妯″紡鍚嶇О -- Gitblit v1.8.0