瀏覽代碼

Update goodsList.vue

lex 2 年之前
父節點
當前提交
4a878d861e
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/views/shopMall/model/goodsList.vue

+ 6 - 6
src/views/shopMall/model/goodsList.vue

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