<template>
	<view>
		<view>
			<view style="padding: 4%">
				<u-swiper :list="list1" @change="change" @click="click"></u-swiper>
			</view>
			<view class="listbox flex-row">
				<view class="boxitem" @click="tolist(1)">
					<text class="iconfont icon-xuzhixianxiao"></text>
					<text>参观须知</text>
				</view>
				<view class="boxitem" @click="tolist(2)">
					<text class="iconfont icon-bus-alt"></text>
					<text>公共交通</text>
				</view>
				<view class="boxitem" @click="tolist(3)">
					<text class="iconfont icon-tousujianyi"></text>
					<text>投诉建议</text>
				</view>
				<view class="boxitem" @click="tolist(4)">
					<text class="iconfont icon-changjianwenti"></text>
					<text>常见问题</text>
				</view>
				<view class="boxitem" @click="tolist(5)">
					<text class="iconfont icon-lianxiwomen"></text>
					<text>联系我们</text>
				</view>
			</view>
		</view>
		<view class="box-footer"
			style="position: fixed;bottom: -60rpx;left: 0;text-align: center;width: 100%;z-index: -1;">
			<image src="../../static/img/footer_logo.png" class="footer-img"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list1: [
					'https://cdn.uviewui.com/uview/swiper/swiper1.png',
					'https://cdn.uviewui.com/uview/swiper/swiper2.png',
					'https://cdn.uviewui.com/uview/swiper/swiper3.png',
				]
			}
		},
		methods: {
			tolist(type) {
				uni.navigateTo({
					url: "list"
				})
			}
		}
	}
</script>

<style>
	page {
		background: #fff;
	}

	.iconfont {
		font-size: 48rpx;
		color: #dec096;
		margin-bottom: 15rpx;
	}

	.footer-img {
		width: 421rpx;
		height: 364rpx;
	}

	.listbox {
		flex-wrap: wrap;
		padding: 2%;
	}

	.boxitem {
		background: url("@/static/img/nav_bg.png") no-repeat;
		background-size: 100% 100%;
		width: 50%;
		width: 46%;
		height: 100px;
		margin-bottom: 20rpx;
		margin-bottom: 20rpx;
		margin-right: 2%;
		margin-left: 2%;
		font-size: 32rpx;
		font-family: PingFang SC;
		font-weight: 400;
		color: #351C1B;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
	}
</style>
