Administrator 4 年之前
父节点
当前提交
10ced27a7c
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      src/main/resources/static/js/product/produce-list.js

+ 3 - 4
src/main/resources/static/js/product/produce-list.js

@@ -161,14 +161,13 @@ var productList = new Vue({
         this.tinyTypeID = getUrlParam('tinyTypeID');
         console.log( this.smallTypeID)
         console.log( this.tinyTypeID)
-        if (this.bigTypeID){
-            this.params.id=this.bigTypeID;
-        }else if( this.smallTypeID){
+        if (this.tinyTypeID==null){
             this.params.id=this.smallTypeID;
+        }else if( this.smallTypeID==null){
+            this.params.id=this.bigTypeID;
         }else {
             this.params.id=this.tinyTypeID;
         }
-        this.params.id=this.bigTypeID;
         var typeSort =  getUrlParam('typeSort');
         PublicApi.GetProductClassify({typeSort:typeSort,source:'www'},function (res) {
                 if (res.code==0){