From cd4bef91c2797f80480dd52e54d98032b31d42d5 Mon Sep 17 00:00:00 2001 From: linxi Date: Fri, 27 Dec 2024 17:24:16 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A2958=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E7=82=B9=E5=87=BB=E2=80=9C?= =?UTF-8?q?=E6=8D=A2=E4=B8=80=E6=8D=A2=E2=80=9D=EF=BC=8C=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=BA=97=E9=93=BA=E5=88=97=E8=A1=A8=E5=87=BA=E7=8E=B0=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E5=BA=97=E9=93=BA=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/cloud/haveFun.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/cloud/haveFun.vue b/pages/cloud/haveFun.vue index a4f3647..c7f24d7 100644 --- a/pages/cloud/haveFun.vue +++ b/pages/cloud/haveFun.vue @@ -208,7 +208,8 @@ export default { // 后端接口结构需要调整下,需要补充总页数,前端可判断当前页数大于等于总页数则不发送网络请求 if(this.isNext) { this.page++ - this.fetchList() + const random = this.randomSeed ? 1 : 0 + this.fetchList(random, this.randomSeed) } }, onLoad() { @@ -246,6 +247,7 @@ export default { handleRefresh() { uni.showLoading() this.page = 1 + this.hotelList = [] this.fetchList(1, this.randomSeed) }, toTown(town) { @@ -283,7 +285,7 @@ export default { if (this.typeIndex === index) return this.typeIndex = index - + this.randomSeed = null this.currType = index === -1 ? {} : this.typeList[index] this.name = '' this.search() @@ -322,7 +324,6 @@ export default { if (success) { if(random === 1) { this.randomSeed = msg - this.hotelList = [] } for (let i = 0; i < data.length; i++) { const cover = data[i].cover