<template>
	<view class="content">
	    <view class="mdqk">
			<view class="mdqkTop">
				<view class="mdqkTopTitle">对门店行动完成情况打分</view>
				<view class="xxBox">
					<uni-rate :max="5" v-model="shopEvaStar" :size="16" :readonly="true"/>
				</view>
				
			</view>
			<view class="mdqkms">补充说明</view>
			<view class="shopEvaContent">{{shopEvaContent}}</view>
			<view class="mdqkBottom">
				<view>{{shopEvaTime}}</view>
				<view>{{shopEvaOpName}}</view>
			</view>
		</view>
		
		<view class="competeCont">
			
			
			<view>
				<textarea placeholder-style="color:#CCCCCC" placeholder="回复陪伴经理的评价~～" v-model="shopEvaReplyContent" class="textareaCont"/>
			</view>
			<view class="submitBox">
				<view class="submit" @click="submit">提交</view>
			</view>
			
			
		</view>
	</view>
</template>

<script>
	
	export default {
		
		data() {
			return {
				sheetID:'',
			    shopEvaStar:'',
				shopEvaOpName:'',
				shopEvaReplyContent:'',
				shopEvaContent:'',
				shopEvaTime:'',
			}
		},
		onLoad(opt) {
		  this.sheetID=opt.id;
		  this.shopEvaStar=opt.shopEvaStar;
		  this.shopEvaOpName=opt.shopEvaOpName;
		  this.shopEvaContent=opt.shopEvaContent;
		  this.shopEvaTime=opt.shopEvaTime;
		  
		},
		onShow() {
				
		},
		methods: {
		   
			
			submit(){
				if(this.shopEvaReplyContent==''){
					uni.showToast({
					    title: '请填写内容',
						icon:'none',
					    duration: 2000,
					});
					return false;
				}
				uni.showLoading({ });
				
				this.$http('accompany/SuperCheckSheet/shopEvaReply', {
					sheetID:this.sheetID,
					shopEvaReplyContent:this.shopEvaReplyContent,
				
				}, 'POST').then(res => {
				    //this.submitSuperCheckSheet()
					uni.showToast({
					    title: '提交成功',
						icon:'none',
					    duration: 2000,
					});
					uni.navigateBack({
						
					})
				})
			}
			
		}
	}
</script>

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

	/* #ifdef H5 */
	.content {
		background: #F4F5F7;
	
	}

	/* #endif */
	
	.competeCont{
		background: #FFFFFF;
		padding: 20rpx 24rpx;
		margin-top: 20rpx;
	}
	.competeContTitle{
		font-size: 30rpx;
		color: #3C3C3C;
		text-align: center;
	}
	.textareaCont{
		width: 662rpx;
		height: 200rpx;
		background: #F4F5F7;
		border-radius: 10rpx;
		padding: 20rpx;
		margin-top: 20rpx;
		font-size: 28rpx;
	}
	.submit{
		width: 420rpx;
		height: 74rpx;
		background: #FF4F00;
		border-radius: 50rpx;
		line-height: 74rpx;
		text-align: center;
		font-size: 30rpx;
		color: #FFFFFF;
	}
	.submitBox{
		display: flex;
		justify-content: center;
		padding-top: 40rpx;
	}
	.xxBox{
		display: flex;
		justify-content: center;
	
	}
	.mdqk{
		background: #FFFFFF;
	}
	.mdqkTop{
		display: flex;
		justify-content: space-between;
		padding: 30rpx 24rpx;
		border-bottom: 1px solid #EEEEEE;
	}
	.mdqkms{
		font-size: 28rpx;
		color: #444444;
		padding-top: 28rpx;
		padding-left: 24rpx;
	}
	.shopEvaContent{
		font-size: 26rpx;
		padding: 16rpx 24rpx;
		color: #666666;
	}
	.mdqkBottom{
		font-size: 26rpx;
		color: #999999;
		display: flex;
		justify-content: space-between;
		padding: 24rpx;
		padding-top: 0;
	}
</style>
