Browse Source

添加图片

asd123a20 2 years ago
parent
commit
9705bec1b2
2 changed files with 12 additions and 0 deletions
  1. BIN
      src/assets/hf.jpg
  2. 12 0
      src/views/Home.vue

BIN
src/assets/hf.jpg


+ 12 - 0
src/views/Home.vue

@@ -1,5 +1,10 @@
 <template>
   <div class="home">
+    <div class="listBox">
+      <a class="hf" href="http://www.gov.cn/zhuanti/zggcddescqgdbdh/index.htm">
+        <img src="../assets/hf.jpg" class="hfimg">
+      </a>
+    </div>
     <div class="listBox">
       <banner class="lists"></banner>
       <threeList parentCode="02" class="listItem" :imgUrl="newsImgUrl" :data="news" :isImg="false" title="社科要闻" code="02"></threeList>
@@ -174,6 +179,13 @@ export default {
     .listItem {
       margin: 0 0.5%;
     }
+    .hf {
+      display: block;
+      width: 100%;
+      .hfimg {
+        width: 100%;
+      }
+    }
   }
   .links {
     width: 68%;