Browse Source

頁面css空格清除,分頁組件統一

hangb 7 years ago
parent
commit
8a5766524a

+ 6 - 6
components/common/page/pageComponent.vue

@@ -9,12 +9,12 @@
       v-if="total/pageSize>=1">
     </el-pagination>
     <ul class="pagination" style="float:right;margin-left:20px;">
-        <li>
-          <input type="text" class="page-number" v-model="nowPage">
-        </li>
-        <li>
-          <a class="page-a" @click="changePage">GO</a>
-        </li>
+      <li>
+        <input type="text" class="page-number" v-model="nowPage">
+      </li>
+      <li>
+        <a class="page-a" @click="changePage">GO</a>
+      </li>
     </ul>
   </div>
 </template>

+ 0 - 3
components/default/LeaveMessage.vue

@@ -6,6 +6,3 @@
     name: 'leave-message'
   }
 </script>
-<style>
-
-</style>

+ 1 - 1
components/help/helpHeader.vue

@@ -31,7 +31,7 @@
     name: 'helpHeader'
   }
 </script>
-<style>
+<style scoped>
   .user_center {
     width: 100%;
     margin: 0px auto;

+ 0 - 1
components/home/Advert.vue

@@ -61,7 +61,6 @@
 </script>
 <style lang="scss" scoped>
   @import '~assets/scss/variables';
-
   .advert-slide {
     text-align: center;
     /*margin-bottom: $xlg-pad;*/

+ 0 - 1
components/home/Search.vue

@@ -131,7 +131,6 @@
 </script>
 <style lang="scss" scoped>
   @import '~assets/scss/variables';
-
   .search-box {
     width: 470px;
     height: 40px;

+ 16 - 16
components/messageBoard/MessageBoard.vue

@@ -93,7 +93,7 @@
               </div>
             </div>
           </div>
-            <button class="btn" @click="confirm">提交</button>
+          <button class="btn" @click="confirm">提交</button>
         </div>
       </div>
       <div class="msg-table" v-else-if="!showHistory && user.userUU">
@@ -243,21 +243,6 @@
   }
 </script>
 <style scoped>
-  /*分页*/
-  .page {
-    text-align: center;
-  }
-  .page .page-wrap{
-    float: none;
-  }
-  .page-wrap ul, .page-wrap div {
-    float: none !important;
-    display: inline-block;
-    margin: 0;
-  }
-  body,textarea,button.btn{
-    font-family: "MicrosoftYaHei Regual", "微软雅黑" !important;
-  }
   .messageBoard {
     width: 680px;
     font-size: 14px;
@@ -583,4 +568,19 @@
   .radioLabel input[type="radio"]{
     display: none;
   }
+  /*分页*/
+  .page {
+    text-align: center;
+  }
+  .page .page-wrap{
+    float: none;
+  }
+  .page-wrap ul, .page-wrap div {
+    float: none !important;
+    display: inline-block;
+    margin: 0;
+  }
+  body,textarea,button.btn{
+    font-family: "MicrosoftYaHei Regual", "微软雅黑" !important;
+  }
 </style>

+ 1 - 2
components/news/Left.vue

@@ -47,8 +47,7 @@
     }
   }
 </script>
-<style scoped>
-
+<style>
   .hot-news{
     border: 1px solid #e8e8e8;
     width:260px;

+ 1 - 1
components/news/Right.vue

@@ -70,7 +70,7 @@
 
 </script>
 
-<style scoped>
+<style>
   .news-content{
     padding-left: 0;
     float: right;

+ 1 - 1
components/product/BrandList.vue

@@ -36,7 +36,7 @@
   }
 </script>
 
-<style>
+<style scoped>
   /** brandList*/
   #brandsList {
     clear: both;

+ 0 - 1
components/product/CategoryProperty.vue

@@ -195,7 +195,6 @@
   .clear, .clr {
     clear: both;
   }
-
   /* breadcrumbs */
   .breadcrumbs {
     margin-top: 20px;

+ 3 - 8
components/product/ComponentGoods.vue

@@ -100,13 +100,8 @@
       </tbody>
     </table>
     <div style="float: right; margin-bottom: 15px;">
-      <el-pagination
-        :current-page.sync="pageParams.page"
-        :page-size="pageParams.count"
-        layout="prev, pager, next, jumper"
-        :total="componentGoods.totalElements"
-        @current-change="handleCurrentChange">
-      </el-pagination>
+      <page :total="componentGoods.totalElements" :page-size="pageParams.count"
+            :current="pageParams.page" @childEvent="handleCurrentChange"></page>
     </div>
   </div>
 </template>
@@ -279,7 +274,7 @@
     background-color: #5078cb;
     border-color: #337ab7;
   }
-  <!-- 分页 -->
+  /*<!-- 分页 -->*/
   .el-pagination .el-pager li.active {
     border-color: #5078cb !important;
     background-color: #5078cb !important;

+ 1 - 1
components/product/KindBox.vue

@@ -69,7 +69,7 @@
   }
 </script>
 
-<style>
+<style scoped>
   .box {
     margin-bottom: 20px;
   }

+ 1 - 1
components/product/Recommends.vue

@@ -35,7 +35,7 @@
   }
 </script>
 
-<style>
+<style scoped>
   #newBrands .newBrands-header img {
     width: 35px;
     height: 35px;

+ 0 - 3
components/store/CommodityList.vue

@@ -243,9 +243,6 @@ export default {
 .el-tree-node__expand-icon:before{
   content: "\E621";
 }
-  #goods-list-fragment{
-		font-family: "Microsoft Yahei", "微软雅黑";
-	}
 	#goods-list-fragment .category-title {
 		height: 34px;
 		background-color: #5078cb;

+ 0 - 3
layouts/default.vue

@@ -18,6 +18,3 @@
     }
   }
 </script>
