Browse Source

修改图片大小

asd123a20 1 year ago
parent
commit
bdd8d588c8
2 changed files with 7 additions and 6 deletions
  1. 2 2
      src/components/list/threeList.vue
  2. 5 4
      src/views/Home.vue

+ 2 - 2
src/components/list/threeList.vue

@@ -89,7 +89,7 @@ export default {
   .titleImg {
     display: block;
     width: 100%;
-    height: 75px;
+    height: 85px;
   }
   .title {
     display: flex;
@@ -136,7 +136,7 @@ export default {
   .isList {
     width: 90%;
     display: flex;
-    margin: 10px auto;
+    margin: 7px auto;
     border-bottom: 1px dashed #999;
     .isList-img {
       width: 10px;

+ 5 - 4
src/views/Home.vue

@@ -1,8 +1,8 @@
 <template>
   <div class="home">
-    <el-carousel height="100px" class="hfbox" direction="vertical" autoplay indicator-position="none" :interval="3000">
+    <el-carousel height="80px" class="hfbox" direction="vertical" autoplay indicator-position="none" :interval="3000">
       <el-carousel-item>
-        <a class="hf" href="http://www.jlskl.cn/www/details/6459a6d90d4f95c7b2696b2c">
+        <a class="hf" @click="imgClick('ztjy', 'zt')">
           <img src="../assets/hf1.jpg" class="hfimg">
         </a>
       </el-carousel-item>
@@ -184,6 +184,7 @@ export default {
     margin: 0.5% auto;
     .hf {
       width: 100%;
+      cursor: pointer;
       .hfimg {
         width: 100%;
         height: 100px;
@@ -215,13 +216,13 @@ export default {
     position: relative;
     .three {
       width: 100%;
-      height: 75%;
+      height: 74%;
     }
     .xz {
       width: 100%;
       position: absolute;
       bottom: 0;
-      height: 75px;
+      height: 85px;
     }
   }
 }