Administrator 4 年之前
父節點
當前提交
d73b98b289

+ 1 - 1
src/main/resources/static/css/product/instruement.css

@@ -79,7 +79,7 @@
     .floorCon .hotList div a{width: 45.6vw;height: 68vw;overflow: hidden;margin: 0 1.3vw 2.6vw 1.3vw;background: #fff;text-align: left;}
     .hotList div a.img01 img,.hotList div a.img02 img{height: 100%}
     .hotList div a img {width: 45.6vw;height: 45.6vw}
-    .productItem .name{display: block;padding: 0 3.2vw;height:9.3vw;line-height: 4.8vw;font-size: 3.4vw;vertical-align: middle;word-break: break-all;overflow: hidden;text-overflow: ellipsis;display: -webkit-inline-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;}
+    .productItem .name{margin-top: 8px;display: block;padding: 0 3.2vw;height:9.3vw;line-height: 4.8vw;font-size: 3.4vw;vertical-align: middle;word-break: break-all;overflow: hidden;text-overflow: ellipsis;display: -webkit-inline-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;}
     .productItem .price em{display: block;height: 7vw;line-height: 7vw;color: #4A4F58;font-style: normal;float: left;}
     .hotList div.unfold{width: 20vw;height: 6.4vw;margin: 5vw auto;border: .27vw solid #cccccc;color: #909090;font-size: 3vw;line-height: 6.4vw;text-align: center;border-radius: .54vw}
     .productItem .price .mIcon:before{width:15.8vw;height: 5vw}

+ 2 - 25
src/main/resources/static/js/product/produce-list.js

@@ -19,7 +19,6 @@ var productList = new Vue({
         listRecord: 0,
         pageInput: '1',
         source:'www',
-        paramsIndex:1,
         params: {
             id:'',
             identity:GLOBAL_USER_IDENTITY,
@@ -97,17 +96,6 @@ var productList = new Vue({
             if (pageNum <= this.pageTotal) {
                 this.params.pageNum = pageNum;
                 this.getproductList();
-                // switch (this.paramsIndex) {
-                //     case 1:
-                //         this.getproductList();
-                //         break;
-                //     case 1:
-                //         this.getsmallList();
-                //         break;
-                //     case 1:
-                //         this.gettinyList();
-                //         break;
-                // }
             }
         },
         toSortList: function (sortField, sortType) {
@@ -115,17 +103,6 @@ var productList = new Vue({
              this.params.sortType = sortType;
              this.params.pageNum = 1;
              this.getproductList();
-             // switch (this.paramsIndex) {
-             //    case 1:
-             //        this.getproductList();
-             //        break;
-             //    case 1:
-             //        this.getsmallList();
-             //        break;
-             //    case 1:
-             //        this.gettinyList();
-             //        break;
-             // }
         },
          removesmall:function(){//删除二级
             this.smallName = '';
@@ -134,8 +111,8 @@ var productList = new Vue({
             this.tinyName = ''
         },
         checkedClasslyFn:function(item,index){
-            this.paramsIndex = index;
-            this.idType = index;
+            this.params.pageNum = 1;
+            this.params.idType = index;
             switch (index) {
                 case 1://选择1集分类查询
                     this.bigName=item.name;