Ver Fonte

分类搜索增加全部按钮

zhengjinyi há 3 anos atrás
pai
commit
926ca04d90

+ 2 - 2
src/main/resources/static/js/product/list.js

@@ -159,7 +159,7 @@ var productList = new Vue({
                         }
                         return el;
                     })
-                    _self.brandLists = _self.defaultBrandLists.slice(0,8)
+                    _self.brandLists = _self.defaultBrandLists.slice(0,7)
                 }else {
                     console.log('查询品牌列表异常')
                 }
@@ -200,7 +200,7 @@ var productList = new Vue({
             if( this.isShowAllBrands){
                 this.brandLists = this.defaultBrandLists;
             }else{
-                this.brandLists = this.defaultBrandLists.slice(0,8)
+                this.brandLists = this.defaultBrandLists.slice(0,7)
             }
         },
         hanldCheckedActivi:function(){// 选择促销商品选项

+ 2 - 2
src/main/resources/static/js/product/produce-list.js

@@ -137,7 +137,7 @@ var productList = new Vue({
                         }
                         return el;
                     })
-                    _self.brandLists = _self.defaultBrandLists.slice(0,8)
+                    _self.brandLists = _self.defaultBrandLists.slice(0,7)
                 }else {
                     console.log('查询品牌列表异常')
                 }
@@ -175,7 +175,7 @@ var productList = new Vue({
             if( this.isShowAllBrands){
                 this.brandLists = this.defaultBrandLists;
             }else{
-                this.brandLists = this.defaultBrandLists.slice(0,8)
+                this.brandLists = this.defaultBrandLists.slice(0,7)
             }
         },
         hanldCheckedActivi:function(){// 选择促销商品选项

+ 1 - 2
src/main/resources/templates/product/instruelist.html

@@ -60,10 +60,9 @@
             <div class="product-brand clear">
                 <div class="product-brand-name" :class="isShowAllBrands ? 'show' : ''">
                     <p class="title">品牌</p>
-                    <p v-if="!isPC" class="num">已选中<span>{{ checkedBrandLength }}</span>个品牌</p>
                 </div>
                 <div class="product-brand-list" :class="isShowAllBrands ? 'show' : ''">
-                    <div class="brand-list" @click="choiceBrandAll" :class="hrefBrandId ? '' : 'checked'"><a href="javascript:void(0)">全部</a></div>
+                    <div class="brand-list" @click="choiceBrandAllHref" :class="hrefBrandId ? '' : 'checked'"><a href="javascript:void(0)">全部</a></div>
                     <div class="brand-list" v-for="(brand,index) in brandLists" :key="index"
                          @click="choiceBrandHref(brand, index)" :class="brand.isChecked ? 'checked' : ''">
                         <a href="javascript:void(0)" :title="brand.name" v-html="brand.name"></a>

+ 0 - 1
src/main/resources/templates/product/list.html

@@ -83,7 +83,6 @@
             <div class="product-brand clear">
                 <div class="product-brand-name" :class="isShowAllBrands ? 'show' : ''">
                     <p class="title">品牌</p>
-                    <p v-if="!isPC" class="num">已选中<span>{{ checkedBrandLength }}</span>个品牌</p>
                 </div>
                 <div class="product-brand-list" :class="isShowAllBrands ? 'show' : ''">
                     <div class="brand-list" @click="choiceBrandAllHref" :class="hrefBrandId ? '' : 'checked'"><a href="javascript:void(0)">全部</a></div>