更新检验报告页面、版本号2.1.0(5)、首页活动改为下拉刷新
diff --git a/pages/sub_tabbar/active.vue b/pages/sub_tabbar/active.vue
index 3dfd6b1..3f6b446 100644
--- a/pages/sub_tabbar/active.vue
+++ b/pages/sub_tabbar/active.vue
@@ -119,27 +119,32 @@
totalPageOff: ""
}
},
- onShow() {
+ async onPullDownRefresh(){
let that = this
- // #ifdef APP-PLUS
- let stopShowTwice = uni.getStorageSync("stopShowTwice")
- if (stopShowTwice) {
- return false
- }
- // #endif
+ // // #ifdef APP-PLUS
+ // let stopShowTwice = uni.getStorageSync("stopShowTwice")
+ // if (stopShowTwice) {
+ // return false
+ // }
+ // // #endif
let token = uni.getStorageSync('token')
that.pagenoOn = 1
that.list[0].list = []
that.pagenoOff = 1
that.list[1].list = []
- that.getActivity(1, "OnlineActivities")
- that.getActivity(1, "OfflineActivities")
- // #ifdef APP-PLUS
- uni.setStorageSync("stopShowTwice", true)
- // #endif
+ await that.getActivity(1, "OnlineActivities")
+ await that.getActivity(1, "OfflineActivities")
+ // // #ifdef APP-PLUS
+ // uni.setStorageSync("stopShowTwice", true)
+ // // #endif
if (token) {
that.getIntegralStatus()
}
+ uni.stopPullDownRefresh()
+ },
+ onLoad() {
+ this.getActivity(1, "OnlineActivities")
+ this.getActivity(1, "OfflineActivities")
},
methods: {
getActivity(no, code) {