xiaohaizhao 1 éve
szülő
commit
d6e31335fb
1 módosított fájl, 6 hozzáadás és 7 törlés
  1. 6 7
      pages/index/market/index.js

+ 6 - 7
pages/index/market/index.js

@@ -1,11 +1,6 @@
 const content = {
     pageNumber: 1,
-    pageTotal: 1,
-    where: {
-      condition: "",
-      itemclassid: "",
-      tradefield: ""
-    }
+    pageTotal: 1
   },
   _Http = getApp().globalData.http;
 let sa_brandid = null,
@@ -22,6 +17,11 @@ Component({
   },
   methods: {
     init() {
+      content.where = {
+        condition: "",
+        itemclassid: "",
+        tradefield: ""
+      }
       this.getBrand();
       this.getTradefie();
       this.setData({
@@ -134,7 +134,6 @@ Component({
       content.where.condition = detail;
       this.getList(true)
     },
-
     /* 获取领域 */
     getTradefie() {
       _Http.basic({