<!-- 选择页 -->
<template>
	<view class="content">
		<view class="bil">
			<view class="top-icon" @click="getback()">
				<uni-icons type="left" size="18"></uni-icons>
				<view class="">返回</view>
			</view>
			<view class="top-white">
				请选择您需要的业务
			</view>
			<view class="box">
				<view class="xz-box"   id="y1" @click="getsx(1)">
					<view class="box-wenzi">拖车</view>
				</view>
				<view class="xz-box" id="y2" @click="getsx(2)">
					<view class="box-wenzi">送油</view>
				</view>
				<view class="xz-box" id="y3" @click="getsx(3)">
					<view class="box-wenzi">搭电</view>
				</view>
				<view class="xz-box" id="y4" @click="getsx(4)">
					<view class="box-wenzi">换胎</view>
				</view>
				<view class="xz-box" id="y5" @click="getsx(5)">
					<view class="box-wenzi">扣车</view>
				</view>
				
				
				
				
			</view>
			<!-- <view class="anniu" @click="goindex()">
				<view class="">立即进入</view>
			</view> -->
			</view>
				<tabBar></tabBar>
	</view>
</template>

<script>
	import request from '../../utils/request';
	import tabBar from'../../components/tabBar/tabBar.vue'
	
	export default{
		data(){
			return{
				sx1:true,
				sx2:false,
			}
		},
		components:{
			tabBar,
		},
		methods:{
			getback(){
			uni.navigateBack({
					delta:1,
				})	
			},
			getsx(id){
				uni.navigateTo({
					url:'/pages/rescue/initiate?id='+id
				})
			},
			goindex(){
				uni.navigateTo({
					url:'/pages/index/index'
				})
			}
		}
		
	}
</script>

<style scoped lang="scss">
	.content{
		width: 100%;
		height: calc(100vh);
		background: white;
		
	}
	.bil{
		box-sizing: border-box;
		padding: 18px;
		padding-top: 50px;
	}
	.top-icon{
		display: flex;
		color: #999999;
		margin-bottom: 25px;
	}
	.top-white{
		color: #333333;
		font-size: 19px;
		font-weight: bold;
		// margin-top: 40px;
	}
	.box{
		box-sizing: border-box;
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
	}
	.xz-box{
		height: 80px;
		width: 48%;
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 16px;
		font-weight: 400;
		color: #FFFFFF;
		background-size: cover;
		background-position: center;
		margin-top: 14px;
		
	}
	.anniu{
		background: linear-gradient(105deg, #FFE3AC 0%, #F3BA60 98%);
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 16px;
		font-weight: 400;
		color: #542F0E;
		width: 100%;
		border-radius: 10rpx;
		height: 45px;
		margin-top: 40px;
	}
	#y1{
		background-image: url('../../static/tc.png');
	}
	#y2{
		background-image: url('../../static/sy.png');
	}
	#y3{
		background-image: url('../../static/dd.png');
	}
	#y4{
		background-image: url('../../static/ht.png');
	}
	#y5{
		background-image: url('../../static/kc.png');
	}
</style>