<template>
	<view class="container">
		<view class="title">成员基本信息</view>

		<view class="box">
			手机
			<view class="box_input">
				<input type="text" v-model="phone" />
			</view>
		</view>

		<view class="box">
			状态
			<picker @change="bindPickerChange" :value="index" :range="array">
				<view class="box_input">
					{{ array[index] }}
					<img src="../../static/images/repairsImg/bottom.png" />
				</view>
			</picker>
		</view>

		<view class="box">
			工种
			<picker @change="bindPickerChange2" :value="index2" :range="array2">
				<view class="box_input">
					{{ array2[index2] }}
					<img src="../../static/images/repairsImg/bottom.png" />
				</view>
			</picker>
		</view>

		<view class="title">接单考核时间</view>

		<view class="box_time">
			<view class="time">
				<input type="text" v-model="time" />
				<img src="../../static/images/repairsImg/clock.png" />
			</view>
			分钟
		</view>

		<view class="title">维修考核时间</view>

		<view class="box_time">
			<view class="time">
				<input type="text" v-model="time2" />
				<img src="../../static/images/repairsImg/clock.png" />
			</view>
			分钟
		</view>

		<!-- 提交按钮区域 -->
		<view class="btn">确认提交</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			phone: '13659864589',
			time: 10,
			time2: 15,
			array: ['接单中', '停止接单', '订单饱和'],
			index: 0,
			array2: ['电工', '水工', '泥工', '空调'],
			index2: 0
		}
	},
	methods: {
		bindPickerChange(e) {
			console.log('picker发送选择改变，携带值为', e.detail.value)
			this.index = e.detail.value
		},
		bindPickerChange2(e) {
			console.log('picker发送选择改变，携带值为', e.detail.value)
			this.index2 = e.detail.value
		}
	}
}
</script>

<style lang="scss" scoped>
.container {
	box-sizing: border-box;
	padding: 0 30rpx;
	width: 100vw;
	height: 100vh;

	.title {
		display: flex;
		align-items: center;
		height: 112rpx;
		font-size: 36rpx;
		font-weight: bold;
	}

	.box {
		display: flex;
		align-items: center;
		margin-bottom: 30rpx;
		height: 94rpx;
		color: #808080;
		font-size: 32rpx;

		.box_input {
			display: flex;
			justify-content: space-between;
			align-items: center;
			box-sizing: border-box;
			margin-left: 33rpx;
			padding: 0 33rpx;
			width: 542rpx;
			height: 94rpx;
			color: #000000;
			border-radius: 10rpx;
			border: 1rpx solid #cccccc;

			input {
				width: 100%;
				height: 100%;
			}

			img {
				width: 54rpx;
				height: 54rpx;
			}
		}
	}

	.box_time {
		display: flex;
		align-items: center;
		height: 100rpx;
		font-size: 32rpx;
		font-weight: bold;

		.time {
			display: flex;
			justify-content: space-between;
			align-items: center;
			box-sizing: border-box;
			padding: 0 23rpx;
			margin-right: 25rpx;
			width: 237rpx;
			height: 68rpx;
			font-weight: 400;
			border-radius: 4rpx;
			border: 1rpx solid #a6a6a6;

			input {
				flex: 1;
			}

			img {
				width: 40rpx;
				height: 40rpx;
			}
		}
	}

	.btn {
		position: absolute;
		bottom: 66rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		margin: auto;
		width: 690rpx;
		height: 100rpx;
		color: #fff;
		font-size: 32rpx;
		border-radius: 12rpx;
		background-color: #6fb6b8;
	}
}
</style>
