浏览代码

享服务-景点开放-出行政策

任一存 2 年之前
父节点
当前提交
c45ceafc83
共有 4 个文件被更改,包括 135 次插入2 次删除
  1. 二进制
      src/assets/img/service/plague-banner.jpg
  2. 1 1
      src/router/index.js
  3. 133 0
      src/views/Serve/TravelPlague.vue
  4. 1 1
      src/views/Serve/index.vue

二进制
src/assets/img/service/plague-banner.jpg


+ 1 - 1
src/router/index.js

@@ -139,7 +139,7 @@ const routes = [{
         name: 'TravelPlague',
         meta: {
           myInd: 2,
-          myTitle: '出游防疫',
+          myTitle: '景点开放',
         },
         component: () => import('../views/Serve/TravelPlague.vue')
       },

+ 133 - 0
src/views/Serve/TravelPlague.vue

@@ -2,6 +2,7 @@
   <div class="dont-miss">
     <SearchBar class="search-bar" @search="onSearch"></SearchBar>
     <TabbarSmall :tabList="['景点开放', '出行政策']" @change="onTabbarChange"></TabbarSmall>
+
     <div class="card-wrap" v-show="activeTabbarIdx === 0">
       <article
         v-for="(item, index) in attractionList"
@@ -15,6 +16,35 @@
         </div>
       </article>
     </div>
+    
+    <div class="policy" v-show="activeTabbarIdx === 1">
+      <div class="banner-wrap">
+        <img class="banner" src="@/assets/img/service/plague-banner.jpg" alt="" draggable="false">
+      </div>
+      <ul class="tag-list">
+        <li
+          class="tag"
+          v-for="(item, index) in policyTagList"
+          :key="index"
+        >
+          {{item}}
+        </li>
+      </ul>
+      <div class="article-wrap">
+        <article
+          v-for="(item, index) in policyList"
+          :key="index"
+        >
+          <div class="left-wrap">
+            <h2>{{item.title}}</h2>
+            <span class="time">{{item.time}}</span>
+          </div>
+          <div class="right-wrap">
+            <img :src="item.img" alt="" draggable="false">
+          </div>
+        </article>
+      </div>
+    </div>
   </div>
 </template>
 
@@ -74,6 +104,43 @@ export default {
           location: '芜湖市新芜区滨江北路',
         },
       ],
+      policyTagList: [
+        '来(返)芜湖政策',
+        '离芜出行政策',
+        '核酸检测',
+      ],
+      policyList: [
+        {
+          title: '来(返)芜湖人员健康管理风险提醒',
+          time: '20222-10-10       17:00:52',
+          img: require('@/assets/img/service/plague-banner.jpg')
+        },
+        {
+          title: '来(返)芜湖人员健康管理风险提醒',
+          time: '20222-10-10       17:00:52',
+          img: require('@/assets/img/service/plague-banner.jpg')
+        },
+        {
+          title: '来(返)芜湖人员健康管理风险提醒',
+          time: '20222-10-10       17:00:52',
+          img: require('@/assets/img/service/plague-banner.jpg')
+        },
+        {
+          title: '来(返)芜湖人员健康管理风险提醒',
+          time: '20222-10-10       17:00:52',
+          img: require('@/assets/img/service/plague-banner.jpg')
+        },
+        {
+          title: '来(返)芜湖人员健康管理风险提醒',
+          time: '20222-10-10       17:00:52',
+          img: require('@/assets/img/service/plague-banner.jpg')
+        },
+        {
+          title: '来(返)芜湖人员健康管理风险提醒',
+          time: '20222-10-10       17:00:52',
+          img: require('@/assets/img/service/plague-banner.jpg')
+        },
+      ]
     }
   },
   computed: {
@@ -165,5 +232,71 @@ export default {
       }
     }
   }
+  > .policy {
+    > .banner-wrap {
+      border-radius: 1.1vw;
+      overflow: hidden;
+      margin-bottom: 5.6vw;
+      > .banner {
+        width: 100%;
+      }
+    }
+    > .tag-list {
+      display: block;
+      margin-top: calc(9.2vw - 3.2vw);
+      > .tag {
+        background: #F4F4F4;
+        border-radius: 0.5vw;
+        padding: 2.5vw 4vw;
+        font-size: 2.7vw;
+        color: #333333;
+        margin-right: 4.5vw;
+        margin-bottom: 3.2vw;
+        display: inline-block;
+        overflow: hidden;
+      }
+    }
+    > .article-wrap {
+      height: 28vw;
+      > article {
+        background: #F7F8FA;
+        border-radius: 1.1vw;
+        display: flex;
+        overflow: hidden;
+        margin-bottom: 6vw;
+        > .left-wrap {
+          flex: 0 1 auto;
+          width: 47.7vw;
+          padding: 5.2vw 3.5vw;
+          display: flex;
+          flex-direction: column;
+          justify-content: space-between;
+          > h2 {
+            font-size: 3.2vw;
+            font-weight: bold;
+            color: #333333;
+            line-height: 4vw;
+            display: -webkit-box;
+            -webkit-box-orient: vertical;
+            -webkit-line-clamp: 2;
+            overflow: hidden;
+          }
+          > .time {
+            font-size: 2.7vw;
+            color: #333333;
+          }
+        }
+        > .right-wrap {
+          flex: 0 1 auto;
+          width: 43.6vw;
+          > img {
+            width: 100%;
+            height: 100%;
+            object-fit: cover;
+          }
+        }
+      }
+    }
+  }
 }
 </style>

+ 1 - 1
src/views/Serve/index.vue

@@ -59,7 +59,7 @@
     <div class="travel-plague">
       <h3>出游防疫</h3>
       <router-link class="more" :to="{name: 'TravelPlague'}">更多  》</router-link>
-      <TabbarSmall :tabList="['景开放', '出行政策']" @change="onTravelPlageTabbarChange"></TabbarSmall>
+      <TabbarSmall :tabList="['景开放', '出行政策']" @change="onTravelPlageTabbarChange"></TabbarSmall>
       <div class="open-status" v-show="travelPlagueActiveIdx === 0">
         <div class="swiper-container">
           <div class="swiper-wrapper">