Преглед изворни кода

商品分组增加判断只有美食展示

lishanshan пре 8 месеци
родитељ
комит
fda6425841
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 2 2
      pages/product/creatProduct.vue
  2. 1 1
      pages/product/details.vue

+ 2 - 2
pages/product/creatProduct.vue

@@ -42,7 +42,7 @@
 							border="none"></u--input>
 						<u-icon slot="right" name="arrow-right"></u-icon>
 					</u-form-item> -->
-				<view class="item">
+				<view v-if="form.categoryId === '1889837829066899458'" class="item">
 					<view class="label">
 						商品分组<span v-if="tabIndex == '0'">*</span>
 					</view>
@@ -760,7 +760,7 @@ export default {
 				});
 				return
 			}
-			if (this.tabIndex == '0' && !this.form.groupingId) {
+			if (this.tabIndex == '0' && this.form.categoryId === '1889837829066899458' && !this.form.groupingId) {
 				uni.showToast({
 					title: '请选择商品分组',
 					icon: 'none'

+ 1 - 1
pages/product/details.vue

@@ -20,7 +20,7 @@
 				<view class="data">
 					<span class="span">商品分类</span>{{ form.productCategory }}
 				</view>
-				<view class="data">
+				<view v-if="form.categoryId === '1889837829066899458'" class="data">
 					<span class="span">商品分组</span>{{ form.groupingName }}
 				</view>
 				<view class="img_box">