Browse Source

搜索筛选 回到第一页

wangdy 8 years ago
parent
commit
38493c0647
1 changed files with 4 additions and 0 deletions
  1. 4 0
      pages/search/_keyword.vue

+ 4 - 0
pages/search/_keyword.vue

@@ -98,6 +98,7 @@
         this.reloadList()
       },
       listenKindFilter: function (kindarr) {
+        this.nowPage = 1
         if (kindarr.length === 0) {
           delete this.filter.goods_kindId
           delete this.paramJSON.goods_kindid
@@ -116,6 +117,7 @@
         }
       },
       listenBrandFilter: function (brandarr) {
+        this.nowPage = 1
         if (brandarr.length === 0) {
           delete this.filter.goods_brandId
           delete this.paramJSON.goods_brandid
@@ -134,6 +136,7 @@
         }
       },
       listenTypeFilter: function (typearr) {
+        this.nowPage = 1
         if (typearr.length === 0) {
           delete this.filter.goods_store_type
           delete this.paramJSON.goods_store_type
@@ -151,6 +154,7 @@
         }
       },
       listenCrnameFilter: function (crnamearr) {
+        this.nowPage = 1
         if (crnamearr.length === 0) {
           delete this.filter.goods_crname
           delete this.paramJSON.goods_crname