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/detail/detail.vue |   41 +++++++++++++++++++++++++++++++++--------
 1 files changed, 33 insertions(+), 8 deletions(-)

diff --git a/mobile/pages/product/detail/detail.vue b/mobile/pages/product/detail/detail.vue
index 6ffe43a..3277740 100644
--- a/mobile/pages/product/detail/detail.vue
+++ b/mobile/pages/product/detail/detail.vue
@@ -104,13 +104,16 @@
 						<view class="d-s-c pr ww100 mb16">
 							<view class="new-price theme-price">
 								<text class="fn mr10" v-if="detail.is_user_grade">会员价</text>
-								<text>¥</text>
-								<text class="num">{{ detail.product_sku.product_price }}</text>
-								<text class="num" v-if="detail.spec_type == 20 && detail.product_sku.product_price != detail.product_max_price">
-									-{{ detail.product_max_price }}
-								</text>
+								<text v-if="detail.is_price_negotiable">价格面议</text>
+								<template v-else>
+									<text>¥</text>
+									<text class="num">{{ detail.product_sku.product_price }}</text>
+									<text class="num" v-if="detail.spec_type == 20 && detail.product_sku.product_price != detail.product_max_price">
+										-{{ detail.product_max_price }}
+									</text>
+								</template>
 							</view>
-							<text v-if="underline_price_show" class="old-price ">¥{{ detail.product_sku.line_price }}</text>
+							<text v-if="underline_price_show && !detail.is_price_negotiable" class="old-price ">¥{{ detail.product_sku.line_price }}</text>
 							<!--分享-->
 							<view class="share-box">
 								<button @click="showShare">
@@ -313,9 +316,9 @@
 					<button class="add-cart-no" style="border-radius: 40rpx;margin-right: 20rpx;">暂未开始售卖</button>
 				</template>
 				<template v-else>
-					<button v-if="!room_id == true && !is_virtual && !ispresale" class="add-cart" @click="openPopup('card')">加入购物车</button>
+					<button v-if="!room_id == true && !is_virtual && !ispresale" class="add-cart" @click="handlePriceNegotiableAction('card')">加入购物车</button>
 					<button v-else class="add-cart-no">加入购物车</button>
-					<button class="buy" v-if="!ispresale" @click="openPopup('order')">立即购买</button>
+					<button class="buy" v-if="!ispresale" @click="handlePriceNegotiableAction('order')">立即购买</button>
 					<button class="buy ispresale" v-else @click="openPopup('deposit')">
 						<template v-if="activeName == 'advance'">
 							<view class="f28">支付定金</view>
@@ -846,6 +849,27 @@
 			}
 		},
 
+		/*处理价格面议商品的操作*/
+		handlePriceNegotiableAction(actionType) {
+			// 如果是价格面议商品,提示联系客服
+			if (this.detail.is_price_negotiable) {
+				uni.showModal({
+					title: '温馨提示',
+					content: '该商品为价格面议商品,请联系客服咨询具体价格',
+					confirmText: '联系客服',
+					cancelText: '取消',
+					success: (res) => {
+						if (res.confirm) {
+							this.openService();
+						}
+					}
+				});
+			} else {
+				// 非价格面议商品,正常执行原逻辑
+				this.openPopup(actionType);
+			}
+		},
+		
 		/*关闭客服*/
 		closeMpservice() {
 			this.isMpservice = false;
@@ -860,6 +884,7 @@
 			if(store_id){
 				this.gotoPage('pages2/goodstore/detail?store_id=' + store_id);
 			}else{
+				uni.setStorageSync('shop_supplier_id',self.shop_supplier_id)
 				self.gotoPage('/pages/shop/shop?shop_supplier_id=' + self.shop_supplier_id);
 			}
 			

--
Gitblit v1.9.2