From 0f29ef8edb92c1bbf783ac39610ca8591f58294d Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期三, 28 五月 2025 12:00:28 +0800 Subject: [PATCH] 视频主评论下滑加载 --- pages.json | 622 +++++++++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 521 insertions(+), 101 deletions(-) diff --git a/pages.json b/pages.json index 5f2b301..d7c60c8 100644 --- a/pages.json +++ b/pages.json @@ -1,10 +1,30 @@ { - - "easycom": { - "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" - }, + "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缁勪欢 + } + }, + "preloadRule": { + "pages/tabbar/index/home": // 椤甸潰璺緞 + // 椤甸潰鐨勯涓嬭浇閰嶇疆 + { + "network": "all", // all(涓嶉檺缃戠粶) wifi(浠厀ifi涓嬮涓嬭浇) + "packages": ["uview-components"] // 棰勪笅杞藉垎鍖呯殑 root 鎴� name銆俖_APP__ 琛ㄧず涓诲寘 + } + }, "pages": [ - + // 绗竴涓氨鏄椤� + { + "path" : "pages/tabbar/index/home", + "style" : + { + // "navigationBarTitleText" : "瑙嗛", + "enablePullDownRefresh" : false, + "navigationStyle": "custom" // 闅愯棌椤堕儴瀵艰埅鏍� + } + }, { "path": "pages/tabbar/home/index", "style": { @@ -14,18 +34,6 @@ "enablePullDownRefresh":true } }, - { - "path":"pages/tabbar/screen/fullScreen", - "style": { - "navigationStyle": "custom", // 闅愯棌绯荤粺瀵艰埅鏍� - "app-plus":{ - "animationType": "fade-in", // 璁剧疆fade-in娣″叆鍔ㄧ敾锛屼负鏈�鍚堢悊鐨勫姩鐢荤被鍨� - "background": "transparent", // 鑳屾櫙閫忔槑 - "backgroundColor": "rgba(0,0,0,0)", // 鑳屾櫙閫忔槑 - "popGesture": "none" // 鍏抽棴IOS灞忓箷宸﹁竟婊戝姩鍏抽棴褰撳墠椤甸潰鐨勫姛鑳� - } - } - }, { "path": "pages/tabbar/home/title", "style": { @@ -38,8 +46,19 @@ "navigationBarTitleText": "璐墿杞�", "navigationStyle": "custom", // 闅愯棌绯荤粺瀵艰埅鏍� "navigationBarBackgroundColor": "#fff", - "enablePullDownRefresh":true //瀹炵幇涓嬫媺鍒锋柊鏍峰紡 - + "enablePullDownRefresh":true, //瀹炵幇涓嬫媺鍒锋柊鏍峰紡 + "componentPlaceholder": { + "u-navbar": "view", + "u-checkbox-group": "view", + "u-checkbox": "view", + "u-swipe-action": "view", + "u-image": "view", + "u-icon": "view", + "u-count-down": "view", + "u-modal": "view", + "u-popup": "view", + "u-toast": "view" + } } }, { "path": "pages/tabbar/category/category", @@ -48,19 +67,20 @@ "navigationStyle": "custom", // 闅愯棌绯荤粺瀵艰埅鏍� "navigationBarTextStyle": "black", "disableScroll": true, - "bounce": "none", - "scrollIndicator": "none" - - + "bounce": "none", + "scrollIndicator": "none", + "componentPlaceholder": { + "u-navbar": "view", + "u-search": "view", + "u-image": "view" + } } }, - { - "path": "pages/navigation/search/searchPage", + "path": "components/m-search-revision/m-search-revision", "style": { - "navigationBarTitleText": "鎼滅储", + "navigationBarTitleText": "", "navigationStyle": "custom", - "app-plus": { //app椤甸潰涓嶆樉绀烘粴鍔ㄦ潯 "scrollIndicator": "none", @@ -70,6 +90,86 @@ "safearea": { "bottom": "none" } + }, + "componentPlaceholder": { + "u-icon": "view" + } + } + }, + { + "path": "components/m-goods-list/list", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom", + "app-plus": { + //app椤甸潰涓嶆樉绀烘粴鍔ㄦ潯 + "scrollIndicator": "none", + "bottom": "0", + "contentAdjust": "false", + "bounce": "none", + "safearea": { + "bottom": "none" + } + }, + "componentPlaceholder": { + "u-image": "view", + "u-loading": "view", + "u-tag": "view", + "u-icon": "view" + } + } + }, + { + "path": "components/m-share/index", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom", + "componentPlaceholder": { + "u-popup": "view", + "u-icon": "view" + } + } + }, + { + "path": "components/m-buy/goods", + "style": { + "navigationBarTitleText": "", + "componentPlaceholder": { + "u-popup": "view", + "u-image": "view", + "u-alert-tips": "view" + } + } + }, + { + "path": "components/m-take-down-sale-goods/index", + "style": { + "navigationBarTitleText": "", + "componentPlaceholder": { + "u-popup": "view" + } + } + }, + { + "path": "pages/navigation/search/searchPage", + "style": { + "navigationBarTitleText": "鎼滅储", + "navigationStyle": "custom", + "app-plus": { + //app椤甸潰涓嶆樉绀烘粴鍔ㄦ潯 + "scrollIndicator": "none", + "bottom": "0", + "contentAdjust": "false", + "bounce": "none", + "safearea": { + "bottom": "none" + } + }, + "componentPlaceholder": { + "u-navbar": "view", + "u-popup": "view", + "u-input": "view", + "u-back-top": "view" } } }, { @@ -77,7 +177,12 @@ "style": { "navigationBarTextStyle": "white", "enablePullDownRefresh": true, - "navigationStyle": "custom" + "navigationStyle": "custom", + "componentPlaceholder": { + "u-icon": "view", + "u-row": "view", + "u-col": "view" + } } }, @@ -92,11 +197,56 @@ "style": { "navigationBarTitleText": "涓撻" } + }, + { + "path" : "pages/tabbar/video/video", + "style" : + { + "navigationBarTitleText" : "鍙戝竷瑙嗛", + "enablePullDownRefresh" : false, + "componentPlaceholder": { + "u-icon": "view", + "u-button": "view", + "u-form": "view", + "u-form-item": "view", + "u-input": "view", + "u-popup": "view", + "u-search": "view" + } + } + }, + { + "path" : "pages/goods-manager/goodsList/goodsList", + "style" : + { + "enablePullDownRefresh" : true, + "navigationBarTitleText" : "鍟嗗搧鍒楄〃" + } + }, + { + "path" : "pages/goods-manager/addGoods/addGoods", + "style" : + { + "navigationBarTitleText" : "" + } } + ], "subPackages": [ - + { + "root": "uview-components", // 蹇呴』涓巔reloadRule涓殑鍚嶇О瀹屽叏涓�鑷� + "name": "uview-components", + "pages": [ + { + "path": "pages/empty-page/empty-page", + "style": { + "navigationBarTitleText": "", + "disableScroll": true + } + } + ] + }, { "root": "pages/mine", "pages": [ @@ -104,14 +254,25 @@ { "path": "signIn", "style": { - "navigationBarTitleText": "绛惧埌" + "navigationBarTitleText": "绛惧埌", + "componentPlaceholder": { + "u-icon": "view" + } } }, { "path": "myTracks", "style": { "navigationBarTitleText": "鎴戠殑瓒宠抗", "enablePullDownRefresh": true, - "navigationStyle": "custom" + "navigationStyle": "custom", + "componentPlaceholder": { + "u-navbar": "view", + "u-notice-bar": "view", + "u-empty": "view", + "u-swipe-action": "view", + "u-checkbox-group": "view", + "u-checkbox": "view" + } } }, { "path": "myCollect", @@ -121,6 +282,15 @@ "navigationStyle": "custom", "app-plus": { "scrollIndicator": "none" + }, + "componentPlaceholder": { + "u-navbar": "view", + "u-tabs": "view", + "u-empty": "view", + "u-swipe-action": "view", + "u-image": "view", + "u-loading": "view", + "u-tag": "view" } } }, @@ -131,6 +301,11 @@ "app-plus": { //app椤甸潰涓嶆樉绀烘粴鍔ㄦ潯 "scrollIndicator": "none" + }, + "componentPlaceholder": { + "u-swipe-action": "view", + "u-image": "view", + "u-modal": "view" } } }, @@ -141,6 +316,9 @@ "app-plus": { //app椤甸潰涓嶆樉绀烘粴鍔ㄦ潯 "scrollIndicator": "none" + }, + "componentPlaceholder": { + "u-input": "view" } } }, @@ -152,35 +330,50 @@ "app-plus": { //app椤甸潰涓嶆樉绀烘粴鍔ㄦ潯 "scrollIndicator": "none" + }, + "componentPlaceholder": { + "u-tabs": "view", + "u-form": "view", + "u-form-item": "view", + "u-input": "view", + "u-button": "view" } } }, { "path": "distribution/history", "style": { - "navigationBarTitleText": "鎻愮幇鍘嗗彶" - + "navigationBarTitleText": "鎻愮幇鍘嗗彶", + "componentPlaceholder": { + "u-loadmore": "view" + } } }, { "path": "distribution/auth", "style": { - "navigationBarTitleText": "浼氬憳瀹炲悕璁よ瘉" - + "navigationBarTitleText": "浼氬憳瀹炲悕璁よ瘉", + "componentPlaceholder": { + "u-form": "view", + "u-form-item": "view", + "u-input": "view", + "u-button": "view" + } } }, { "path": "distribution/achievement", "style": { "navigationBarTitleText": "鎴戠殑鍒嗛攢涓氱哗" - } }, { "path": "distribution/home", "style": { - "navigationBarTitleText": "鎺ㄥ箍鍒嗕剑" - + "navigationBarTitleText": "鎺ㄥ箍鍒嗕剑", + "componentPlaceholder": { + "u-icon": "view" + } } }, { @@ -236,13 +429,27 @@ { "path": "address/add", "style": { - "navigationBarTitleText": "鏀惰揣浜�" + "navigationBarTitleText": "鏀惰揣浜�", + "componentPlaceholder": { + "u-form": "view", + "u-form-item": "view", + "u-input": "view", + "u-icon": "view", + "u-action-sheet": "view", + "u-checkbox-group": "view", + "u-checkbox": "view" + } } }, { "path": "address/addressManage", "style": { - "navigationBarTitleText": "鍦板潃绠$悊" + "navigationBarTitleText": "鍦板潃绠$悊", + "componentPlaceholder": { + "u-empty": "view", + "u-icon": "view", + "u-action-sheet": "view" + } } }, { @@ -309,7 +516,11 @@ { "path": "set/feedBack", "style": { - "navigationBarTitleText": "鎰忚鍙嶉" + "navigationBarTitleText": "鎰忚鍙嶉", + "componentPlaceholder": { + "u-input": "view", + "u-upload": "view" + } } }, { @@ -322,13 +533,23 @@ { "path": "set/editionIntro", "style": { - "navigationBarTitleText": "鍏充簬鎴戜滑" + "navigationBarTitleText": "鍏充簬鎴戜滑", + "componentPlaceholder": { + "u-cell-group": "view", + "u-cell-item": "view" + } } }, { "path": "set/setUp", "style": { - "navigationBarTitleText": "璁剧疆" + "navigationBarTitleText": "璁剧疆", + "componentPlaceholder": { + "u-image": "view", + "u-icon": "view", + "u-cell-group": "view", + "u-cell-item": "view" + } } }, { @@ -345,17 +566,32 @@ "color": "#FFFFFF" }] } + }, + "componentPlaceholder": { + "u-form": "view", + "u-form-item": "view", + "u-input": "view", + "u-radio-group": "view", + "u-radio": "view", + "u-picker": "view" } } }, { "path": "help/tips", "style": { - "navigationBarTitleText": "" + "navigationBarTitleText": "", + "componentPlaceholder": { + "u-parse": "view" + } } }, { "path": "point/myPoint", "style": { - "navigationBarTitleText": "鎴戠殑绉垎" + "navigationBarTitleText": "鎴戠殑绉垎", + "componentPlaceholder": { + "u-row": "view", + "u-col": "view" + } } }, { @@ -420,50 +656,138 @@ "navigationStyle": "custom" } }, - { - "path": "goods", - "style": { - "backgroundColor": "#fff", - "navigationStyle": "custom", - "app-plus": { - // 灏嗗洖寮瑰睘鎬у叧鎺� - "bounce": "none", - // 绂佹椤甸潰婊氬姩 - "scrollIndicator": "none", - "safearea": { - "bottom": { - "offset": "none" - } - } - } - } - }, - { - "path": "askList", - "style": { - "navigationBarTitleText": "闂瓟涓撳尯" - } - }, - { //鍟嗗搧璇勪环 - "path": "comment", + { + "path": "goods", + "style": { + "backgroundColor": "#fff", "navigationStyle": "custom", - "style": { - "navigationBarTitleText": "鍟嗗搧璇勪环", - //app椤甸潰涓嶆樉绀烘粴鍔ㄦ潯 - "scrollIndicator": "none" - } - }, - { // 瀹㈡湇 - "path": "customerservice/index", - "style": { - "navigationBarTitleText": "瀹㈡湇", - "usingComponents": { - // #ifdef MP-WEIXIN - "chat": "plugin://myPlugin/chat" - // #endif - } + "app-plus": { + // 灏嗗洖寮瑰睘鎬у叧鎺� + "bounce": "none", + // 绂佹椤甸潰婊氬姩 + "scrollIndicator": "none", + "safearea": { + "bottom": { + "offset": "none" + } + } + }, + "componentPlaceholder": { + "u-icon": "view", + "u-navbar": "view", + "u-popup": "view" } } + }, + { + "path": "askList", + "style": { + "navigationBarTitleText": "闂瓟涓撳尯" + } + }, + { + "path": "product/promotion/-promotion-details", + "style": { + "navigationBarTitleText": "", + "componentPlaceholder": { + "u-tag": "view" + } + } + }, + { + "path": "product/promotion/-promotion-assemble-promotions", + "style": { + "navigationBarTitleText": "", + "componentPlaceholder": { + "u-tag": "view", + "u-count-down": "view" + } + } + }, + { + "path": "product/promotion/-promotion-assemble-list", + "style": { + "navigationBarTitleText": "", + "componentPlaceholder": { + "u-image": "view", + "u-button": "view", + "u-empty": "view" + } + } + }, + { + "path": "product/goods/-goods-intro", + "style": { + "navigationBarTitleText": "", + "componentPlaceholder": { + "u-empty": "view", + "u-parse": "view" + } + } + }, + { + "path": "product/shop/-shop", + "style": { + "navigationBarTitleText": "", + "componentPlaceholder": { + "u-image": "view", + "u-loading": "view" + } + } + }, + { + "path": "product/evaluation/-evaluation", + "style": { + "navigationBarTitleText": "", + "componentPlaceholder": { + "u-avatar": "view", + "u-read-more": "view", + "u-image": "view", + "u-empty": "view" + } + } + }, + { + "path": "product/goods/-goods-swiper", + "style": { + "navigationBarTitleText": "", + "componentPlaceholder": { + "u-loading": "view", + "u-image": "view" + } + } + }, + { + "path": "product/popup/address", + "style": { + "navigationBarTitleText": "", + "componentPlaceholder": { + "u-popup": "view", + "u-icon": "view", + "u-empty": "view" + } + } + }, + { //鍟嗗搧璇勪环 + "path": "comment", + "navigationStyle": "custom", + "style": { + "navigationBarTitleText": "鍟嗗搧璇勪环", + //app椤甸潰涓嶆樉绀烘粴鍔ㄦ潯 + "scrollIndicator": "none" + } + }, + { // 瀹㈡湇 + "path": "customerservice/index", + "style": { + "navigationBarTitleText": "瀹㈡湇", + "usingComponents": { + // #ifdef MP-WEIXIN + "chat": "plugin://myPlugin/chat" + // #endif + } + } + } ] @@ -499,14 +823,59 @@ "path": "entry/seller/index", "style": { "navigationBarTitleText": "搴楅摵鍏ラ┗", - "navigationStyle": "custom" + "navigationStyle": "custom", + "componentPlaceholder": { + "u-navbar": "view" + } + } + }, + { + "path": "entry/seller/step1", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom", + "componentPlaceholder": { + "u-form": "view", + "u-form-item": "view", + "u-input": "view", + "u-upload": "view" + } + } + }, + { + "path": "entry/seller/step2", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom", + "componentPlaceholder": { + "u-form": "view", + "u-form-item": "view", + "u-input": "view" + } + } + }, + { + "path": "entry/seller/step3", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom", + "componentPlaceholder": { + "u-form": "view", + "u-form-item": "view", + "u-input": "view", + "u-upload": "view", + "u-select": "view" + } } }, { "path": "entry/seller/control", "style": { "navigationBarTitleText": "", - "navigationStyle": "custom" + "navigationStyle": "custom", + "componentPlaceholder": { + "u-navbar": "view" + } } }, { @@ -520,7 +889,12 @@ "style": { "navigationBarTitleText": "灏忕▼搴忕櫥褰�", "navigationStyle": "custom", - "navigationBarTextStyle": "black" + "navigationBarTextStyle": "black", + "componentPlaceholder": { + "u-navbar": "view", + "u-modal": "view", + "u-checkbox": "view" + } } }, { @@ -586,7 +960,11 @@ },{ "path": "bargain/log", "style": { - "navigationBarTitleText": "鐮嶄环璁板綍" + "navigationBarTitleText": "鐮嶄环璁板綍", + "componentPlaceholder": { + "u-image": "view", + "u-empty": "view" + } } },{ "path": "point/detail", @@ -615,7 +993,10 @@ "navigationBarTitleText": "鎴戠殑浼樻儬鍒�", "app-plus": { "bounce": "coupon/none" - + }, + "componentPlaceholder": { + "u-empty": "view", + "u-icon": "view" } } }, @@ -636,8 +1017,10 @@ "path": "coupon/couponCenter", "style": { "navigationBarTitleText": "棰嗗埜涓績", - "enablePullDownRefresh": true - + "enablePullDownRefresh": true, + "componentPlaceholder": { + "u-empty": "view" + } } }, { @@ -692,7 +1075,14 @@ { "path": "complain/complainList", "style": { - "navigationBarTitleText": "鎶曡瘔鍒楄〃" + "navigationBarTitleText": "鎶曡瘔鍒楄〃", + "componentPlaceholder": { + "u-line": "view", + "u-image": "view", + "u-tag": "view", + "u-empty": "view", + "u-modal": "view" + } } }, { @@ -702,7 +1092,17 @@ "enablePullDownRefresh": true, "app-plus": { "bounce": "none" - + }, + "componentPlaceholder": { + "u-empty": "view", + "u-modal": "view", + "u-image": "view", + "u-popup": "view", + "u-radio-group": "view", + "u-radio": "view", + "u-button": "view", + "u-toast": "view", + "u-modal": "view" } } }, @@ -740,7 +1140,14 @@ { "path": "evaluate/myEvaluate", "style": { - "navigationBarTitleText": "鎴戠殑璇勪环" + "navigationBarTitleText": "鎴戠殑璇勪环", + "componentPlaceholder": { + "u-empty": "view", + "u-tabs": "view", + "u-image": "view", + "u-read-more": "view", + "u-tag": "view" + } } }, @@ -794,7 +1201,15 @@ "path": "afterSales/afterSales", "style": { "navigationBarTitleText": "鍞悗绠$悊", - "enablePullDownRefresh": true + "enablePullDownRefresh": true, + "componentPlaceholder": { + "u-modal": "view", + "u-tabs": "view", + "u-image": "view", + "u-search": "view", + "u-icon": "view", + "u-loadmore": "view" + } } }, { @@ -808,7 +1223,7 @@ ], "globalStyle": { "navigationBarTextStyle": "black", - "navigationBarTitleText": "Lili鍟嗗煄", + "navigationBarTitleText": "缁挎弧绛�", "titleColor": "#303133", "navigationBarBackgroundColor": "#fff", "backgroundColor": "#fff", @@ -820,12 +1235,13 @@ } }, "tabBar": { + "custom": true, "color": "#666", "selectedColor": "#ff573e", "borderStyle": "black", "backgroundColor": "#ffffff", "list": [{ - "pagePath": "pages/tabbar/home/index", + "pagePath": "pages/tabbar/index/home", "iconPath": "static/tabbar/home.png", "selectedIconPath": "static/tabbar/home-s.png", "text": "棣栭〉" @@ -834,9 +1250,13 @@ "pagePath": "pages/tabbar/category/category", "iconPath": "static/tabbar/category.png", "selectedIconPath": "static/tabbar/category-s.png", - "text": "鍒嗙被" + "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", -- Gitblit v1.8.0