Browse Source

auto commit

gcz 3 years ago
parent
commit
924d8bfa5e
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/views/policy.vue

+ 8 - 2
src/views/policy.vue

@@ -5,6 +5,7 @@
     <div class="wrap">
       <div class="title">政策解读</div>
       <div class="policy-list">
+        <Empty v-if="total < 1" text="暂无内容" />
         <div
           class="policy-item"
           @click="goPolicy(item.artId)"
@@ -32,6 +33,7 @@
 <script>
 import Header from "@/components/header.vue";
 import Mainmenu from "@/components/mainmenu.vue";
+import Empty from "@/components/empty.vue";
 import { parseTime } from "@/utils/index";
 import { getPolicyList } from "@/utils/api";
 export default {
@@ -39,6 +41,7 @@ export default {
   components: {
     Header,
     Mainmenu,
+    Empty,
   },
   data() {
     return {
@@ -94,10 +97,13 @@ export default {
   margin-top: 40px;
 }
 .title {
+  position: relative;
   margin-bottom: 24px;
   font-size: 24px;
-  padding-bottom: 10px;
-  border-bottom: 1px solid #ddd;
+  // padding-bottom: 10px;
+  border-left: 2px solid #3d5d4c;
+  padding-left: 10px;
+  // border-bottom: 1px solid #ddd;
 }
 .policy-list {
   .policy-item {