-<style>
-
-</style>

+ 0 - 3
layouts/login.vue

@@ -9,6 +9,3 @@
     name: 'login'
   }
 </script>
-<style>
-
-</style>

+ 0 - 3
layouts/main.vue

@@ -25,6 +25,3 @@
     }
   }
 </script>
-<style>
-
-</style>

+ 0 - 3
layouts/shop.vue

@@ -23,6 +23,3 @@
     }
   }
 </script>
-<style>
-
-</style>

+ 1 - 1
pages/help/helpDetail/_id.vue

@@ -56,7 +56,7 @@
     }
   }
 </script>
-<style>
+<style scoped>
   @import '~assets/scss/help.css';
   .help-center-details .ql-container img {
     max-width: 840px;

+ 1 - 1
pages/help/helpList/_id.vue

@@ -67,6 +67,6 @@
     }
   }
 </script>
-<style>
+<style scoped>
   @import '~assets/scss/help.css';
 </style>

+ 1 - 1
pages/help/home.vue

@@ -64,6 +64,6 @@
     }
   }
 </script>
-<style>
+<style scoped>
   @import '~assets/scss/help.css';
 </style>

+ 0 - 2
pages/news/_id.vue

@@ -24,5 +24,3 @@
     }
   }
 </script>
-<style scoped>
-</style>

+ 1 - 2
pages/product/original.vue

@@ -17,5 +17,4 @@
     }
   }
 </script>
-<style  scoped>
-</style>
+

+ 0 - 2
pages/provider/factories.vue

@@ -35,5 +35,3 @@ export default {
   }
 }
 </script>
-<style>
-</style>

+ 0 - 2
pages/provider/list.vue

@@ -22,5 +22,3 @@ export default {
   }
 }
 </script>
-<style>
-</style>

+ 1 - 1
pages/store/_uuid/_batchCode.vue

@@ -21,7 +21,7 @@ export default {
   }
 }
 </script>
-<style scoped>
+<style>
   .container.commodity {
 		width: 1190px;
 		padding-left: 0px;

+ 0 - 3
pages/store/_uuid/description.vue

@@ -18,6 +18,3 @@ export default {
   }
 }
 </script>
-<style>
-
-</style>

+ 0 - 3
pages/user/index.vue

@@ -10,6 +10,3 @@ export default {
   middleware: 'authenticated'
 }
 </script>
-<style>
-
-</style>

+ 0 - 3
pages/vendor/index.vue

@@ -10,6 +10,3 @@ export default {
   middleware: 'authenticated'
 }
 </script>
-<style>
-
-</style>