diff --git a/pages.json b/pages.json index b69afe184f0fee4544100cf5ca43f4517abe610c..5a972ca565b3957602f6744dd3f1fdcd7b9186db 100644 --- a/pages.json +++ b/pages.json @@ -1270,6 +1270,14 @@ "navigationBarTitleText": "ad", "backgroundColor": "#F8F8F8" } + }, + { + "path" : "pages/template/custom-long-list/custom-long-list", + "style" : + { + "navigationBarTitleText" : "", + "enablePullDownRefresh" : false + } } // #endif ], diff --git a/pages/tabBar/template.uvue b/pages/tabBar/template.uvue index 333605817bc7a5716b34b22eb12f0431a98bbfdc..276ab8eeff91bebd0786743893268ea43202c2c2 100644 --- a/pages/tabBar/template.uvue +++ b/pages/tabBar/template.uvue @@ -65,18 +65,18 @@ { name: '顶部搜索框随时下移长列表', url: 'long-list' - }, + }, // #ifdef APP-ANDROID || WEB { name: '顶部banner长列表', url: 'long-list2' - }, - // #endif - // #ifdef APP-IOS - { - name: '顶部banner长列表', - url: 'long-list-nested' - }, + }, + // #endif + // #ifdef APP-IOS + { + name: '顶部banner长列表', + url: 'long-list-nested' + }, // #endif ] as Page[], }, @@ -110,21 +110,28 @@ }, ] as Page[], }, - // #ifdef APP + { + id: 'custom-long-list', + url: 'custom-long-list', + name: '自行实现长列表组件', + open: false, + pages: [] as Page[], + }, + // #ifdef APP { id: 'custom-refresher', url: 'custom-refresher', name: '自定义下拉刷新', open: false, pages: [] as Page[], - }, - { - id: 'pull-zoom-image', - url: 'pull-zoom-image', - name: '下拉缩放顶部封面图', - open: false, - pages: [] as Page[], - }, + }, + { + id: 'pull-zoom-image', + url: 'pull-zoom-image', + name: '下拉缩放顶部封面图', + open: false, + pages: [] as Page[], + }, // #endif { id: 'swiper-vertical-video', @@ -132,7 +139,7 @@ name: '竖滑视频', open: false, pages: [] as Page[], - }, + }, // #ifdef APP { id: 'scroll-sticky', @@ -140,7 +147,7 @@ name: 'scroll-view自定义滚动吸顶', open: false, pages: [] as Page[], - }, + }, // #endif { id: 'half-screen', @@ -170,7 +177,7 @@ open: false, enable: true, pages: [] as Page[], - }, + }, // #ifdef APP { id: 'calendar', @@ -190,16 +197,16 @@ name: '分享示例', open: false, pages: [] as Page[], - }, - // #endif - // #ifdef WEB - { - id: 'browser-canvas', - url: 'browser-canvas', - name: '如何使用浏览器 canvas', - open: false, - pages: [] as Page[], - }, + }, + // #endif + // #ifdef WEB + { + id: 'browser-canvas', + url: 'browser-canvas', + name: '如何使用浏览器 canvas', + open: false, + pages: [] as Page[], + }, // #endif ] as ListItem[], arrowUpIcon: '/static/icons/arrow-up.png', @@ -244,4 +251,4 @@ }, }, } - + diff --git a/pages/template/custom-long-list/custom-list-item.uvue b/pages/template/custom-long-list/custom-list-item.uvue new file mode 100644 index 0000000000000000000000000000000000000000..1bb145b414305a25c46a9eab52ce37ec0d020ce2 --- /dev/null +++ b/pages/template/custom-long-list/custom-list-item.uvue @@ -0,0 +1,36 @@ + + + + + diff --git a/pages/template/custom-long-list/custom-list-view.uvue b/pages/template/custom-long-list/custom-list-view.uvue new file mode 100644 index 0000000000000000000000000000000000000000..731189f63a2078b52fbeecb02fd920e867a7aeec --- /dev/null +++ b/pages/template/custom-long-list/custom-list-view.uvue @@ -0,0 +1,115 @@ + + + + + diff --git a/pages/template/custom-long-list/custom-long-list.uvue b/pages/template/custom-long-list/custom-long-list.uvue new file mode 100644 index 0000000000000000000000000000000000000000..dbd1fb0035d9247d50177c74a6f0332f12946c3d --- /dev/null +++ b/pages/template/custom-long-list/custom-long-list.uvue @@ -0,0 +1,52 @@ + + + + +