소스 검색

bugcommit

zhengjinyi 4 년 전
부모
커밋
b2a560d8bc
1개의 변경된 파일4개의 추가작업 그리고 11개의 파일을 삭제
  1. 4 11
      seller/pages/cart/cart.vue

+ 4 - 11
seller/pages/cart/cart.vue

@@ -611,17 +611,12 @@
 					console.log(productIdList)
 					const isHasDepositlds = productIdList.filter(item =>this.depositIds.includes(item))
 					const isHasRechargeIds = productIdList.filter(item =>this.rechargeIds.includes(item))
+					const isGoods= productIdList.every(item =>{ [...this.depositIds,...this.rechargeIds].includes(item)}) 
 					console.log(isHasDepositlds)
 					console.log(isHasRechargeIds)
-					if(isHasDepositlds.length == 1){
-						productIdList.forEach(item =>{
-							productID += item +','
-						})
-					}else{
-						this.$util.modal('提示','缴纳定金商品或余额充值商品请单独下单!','确定','',false,() =>{})
-						return
-					}
-					if(isHasRechargeIds.length == 1){
+					console.log(isGoods)
+					
+					if(isHasDepositlds.length === 1 || isHasRechargeIds.length === 1 && isGoods){
 						productIdList.forEach(item =>{
 							productID += item +','
 						})
@@ -629,8 +624,6 @@
 						this.$util.modal('提示','缴纳定金商品或余额充值商品请单独下单!','确定','',false,() =>{})
 						return
 					}
-					
-					
 					let cartPramsData={
 							clubId:this.clubId,
 							allPrice:this.allPrice,