<template>
	<view class="wrap">
		<view class="title">请选择要添加的主营信息</view>
		<label v-for="item,index in select" :key="index" class="item" @tap="toAdd(item,index)">
			<image :src="isIndex == index?'https://wx.fujinyangche.com/nvrnetwork/images/select.png':'https://wx.fujinyangche.com/nvrnetwork/images/no_select.png'"/>
			<view>{{item.title}}</view>
		</label>
		<!-- <label>
			<radio name="allCar" value="商用车专修"/>商用车专修
		</label> 
		<label>
			<radio name="catPart" value="4S店"/>4S店
		</label> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				select:[
					{title:'小型汽车'},
					{title:'商用车专修'},
					{title:'4S店'},
				],//选择分类
				isIndex:null,//默认选中
				paramType:'',//分类类型
			}
		},
		methods: {
			//跳转添加主营信息
			toAdd(item,index){
				this.isIndex = index;
				this.paramType = index + 1;
				let value = item.title;
				if(value == '4S店'){
					// uni.navigateTo({
						
					// })
				}else{
					uni.navigateTo({
						url:'../service_add/service_add?paramType=' + this.paramType
					})
				}
			}
		}
	}
</script>

<style>
	.wrap{
		padding-top:200rpx;
		box-sizing: border-box;
	}
	.title{
	  font-size: 40rpx;
	  color:#333333;
	  margin-bottom: 30rpx;
	  text-align: center;
	}
	.item{
	  display:flex;
	  color:#000000;
	  font-size: 32rpx;
	  margin-bottom: 32rpx;
	  align-items: center;
	}
	.item image{
		display: block;
		width:30rpx;
		height:30rpx;
		margin-left: 40%;
		margin-right: 10rpx;
	}
</style>
