chao 4 years ago
parent
commit
25c11f9c4c

+ 1 - 1
src/main/resources/static/css/product/detail.pc.css

@@ -68,7 +68,7 @@ li{list-style:none;}
 #productRecommend li .item a:hover img{border: solid 1px #e15616;}
 #productRecommend li .item img{display:block;width:151px;height:151px;border:solid 1px #e2e7ef;}
 #productRecommend li .item span{max-height:44px;padding-top:4px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
-#productRecommend .swiper-wrapper{height:205px;overflow:hidden;background:url(/img/base/placeholder.png) repeat-x center;background-size:162px;}
+#productRecommend .swiper-wrapper{height:205px;overflow:hidden;background:url(/img/default/suppliver.jpg) repeat-x center;background-size:162px;}
 #productRecommend .swiper-pagination{width:100%;height:14px;z-index:1;text-align:center;font-size:0;}
 #productRecommend .swiper-pagination span{display:inline-block;width:14px;height:4px;border:5px solid transparent;cursor:pointer;opacity:.2;}
 #productRecommend .swiper-pagination span:before{content:"";display:inline-block;width:100%;height:4px;background:#E15616;border-radius:2px}

+ 1 - 1
src/main/resources/static/css/supplier/list.css

@@ -9,7 +9,7 @@ li{list-style:none}
     .supplierItem:first-child{border:none}
     .supplierItem .right{float:right;width:576px;position:relative}
     .supplierItem .left{float:left;width:560px;box-sizing:border-box;padding-left:152px;position:relative}
-    .supplierItem .left .logo{position:absolute;left:0;top:0;width:136px;height:124px;line-height:124px;background: url(/img/base/placeholder.png) no-repeat center center;background-size:70%;}
+    .supplierItem .left .logo{position:absolute;left:0;top:0;width:136px;height:124px;line-height:124px;}
     .supplierItem .left .logo img{width:100%;max-height:100%;background-color:#FFF;vertical-align:middle;}
     .supplierItem .left h5{line-height:32px;font-weight:bold;font-size:20px;}
     .supplierItem .left h5 span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:inline-block;vertical-align: middle;max-width:84%;}

+ 1 - 1
src/main/resources/templates/supplier/list.html

@@ -28,7 +28,7 @@
         <li class="supplierItem clear" v-for="shop in listData">
             <div class="left">
                 <a :href="'/supplier/index.html?id='+shop.id" target="_blank" class="logo">
-                    <img src="/img/base/placeholder.png" :data-original="shop.logo">
+                    <img :src="shop.logo" onerror="javascript:this.src='/img/default/suppliver.jpg';">
                 </a>
                 <h5><a :href="'/supplier/index.html?id='+shop.id" :title="shop.name" target="_blank">
                     <span v-html="shop.name"></span>