From 0e1bce71603c5cbb92b3fe6387c87430528d18a9 Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期二, 18 七月 2023 16:14:45 +0800
Subject: [PATCH] no message

---
 uniapp/components/indexPage.vue |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/uniapp/components/indexPage.vue b/uniapp/components/indexPage.vue
index b0ccdaf..b508431 100644
--- a/uniapp/components/indexPage.vue
+++ b/uniapp/components/indexPage.vue
@@ -580,6 +580,7 @@
 				}
 				this.$u.api.checkPreferenceGoods({
 				}).then(e => {
+					console.log(e);
 					if(e.code != 0)
 					{
 						that.currentPage = 1;
@@ -845,7 +846,7 @@
 					this.loadingState = false
 					var that = this;
 					
-					if(that.currentPage==7&&that.preferData)
+					if(that.bottomType==7&&that.preferData)
 					{//鐚滀綘鍠滄
 						this.$u.api.gussessLikeGoods({
 							platefrom:that.preferData.p_platefrom,
@@ -853,7 +854,18 @@
 							pageId:this.currentPage,
 							pageSize:10
 						}).then(e=>{
-							console.log(e)
+							console.log(e);
+							if (e.code != 0) return that.$alert(e.msg)
+							var res = e.data.list;
+							if (res.length < 10) {
+								that.loadingState = false
+								that.loadstatus = 'normal'
+							} else {
+								that.currentPage++
+								that.loadstatus = 'loading'
+								that.loadingState = true
+							}
+							that.bottomGoodsList = that.bottomGoodsList.concat(res);
 						})
 					}
 					else{

--
Gitblit v1.9.3