From fb14fa911bde1ed360fe89a1c41d74b158db9ab5 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期五, 09 八月 2024 15:26:28 +0800
Subject: [PATCH] update 花店样式等

---
 sub_pages/customer/self/follow.vue |   23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/sub_pages/customer/self/follow.vue b/sub_pages/customer/self/follow.vue
index 93e1e86..4d8cba1 100644
--- a/sub_pages/customer/self/follow.vue
+++ b/sub_pages/customer/self/follow.vue
@@ -39,7 +39,7 @@
 		methods: {
 			toDetail(item) {
 				uni.navigateTo({
-					url: '/sub_pages/customer/shop/shop?id=' + (item.id || '')
+					url: '/sub_pages/customer/shop/shop?id=' + (item.supplierId || '')
 				})
 			},
 			async clearFollow(item) {
@@ -48,28 +48,31 @@
 					code
 				} = await this.$http.request('get', `/api/follow/delete`, {
 					params: {
-						supplierId: item.id
+						supplierId: item.supplierId
 					}
 				})
 				this.$message.hideLoading()
 				if (code === 0) {
 					//删除list里的本元素
-					for (var i = 0; i < this.list.length; i++) {
-						if (this.list[i].id === item.id) {
-							this.list.splice(i, 1)
-						}
-					}
+					// for (var i = 0; i < this.list.length; i++) {
+					// 	if (this.list[i].id === item.id) {
+					// 		this.list.splice(i, 1)
+					// 	}
+					// }
+					this.refreshList()
 				}
 			},
-			getList_after() {
-				// uni.
-			}
+			// getList_after() {
+			// 	// uni.
+			// }
 		}
 	}
 </script>
 
 <style lang="scss" scoped>
 	.follow-page {
+		min-height: 99vh;
+		
 		.follow-item {
 			padding: 30rpx;
 			background-color: #FFFFFF;

--
Gitblit v1.9.3