|
@@ -88,7 +88,7 @@ export default class Index extends Component {
|
88
|
88
|
}
|
89
|
89
|
}
|
90
|
90
|
|
91
|
|
- onPullDownRefresh = async (rest) => {
|
|
91
|
+ onListPullDownRefresh = async (rest) => {
|
92
|
92
|
// debugger
|
93
|
93
|
if (this.refreshing) return
|
94
|
94
|
this.refreshing = true
|
|
@@ -101,6 +101,7 @@ export default class Index extends Component {
|
101
|
101
|
hasMore: _list.length >= total ? false : true,
|
102
|
102
|
pageIndex: 1
|
103
|
103
|
})
|
|
104
|
+ // debugger
|
104
|
105
|
rest && rest()
|
105
|
106
|
|
106
|
107
|
this.refreshing = false
|
|
@@ -129,7 +130,7 @@ export default class Index extends Component {
|
129
|
130
|
isEmpty={isEmpty}
|
130
|
131
|
emptyText="暂无活动~"
|
131
|
132
|
hasMore={hasMore}
|
132
|
|
- onPullDownRefresh={fn => this.onPullDownRefresh(fn)}
|
|
133
|
+ onPullDownRefresh={fn => this.onListPullDownRefresh(fn)}
|
133
|
134
|
onScrollToLower={fn => this.onScrollToLower(fn)}
|
134
|
135
|
>
|
135
|
136
|
<View className="list">
|