From b44e169dd8a6e0f15d3788970176922e96aec6e1 Mon Sep 17 00:00:00 2001
From: zhao_js <349234519@qq.com>
Date: 星期三, 15 十一月 2023 09:55:33 +0800
Subject: [PATCH] no message

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

diff --git a/uniapp/components/indexPage.vue b/uniapp/components/indexPage.vue
index b0ccdaf..021cf19 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;
@@ -796,6 +797,7 @@
 				var that = this;
 				if(type==7&&that.preferData)
 				{//鐚滀綘鍠滄
+				console.log(that.preferData);
 					this.$u.api.gussessLikeGoods({
 						platefrom:that.preferData.p_platefrom,
 						cids:that.preferData.p_cids,
@@ -845,7 +847,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 +855,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