<template>
	<view class="page">
			
		<image :src="configList.img_13"
		class="page-bg"
		mode="aspectFill"></image>
		
		<image :src="configList.img_6"
		class="logo"
		mode="widthFix"></image>
		
		<view class="article">
			<uv-parse :content="configList.introduce"></uv-parse>
		</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>
		
		<view class="uni-color-btn"
		@click="start">
			开始测试
		</view>
		
		<text class="second-color">{{ configList.bg_title }}</text>
		
	</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'
				// })
				uni.navigateTo({
					url: '/pages/index/home'
				})
			},
			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>
	.page{
		text-align: center;
		display: flex;
		flex-direction: column;
		align-items: center;
		.logo{
			margin-top: 100rpx;
		}
		.article{
			margin: 30rpx;
		}
		.uni-color-btn{
			margin-top: 100rpx;
			width: 560rpx;
		}
		.logo-list{
			display: flex;
			gap: 30rpx;
			margin-top: 20rpx;
			image{
				width: 160rpx;
				height: 90rpx;
			}
			.logoo-item{
				background-color: #fff;
				border-radius: 50%;
				height: 200rpx;
				width: 200rpx;
				box-shadow: 0 0 10rpx 10rpx #00000011;
				display: flex;
				align-items: center;
				justify-content: center;
				flex-direction: column;
				.btn{
					font-size: 20rpx;
					color: $uni-color-primary;
					border-radius: 30rpx;
					padding: 4rpx 14rpx;
				}
			}
		}
	}
</style>