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/product/list/list.vue |   35 ++++++++++++++++++++++++++++++-----
 1 files changed, 30 insertions(+), 5 deletions(-)

diff --git a/mobile/pages/product/list/list.vue b/mobile/pages/product/list/list.vue
index c255832..40663bd 100644
--- a/mobile/pages/product/list/list.vue
+++ b/mobile/pages/product/list/list.vue
@@ -74,8 +74,11 @@
 								<view class="shop_body_t_item_info_others_sales">累计成交:{{item.product_sales}}笔</view>
 							</view> -->
 							<view class="shop_body_t_item_info_price">
-								<view class="f20 redF6">¥<text class="f32">{{item.product_price}}</text></view>
-								<view class="f20 huaxianjia">¥<text class="24">{{item.line_price}}</text></view>
+								<view class="f20 redF6" v-if="item.is_price_negotiable">价格面议</view>
+								<template v-else>
+									<view class="f20 redF6">¥<text class="f32">{{item.product_price}}</text></view>
+									<view class="f20 huaxianjia">¥<text class="24">{{item.line_price}}</text></view>
+								</template>
 							</view>
 							<!-- 购物车操作组件 -->
 							<view class="cart-action">
@@ -213,9 +216,6 @@
 				selectedProduct: null,
 				selectedSpecs: [],
 				quantity: 1,
-				page: 1,
-				last_page: 1,
-				category_id: 0,
 			};
 		},
 		computed: {
@@ -404,6 +404,31 @@
 				}
 			},
 
+			// 处理列表项购物车操作
+			handleListItemCartAction(product, index) {
+				// 如果是价格面议商品,提示联系客服
+				if (product.is_price_negotiable) {
+					uni.showModal({
+						title: '温馨提示',
+						content: '该商品为价格面议商品,请联系客服咨询具体价格',
+						confirmText: '联系客服',
+						cancelText: '取消',
+						success: (res) => {
+							if (res.confirm) {
+								// 这里可以跳转到客服页面或显示联系方式
+								uni.showToast({
+									title: '请联系客服咨询',
+									icon: 'none'
+								});
+							}
+						}
+					});
+				} else {
+					// 非价格面议商品,正常添加到购物车
+					this.directlyAddToCart(product, index);
+				}
+			},
+
 			// 添加到购物车(单规格商品)
 			addToCart(product, index) {
 				this.directlyAddToCart(product, index);

--
Gitblit v1.9.2