<template>
	<view class="home">
			
		<image src="/static/image/bg/5.png"
		class="page-bg"
		mode="aspectFill"></image>
		
		<view class="content_now">
			<view class="article">
				<uv-parse :content="configList.introduce"></uv-parse>
			</view>
		</view>
		
		<view class="an">
			<view class="btn2"
			@click="start">
				开始
			</view>
			
			<view class="logo-list">
				<view class="logoo-item"
				:key="index"
				v-for="(item, index) in list">
					<image :src="item.image" mode="aspectFill"></image>
					<view class="btn"
					@click="toBrand(item.id)">
						点击进入
					</view>
				</view>
			</view>
			
			<text class="second-color">{{ configList.bg_title }}</text>
		</view>
		
	</view>
</template>

<script>
	import { mapState } from 'vuex'
	export default {
		computed : {
			...mapState(['articleList', 'configList']),
		},
		data() {
			return {
				key : 'cancel_value',
				list : [],
			}
		},
		onLoad(args) {
			this.getBrand()
		},
		methods: {
			next(){
			},
			start(){
				uni.navigateTo({
					url: '/pages/index/article'
				})
			},
			getBrand(){
				this.$api('getBrand', res => {
					if(res.code == 200){
						this.list = res.result
					}
				})
			},
			toBrand(id){
				uni.navigateTo({
					url: '/pages/index/logoInfo?id=' + id
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.article{
		width: 600rpx;
		font-size: 28rpx;
		line-height: 50rpx;
	}
	.an{
		position: fixed;
		bottom: 190rpx;
		text-align: center;
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
	}
	.second-color{
		margin-top: 20rpx;
	}
	.btn2 {
		border: 4rpx solid $uni-color;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 16rpx 200rpx;
		color: $uni-color;
		border-radius: 10rpx;
	}
	.logo-list{
		display: flex;
		gap: 30rpx;
		margin-top: 20rpx;
		image{
			width: 160rpx;
			height: 90rpx;
		}
		.logoo-item{
			background-color: rgba(236, 184, 100, 0.1);
			border: 1rpx solid rgba(236, 184, 100, 0.4);
			padding: 10rpx 20rpx;
			border-radius: 10rpx;
			.btn{
				font-size: 20rpx;
				color: #fff;
				background-color: rgba(236, 184, 100, 1);
				border-radius: 30rpx;
				padding: 4rpx 14rpx;
			}
		}
	}
</style>