|
|
|
@ -25,6 +25,10 @@
|
|
|
|
|
:scroll-y="true" |
|
|
|
|
:style="{ maxHeight: `${viewHeigth}px` }" |
|
|
|
|
class="view" |
|
|
|
|
:refresher-enabled="true" |
|
|
|
|
@refresherrefresh="refresherrefresh" |
|
|
|
|
:refresher-triggered="refresherTriggered" |
|
|
|
|
@refresherpulling="refresherpulling" |
|
|
|
|
> |
|
|
|
|
<view class="box row-1"> |
|
|
|
|
<view class="wd-flex" style="justify-content: space-around"> |
|
|
|
@ -205,6 +209,7 @@ export default {
|
|
|
|
|
type: 2 |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
refresherTriggered: false, |
|
|
|
|
list: [], |
|
|
|
|
color: ['#1B84FF', '#7239EA', '#F6B100', '#F8285A', '#17C653'] |
|
|
|
|
} |
|
|
|
@ -222,6 +227,9 @@ export default {
|
|
|
|
|
this.getPageHeight() |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
onShow() { |
|
|
|
|
this.init() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
getPageHeight() { |
|
|
|
|
const query = uni.createSelectorQuery().in(this) |
|
|
|
@ -362,6 +370,18 @@ export default {
|
|
|
|
|
changeTab(type) { |
|
|
|
|
this.queryParams.type = type |
|
|
|
|
this.getList() |
|
|
|
|
}, |
|
|
|
|
refresherpulling() { |
|
|
|
|
const that = this |
|
|
|
|
if (!this.refresherTriggered) { |
|
|
|
|
this.refresherTriggered = true |
|
|
|
|
setTimeout(() => { |
|
|
|
|
that.refresherTriggered = false |
|
|
|
|
}, 1000) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
refresherrefresh() { |
|
|
|
|
this.init() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|