diff --git a/pages.json b/pages.json index f02f11e..698b637 100644 --- a/pages.json +++ b/pages.json @@ -20,7 +20,9 @@ { "path": "pages/menu/token/btc/index", "style": { - "navigationStyle": "custom" + "navigationStyle": "custom", + "enablePullDownRefresh": true, + "onReachBottomDistance": 10 } }, @@ -56,7 +58,9 @@ { "path": "pages/menu/collection/index", "style": { - "navigationStyle": "custom" + "navigationStyle": "custom", + "enablePullDownRefresh": true, + "onReachBottomDistance": 10 } }, diff --git a/pages/menu/collection/index.css b/pages/menu/collection/index.css index 7173a5a..c88bb88 100644 --- a/pages/menu/collection/index.css +++ b/pages/menu/collection/index.css @@ -30,8 +30,6 @@ page { background: #fff; border-radius: 24rpx; box-shadow: 0 18rpx 18rpx 18rpx #EAEDF0; - max-height: 1200rpx; - overflow-y: scroll; } .title { diff --git a/pages/menu/collection/index.vue b/pages/menu/collection/index.vue index cec3b87..8160e64 100644 --- a/pages/menu/collection/index.vue +++ b/pages/menu/collection/index.vue @@ -5,7 +5,7 @@ - + @@ -25,7 +25,7 @@ - + @@ -101,13 +101,15 @@ return this.$t('index') }, }, - // onPullDownRefresh() { - // console.log('refresh'); - // this.getCollection(); - // setTimeout(function() { - // uni.stopPullDownRefresh(); - // }, 500); - // }, + + onPullDownRefresh() { + console.log('refresh'); + this.getCollection(); + setTimeout(function() { + uni.stopPullDownRefresh(); + }, 500); + }, + methods: { showMsg(item,index){ this.test=item diff --git a/pages/menu/token/btc/index.vue b/pages/menu/token/btc/index.vue index 721d3b0..8240359 100644 --- a/pages/menu/token/btc/index.vue +++ b/pages/menu/token/btc/index.vue @@ -52,7 +52,7 @@ - + @@ -147,6 +147,13 @@ return this.$t('index') }, }, + onPullDownRefresh() { + console.log('refresh'); + this.getWalletInfo(); + setTimeout(function() { + uni.stopPullDownRefresh(); + }, 500); + }, methods: { back() { uni.reLaunch({ diff --git a/pages/menu/transction/detail/index.vue b/pages/menu/transction/detail/index.vue index c5cdf71..8966a14 100644 --- a/pages/menu/transction/detail/index.vue +++ b/pages/menu/transction/detail/index.vue @@ -68,11 +68,11 @@ {{info.toAddress}} - + - + {{i18n.moreinformation}}