浏览代码

供应商的商品发布

zhengjinyi 3 年之前
父节点
当前提交
f41fe71755

+ 3 - 3
src/main/resources/static/css/product/product-hot.css

@@ -13,7 +13,7 @@ li{list-style:none}
     #productHotBanner .swiper-wrapper{position:relative;height:100%;z-index:0}
     #productHotBanner .swiper-wrapper .swiper-slide{width:100%;height: 480px;position:relative;zoom:1;vertical-align:middle;overflow:hidden;}
     #productHotBanner .swiper-wrapper .swiper-slide-image{width: 448px;height: 448px;float: left;box-sizing: border-box;border: 1px solid #e1e1e1;}
-    #productHotBanner .swiper-wrapper .swiper-slide-image img{width: 448px;height: 448px;display: block;}
+    #productHotBanner .swiper-wrapper .swiper-slide-image img{width: 100%;height: 100%;display: block;}
     #productHotBanner .swiper-wrapper .swiper-slide-info{width: 700px;height: 448px;float: right;box-sizing: border-box;padding: 72px 100px;}
     #productHotBanner .swiper-wrapper .swiper-slide-info .swiper-slide-name{width:100%;height: auto;margin-bottom: 110px;}
     #productHotBanner .swiper-wrapper .swiper-slide-info .swiper-slide-name p{line-height: 35px;font-size: 24px;color: #4A4F58;text-align: center;}
@@ -66,7 +66,7 @@ li{list-style:none}
     .sortBox-checked .coll-checked{width: 16px;height: 16px;background: url("/img/cart/icon_weigouxuan@2x.png") no-repeat;background-size: cover;display: block;margin-right: 6px;}
     .sortBox-checked .coll-checked.checked{background: url("/img/cart/icon_yixuanze@2x.png") no-repeat;background-size: cover;}
 
-    .productList{width:1184px;margin:0 auto;box-sizing:border-box}
+    .productList{width:1184px;min-height:328px;margin:0 auto;box-sizing:border-box}
     .productList .productItem{width:184px;height:268px;float:left;background:#fff;position:relative;margin:0 16px 16px 0;overflow:hidden;float:left}
     .productList .productItem:nth-child(6n){margin-right:0}
     .productList .productItem img{width:100%;height:164px}
@@ -125,7 +125,7 @@ li{list-style:none}
     #productHotBanner .swiper-wrapper .swiper-slide{width:100%;height: 41.4vw;position:relative;zoom:1;vertical-align:middle;overflow:hidden;}
     #productHotBanner .swiper-wrapper .swiper-slide a{display: block;width: 100%;height: 100%;}
     #productHotBanner .swiper-wrapper .swiper-slide-image{width: 41.4vw;height: 41.4vw;float: left;box-sizing: border-box;border: 1px solid #e1e1e1;}
-    #productHotBanner .swiper-wrapper .swiper-slide-image img{width: 41.4vw;height: 41.4vw;display: block;}
+    #productHotBanner .swiper-wrapper .swiper-slide-image img{width: 100%;height: 100%;display: block;}
     #productHotBanner .swiper-wrapper .swiper-slide-info{width: 38.2vw;height: 41.4vw;float: right;box-sizing: border-box;padding: 4vw 2vw;position: relative;}
     #productHotBanner .swiper-wrapper .swiper-slide-info .swiper-slide-name{width:100%;height: auto;margin-bottom:11vw;}
     #productHotBanner .swiper-wrapper .swiper-slide-info .swiper-slide-name p{line-height: 6vw;font-size: 4.2vw;color: #4A4F58;text-align: center;}

+ 3 - 2
src/main/resources/static/js/product/product-hot.js

@@ -113,11 +113,11 @@ var productList = new Vue({
         },
         GetHomeNewFloorList: function () {
             var _self = this;
-            _self.listLoading = true;
             PublicApi.GetHomeNewFloorList(_self.listQuery,function (response) {
                 if(response.code === 0){
                     var data = response.data
                     _self.listData = _self.listData.concat(data.results);
+                    _self.listRecord = data.totalRecord;
                     if( _self.listData.length>0){
                         _self.isListEmpty = false;
                     }else{
@@ -278,6 +278,7 @@ var productList = new Vue({
         var _self = this;
         //上垃加载更多
         $(window).on('scroll', function(){
+            console.log('22222222')
             var scrollTop = $(this).scrollTop();
             var scrollHeight = $(document).height();
             var windowHeight = window.innerHeight + $("footer").height();
@@ -289,7 +290,7 @@ var productList = new Vue({
                     if (_self.requestFlag){
                         _self.listQuery.pageNum = next;
                         // 获取列表数据
-                        _self.getListByKeyword();
+                        _self.GetHomeNewFloorList();
                     }
                     _self.requestFlag = false;
                 }