<template>
	<view class="page">
		
		<view class="banner">
			<uv-swiper
			:list="bannerList" 
			indicator
			height="620rpx"
			indicatorStyle="bottom: 100rpx;"
			keyName="url"></uv-swiper>
			
			<view class="top">
				<view class="search">
					<uv-search 
					placeholder="请输入搜索服务" 
					:showAction="false"
					search-icon-size="40rpx"
					v-model="keyword"></uv-search>
				</view>
				<view class="title">
					<image src="/static/image/home/title.png" mode=""></image>
				</view>
			</view>
		</view>
		
		<view class="content">
			<view class="grid">
				<uv-grid :border="false"
				:col="5">
					<uv-grid-item 
					v-for="(item,index) in baseList"
					@click="$utils.navigateTo(item.path)"
					:key="index">
						<image class="grid-icon" :src="item.icon" mode="aspectFill"></image>
						<text class="grid-text">{{item.title}}</text>
					</uv-grid-item>
				</uv-grid>
			</view>
			
			<view class="video-title">
				视频中的景徳镇
			</view>
			<view class="videoList">
				<view class="video-item"
				v-for="(item, index) in 10"
				:key="index">
					<view class="image">
						<image src="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/BB1msKSi.img" mode="aspectFill"></image>
						<view class="icon">
							<uv-icon
							size="35rpx"
							name="play-right-fill">
							</uv-icon>
						</view>
					</view>
					<view class="bottom">
						<view class="headImage">
							<image src="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/BB1msKSi.img" mode="aspectFill"></image>
							爱旅行的小张
						</view>
						<view class="like">
							<uv-icon 
							size="45rpx" 
							v-if="false"
							name="heart"></uv-icon>
							<uv-icon
							size="45rpx" 
							color="#FF4340"
							v-else
							name="heart-fill"></uv-icon>
							300
						</view>
					</view>
				</view>
			</view>
			
		</view>
		
		
		<PrivacyAgreementPoup/>
		
		<tabber select="0"/>
	</view>
</template>

<script>
	import PrivacyAgreementPoup from '@/components/config/PrivacyAgreementPoup.vue'
	export default {
		components : {
			PrivacyAgreementPoup,
		},
		data() {
			return {
				queryParams: {
					pageNo: 1,
					pageSize: 10,
					title: ''
				},
				baseList : [
					{
						icon : '/static/image/home/g1.png',
						title : '申遗历程',
						path : '/pages_order/service/applyRelic',
					},
					{
						icon : '/static/image/home/g2.png',
						title : '遗产概况',
						path : '',
					},
					{
						icon : '/static/image/home/g3.png',
						title : '遗产讲述',
						path : '',
					},
					{
						icon : '/static/image/home/g4.png',
						title : '达人同游',
						path : '',
					},
					{
						icon : '/static/image/home/g5.png',
						title : '遗产路径',
						path : '',
					},
					{
						icon : '/static/image/home/g6.png',
						title : '我要跟拍',
						path : '',
					},
					{
						icon : '/static/image/home/g7.png',
						title : '非遗体验',
						path : '',
					},
					{
						icon : '/static/image/home/g8.png',
						title : '无忧服务',
						path : '/pages_order/service/carefree',
					},
					{
						icon : '/static/image/home/g9.png',
						title : '文创好物',
						path : '/pages_order/product/productList',
					},
					{
						icon : '/static/image/home/g10.png',
						title : '我要帮助',
						path : '',
					},
				],
				bannerList: [
					{
						url: 'https://img-s-msn-com.akamaized.net/tenant/amp/entityid/BB1msKSi.img',
					}, 
					{
						url: 'https://img-s-msn-com.akamaized.net/tenant/amp/entityid/BB1msKSi.img',
					}, 
					{
						url: 'https://img-s-msn-com.akamaized.net/tenant/amp/entityid/BB1msKSi.img',
					},
				],
				productList: [],
				keyword : '',
			}
		},
		computed : {
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="scss">
	.page{
		.banner{
			position: relative;
			.top{
				position: absolute;
				top: var(--status-bar-height);
				left: 0;
				padding-top: 30rpx;
				display: flex;
				width: 100%;
				flex-direction: column;
				align-items: center;
				.search{
					width: 400rpx;
					margin-left: -100rpx;
					/deep/ .uv-search__content__icon{
						padding: 30rpx 0;
					}
				}
				.title{
					image{
						width: 600rpx;
						height: 300rpx;
					}
				}
			}
		}
		.content{
			position: relative;
			margin-top: -60rpx;
			.grid{
				padding-bottom: 30rpx;
				background-color: #fff;
				border-radius: 60rpx;
				box-shadow: 0 0 10rpx 10rpx #00000033;
				.grid-icon{
					width: 80rpx;
					height: 80rpx;
					margin-bottom: 10rpx;
					margin-top: 30rpx;
				}
				.grid-text{
					font-size: 24rpx;
					font-weight: 900;
				}
			}
			
			.video-title{
				padding: 20rpx 30rpx;
				background-color: $uni-color;
				color: #fff;
				font-weight: 900;
				font-size: 24rpx;
				margin: 10rpx 20rpx;
				margin-top: 30rpx;
				width: fit-content;
				border-radius: 20rpx;
			}
			.videoList{
				display: flex;
				flex-wrap: wrap;
				.video-item{
					margin: 20rpx;
					width: 335rpx;
					.image{
						position: relative;
						width: 100%;
						height: 460rpx;
						border-radius: 30rpx;
						overflow: hidden;
						image{
							width: 100%;
							height: 100%;
						}
						.icon{
							position: absolute;
							right: 30rpx;
							top: 30rpx;
							width: 60rpx;
							height: 60rpx;
							background-color: #ffffffaa;
							border-radius: 50%;
							display: flex;
							justify-content: center;
							align-items: center;
						}
					}
					.bottom{
						padding: 10rpx 0;
						font-size: 22rpx;
						display: flex;
						justify-content: space-between;
						.headImage{
							display: flex;
							align-items: center;
							image{
								width: 50rpx;
								height: 50rpx;
								border-radius: 50%;
								margin-right: 6rpx;
							}
						}
						.like{
							display: flex;
							align-items: center;
						}
					}
				}
			}
		}
	}
</style>
