浏览代码

commit -m 商品筛选

zhengjinyi 3 年之前
父节点
当前提交
42fdfcec42
共有 4 个文件被更改,包括 14 次插入11 次删除
  1. 4 3
      pages/goods/goods-classify.vue
  2. 2 2
      pages/goods/goods-supporting.vue
  3. 5 3
      pages/search/search.vue
  4. 3 3
      services/order.service.js

+ 4 - 3
pages/goods/goods-classify.vue

@@ -677,7 +677,7 @@ export default {
 				} else {
 					this.listQuery.sortType = 0
 				}
-				this.listQuery.sortField = 'p_sales'
+				this.listQuery.sortField = 'sales'
 				this.GetProductListInfo()
 			} else if (index == 2) {
 				this.tabIndex = 2
@@ -690,7 +690,7 @@ export default {
 				} else {
 					this.listQuery.sortType = 0
 				}
-				this.listQuery.sortField = 'p_favorite'
+				this.listQuery.sortField = 'favorite'
 				this.GetProductListInfo()
 			} else if (index == 3) {
 				this.tabIndex = 3
@@ -703,7 +703,7 @@ export default {
 				} else {
 					this.listQuery.sortType = 0
 				}
-				this.listQuery.sortField = 'p_price'
+				this.listQuery.sortField = 'price'
 				this.GetProductListInfo()
 			} else if (index == 4) {
 				console.log('type', this.listQuery.id)
@@ -813,6 +813,7 @@ export default {
 		choiceBrandAll() {
 			// 点击选择全部品牌
 			this.isAllcheckedBrand = true
+			this.listQuery.brandIds = ''
 			this.brandLists.forEach(el => {
 				el.isChecked = false
 			})

+ 2 - 2
pages/goods/goods-supporting.vue

@@ -558,7 +558,7 @@ export default {
 			}
 		},
 		changeNumber(e, pros) {
-			let _value = e.detail.value
+			let _value = Number(e.detail.value)
 			if (!this.$api.isNumber(_value)) {
 				pros.number = pros.minBuyNumber
 			} else if (_value < pros.minBuyNumber) {
@@ -568,7 +568,7 @@ export default {
 				this.$util.msg('购买量必须为起订量的整数倍', 2000)
 				pros.number = pros.minBuyNumber
 			} else {
-				pros.number = e.detail.value
+				pros.number = _value 
 				this.calculatPerice(pros)
 			}
 		},

+ 5 - 3
pages/search/search.vue

@@ -701,6 +701,7 @@ export default {
 				// 0公开价格 1不公开价格 2仅对资质机构公开
 				productIdArr.push(item.productId)
 			})
+			this.priceLoading = true
 			this.productIds = productIdArr.join(',')
 			this.ProductService.querySearchProductPrice({
 				flag: this.actasFlag, //查询促销标记 1协销 2机构 3供应商
@@ -751,7 +752,7 @@ export default {
 				} else {
 					this.listQuery.sortType = 0
 				}
-				this.listQuery.sortField = 'p_sales'
+				this.listQuery.sortField = 'sales'
 				this.getListFromServer()
 			} else if (index == 2) {
 				this.tabIndex = 2
@@ -764,7 +765,7 @@ export default {
 				} else {
 					this.listQuery.sortType = 0
 				}
-				this.listQuery.sortField = 'p_favorite'
+				this.listQuery.sortField = 'favorite'
 				this.getListFromServer()
 			} else if (index == 3) {
 				this.tabIndex = 3
@@ -777,7 +778,7 @@ export default {
 				} else {
 					this.listQuery.sortType = 0
 				}
-				this.listQuery.sortField = 'p_price'
+				this.listQuery.sortField = 'price'
 				this.getListFromServer()
 			} else if (index == 4) {
 				this.brandParam.keyword = this.listQuery.keyword
@@ -928,6 +929,7 @@ export default {
 		choiceBrandAll(){
 			// 点击选择全部品牌
 			this.isAllcheckedBrand = true
+			this.listQuery.brandIds = ''
 			this.brandLists.forEach(el=>{
 				el.isChecked = false
 			}) 

+ 3 - 3
services/order.service.js

@@ -169,7 +169,7 @@ export default class OrderService {
         return this.AjaxService.get({ 
             url:'/order/club/cart/count', 
             data, 
-            isLoading: true ,
+            isLoading: false ,
             isHost:true
         })
     }
@@ -271,7 +271,7 @@ export default class OrderService {
             isHost:true
         })
     }
-	/**
+    /**
 	 * @组合商品多商品立即购买
 	 * @param:userId 用户ID(必填)
 	 * @param:productInfo 用户ID(必填)
@@ -285,7 +285,7 @@ export default class OrderService {
             isHost:true
         })
     }
-	/**
+    /**
 	 * @机构个人中心订单状态数量
 	 * @param:userId 用户ID(必填)
 	 */