yann 6 meses atrás
pai
commit
16904155c4
2 arquivos alterados com 2 adições e 3 exclusões
  1. 1 2
      app.json
  2. 1 1
      components/product-list/product-list.js

+ 1 - 2
app.json

@@ -1,13 +1,12 @@
 {
   "pages": [
-      
-      "pages/Mall/sortCommodity/sortCommodity",
       "pages/index/index",
       "pages/all/all",
       "pages/cart/cart",
       "pages/my/my",
       "pages/detail/detail",
       "pages/login/login",
+      "pages/Mall/sortCommodity/sortCommodity",
       "pages/Mall/presaleCommodity/presaleCommodity",
       "pages/Mall/newCommodity/newCommodity",
       "pages/Mall/hotCommodity/hotCommodity"

+ 1 - 1
components/product-list/product-list.js

@@ -82,7 +82,7 @@ Component({
             if(this.data.position === 'hot') this.getHotCommodity();
             if(this.data.position === 'new') this.getNewCommodity();
             if(this.data.position === 'presale') this.getPresaleCommodity();
-            if(this.data.position === 'sort') this.getClassifyCommodity();
+            if(this.data.position === 'sort' || this.data.position === 'index') this.getClassifyCommodity();
         },
     },
     ready: function(){