|
@@ -139,10 +139,10 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
value1: "all",
|
|
|
- valueText1: "类型: 全部",
|
|
|
+ valueText1: "分类: 全部",
|
|
|
option1: [],
|
|
|
value2: "all",
|
|
|
- valueText2: "分类: 全部",
|
|
|
+ valueText2: "类型: 全部",
|
|
|
search: null,
|
|
|
option2: [],
|
|
|
dataList: [],
|
|
@@ -194,13 +194,13 @@ export default {
|
|
|
onOptionChange() {
|
|
|
this.option1.forEach((item) => {
|
|
|
if (item.value == this.value1) {
|
|
|
- this.valueText1 = item.value == "all" ? "类型: 全部" : item.text;
|
|
|
+ this.valueText1 = item.value == "all" ? " 分类: 全部" : item.text;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
this.option2.forEach((item) => {
|
|
|
if (item.value == this.value2) {
|
|
|
- this.valueText2 = item.value == "all" ? "分类: 全部" : item.text;
|
|
|
+ this.valueText2 = item.value == "all" ? "类型: 全部" : item.text;
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -224,8 +224,8 @@ export default {
|
|
|
try {
|
|
|
let params = this.params;
|
|
|
params.productAttributeCategoryId =
|
|
|
- this.value1 == "all" ? null : this.value1;
|
|
|
- params.productCategoryId = this.value2 == "all" ? null : this.value2;
|
|
|
+ this.value2 == "all" ? null : this.value2;
|
|
|
+ params.productCategoryId = this.value1 == "all" ? null : this.value1;
|
|
|
params.keyword = this.search ? this.search : null;
|
|
|
const res = await mallProductSearch(params);
|
|
|
this.loading = false;
|