<template>
	<view class="page">
		<view class="item" v-for="(item,index) in 2" :key="index">
			<image class="d" src="https://t17.9026.com/web/statics/image/index/16.png" mode=""></image>
			<view class="main-around">
				<view v-for="(item1,index1) in 3" :key="index1" class="f" @click="getTheme(index1)">
					<image class="f" src="https://t17.9026.com/web/statics/image/index/16.png" mode=""></image>
					<image v-show="activeIndex===index1" class="l" src="https://t17.9026.com/web/statics/image/index/k.png" mode=""></image>
				</view>
				<view class="main-center cross-center g">
					更多<image class="h" src="https://t17.9026.com/web/statics/image/index/arrow-right-yellow.png" mode=""></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				activeIndex:0
			};
		},
		methods:{
			getTheme(index){
				this.activeIndex=index1
			}
		}
	}
</script>

<style lang="scss" scoped>
	.page {
		padding-top: 20rpx;
		min-height: 100vh;
		background-color: #fff;
	}

	.item {
		width: 678rpx;
		height: 490rpx;
		background: #FFFFFF;
		box-shadow: 1rpx 7rpx 23rpx 1rpx rgba(85, 82, 82, 0.19);
		border-radius: 10rpx;
		overflow: hidden;
		margin: 0 auto 24rpx;

		.d {
			width: 678.2rpx;
			height: 360.4rpx;
		}
		
		.f {
			width: 154rpx;
			height: 98rpx;
			border-radius: 6px;
			position: relative;
			.l{
				position: absolute;
				top: -7rpx;
				left: -1px;
				width: 157rpx;
				height: 109rpx;
			}
		}

		.g {
			width: 154rpx;
			height: 98rpx;
			border-radius: 6px;
			background: #F1EAE4;
			font-size: 24rpx;
			font-weight: bold;
			color: #F98F28;
			
			.h {
				width: 10rpx;
				height: 15rpx;
				margin-left: 9rpx;
			}
		}
	}
</style>
