diff --git a/pages/template/long-list/long-list-page.uvue b/pages/template/long-list/long-list-page.uvue
index 25226c6403c6ca05c15bf9ef985573a6475739cb..2a75257656736b8576d76051999d23e65c85d6d8 100644
--- a/pages/template/long-list/long-list-page.uvue
+++ b/pages/template/long-list/long-list-page.uvue
@@ -14,7 +14,7 @@
{{item.plugin_intro}}
- {{convertToStarUnicode(item.score)}}
+ {{convertToStarUnicode(item.score)}}
{{item2}}
@@ -87,6 +87,7 @@
},
},
created() {
+ // TODO 后续通过css加载本地路径
uni.loadFontFace({
global: false,
family: 'UtsIconsFontFamily',
@@ -94,16 +95,19 @@
})
if (this.preload) {
- this.loadData()
+ this.loadData(null)
}
},
methods: {
refreshData() {
this.dataList.length = 0
this.$currentPage = 1
- this.loadData()
+ this.loadData(() => {
+ // TODO
+ uni.stopPullDownRefresh()
+ })
},
- loadData() {
+ loadData(oncomplete : (() => void) | null) {
if (this.loading || this.isEnded) {
return
}
@@ -135,8 +139,9 @@
},
complete: () => {
this.loading = false
- // TODO
- uni.stopPullDownRefresh()
+ if (oncomplete != null) {
+ oncomplete()
+ }
}
})
},
@@ -162,6 +167,13 @@
\ No newline at end of file
+