Jelajahi Sumber

取消商品分组必填校验

lishanshan 8 bulan lalu
induk
melakukan
561bf397d2
1 mengubah file dengan 10 tambahan dan 9 penghapusan
  1. 10 9
      pages/product/creatProduct.vue

+ 10 - 9
pages/product/creatProduct.vue

@@ -44,7 +44,8 @@
 					</u-form-item> -->
 				<view class="item">
 					<view class="label">
-						商品分组<span v-if="tabIndex == '0'">*</span>
+						商品分组
+						<!-- <span v-if="tabIndex == '0'">*</span> -->
 					</view>
 					<view class="picker" @click="selectGrouping">
 						<span v-if="form.groupingName == ''">请选择</span>
@@ -760,13 +761,13 @@ export default {
 				});
 				return
 			}
-			if (this.tabIndex == '0' && !this.form.groupingId) {
-				uni.showToast({
-					title: '请选择商品分组',
-					icon: 'none'
-				});
-				return
-			}
+			// if (this.tabIndex == '0' && !this.form.groupingId) {
+			// 	uni.showToast({
+			// 		title: '请选择商品分组',
+			// 		icon: 'none'
+			// 	});
+			// 	return
+			// }
 			if (!this.form.productImage) {
 				uni.showToast({
 					title: '请上传商品封面图',
@@ -1164,7 +1165,7 @@ export default {
 			// 	});
 			// 	return
 			// }
-			if (!this.form.price) {
+			if (!this.form.soldPrice) {
 				uni.showToast({
 					title: '请输入商品售价',
 					icon: 'none'