Browse Source

空状态修正

wangcz 8 years ago
parent
commit
9699949406

+ 32 - 2
components/product/ComponentGoods.vue

@@ -100,8 +100,16 @@
         </td>
       </tr>
       <tr v-if="componentGoods.totalElements == 0">
-        <td colspan="10" class="text-center" style="line-height: 40px; font-size: 20px;">
-          <i class="fa fa-smile-o fa-lg"></i> 暂无产品信息
+        <td colspan="12">
+          <div class="empty">
+            <p class="empty-img">
+              <img src="/images/brandList/empty-cart.png">
+            </p>
+            <div class="empty-info">
+              <p class="grey"> 暂无产品信息 </p>
+              <!--<a href="javascript:history.go(-1)"><i class="fa fa-mail-reply fa-xs"></i>返回上一页</a>-->
+            </div>
+          </div>
         </td>
       </tr>
       </tbody>
@@ -204,6 +212,28 @@
 </script>
 
 <style scoped>
+  .component-table .empty{
+    overflow: hidden;
+    margin: 0!important;
+    height:130px;
+    display:inline-flex;
+    align-items: center;
+  }
+  .component-table .empty-info{
+    line-height: 14px;
+    width: 143px;
+  }
+  .component-table .grey{
+    color: #999;
+    font-size: 14px;
+  }
+  .component-table .empty .empty-info>a{
+    font-size: 14px;
+    color: #5078cb;
+  }
+  .component-table .empty .empty-info i{
+    margin-right:5px;
+  }
   .product-list{
     width: 1190px;
     margin-bottom: 20px;

+ 33 - 2
components/product/component/StoreInfo.vue

@@ -124,8 +124,16 @@
             </td>
           </tr>
           <tr v-if="!storeList.content || storeList.content.length == 0">
-            <td colspan="10" class="text-center" style="line-height: 40px; font-size: 14px; color:#999;">
-              暂无现货信息
+            <td colspan="12">
+              <div class="empty">
+                <p class="empty-img">
+                  <img src="/images/brandList/empty-cart.png">
+                </p>
+                <div class="empty-info">
+                  <p class="grey"> 暂无现货信息 </p>
+                  <a href="javascript:history.go(-1)"><i class="fa fa-mail-reply fa-xs"></i>返回上一页</a>
+                </div>
+              </div>
             </td>
           </tr>
         </tbody>
@@ -396,4 +404,27 @@
     text-align: left;
     color: #333;
   }
+  /**/
+  .storeInfo .empty{
+    overflow: hidden;
+    margin: 0!important;
+    height:130px;
+    display:inline-flex;
+    align-items: center;
+  }
+  .storeInfo .empty-info{
+    line-height: 14px;
+    width: 143px;
+  }
+  .empty-info .grey{
+    color: #999;
+    font-size: 14px;
+  }
+  .storeInfo .empty .empty-info>a{
+    font-size: 14px;
+    color: #5078cb;
+  }
+  .storeInfo .empty .empty-info i{
+    margin-right:5px;
+  }
 </style>

+ 34 - 2
components/search/GoodList.vue

@@ -137,8 +137,16 @@
             </td>
           </tr>
           <tr v-if="good_list.components.length == 'undefined' ||good_list.components.length == 0">
-            <td colspan="10" class="text-center" style="line-height: 40px; font-size: 14px;color:#999">
-              暂无产品信息
+            <td colspan="12">
+              <div class="empty">
+                <p class="empty-img">
+                  <img src="/images/brandList/empty-cart.png">
+                </p>
+                <div class="empty-info">
+                  <p class="grey"> 暂无产品信息 </p>
+                  <a href="javascript:history.go(-1)"><i class="fa fa-mail-reply fa-xs"></i>返回上一页</a>
+                </div>
+              </div>
             </td>
           </tr>
           </tbody>
@@ -676,4 +684,28 @@
     color: #f39801;
   }
 
+/**/
+.product-list .empty{
+  overflow: hidden;
+  margin: 0!important;
+  height:130px;
+  display:inline-flex;
+  align-items: center;
+}
+.product-list .empty-info{
+  line-height: 14px;
+  width: 143px;
+}
+.product-list .grey{
+  color: #999;
+  font-size: 14px;
+}
+.product-list .empty .empty-info>a{
+  font-size: 14px;
+  color: #5078cb;
+}
+.product-list .empty .empty-info i{
+  margin-right:5px;
+}
+
 </style>