From df4dd9f030ac4e830d93f2f64e2379a9b7dad278 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期三, 25 六月 2025 20:41:20 +0800 Subject: [PATCH] 自定义顶部组件、顶部tab对应页面接入该组件 --- pages.json | 146 +++++++++++++++++++++++++++++++++--------------- 1 files changed, 100 insertions(+), 46 deletions(-) diff --git a/pages.json b/pages.json index 71ab3f6..49495a3 100644 --- a/pages.json +++ b/pages.json @@ -2,8 +2,8 @@ "easycom": { "autoscan": true, "custom": { - "^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缁勪欢 + "^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": { @@ -63,12 +63,14 @@ } }, { - "path": "pages/tabbar/category/category", + // "path": "pages/tabbar/category/category", + "path": "pages/commodity-square/commoditySquare", + "style": { - "navigationBarTitleText": "鍒嗙被", + "navigationBarTitleText": "鍟嗗搧骞垮満", "navigationStyle": "custom", // 闅愯棌绯荤粺瀵艰埅鏍� "navigationBarTextStyle": "black", - "disableScroll": true, + // "disableScroll": true, "bounce": "none", "scrollIndicator": "none", "componentPlaceholder": { @@ -132,16 +134,6 @@ } } }, - // { - // "path": "components/popups/popups", - // "style": { - // "navigationBarTitleText": "", - // "navigationStyle": "custom", - // "componentPlaceholder": { - // "u-icon": "view" - // } - // } - // }, { "path": "components/m-buy/goods", "style": { @@ -258,6 +250,21 @@ } }, { + "path": "pages/goods-manager/updateSkus/updateSkus", + "style": { + "enablePullDownRefresh": true, + "navigationBarTitleText": "璋冩暣搴撳瓨", + "componentPlaceholder": { + "u-icon": "view", + "u-button": "view", + "u-form": "view", + "u-form-item": "view", + "u-input": "view", + "u-popup": "view" + } + } + }, + { "path": "pages/userPermissions/userPermissions", "style": { "navigationBarTitleText": "鐢ㄦ埛鏉冮檺", @@ -270,29 +277,31 @@ "u-popup": "view", "u-search": "view", "u-loading": "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" - } - } - }, + // { + // "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": { @@ -309,7 +318,9 @@ "u-loading": "view", "u-checkbox": "view", "u-checkbox-group": "view", - "u-navbar": "view" + "u-navbar": "view", + "u-loadmore":"view", + "u-switch": "view" } } } @@ -738,6 +749,7 @@ "style": { "navigationBarTitleText": "娲诲姩", "enablePullDownRefresh": true, //涓嬫媺鍒锋柊 + "navigationStyle": "custom", // 闅愯棌椤堕儴瀵艰埅鏍� "componentPlaceholder": { "u-form": "view", "u-form-item": "view", @@ -976,7 +988,7 @@ }, { "path" : "video-goods-detail", - "style" : + "style" : { "navigationBarTitleText" : "瑙嗛鎺ㄨ崘鍟嗗搧", "componentPlaceholder": { @@ -1418,7 +1430,48 @@ } } ] + }, + { + "root": "pages/health", + "pages": [{ + "path": "healthVideo", + "style": { + "navigationBarTitleText": "澶у仴搴�", + "navigationStyle": "custom" + } + }] + }, + { + "root": "pages/kitchen", + "pages": [{ + "path": "KitchenVideo", + "style": { + "navigationBarTitleText": "鍘ㄧ" + } + }] + }, + { + "root": "pages/supplier", + "pages": [{ + "path" : "suppler-order/suppler-order", + "style" : + { + "navigationBarTitleText" : "" + } + }] } + + // , + // { + // "root": "pages/commodity-square", + // "pages": [{ + // "path" : "commoditySquare", + // "style" : + // { + // "navigationBarTitleText" : "鍟嗗搧骞垮満" + // } + // }] + // } ], "globalStyle": { "navigationBarTextStyle": "black", @@ -1445,12 +1498,13 @@ "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/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", @@ -1470,11 +1524,11 @@ } ] }, - // #todo 涓轰粈涔堣娉ㄩ噴condition涓嬩唬鐮侊紵 + // #todo 涓轰粈涔堣娉ㄩ噴condition涓嬩唬鐮侊紵 // IOS plus.runtime.arguments 娣诲姞 condition鑺傜偣鍚庯紝 妗嗘灦浼氫慨鏀� runtime.arguments // 浼氬奖鍝嶄粈涔堝姛鑳斤紵 // -鍦╤5涓敜閱抋pp浼氫竴鐩磋繑鍥為粯璁ゅ�� {"name":"","path":"","query":"","id":0} - "condition": { //妯″紡閰嶇疆锛屼粎寮�鍙戞湡闂寸敓鏁� + "condition": { //妯″紡閰嶇疆锛屼粎寮�鍙戞湡闂寸敓鏁� // "current": 0, //褰撳墠婵�娲荤殑妯″紡(list 鐨勭储寮曢」) // "list": [{ // "name": "", //妯″紡鍚嶇О @@ -1482,4 +1536,4 @@ // "query": "" //鍚姩鍙傛暟锛屽湪椤甸潰鐨刼nLoad鍑芥暟閲岄潰寰楀埌 // }] } -} \ No newline at end of file +} -- Gitblit v1.8.0