Administrator 4 år sedan
förälder
incheckning
ef338fc520
2 ändrade filer med 16 tillägg och 16 borttagningar
  1. 2 2
      components/cm-module/productDetails/second-attributes.vue
  2. 14 14
      seller/pages/cart/second.vue

+ 2 - 2
components/cm-module/productDetails/second-attributes.vue

@@ -7,8 +7,8 @@
 				<view class="info-viewL tui-skeleton-fillet">分类:<text>{{product.typeStr}}</text></view>
 				<view class="info-viewL tui-skeleton-fillet">商品成色:<text>{{product.productQuality}}</text></view>
 				<view class="info-viewL tui-skeleton-fillet" v-if="product.fixedYears!=''">出厂日期:<text>{{product.fixedYears}}</text></view>
-				<view class="info-viewL tui-skeleton-fillet" v-if="product.contactName!=''">联系人:<text>{{product.contactName}}</text></view>
-				<view class="info-viewL tui-skeleton-fillet" v-if="product.contactMobile!=''">联系方式:<text>{{product.contactMobile}}</text></view>
+				<view class="info-viewL tui-skeleton-fillet" v-if="product.showContactFlag==2">联系人:<text>{{product.contactName}}</text></view>
+				<view class="info-viewL tui-skeleton-fillet" v-if="product.showContactFlag==2">联系方式:<text>{{product.contactMobile}}</text></view>
 				<view class="info-viewL tui-skeleton-fillet" v-if="product.productType!=null||product.productType!=''">商品类型:<text v-if="product.productType==1">医美</text><text v-else>非医美</text></view>
 			</view>
 			<view class="info-viewT" :class="goodsData.isNoneDisabled ? 'none' : ''" v-if="product.secondHandType==2">

+ 14 - 14
seller/pages/cart/second.vue

@@ -99,15 +99,15 @@
 			},
 			changeCountAdd(){//popup弹窗数量增加按钮
 				if(this.handleData.secondHandType == 2||this.handleData.secondHandType == 3){
-					if(this.number >= this.handleData.stock){
-						this.number= this.handleData.stock
-						this.isStock =true
-						this.$util.msg(`购买数量最高为${this.handleData.stock}`,2000);
-						return
-					}else{
+					// if(this.number >= this.handleData.stock){
+					// 	this.number= this.handleData.stock
+					// 	this.isStock =true
+					// 	this.$util.msg(`购买数量最高为${this.handleData.stock}`,2000);
+					// 	return
+					// }else{
 						this.number++
 						this.isQuantity =false
-					}
+					// }
 					this.buyRetailPrice = this.number*this.handleData.price1
 				}else{
 					this.isStock =true
@@ -116,15 +116,15 @@
 			},
 			changeCountSub(){//popup弹窗数量减按钮
 				if(this.handleData.secondHandType == 2||this.handleData.secondHandType == 3){
-					if(this.number <= 1){
-						this.number= 1
-						this.isQuantity =true
-						this.$util.msg(`购买数量最低为1`,2000);
-						return
-					}else{
+					// if(this.number <= 1){
+					// 	this.number= 1
+					// 	this.isQuantity =true
+					// 	this.$util.msg(`购买数量最低为1`,2000);
+					// 	return
+					// }else{
 						this.number--
 						this.isQuantity =false
-					}
+					// }
 					this.buyRetailPrice = this.number*this.handleData.price1
 				}else{
 					this.isQuantity =true