|
@@ -22,22 +22,23 @@
|
|
|
@changeShowType="changeShowType"
|
|
@changeShowType="changeShowType"
|
|
|
>
|
|
>
|
|
|
<span slot="filter1">
|
|
<span slot="filter1">
|
|
|
- <product-category-filter
|
|
|
|
|
|
|
+ <product-customCateId-filter
|
|
|
size="small"
|
|
size="small"
|
|
|
- v-model="categoryIds"
|
|
|
|
|
|
|
+ v-model="customCateId"
|
|
|
|
|
+ :list="customCateList"
|
|
|
@input="refreash"
|
|
@input="refreash"
|
|
|
- ></product-category-filter>
|
|
|
|
|
|
|
+ ></product-customCateId-filter>
|
|
|
</span>
|
|
</span>
|
|
|
<span slot="filter2">
|
|
<span slot="filter2">
|
|
|
- <country-filter
|
|
|
|
|
|
|
+ <product-category-filter
|
|
|
size="small"
|
|
size="small"
|
|
|
- v-model="continent"
|
|
|
|
|
- :country.sync="countries"
|
|
|
|
|
|
|
+ v-model="categoryIds"
|
|
|
@input="refreash"
|
|
@input="refreash"
|
|
|
- ></country-filter>
|
|
|
|
|
|
|
+ ></product-category-filter>
|
|
|
</span>
|
|
</span>
|
|
|
|
|
+
|
|
|
<span slot="filter3">
|
|
<span slot="filter3">
|
|
|
- <product-brand-filter size="small" v-model="brand" @input="refreash"></product-brand-filter>
|
|
|
|
|
|
|
+ <product-tags-filter size="small" v-model="tagIds" @input="refreash"></product-tags-filter>
|
|
|
</span>
|
|
</span>
|
|
|
</filter-sort-bar>
|
|
</filter-sort-bar>
|
|
|
</van-sticky>
|
|
</van-sticky>
|
|
@@ -58,11 +59,12 @@
|
|
|
<script>
|
|
<script>
|
|
|
import SearchBar from '../components/bar/SearchBarWithValue';
|
|
import SearchBar from '../components/bar/SearchBarWithValue';
|
|
|
import searchList from '../mixins/searchList';
|
|
import searchList from '../mixins/searchList';
|
|
|
-import FilterSortBar from '../components/bar/FilterSortBar';
|
|
|
|
|
-import SortList from '../components/SortList';
|
|
|
|
|
|
|
+import FilterSortBar from '../components/bar/FilterSortBar.vue';
|
|
|
|
|
+import SortList from '../components/SortList.vue';
|
|
|
import ProductGrid from '../components/product/GridNormal';
|
|
import ProductGrid from '../components/product/GridNormal';
|
|
|
-import ProductBrandFilter from '../components/filter/ProductBrand';
|
|
|
|
|
|
|
+import ProductTagsFilter from '../components/filter/ProductTags';
|
|
|
import ProductCategoryFilter from '../components/filter/ProductCategory';
|
|
import ProductCategoryFilter from '../components/filter/ProductCategory';
|
|
|
|
|
+import ProductCustomCateIdFilter from '../components/filter/ProductCustomCateId.vue';
|
|
|
import CountryFilter from '../components/filter/Country';
|
|
import CountryFilter from '../components/filter/Country';
|
|
|
import ProductRow from '../components/product/RowNormal.vue';
|
|
import ProductRow from '../components/product/RowNormal.vue';
|
|
|
import { mapState } from 'vuex';
|
|
import { mapState } from 'vuex';
|
|
@@ -80,7 +82,9 @@ export default {
|
|
|
main: null,
|
|
main: null,
|
|
|
ratio: 1,
|
|
ratio: 1,
|
|
|
vendorInfoId: '',
|
|
vendorInfoId: '',
|
|
|
- defaultCategoryId: ''
|
|
|
|
|
|
|
+ defaultCategoryId: '',
|
|
|
|
|
+ customCateId: 0,
|
|
|
|
|
+ customCateList: []
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
mixins: [searchList],
|
|
mixins: [searchList],
|
|
@@ -101,19 +105,23 @@ export default {
|
|
|
applicationField: this.applicationField,
|
|
applicationField: this.applicationField,
|
|
|
query: JSON.stringify({
|
|
query: JSON.stringify({
|
|
|
vendorInfoId: this.vendorInfoId
|
|
vendorInfoId: this.vendorInfoId
|
|
|
- })
|
|
|
|
|
|
|
+ }),
|
|
|
|
|
+ customCateId: this.customCateId || ''
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
filterQuery() {
|
|
filterQuery() {
|
|
|
return {
|
|
return {
|
|
|
pageType: 'product',
|
|
pageType: 'product',
|
|
|
|
|
+ vendorInfoId: this.vendorInfoId,
|
|
|
categoryIds: this.categoryIds,
|
|
categoryIds: this.categoryIds,
|
|
|
countries: this.countries,
|
|
countries: this.countries,
|
|
|
continent: this.continent,
|
|
continent: this.continent,
|
|
|
searchTop: this.searchTop,
|
|
searchTop: this.searchTop,
|
|
|
tagIds: this.tagIds,
|
|
tagIds: this.tagIds,
|
|
|
applicationField: this.applicationField,
|
|
applicationField: this.applicationField,
|
|
|
- brand: this.brand
|
|
|
|
|
|
|
+ brand: this.brand,
|
|
|
|
|
+ customCateId: this.customCateId,
|
|
|
|
|
+ customCateList: this.customCateList
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -134,6 +142,15 @@ export default {
|
|
|
}
|
|
}
|
|
|
if (options.vendorId) {
|
|
if (options.vendorId) {
|
|
|
this.vendorInfoId = options.vendorId;
|
|
this.vendorInfoId = options.vendorId;
|
|
|
|
|
+
|
|
|
|
|
+ this.$http
|
|
|
|
|
+ .get('/customCategory/my', {
|
|
|
|
|
+ vendorId: options.vendorId
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ this.customCateList = res;
|
|
|
|
|
+ console.log(this.customCateList);
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
this.getData();
|
|
this.getData();
|
|
|
},
|
|
},
|
|
@@ -147,9 +164,9 @@ export default {
|
|
|
FilterSortBar,
|
|
FilterSortBar,
|
|
|
SortList,
|
|
SortList,
|
|
|
ProductGrid,
|
|
ProductGrid,
|
|
|
- ProductBrandFilter,
|
|
|
|
|
|
|
+ ProductTagsFilter,
|
|
|
ProductCategoryFilter,
|
|
ProductCategoryFilter,
|
|
|
- CountryFilter,
|
|
|
|
|
|
|
+ ProductCustomCateIdFilter,
|
|
|
SearchBar,
|
|
SearchBar,
|
|
|
ProductRow
|
|
ProductRow
|
|
|
}
|
|
}
|