<template>
	<view class="box">
		<view class="content">


			<view class="leftTitle2" style="padding: 24rpx 0; border-bottom: 1rpx solid #EEEEEE;">原服务门店信息</view>

			<view class="shopBg">
				<view class="leftTitle2">这是门店名称</view>
				<view class="addrressBg">
					<image src="../../static/img/icon_coordinate.png" mode="" style="width: 22rpx; height: 30rpx;">
					</image>
					<view style="color: #999999; font-size: 24rpx; margin-left: 20rpx;">江苏省南京市鼓楼区铁路南街233号</view>
				</view>
			</view>
		</view>

		<view class="content">
			<view class="viewBg">
				<image src="../../static/img/icon_xinghao.png" mode="" style="width: 14rpx; height: 14rpx;"></image>
				<view class="leftTitle">更换门店</view>
				<picker class="width70" mode="selector" :range="storeArr" @change="storeChange">
					<view class="blackColor" :class="{grayColor: store==''}">{{store?store:'请选择'}}</view>
				</picker>

				<image src="../../static/img/rightArrow.png" mode="" style="width: 13rpx; height: 23rpx;"></image>


			</view>

		</view>


		<view class="content">
			<view class="viewBg" style="border-bottom: 1rpx solid #EEEEEE;">
				<image src="../../static/img/icon_xinghao.png" mode="" style="width: 14rpx; height: 14rpx;"></image>
				<view class="leftTitle">更换原因</view>
				<picker class="width70" mode="selector" :range="reasonArray" @change="reasonChange">
					<view class="blackColor" :class="{grayColor: reason==''}">{{reason?reason:'请选择'}}</view>
				</picker>

				<image src="../../static/img/rightArrow.png" mode="" style="width: 13rpx; height: 23rpx;"></image>


			</view>

			<view class="viewBg">

				<view class="leftTitle">补充描述</view>

				<textarea placeholder-style="color:#999999" placeholder="选填，请输入补充描述" v-model="exeContent"
					class="textareaCont" maxlength="-1" auto-height="true" @confirm="feedDone" />

			</view>
		</view>


	</view>
</template>

<script>
	export default {
		data() {
			return {
				store: '',
				storeArr: ['1店', '2店'],
				reasonArray: ['距离太远', '服务不好'],
				reason: '',
				exeContent: '',
			}
		},
		methods: {
			feedDone(e) {
				this.exeContent = e.target.value

			},
			storeChange(e) {
				this.store = this.storeArr[e.detail.value];
			},
			reasonChange(e) {
				this.reason = this.reasonArray[e.detail.value];
			}
		}
	}
</script>

<style scoped>
	.box {
		min-height: 100vh;
		background: #F4F5F7;
		padding-top: 20rpx;
	}

	.content {
		background-color: #FFFFFF;
		border-radius: 10rpx;
		margin: 20rpx 24rpx;
		padding: 0 20rpx;
	}
	.shopBg{
		padding: 30rpx 0;
	}
	.addrressBg{
		padding-top: 12rpx;
		display: flex;
		align-items: center;
	}
	.viewBg {
		display: flex;
		align-items: center;
		padding: 30rpx 0;
	}

	.width70 {
		width: 70%;
	}

	.leftTitle2 {
		color: #333333;
		font-size: 28rpx;

	}

	.leftTitle {
		color: #333333;
		font-size: 28rpx;
		width: 130rpx;
		margin-right: 50rpx;
	}

	.blackColor {
		color: #333333;
		font-size: 28rpx;
	}

	.grayColor {
		color: #999999;
		font-size: 28rpx;
	}

	.textareaCont {

		width: 70%;
		font-size: 28rpx;
		color: #333333;

	}
</style>
