From a4b3ee325c7354579d495bc74a777e494e5ec38c Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Fri, 06 Feb 2026 18:18:44 +0800
Subject: [PATCH] 商品可以价格面议 选择走访时显示输入走访企业名 分会添加活动时要总会审核 分类添加人数限制,添加活动选择了填写人数限制的分类时活动名额下显示该分类人数限制为15 同一个企业30天内只能走访一次,在30天内走访同一个企业时提示该企业已被走访xx天后才可以从新走访

---
 mobile/pages/shop/group_buying_list.vue |   49 ++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 38 insertions(+), 11 deletions(-)

diff --git a/mobile/pages/shop/group_buying_list.vue b/mobile/pages/shop/group_buying_list.vue
index 0ca9495..e6bb607 100644
--- a/mobile/pages/shop/group_buying_list.vue
+++ b/mobile/pages/shop/group_buying_list.vue
@@ -141,6 +141,7 @@
 				screenWidth: 0,
 				currentIndex: 0,
 				category_id: '',
+				is_category: true,
 				store_open: false
 			};
 		},
@@ -167,8 +168,18 @@
 			this.restoreData();
 			// 获取分类 by lyzflash
 			this.getCategory();
-			/*获取订单列表*/
-			this.getData();
+			if (!this.category_id) {
+				/*获取订单列表*/
+				this.getData();
+			}
+
+		},
+		onLoad(option) {
+			let self = this;
+			self.category_id = option.category_id;
+			if (self.category_id) {
+				self.is_category = false;
+			}
 		},
 		methods: {
 			/*初始化*/
@@ -180,7 +191,6 @@
 						// 计算组件的高度
 						let view = uni.createSelectorQuery().in(self).select('.top-box');
 						view.boundingClientRect(data => {
-							console.log(data)
 							let h = self.phoneHeight - data.height;
 							self.scrollviewHigh = h;
 						}).exec();
@@ -194,7 +204,9 @@
 				this.page = 1;
 				this.no_more = false;
 				this.loading = true;
-				this.category_id = 0;
+				if (this.is_category) {
+					this.category_id = 0;
+				}
 				this.searchtxt = '';
 				this.sortType = '';
 				this.sortPrice = 0;
@@ -248,8 +260,23 @@
 			/*获取分类*/
 			getCategory() {
 				let self = this;
-				self._post('supplier.index/category', {category_type:20}, (res) => {
+				self._post('supplier.index/category', {
+					/* category_type: 20 */
+				}, (res) => {
 					self.category = res.data.category;
+					if (self.category_id) {
+						self.calculateWindowWidth();
+						setTimeout(function() {
+							self.calculateItemWidth();
+						}, 100)
+						setTimeout(function() {
+							self.category.forEach(function(item, index) {
+								if (item.category_id == self.category_id) {
+									self.tabChange(index)
+								}
+							})
+						}, 500);
+					}
 				})
 			},
 			onRefresh() {
@@ -288,7 +315,7 @@
 
 			//跳转店铺首页
 			goto_shop(shop_supplier_id) {
-				uni.setStorageSync('shop_supplier_id',shop_supplier_id)
+				uni.setStorageSync('shop_supplier_id', shop_supplier_id)
 				this.gotoPage('/pages/shop/shop?shop_supplier_id=' + shop_supplier_id);
 			},
 			//跳转商品页面
@@ -718,11 +745,11 @@
 		align-items: center;
 		justify-content: space-between;
 		width: 100%; */
-    display: -webkit-box;
-    -webkit-box-orient: vertical;
-    -webkit-line-clamp: 2;
-    overflow: hidden;
-    word-wrap: break-word;
+		display: -webkit-box;
+		-webkit-box-orient: vertical;
+		-webkit-line-clamp: 2;
+		overflow: hidden;
+		word-wrap: break-word;
 	}
 
 	.address-text {

--
Gitblit v1.9.2