|
@@ -1,34 +1,40 @@
|
|
|
<template>
|
|
|
<view class="container">
|
|
|
- <view class="page-section page-section-spacing swiper">
|
|
|
- <swiper class="swiper" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" :duration="duration">
|
|
|
- <swiper-item v-for="(item, index) in bannerList" :key="index">
|
|
|
- <image style="width: 100%; height: 100%;" :src="item"></image>
|
|
|
- </swiper-item>
|
|
|
- </swiper>
|
|
|
- </view>
|
|
|
- <uni-notice-bar moreColor="#000" scrollable show-get-more show-icon :text="notice" more-text="更多>>" @getmore="getMore" />
|
|
|
- <!-- 党建 -->
|
|
|
- <uni-section titleFontSize="16px" class="mb-10 sectionBox" title="党建引领" type="line">
|
|
|
- <view class="card" v-for="(item, index) in construct" :key="index" :border="false" @click="illnessBtn(item)">
|
|
|
- <image style="width: 50%; height: 55px; margin: 0 auto; display: block;" :src="item.url"></image>
|
|
|
- <text class="title">{{ item.title }}</text>
|
|
|
- </view>
|
|
|
- </uni-section>
|
|
|
- <!-- 治理 -->
|
|
|
- <uni-section titleFontSize="16px" class="mb-10 sectionBox" title="精细治理" type="line">
|
|
|
- <view class="card" v-for="(item, index) in govern" :key="index" :border="false" @click="illnessBtn(item)">
|
|
|
- <image style="width: 50%; height: 55px; margin: 0 auto; display: block;" :src="item.url"></image>
|
|
|
- <text class="title">{{ item.title }}</text>
|
|
|
+ <!-- 动画 -->
|
|
|
+ <uni-transition ref="ani" class="dhbox" custom-class="transition" :mode-class="modeClass" :show="dhshow" :styles="styles">
|
|
|
+ <img src="https://fuyu.scapp.cn/static/wxa/dh.jpg" class="dhimg">
|
|
|
+ </uni-transition>
|
|
|
+ <view v-show="!dhshow">
|
|
|
+ <view class="page-section page-section-spacing swiper">
|
|
|
+ <swiper class="swiper" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" :duration="duration">
|
|
|
+ <swiper-item v-for="(item, index) in bannerList" :key="index">
|
|
|
+ <image style="width: 100%; height: 100%;" :src="item"></image>
|
|
|
+ </swiper-item>
|
|
|
+ </swiper>
|
|
|
</view>
|
|
|
- </uni-section>
|
|
|
- <!-- 疫情 -->
|
|
|
- <uni-section titleFontSize="16px" class="mb-10 sectionBox" title="疫情防控" type="line">
|
|
|
- <view class="card" v-for="(item, index) in list" :key="index" :border="false" @click="illnessBtn(item)">
|
|
|
- <image style="width: 50%; height: 55px; margin: 0 auto; display: block;" :src="item.url"></image>
|
|
|
- <text class="title">{{ item.title }}</text>
|
|
|
- </view>
|
|
|
- </uni-section>
|
|
|
+ <uni-notice-bar moreColor="#000" scrollable show-get-more show-icon :text="notice" more-text="更多>>" @getmore="getMore" />
|
|
|
+ <!-- 党建 -->
|
|
|
+ <uni-section titleFontSize="16px" class="mb-10 sectionBox" title="党建引领" type="line">
|
|
|
+ <view class="card" v-for="(item, index) in construct" :key="index" :border="false" @click="illnessBtn(item)">
|
|
|
+ <image style="width: 50%; height: 55px; margin: 0 auto; display: block;" :src="item.url"></image>
|
|
|
+ <text class="title">{{ item.title }}</text>
|
|
|
+ </view>
|
|
|
+ </uni-section>
|
|
|
+ <!-- 治理 -->
|
|
|
+ <uni-section titleFontSize="16px" class="mb-10 sectionBox" title="精细治理" type="line">
|
|
|
+ <view class="card" v-for="(item, index) in govern" :key="index" :border="false" @click="illnessBtn(item)">
|
|
|
+ <image style="width: 50%; height: 55px; margin: 0 auto; display: block;" :src="item.url"></image>
|
|
|
+ <text class="title">{{ item.title }}</text>
|
|
|
+ </view>
|
|
|
+ </uni-section>
|
|
|
+ <!-- 疫情 -->
|
|
|
+ <uni-section titleFontSize="16px" class="mb-10 sectionBox" title="疫情防控" type="line">
|
|
|
+ <view class="card" v-for="(item, index) in list" :key="index" :border="false" @click="illnessBtn(item)">
|
|
|
+ <image style="width: 50%; height: 55px; margin: 0 auto; display: block;" :src="item.url"></image>
|
|
|
+ <text class="title">{{ item.title }}</text>
|
|
|
+ </view>
|
|
|
+ </uni-section>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -39,6 +45,12 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ styles: {
|
|
|
+ width: '100vw',
|
|
|
+ height: '100vh',
|
|
|
+ },
|
|
|
+ modeClass: ['fade', 'zoom-in'],
|
|
|
+ dhshow: true,
|
|
|
list: [],
|
|
|
policyList: [],
|
|
|
notice: '通知公告',
|
|
@@ -52,6 +64,11 @@
|
|
|
}
|
|
|
},
|
|
|
async mounted() {
|
|
|
+ wx.hideTabBar();
|
|
|
+ setTimeout(() => {
|
|
|
+ this.dhshow = !this.dhshow;
|
|
|
+ wx.showTabBar();
|
|
|
+ }, 3000)
|
|
|
const config = await requestLogin.getJson();
|
|
|
const { list, bannerList, governList, construct } = config.data;
|
|
|
this.list = list;
|
|
@@ -175,4 +192,15 @@
|
|
|
margin-bottom: 5px;
|
|
|
color: #999;
|
|
|
}
|
|
|
+ .dhbox {
|
|
|
+ position: fixed;
|
|
|
+ z-index: 999;
|
|
|
+ width: 100vw;
|
|
|
+ height: 100vh;
|
|
|
+ }
|
|
|
+ .dhimg {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
</style>
|