Administrator 4 lat temu
rodzic
commit
85e27e6f17

+ 4 - 1
components/cm-module/listTemplate/secondHand.vue

@@ -281,7 +281,10 @@
 				this.screenTab = index
 				this.isTabIndexSelect = false
 				this.tabIndexSelectText = item
-				this.instrumentType = index+1
+				this.instrumentType = index
+				if(index==0){
+					this.instrumentType=''
+				}
 				this.getProductAgainInfo();
 			},
 			toFixedFn(text){//处理小数点后两位数

+ 1 - 3
components/cm-module/productDetails/recommend.vue

@@ -51,14 +51,12 @@
 			}
 		},
 		created() {
-				
 			this.productID = this.queryProductid
 			this.infoRecommend(this.queryProductid)
 		},
 		methods:{
 			infoRecommend(id){
-				
-				this.SellerService.ProductRecommend({productId:5232}).then(response =>{
+				this.SellerService.ProductRecommend({productId:id}).then(response =>{
 					console.log(response)
 					if( response.data && response.data.length > 0){
 						this.isEmpty = false

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

@@ -5,11 +5,11 @@
 			<view class="info-viewT" :class="goodsData.isNoneDisabled ? 'none' : ''">
 				<view class="info-viewL tui-skeleton-fillet">品牌:<text>{{product.brandName}}</text></view>
 				<view class="info-viewL tui-skeleton-fillet">分类:<text>{{product.typeStr}}</text></view>
-				<view class="info-viewL tui-skeleton-fillet">出厂日期:<text>{{product.fixedYears}}</text></view>
 				<view class="info-viewL tui-skeleton-fillet">商品成色:<text>{{product.productQuality}}</text></view>
-				<view class="info-viewL tui-skeleton-fillet">联系人:<text>{{product.contactName}}</text></view>
-				<view class="info-viewL tui-skeleton-fillet">联系方式:<text>{{product.contactMobile}}</text></view>
-				<view class="info-viewL tui-skeleton-fillet">商品类型:<text v-if="product.productType==1">医美</text><text v-else>非医美</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.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">
 				<view class="info-viewL tui-skeleton-fillet">市场价:<text>{{product.normalPriceStr}}</text></view>	

+ 3 - 2
components/cm-module/productDetails/secondDeatail.vue

@@ -52,7 +52,7 @@
 		.Disclaimer ._p{
 		font-size: 24rpx;
 		color: #666666;
-		padding: 10rpx 15rpx
+		padding: 10rpx 15rpx;
 		}
 		.imgList{
 			width: 702rpx; 
@@ -66,8 +66,9 @@
 			
 		}
 		.detailsText{
-			padding: 0 0rpx 20rpx 22rpx;
+			padding: 0 30rpx 30rpx 30rpx;
 			color: #333333;
 			font-size: 24rpx;
+			text-align: left;
 		}
 </style>

+ 29 - 15
seller/pages/cart/second.vue

@@ -86,10 +86,10 @@
 			hanldOperationConfim(data){//显示选择数量确认弹窗
 				console.log(this.handleData)
 				this.handleData = data
-				this.number = 1
-				this.buyRetailPrice = Number(data.price1);
-				this.secondProductType = data.secondProductType
-				this.specClass = 'show';
+					this.number = 1
+					this.buyRetailPrice = Number(data.price1);
+					this.secondProductType = data.secondProductType
+					this.specClass = 'show';
 			},
 			hideSpec() {//关闭选择数量确认弹窗
 				this.specClass = 'hide';
@@ -98,7 +98,7 @@
 				}, 200);
 			},
 			changeCountAdd(){//popup弹窗数量增加按钮
-				if(this.handleData.secondProductType == 2){
+				if(this.handleData.secondHandType == 2||this.handleData.secondHandType == 3){
 					if(this.number >= this.handleData.stock){
 						this.number= this.handleData.stock
 						this.isStock =true
@@ -108,14 +108,15 @@
 						this.number++
 						this.isQuantity =false
 					}
+					this.buyRetailPrice = this.number*this.handleData.price1
 				}else{
 					this.isStock =true
 					this.$util.msg(`该商品购买数量只能为1`,2000);
 				}
 			},
 			changeCountSub(){//popup弹窗数量减按钮
-				if(this.handleData.secondProductType == 2){
-					if(this.number < 1){
+				if(this.handleData.secondHandType == 2||this.handleData.secondHandType == 3){
+					if(this.number <= 1){
 						this.number= 1
 						this.isQuantity =true
 						this.$util.msg(`购买数量最低为1`,2000);
@@ -124,24 +125,37 @@
 						this.number--
 						this.isQuantity =false
 					}
+					this.buyRetailPrice = this.number*this.handleData.price1
 				}else{
 					this.isQuantity =true
 					this.$util.msg(`该商品购买数量只能为1`,2000);
 				}
 			 },
+			// changeNumber(e){
+			// 	let _value = e.detail.value;
+			// 	if(!this.$api.isNumber(_value)){
+			// 		this.number = this.minBuyNumber
+			// 	}else if(_value < this.minBuyNumber){
+			// 		this.$util.msg(`该商品最小起订量为${this.minBuyNumber}`,2000);
+			// 		this.number = this.minBuyNumber
+			// 	}else if( _value % this.minBuyNumber !=0 ){
+			// 		this.$util.msg(`购买量必须为起订量的整数倍`,2000);
+			// 		this.number = this.minBuyNumber
+			// 	}else{
+			// 		this.number = e.detail.value
+			// 	}
+			// },
 			changeNumber(e){
 				let _value = e.detail.value;
 				if(!this.$api.isNumber(_value)){
-					this.number = this.minBuyNumber
-				}else if(_value < this.minBuyNumber){
-					this.$util.msg(`该商品最小起订量为${this.minBuyNumber}`,2000);
-					this.number = this.minBuyNumber
-				}else if( _value % this.minBuyNumber !=0 ){
-					this.$util.msg(`购买量必须为起订量的整数倍`,2000);
-					this.number = this.minBuyNumber
+					this.number = 1
+				}else if(_value <= 1){
+					this.$util.msg(`该商品最小起订量为1`,2000);
+					this.number = 1
 				}else{
 					this.number = e.detail.value
 				}
+				this.buyRetailPrice = this.number*this.handleData.price1
 			},
 			clearProduct(){//成功加入购物车后清空所选值
 				this.handleData.productKind= 0;
@@ -155,7 +169,7 @@
 				this.specClass = 'hide';
 				let cartPramsData={
 						clubId:this.clubID,
-						allPrice:this.number*this.buyRetailPrice,
+						allPrice:this.buyRetailPrice,
 						allCount:this.number,
 						productID:this.handleData.productID,
 						productCount:this.number