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/user/my_shop/pro_admin.vue |   61 ++++++++++++++++++++++++++----
 1 files changed, 53 insertions(+), 8 deletions(-)

diff --git a/mobile/pages/user/my_shop/pro_admin.vue b/mobile/pages/user/my_shop/pro_admin.vue
index 9a0a28b..1dc5648 100644
--- a/mobile/pages/user/my_shop/pro_admin.vue
+++ b/mobile/pages/user/my_shop/pro_admin.vue
@@ -1,6 +1,6 @@
 <template>
 	<view class="prodcut-list-wrap">
-		<scroll-view scroll-y="true" :style="'height:' + scrollviewHigh + 'px;'" class="scroll-Y" lower-threshold="50"
+		<scroll-view scroll-y="true" :style="'height:' + (scrollviewHigh - 120) + 'px;'" class="scroll-Y" lower-threshold="50"
 		 @scrolltolower="scrolltolowerFunc">
 			<view class="shop">
 				<view class="shop_head">
@@ -19,14 +19,15 @@
 				<view class="shop_body" v-if="!loading">
 					<view class="shop_body_l_item" v-for="(item,index) in product_list" :key="index" >
 						<view class="d-s-c mb20">
-							<view class="shop_body_l_item_img">
+							<view class="shop_body_l_item_img" @click="editProduct(item.product_id)">
 								<image class="item_img" :src="item.product_image" mode="aspectFill"></image>
 							</view>
 							<view class=" flex-1">
-								<view class="shop_body_l_item_info_title h1">{{item.product_name}}</view>
+								<view class="shop_body_l_item_info_title h1" @click="editProduct(item.product_id)">{{item.product_name}}</view>
 								<view class="shop_body_l_item_info_price h2 red">¥<text class="h1">{{item.product_price}}</text></view>
 								<view class="d-b-c">
 									<view>库存:{{item.product_stock}}</view>
+									<button class='shop_body_b_btn edit-btn' @click="editProduct(item.product_id)">编辑</button>
 									<button v-if="type_active=='sell'" type="warn" class='shop_body_b_btn' @click="operation(item.product_id,20)">下架</button>
 									<text v-if="type_active=='audit'" class="audit_txt">审核中</text>
 									<button v-if="type_active=='lower'" type="warn" class='shop_body_b_btn' @click="operation(item.product_id,10)">上架</button>
@@ -35,13 +36,18 @@
 						</view>
 					</view>
 				</view>
+				<view class="d-c-c p30" v-if="product_list.length==0 && !loading">
+					<text class="iconfont icon-wushuju"></text>
+					<text class="cont">亲,暂无相关记录哦</text>
+				</view>
+				<uni-load-more v-else :loadingType="loadingType"></uni-load-more>
 			</view>
-			<view class="d-c-c p30" v-if="product_list.length==0 && !loading">
-				<text class="iconfont icon-wushuju"></text>
-				<text class="cont">亲,暂无相关记录哦</text>
-			</view>
-			<uni-load-more v-else :loadingType="loadingType"></uni-load-more>
 		</scroll-view>
+		
+		<!-- 添加商品按钮 -->
+		<view class="add-product-btn" @click="addProduct">
+			<text class="btn-text">+ 添加商品</text>
+		</view>
 	</view>
 </template>
 
@@ -202,6 +208,20 @@
 					self.getData(self.type_active);
 					
 				})
+			},
+			
+			// 添加商品
+			addProduct() {
+				uni.navigateTo({
+					url: '/pages/user/my_shop/product_add?shop_supplier_id=' + this.shop_supplier_id
+				});
+			},
+			
+			// 编辑商品
+			editProduct(product_id) {
+				uni.navigateTo({
+					url: '/pages/user/my_shop/product_edit?product_id=' + product_id + '&shop_supplier_id=' + this.shop_supplier_id
+				});
 			}
 		}
 	}
@@ -674,4 +694,29 @@
 		font-size: 23rpx;
 		margin-right: 26rpx;
 	}
+	
+	/* 添加商品按钮样式 */
+	.add-product-btn {
+		width: 90%;
+		height: 70rpx;
+		background-color: #e62423;
+		color: #fff;
+		border-radius: 35rpx;
+		display: flex;
+		align-items: center;
+		justify-content: center;
+		margin: 20rpx auto;
+		font-size: 28rpx;
+		box-shadow: 0 4rpx 10rpx rgba(230, 36, 35, 0.3);
+	}
+	
+	.btn-text {
+		color: #fff;
+	}
+	
+	/* 编辑按钮样式 */
+	.edit-btn {
+		background-color: #409eff;
+		color: #fff;
+	}
 </style>

--
Gitblit v1.9.2