<template>
	<view class="riderr_login">
		<view class="rider_type">
			<view class="type_name">请选择注册类型</view>
			<view class="type_tit">请选择您是那种注册用户类型</view>
		</view>
		<view class="type_box" v-for="(item,index) in list" :key="item.id" @click="bindrider(item.name)">
			<view class="name">{{item.name}}</view>
			<view class="icon">
				<u-icon name="arrow-right"></u-icon>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					id: 1,
					name: '跑腿骑手'
				}, {
					id: 2,
					name: '同城师傅'
				}]
			}
		},
		methods: {
			bindrider(name) {
				console.log(name)
				if(name == '跑腿骑手'){
					uni.navigateTo({
						url:'/pages/login/login'
					})
				}
			}
		}
	}
</script>

<style>
	.riderr_login {
		width: 100%;
	}

	.rider_type {
		width: 90%;
		margin: 0 auto;
		margin-top: 50rpx;
		margin-bottom: 135rpx;
	}

	.type_name {
		font-size: 38rpx;
		font-weight: bold;
		letter-spacing: 2rpx;
	}

	.type_tit {
		color: #999999;
		font-size: 21rpx;
		margin-top: 10rpx;
	}

	.type_box {
		width: 90%;
		margin: 0 auto;
		height: 110rpx;
		background: #F2F2F2;
		display: flex;
		margin-bottom: 20rpx;
		border-radius: 18rpx;
	}

	.name {
		flex: 1;
		font-size: 30rpx;
		color: black;
		display: flex;
		justify-content: left;
		align-items: center;
		margin-left: 60rpx;
	}

	.icon {
		flex: 1;
		display: flex;
		justify-content: flex-end;
		align-items: center;
		margin-right: 30rpx;
	}

	.icon image {
		width: 15rpx;
		height: 25rpx;
	}
</style>
