diff --git a/pages.json b/pages.json index 4da23805d96e6030ee138cc8d0d62378d498eb93..463378598aeb9ec82dd51ac7109f50660af35e98 100644 --- a/pages.json +++ b/pages.json @@ -521,7 +521,15 @@ "enablePullDownRefresh": false } - } + }, { + "path" : "pages/component/scroll-view/scroll-view-refresher", + "style" : + { + "navigationBarTitleText": "scroll-view-refresher", + "enablePullDownRefresh": false + } + + } ], "globalStyle": { "pageOrientation": "portrait", diff --git a/pages/component/scroll-view/scroll-view-refresher.uvue b/pages/component/scroll-view/scroll-view-refresher.uvue new file mode 100644 index 0000000000000000000000000000000000000000..25ff64580fd10445be13a7efeb9b5c437591d1b3 --- /dev/null +++ b/pages/component/scroll-view/scroll-view-refresher.uvue @@ -0,0 +1,79 @@ + + + + \ No newline at end of file diff --git a/pages/component/scroll-view/scroll-view.uvue b/pages/component/scroll-view/scroll-view.uvue index c94d3cc6fd4dfb22631cb483c331d0982e7ebf8a..41cd730b0692cf4c4b473b56fe899d15859d263f 100644 --- a/pages/component/scroll-view/scroll-view.uvue +++ b/pages/component/scroll-view/scroll-view.uvue @@ -7,8 +7,8 @@ 纵向滚动 - + A B C @@ -18,6 +18,11 @@ 点击这里返回顶部 + + 下拉刷新 + + + Horizontal Scroll 横向滚动 @@ -61,7 +66,12 @@ icon: "none", title: "纵向滚动 scrollTop 值已被修改为 0" }) - } + }, + gotoRefresher: function () { + uni.navigateTo({ + url:"/pages/component/scroll-view/scroll-view-refresher" + }) + } } } @@ -93,4 +103,7 @@ font-size: 36rpx; color: #ffffff; } + .button { + margin-top: 30rpx; + } \ No newline at end of file