|
@@ -0,0 +1,302 @@
|
|
|
|
+<template>
|
|
|
|
+ <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"
|
|
|
|
+ :key="index"
|
|
|
|
+ >
|
|
|
|
+ <img :src="item.img" alt="" draggable="false">
|
|
|
|
+ <h2>{{item.title}}</h2>
|
|
|
|
+ <div class="location">
|
|
|
|
+ <img class="icon" src="@/assets/img/service/address.png" alt="" draggable="false">
|
|
|
|
+ <span>{{item.location}}</span>
|
|
|
|
+ </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>
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+import SearchBar from "@/components/SearchRedBtn.vue";
|
|
|
|
+import TabbarSmall from "@/components/TabbarSmall.vue";
|
|
|
|
+// import Select from "@/components/Select.vue";
|
|
|
|
+
|
|
|
|
+export default {
|
|
|
|
+ components: {
|
|
|
|
+ SearchBar,
|
|
|
|
+ TabbarSmall,
|
|
|
|
+ // Select,
|
|
|
|
+ },
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ activeTabbarIdx: 0,
|
|
|
|
+ attractionList: [
|
|
|
|
+ {
|
|
|
|
+ img: require(`@/assets/img/service/【西洋建筑】.png`),
|
|
|
|
+ title: '芜湖老海关',
|
|
|
|
+ location: '芜湖市新芜区滨江北路',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ img: require(`@/assets/img/service/【西洋建筑】.png`),
|
|
|
|
+ title: '芜湖老海关',
|
|
|
|
+ location: '芜湖市新芜区滨江北路',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ img: require(`@/assets/img/service/【西洋建筑】.png`),
|
|
|
|
+ title: '芜湖老海关',
|
|
|
|
+ location: '芜湖市新芜区滨江北路',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ img: require(`@/assets/img/service/【西洋建筑】.png`),
|
|
|
|
+ title: '芜湖老海关',
|
|
|
|
+ location: '芜湖市新芜区滨江北路',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ img: require(`@/assets/img/service/【西洋建筑】.png`),
|
|
|
|
+ title: '芜湖老海关',
|
|
|
|
+ location: '芜湖市新芜区滨江北路',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ img: require(`@/assets/img/service/【西洋建筑】.png`),
|
|
|
|
+ title: '芜湖老海关',
|
|
|
|
+ location: '芜湖市新芜区滨江北路',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ img: require(`@/assets/img/service/【西洋建筑】.png`),
|
|
|
|
+ title: '芜湖老海关',
|
|
|
|
+ location: '芜湖市新芜区滨江北路',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ img: require(`@/assets/img/service/【西洋建筑】.png`),
|
|
|
|
+ title: '芜湖老海关',
|
|
|
|
+ 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: {
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ onSearch() {
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ onTabbarChange(idx) {
|
|
|
|
+ this.activeTabbarIdx = idx
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+<style lang="less" scoped>
|
|
|
|
+.dont-miss {
|
|
|
|
+ background-color: #fff;
|
|
|
|
+ height: calc(100% - 80px);
|
|
|
|
+ overflow: auto;
|
|
|
|
+ padding: 3.3vw 4.5vw 4.5vw 4.5vw;
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ > .search-bar {
|
|
|
|
+ flex: 0 0 auto;
|
|
|
|
+ }
|
|
|
|
+ > .select-wrap {
|
|
|
|
+ flex: 0;
|
|
|
|
+ margin: 3.5vw 0 4vw 0;
|
|
|
|
+ > .select {
|
|
|
|
+ width: 15vw;
|
|
|
|
+ display: inline-block;
|
|
|
|
+ margin-right: 12.5vw;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ > .card-wrap {
|
|
|
|
+ flex: 1 0 1px;
|
|
|
|
+ overflow: auto;
|
|
|
|
+ margin-right: -4vw;
|
|
|
|
+ > article {
|
|
|
|
+ width: 43.6vw;
|
|
|
|
+ height: 62.7vw;
|
|
|
|
+ display: inline-block;
|
|
|
|
+ background: #F7F8FA;
|
|
|
|
+ border-radius: 1.1vw;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ margin-right: 3.5vw;
|
|
|
|
+ margin-bottom: 4vw;
|
|
|
|
+ > img {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 44.5vw;
|
|
|
|
+ object-fit: cover;
|
|
|
|
+ margin-right: 1.7vw;
|
|
|
|
+ }
|
|
|
|
+ > h2 {
|
|
|
|
+ font-size: 3.2vwx;
|
|
|
|
+ font-family: Source Han Serif CN;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ color: #333333;
|
|
|
|
+ line-height: 40px;
|
|
|
|
+ margin-left: 2.3vw;
|
|
|
|
+ margin-right: 2.3vw;
|
|
|
|
+ margin-bottom: 4.4vw;
|
|
|
|
+ font-size: 3.2vw;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ color: #333333;
|
|
|
|
+ line-height: 4vw;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ white-space: pre;
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
+ }
|
|
|
|
+ > .location {
|
|
|
|
+ margin-left: 2.3vw;
|
|
|
|
+ margin-right: 2.3vw;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ > img {
|
|
|
|
+ width: 3.2vw;
|
|
|
|
+ height: 3.2vw;
|
|
|
|
+ margin-right: 1.1vw;
|
|
|
|
+ }
|
|
|
|
+ > span {
|
|
|
|
+ font-size: 2.7vw;
|
|
|
|
+ color: #333333;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ white-space: pre;
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ > .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>
|