<!-- 投诉页面 -->
<template>
	<view class="body" :style="'padding-top:' + bottomHeight">
		<!-- 导航 -->
		<view class="ss-flex-2 ss-col-center ss-margin-width2" style="position: relative">
			<view class="ss-flex-2 ss-col-center">
				<text class="textIcon icon-fanhui icon-navigation" @click="backPage"></text>
				<view style="margin-left: 15rpx; color: #3D444E; font-size: 28rpx">举报投诉</view>
			</view>
			<view class="ss-flex-1"></view>
			<text class="textIcon icon-kefu icon-navigation"></text>
			<text class="textIcon icon-tongzhiguanli icon-navigation" style="margin-left: 30rpx"></text>
		</view>

		<!-- 举报类型 -->
		<view class="ss-flex-2 ss-col-center type-box">
			<view style="font-size: 24rpx;color: #333;">举报类型</view>
			<view class="ss-flex-1"></view>
			<uni-data-select v-model="reportType" :clear="false" :localdata="reportData" @change="changeReport"></uni-data-select>
		</view>
		<!-- 联系电话 -->
		<view class="ss-flex-2 ss-col-center type-box">
			<view style="font-size: 24rpx;color: #333;">联系电话</view>
			<uni-easyinput errorMessage v-model="phone" focus placeholder="请在此处输入手机号"></uni-easyinput>
			<!-- <view class="ss-flex-1"></view> -->
		</view>
		<view style="font-size: 18rpx;color: #9D9D9D;padding: 10rpx 50rpx;">手机号作为投诉举报唯一依据，仅平台可见。</view>
		<!-- 备注 -->
		<view class="notes-box">
			<uni-easyinput type="textarea" maxlength="200" v-model="notesInfo" placeholder="请详细描述内容,平台将为您的信息保密..."></uni-easyinput>
		</view>
		<view class="submit-box">提交举报</view>
		<!-- 中部 -->
		<!-- <view class="list-wrap">
			<scroll-view scroll-y="true" class="list">
				<view class="list-scroll-view">

				</view>
			</scroll-view>
		</view> -->
	</view>
</template>
<script setup>
	import {
		reactive,
		ref
	} from 'vue';
	import {
		computed
	} from 'vue';
	import {
		onLoad,
		onPageScroll,
		onPullDownRefresh,
		onReady,
		onReachBottom,
		onShow,
	} from '@dcloudio/uni-app';
	import sheep from '@/sheep';
	import $share from '@/sheep/platform/share';
	// 隐藏原生tabBar
	// uni.hideTabBar();

	// 举报类型
	const reportType=ref(1)
	const reportData=ref([
		{
			value:0,
			text:"请选择举报类型"
		},
		{
			value:1,
			text:"涉黄"
		},
		{
			value:2,
			text:"偷盗"
		},
		{
			value:3,
			text:"服务不专业"
		},
	])
	const changeReport=async()=>{
		console.log('获取选择的举报类型')
	}
	const notesInfo=ref('')
	// 返回首页
	const backPage = async () => {
		uni.navigateTo({
			url: '/pages/XDHome/orderInfoList/orderInfoList',
		});
	};

	const bottomHeight = ref('0rpx');
	// #ifdef APP-PlUS
	//获取顶部安全距离
	const app = uni.getSystemInfoSync();
	const bottomHeightOne = app.statusBarHeight + 'rpx';
	bottomHeight.value = bottomHeightOne
	// #endif
</script>
<style scoped>
	/deep/.uni-select{
		height: 50rpx !important;
		font-size: 24rpx !important;
		border: none !important;
	}
	/deep/.uni-select__input-text{
		text-align: right !important;
	}
	/deep/.uni-easyinput__content-input{
		height: 50rpx !important;
		font-size: 24rpx !important;
		background-color: #EFEEF1;
		border-radius: 10rpx;
		margin-left: 20rpx;
	}
	/deep/.is-input-border{
		border: none !important;
	}
	/deep/.is-textarea{
		background-color: #EFEEF1 !important;
	}
</style>
<style scoped lang="scss">
	.submit-box{
		width: 95%;
		margin-left: 2.5%;
		background-color: #36AFCB;
		padding: 15rpx 30rpx;
		box-sizing: border-box;
		border-radius: 5rpx;
		text-align: center;
		color: #fff;
		font-size: 30rpx;
		margin-top: 20rpx;
	}
	.notes-box{
		width: 95%;
		margin-left: 2.5%;
		padding: 10rpx;
		box-sizing: border-box;
		background-color: #fff;
		border-radius: 10rpx;
		margin-top: 10rpx;
	}
	.type-box {
		width: 95%;
		margin-left: 2.5%;
		box-sizing: border-box;
		padding: 10rpx 20rpx;
		background-color: #fff;
		margin-top: 20rpx;
		border-radius: 10rpx;
	}

	.icon-navigation {
		font-size: 32rpx;
		color: #3D444E;
		font-weight: 700;
	}

	// 上中下布局样式
	.body {
		display: flex;
		flex-direction: column;
		background-color: #EEEEF0;
		height: 100vh;
		box-sizing: border-box;
	}

	.head {
		text-align: center;
	}

	// 中部滚动
	.list-wrap {
		flex-grow: 1;
		position: relative;
		width: 95%;
		margin-left: 2.5%;
		box-sizing: border-box;
	}

	.list {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 50rpx;
		padding: 10rpx;
		border-radius: 15rpx;
		box-sizing: border-box;
	}

	.list-scroll-view {
		width: 100%;
		margin-bottom: 20rpx;
		box-sizing: border-box;
	}

	.course-card {
		width: 47vw;
		margin-top: 10px;
		margin-bottom: 10px;
	}

	// 底部
	.tools {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
	}

	.tools-item {
		width: 45px;
		text-align: center;
		font-size: 14px;
		padding: 20px;
	}
</style>