From 36f06756899f71148bbf3f45928393d5c0222cb4 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Thu, 27 Aug 2020 12:15:55 +0800 Subject: [PATCH] 1 --- pages/index/index.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 6888b10..9f6e93b 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -262,7 +262,8 @@ loading: '努力加载中', nomore: '实在没有了' }, - refresher:true + refresher:true, + zqie:false } }, components: { @@ -354,7 +355,11 @@ tabLiveList() { uni.showLoading({ title: "loading..." - }) + }) + if(this.zqie){ + return ; + } + this.zqie = true; this.$u.api.tabLiveList({page:this.live_page}).then((res) => { // uni.stopPullDownRefresh(); this.status_live = "loading"; @@ -371,6 +376,7 @@ } else if (res.data.data.length == 0 && this.live_page > 1) { this.status_live = "nomore"; } else { + console.log(this.live_page,1223) this.tabLiveLists = this.tabLiveLists.concat(res.data.data); console.log(this.tabLiveLists) } @@ -381,6 +387,8 @@ } else { this.status_live = "nomore" } + this.zqie = false; + }) },