<template>
	<scroll-view class="container" :scroll-y="scrollY" @scrolltolower="scrolltolower">
		<view class="top_bg"></view>

		<!-- 状态统计区域 后勤管理端 -->
		<view class="top_types2" v-if="btns.includes('工单管理分段器')">
			<view class="top">
				<uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="text" activeColor="#6FB6B8"></uni-segmented-control>
			</view>
			<view class="bottom">
				<view class="bottom_box" :class="{ active: state === 1 }" @click="handleFilter(1)">
					<view class="box_num">{{ receivingCount }}</view>
					<view class="box_info">待接单</view>
				</view>

				<view class="bottom_box" :class="{ active: state === 2 }" @click="handleFilter(2)">
					<view class="box_num">{{ maintenanceCount }}</view>
					<view class="box_info">维修中</view>
				</view>
				<view class="bottom_box" :class="{ active: state === 3 }" @click="handleFilter(3)">
					<view class="box_num">{{ timeoutCount }}</view>
					<view class="box_info">已超时</view>
				</view>
				<view class="bottom_box" :class="{ active: state === 4 }" @click="handleFilter(4)">
					<view class="box_num">{{ examineCount }}</view>
					<view class="box_info">待审核</view>
				</view>
				<view class="bottom_box" :class="{ active: state === 5 }" v-if="current === 0" @click="handleFilter(5)">
					<view class="box_num">{{ finishedCount }}</view>
					<view class="box_info">已完成</view>
				</view>
				<view class="bottom_box" :class="{ active: state === 7 }" v-if="current === 0" @click="handleFilter(7)">
					<view class="box_num">{{ closedCount }}</view>
					<view class="box_info">已关单</view>
				</view>
			</view>
		</view>

		<!-- 状态统计区域 维修师傅端 -->
		<view class="top_types" v-else>
			<view class="types_box" :class="{ active: state === 1 }" @click="handleFilter(1)">
				<view class="box_num">{{ receivingCount }}</view>
				<view class="box_info">待接单</view>
			</view>

			<view class="types_box" :class="{ active: state === 2 }" @click="handleFilter(2)">
				<view class="box_num">{{ maintenanceCount }}</view>
				<view class="box_info">维修中</view>
			</view>
			<view class="types_box" :class="{ active: state === 3 }" @click="handleFilter(3)">
				<view class="box_num">{{ timeoutCount }}</view>
				<view class="box_info">已超时</view>
			</view>
			<view class="types_box" :class="{ active: state === 4 }" @click="handleFilter(4)">
				<view class="box_num">{{ examineCount }}</view>
				<view class="box_info">待审核</view>
			</view>

			<view class="types_box" v-if="btns.includes('分段器按钮')" :class="{ active: state === 5 }" @click="handleFilter(5)">
				<view class="box_num">{{ finishedCount }}</view>
				<view class="box_info">已完成</view>
			</view>
			<view class="types_box" v-if="btns.includes('分段器按钮')" :class="{ active: state === 7 }" @click="handleFilter(7)">
				<view class="box_num">{{ closedCount }}</view>
				<view class="box_info">已关单</view>
			</view>
		</view>

		<!-- 订单列表区域 -->
		<view class="body">
			<!-- 每一个订单区域 -->
			<view class="body_item" v-for="item in dataList" :key="item.id">
				<!-- 工单编号 -->
				<view class="item_title">
					<img src="../../static/images/repairsImg/order.png" />
					<view class="title_info">工单编号：{{ item.recordNo }}</view>
				</view>

				<!-- 报修时间 -->
				<view class="item_time">
					<view class="time_msg">
						报修时间：
						<text>{{ item.reportTime }}</text>
					</view>
					<view class="time_type" v-if="item.state === '待接单'">待接单</view>
					<view class="time_type color_type" v-if="item.state === '维修中'">维修中</view>

					<view class="time_type color_type2" v-if="item.state === '待审核'">待审核</view>
					<view class="time_type color_type3" v-if="item.state === '已完成'">已完成</view>
					<view class="time_type" v-if="item.state === '待确认'">待确认</view>
					<view class="time_type color_type4" v-if="item.state === '已关单'">已关单</view>
				</view>

				<!-- 报修姓名 -->
				<view class="item_box">
					<view class="box_key">报修姓名：</view>
					<view class="box_value">{{ item.userName }}</view>
					<view class="box_type" v-if="item.timeoutStr">超时未接</view>
				</view>

				<!-- 报修电话 -->
				<view class="item_box">
					<view class="box_key">报修电话：</view>
					<view class="box_value phone" @click="handleCallPhone(item.userPhone)">
						{{ item.userPhone }}
						<img src="../../static/images/repairsImg/phone.png" />
					</view>
				</view>

				<!-- 报修区域 -->
				<view class="item_box">
					<view class="box_key">报修区域：</view>
					<view class="box_value">{{ item.areaName }}</view>
				</view>

				<!-- 详细地址 -->
				<view class="item_box">
					<view class="box_key">详细地址：</view>
					<view class="box_value">{{ item.address }}</view>
				</view>

				<!-- 报修物品 -->
				<view class="item_box">
					<view class="box_key">报修物品：</view>
					<view class="box_value">{{ item.articleName }}</view>
				</view>

				<!-- 故障描述 -->
				<view class="item_box">
					<view class="box_key">故障描述：</view>
					<view class="box_value">{{ item.description }}</view>
				</view>

				<!-- 上传图片 -->
				<view class="item_img">
					<view class="img_key">上传图片：</view>
					<img class="img_value" mode="aspectFill" :src="item.images[0]" @click="handleLookImgs(item.images)" />
				</view>

				<!-- 维修师傅 -->
				<view class="item_time" v-if="item.state !== '待接单' && item.state !== '待确认'">
					<view class="time_msg">
						维修师傅：
						<text>{{ item.maintenancerName }}</text>
					</view>
				</view>

				<!-- 师傅电话 -->
				<view class="item_box" v-if="item.state !== '待接单' && item.state !== '待确认'">
					<view class="box_key">师傅电话：</view>
					<view class="box_value phone" @click="handleCallPhone(item.maintenancerPhone)">
						{{ item.maintenancerPhone }}
						<img src="../../static/images/repairsImg/phone.png" />
					</view>
				</view>

				<!-- 维修费用 -->
				<view class="item_box" v-if="item.state === '待审核' || item.state === '已完成' || item.state === '待确认'">
					<view class="box_key">维修费用：</view>
					<view class="box_value2 phone" @click="checkFeeDetail(item)">
						{{ item.price }}元
						<img src="../../static/images/repairsImg/eye.png" />
					</view>
				</view>

				<!-- 按钮区域 -->
				<view class="item_btn">
					<!-- 关闭按钮 -->
					<img v-if="item.state === '待接单' || item.state === '维修中'" src="../../static/images/repairsImg/close.png" @click="handleClose(item)" />
					<!-- 协作按钮 -->
					<img class="img" src="../../static/images/repairsImg/help.png" v-if="item.state === '待接单' && btns.includes('协作')" @click="handleHelp(item)" />
					<!-- 延时按钮 -->
					<view class="btn_box type" v-if="(item.state === '待接单' || item.state === '维修中') && btns.includes('延时')" @click="handleDelay(item)">延时</view>
					<!-- 接单按钮 -->
					<view class="btn_box type" v-if="item.state === '待接单' && btns.includes('接单')" @click="handleOrderReceiving(item)">接单</view>
					<!-- 转单按钮 -->
					<view class="btn_box type2" v-if="item.state === '待接单' && btns.includes('转单')" @click="handleTransferOrder(item)">转单</view>
					<!-- 派单按钮 -->
					<view class="btn_box type2" v-if="item.state === '待接单' && btns.includes('派单')" @click="handleSendOrder(item)">派单</view>
					<!-- 报价按钮 -->
					<view class="btn_box type" v-if="item.state === '维修中' && btns.includes('报价')" @click="handleOffer(item)">报价</view>
					<!-- 维修完成按钮 -->
					<view class="btn_box type2" v-if="item.state === '维修中' && btns.includes('维修完成')" @click="handleFinish(item)">维修完成</view>
					<!-- 审核按钮 -->
					<view class="btn_box type" v-if="(item.state === '协作审核' || item.state === '转单审核') && btns.includes('审核')" @click="handleAudit(item)">审核</view>
					<!-- 改价按钮 -->
					<view class="btn_box type" v-if="item.state === '待确认'" @click="handleChangeOffer(item)">改价</view>
					<!-- 留言按钮 -->
					<view class="btn_box type2" v-if="item.state === '待确认'" @click="handleLeaveWords">留言</view>
				</view>

				<!-- 关闭按钮弹窗 -->
				<uni-popup ref="popup_close" :is-mask-click="false">
					<view class="popup_close">
						<view
							:class="[{ active: activeIndex === index }, { radius: index === 0 }]"
							class="close_box"
							v-for="(ele, index) in closeList"
							:key="ele.id"
							@click="handleChangeItem(index)"
						>
							{{ ele.name }}
						</view>
						<view class="close_btn">
							<view class="btn_box cancel" @click="$refs.popup_close[0].close()">取消</view>
							<view class="btn_box confirm" @click="handleCloseConfirm">确定</view>
						</view>
					</view>
				</uni-popup>

				<!-- 留言弹窗 -->
				<uni-popup ref="popup_leaveWords" :is-mask-click="false">
					<view class="pop_leaveWords">
						<view class="leaveWords_title">留言</view>
						<view class="leaveWords_body">
							<textarea placeholder-style="color:#CCCCCC" placeholder="请输入您宝贵的留言" v-model="leaveWords"></textarea>
						</view>
						<view class="leaveWords_btn">
							<view class="btn_box cancel" @click="$refs.popup_leaveWords[0].close()">取消</view>
							<view class="btn_box confirm" @click="handleLeaveWordsConfirm">确定</view>
						</view>
					</view>
				</uni-popup>

				<!-- 维修费用弹窗 -->
				<uni-popup :is-mask-click="false" ref="popup_fee">
					<view class="pop_fee">
						<view class="fee_title">
							维修费用
							<text @click="$refs.popup_fee[0].close()">×</text>
						</view>
						<view class="fee_content">
							<view class="fee_item" v-for="(element, index2) in goodsList" :key="index2">
								<view class="fee_box">
									耗材：
									<text>{{ element.name }}</text>
								</view>
								<view class="fee_box">
									耗材单价：
									<text>{{ element.price }}元</text>
								</view>
								<view class="fee_box">
									耗材数量：
									<text>{{ element.num }}</text>
								</view>
								<view class="fee_box">
									耗材费用：
									<text>{{ element.count }}元</text>
								</view>
							</view>
						</view>
					</view>
				</uni-popup>
			</view>
		</view>

		<!-- 没有数据时展示的图片 -->
		<view class="no_data" v-if="dataList.length === 0">
			<img src="../../pagesClockIn/static/imgs/nodata.png" />
			<view>暂无数据</view>
		</view>
	</scroll-view>
</template>

<script>
export default {
	data() {
		return {
			scrollY: true,
			// 按钮权限
			btns: [],
			// 留言弹窗输入框绑定数据
			leaveWords: '',
			// 顶部分段器数组
			items: ['团队工单', '个人工单'],
			// 顶部分段器数组当前索引
			current: 0,
			// 关闭按钮弹窗当前索引
			activeIndex: 0,
			// 关闭按钮弹窗选项数组
			closeList: [],
			// 订单列表
			dataList: [],
			// 维修费用弹窗数组
			goodsList: [],
			// 校区id
			schoolId: '',
			// 用户ID
			userId: '',
			// 待审核
			examineCount: '',
			// 待接单
			receivingCount: '',
			// 维修中
			maintenanceCount: '',
			// 已完成
			finishedCount: '',
			// 已超时
			timeoutCount: '',
			// 已关单
			closedCount: '',
			// 当前页
			currentPage: 1,
			// 每页多少条
			pageCount: 2,
			// 总条数  团队
			total: null,
			// 总条数  个人
			total2: null,
			// 订单状态参数
			state: 1,
			// 订单id
			orderId: ''
		}
	},
	mounted() {
		console.log('工单管理页面加载')
		const repairsUserInfo = uni.getStorageSync('repairsUserInfo')
		this.schoolId = repairsUserInfo.schoolId
		this.userId = repairsUserInfo.userId
		this.btns = repairsUserInfo.btns
		console.log(this.btns)
		if (this.btns.includes('工单管理分段器') || this.btns.includes('分段器按钮')) {
			// 管理员身份或者后勤
			this.getTeamCount()
			this.getTeamData()
		} else {
			// 维修师傅
			this.getCount()
			this.getData()
		}
		this.getCloseList()
	},
	methods: {
		// 滚动到底部触发回调
		scrolltolower() {
			console.log('页面触底了')
			if ((this.btns.includes('工单管理分段器') || this.btns.includes('分段器按钮')) && this.current === 0) {
				// 团队工单
				if (this.total > this.dataList.length) {
					this.currentPage++
					this.getTeamData()
				} else {
					uni.showToast({
						title: '没有更多数据了',
						icon: 'none'
					})
				}
			} else {
				// 个人工单
				if (this.total2 > this.dataList.length) {
					this.currentPage++
					this.getData()
				} else {
					uni.showToast({
						title: '没有更多数据了',
						icon: 'none'
					})
				}
			}
		},
		async getCloseList() {
			const res = await this.$myRequest_repairs({
				url: '/repairClose/queryRepairCloses'
			})
			// console.log(res)
			if (res.code === '200') {
				this.closeList = res.data
			}
		},
		handleFilter(state) {
			this.state = state
			this.dataList = []
			this.currentPage = 1
			this.handleResetData()
		},
		async getCount() {
			const res = await this.$myRequest_repairs({
				url: '/repairRecord/getTechnicianCountByUserId',
				data: {
					userId: this.userId
				}
			})
			// console.log(res)
			if (res.code === '200') {
				this.examineCount = res.data.examineCount
				this.maintenanceCount = res.data.maintenanceCount
				this.receivingCount = res.data.receivingCount
				this.timeoutCount = res.data.timeoutCount
			}
		},
		// 获取个人订单数据
		async getData() {
			const res = await this.$myRequest_repairs({
				url: '/repairRecord/getTechniciansByUserId',
				data: {
					currentPage: this.currentPage,
					pageCount: this.pageCount,
					state: this.state,
					userId: this.userId
				}
			})
			// console.log(res)
			if (res.code === '200') {
				this.total2 = res.data.totalCount
				this.dataList = [...this.dataList, ...res.data.list]
			}
		},
		async getTeamCount() {
			const res = await this.$myRequest_repairs({
				url: '/repairRecord/queryTeamWorkCount',
				data: {
					schoolId: this.schoolId
				}
			})
			// console.log(res)
			if (res.code === '200') {
				this.examineCount = res.data.examineCount
				this.receivingCount = res.data.receivingCount
				this.maintenanceCount = res.data.maintenanceCount
				this.finishedCount = res.data.finishedCount
				this.timeoutCount = res.data.timeoutCount
				this.closedCount = res.data.closedCount
			}
		},
		// 获取团队订单数据
		async getTeamData() {
			const res = await this.$myRequest_repairs({
				url: '/repairRecord/queryTeamWorkPage',
				data: {
					currentPage: this.currentPage,
					pageCount: this.pageCount,
					state: this.state,
					schoolId: this.schoolId
				}
			})
			// console.log(res)
			if (res.code === '200') {
				this.total = res.data.totalCount
				this.dataList = [...this.dataList, ...res.data.list]
			}
		},
		// 留言弹窗确定按钮回调
		handleLeaveWordsConfirm() {
			if (this.leaveWords) {
				uni.showToast({
					title: '留言成功',
					icon: 'success'
				})
				this.$refs.popup_leaveWords[0].close()
			} else {
				uni.showToast({
					title: '请输入留言内容',
					icon: 'none'
				})
			}
		},
		// 关闭弹窗确定按钮回调
		handleCloseConfirm() {
			uni.showModal({
				title: '提示',
				content: '确定关闭订单吗？',
				success: async (res) => {
					if (res.confirm) {
						const res = await this.$myRequest_repairs({
							url: '/repairRecord/closeOrder',
							data: {
								recordId: this.orderId,
								userId: this.userId,
								reason: this.closeList[this.activeIndex].name
							}
						})
						// console.log(res)
						if (res.code === '200') {
							uni.showToast({
								title: '关单成功',
								icon: 'success'
							})
							this.$refs.popup_close[0].close()
							setTimeout(() => {
								this.handleResetData()
							}, 1500)
						}
					}
				}
			})
		},
		// 重置当前页面获取最新数据
		handleResetData() {
			if ((this.btns.includes('工单管理分段器') || this.btns.includes('分段器按钮')) && this.current === 0) {
				// 管理员身份或者后勤
				this.getTeamCount()
				this.getTeamData()
			} else {
				// 维修师傅
				this.getCount()
				this.getData()
			}
		},
		// 接单按钮回调
		handleOrderReceiving(item) {
			uni.showModal({
				content: '确定接单吗？',
				title: '提示',
				success: async (res) => {
					if (res.confirm) {
						const res = await this.$myRequest_repairs({
							url: '/api/repairRecord/receiveOwnOrders',
							data: {
								recordId: item.id,
								userId: this.userId
							}
						})
						console.log(res)
						if (res.code === '200') {
							uni.showToast({
								title: '接单成功',
								icon: 'success'
							})
							setTimeout(() => {
								this.handleResetData()
							}, 1500)
						}
					}
				}
			})
		},
		// 关闭图标点击回调
		handleClose(item) {
			this.orderId = item.id
			this.activeIndex = 0
			this.$refs.popup_close[0].open('center')
		},
		// 关闭按钮弹窗选中按钮时回调
		handleChangeItem(val) {
			this.activeIndex = val
		},
		// 报价按钮回调
		handleOffer(item) {
			let info = encodeURIComponent(JSON.stringify(item))
			uni.navigateTo({
				url: `/pagesRepairs/offer/offer?info=${info}`
			})
		},
		// 改价按钮回调
		handleChangeOffer(item) {
			let info = encodeURIComponent(JSON.stringify(item))
			uni.navigateTo({
				url: `/pagesRepairs/offer/offer?info=${info}&type=1`
			})
		},
		// 维修完成按钮回调
		handleFinish(item) {
			const info = JSON.stringify(item)
			uni.navigateTo({
				url: `/pagesRepairs/repairRecord/repairRecord?info=${info}`
			})
		},
		// 转单按钮回调
		handleTransferOrder(item) {
			uni.navigateTo({
				url: `/pagesRepairs/transferOrder/transferOrder?id=${item.id}`
			})
		},
		// 协作图标点击回调
		handleHelp(item) {
			uni.navigateTo({
				url: `/pagesRepairs/help/help?id=${item.id}`
			})
		},
		// 分段器切换回调
		onClickItem(e) {
			if (this.current != e.currentIndex) {
				this.current = e.currentIndex
				console.log(this.current)
				this.state = 1
				this.dataList = []
				this.currentPage = 1
				if (this.current === 0) {
					// 团队工单
					this.getTeamCount()
					this.getTeamData()
				} else {
					// 个人工单
					this.getCount()
					this.getData()
				}
			}
		},
		// 留言按钮回调
		handleLeaveWords() {
			this.$refs.popup_leaveWords[0].open('center')
		},
		// 延时按钮回调
		handleDelay(item) {
			uni.navigateTo({
				url: `/pagesRepairs/delay/delay?id=${item.id}`
			})
		},
		// 派单按钮回调
		handleSendOrder(item) {
			uni.navigateTo({
				url: `/pagesRepairs/helpPeople/helpPeople?type=1&id=${item.id}`
			})
		},
		// 审核按钮回调
		handleAudit(item) {
			if (item.state === '转单审核') {
				uni.navigateTo({
					url: `/pagesRepairs/transferOrder/transferOrder?type=1&id=${item.id}`
				})
			} else if (item.state === '协作审核') {
				uni.navigateTo({
					url: `/pagesRepairs/help/help?type=1&id=${item.id}`
				})
			}
		},
		// 查看维修费用回调
		checkFeeDetail(item) {
			// console.log(item)
			this.goodsList = item.goodsList
			this.$refs.popup_fee[0].open('center')
		},
		// 点击电话号码回调
		handleCallPhone(phone) {
			uni.makePhoneCall({
				phoneNumber: phone
			})
		},
		// 点击图片回调
		handleLookImgs(img) {
			// console.log(img)
			uni.previewImage({
				urls: img
			})
		}
	}
}
</script>

<style lang="scss" scoped>
.container {
	width: 100vw;
	height: calc(100vh - 152rpx);
	font-size: 32rpx;
	overflow-y: auto;

	.top_bg {
		height: 165rpx;
		background-color: #6fb6b8;
	}

	.top_types {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-evenly;
		margin: auto;
		margin-top: -100rpx;
		width: 690rpx;
		border-radius: 10rpx;
		box-shadow: 0px 0px 4rpx rgba(0, 0, 0, 0.25);
		background-color: #fff;

		.types_box {
			width: 25%;
			height: 188rpx;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			.box_num {
				font-size: 46rpx;
				color: #ff5733;
			}
			.box_info {
				margin-top: 10rpx;
				font-size: 34rpx;
			}
		}

		.active {
			color: #fff;
			background-color: #6fb6b8;
		}
	}

	.top_types2 {
		box-sizing: border-box;
		margin: auto;
		margin-top: -100rpx;
		padding: 0 30rpx;
		width: 690rpx;
		// height: 402rpx;
		border-radius: 10rpx;
		box-shadow: 0px 0px 4rpx rgba(0, 0, 0, 0.25);
		background-color: #fff;

		.top {
			height: 112rpx;
			border-bottom: 1rpx solid #e6e6e6;
		}

		.bottom {
			display: flex;
			flex-wrap: wrap;
			justify-content: space-evenly;

			.bottom_box {
				width: 25%;
				height: 145rpx;
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;

				.box_num {
					font-size: 46rpx;
					color: #ff5733;
				}
				.box_info {
					// margin-top: 10rpx;
					font-size: 34rpx;
				}
			}

			.active {
				color: #fff;
				background-color: #6fb6b8;
			}
		}
	}

	.body {
		box-sizing: border-box;
		padding: 0 30rpx 30rpx 30rpx;

		.body_item {
			margin-top: 20rpx;
			border-radius: 11rpx;
			box-shadow: 0 0 8rpx #d9d9d9;

			.item_title {
				display: flex;
				align-items: center;
				padding: 0 30rpx;
				height: 87rpx;
				border-bottom: 1rpx solid #e6e6e6;

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

				.title_info {
					margin-left: 16rpx;
					// font-size: 28rpx;
					font-size: 32rpx;
				}
			}

			.item_time {
				display: flex;
				justify-content: space-between;
				align-items: center;
				padding: 0 30rpx;
				height: 79rpx;

				.time_msg {
					// font-size: 28rpx;
					color: #808080;

					text {
						color: #000000;
					}
				}

				.time_type {
					font-size: 32rpx;
					color: #ff5733;
				}

				.color_type {
					color: #1e7dfb;
				}
				.color_type2 {
					color: #d43030;
				}
				.color_type3 {
					color: #6fb6b8;
				}
				.color_type4 {
					color: #a6a6a6;
				}
			}

			.item_box {
				display: flex;
				padding: 0 30rpx;
				height: 60rpx;
				// font-size: 28rpx;

				.box_key {
					color: #808080;
				}

				.box_value {
					display: flex;

					img {
						margin-left: 10rpx;
						width: 45rpx;
						height: 45rpx;
					}
				}

				.box_type {
					margin-left: auto;
					width: 137rpx;
					height: 47rpx;
					line-height: 47rpx;
					text-align: center;
					border-radius: 136rpx;
					color: #ff5733;
					// font-size: 24rpx;
					font-size: 24rpx;
					border: 1rpx solid #ff5733;
				}

				.box_value2 {
					display: flex;

					img {
						margin-top: -2rpx;
						margin-left: 14rpx;
						width: 46rpx;
						height: 46rpx;
					}
				}

				.phone {
					color: #6fb6b8;
				}
			}

			.item_img {
				display: flex;
				align-items: center;
				padding: 0 30rpx;
				height: 120rpx;
				color: #808080;
				// font-size: 28rpx;

				.img_key {
				}

				.img_value {
					width: 120rpx;
					height: 120rpx;
					border-radius: 14rpx;
				}
			}

			.item_btn {
				display: flex;
				align-items: center;
				justify-content: flex-end;
				padding: 0 30rpx;
				line-height: 153rpx;

				img {
					margin-right: auto;
					margin-top: 45rpx;
					margin-bottom: 40rpx;
					width: 56rpx;
					height: 56rpx;
				}

				.img {
					margin-right: auto;
					margin-left: -55rpx;
					margin-top: 45rpx;
					margin-bottom: 40rpx;
					width: 62rpx;
					height: 62rpx;
				}

				.btn_box {
					display: flex;
					justify-content: center;
					align-items: center;
					margin-left: 16rpx;
					margin-top: 45rpx;
					margin-bottom: 40rpx;
					width: 174rpx;
					height: 68rpx;
					// font-size: 28rpx;
					border-radius: 11rpx;
				}

				.type {
					color: #fff;
					background-color: #6fb6b8;
				}

				.type2 {
					color: #6fb6b8;
					background-color: #fff;
					border: 1rpx solid #6fb6b8;
				}
			}

			.popup_close {
				width: 690rpx;
				border-radius: 19rpx;
				background-color: #fff;

				.close_box {
					height: 100rpx;
					line-height: 100rpx;
					text-align: center;
					font-size: 32rpx;
					border: 1rpx solid #e6e6e6;
				}

				.radius {
					border-radius: 19rpx 19rpx 0 0;
				}

				.active {
					color: #fff;
					background-color: #6fb6b8;
				}

				.close_btn {
					display: flex;
					align-items: center;
					justify-content: space-evenly;
					margin-top: 100rpx;
					height: 121rpx;

					.btn_box {
						display: flex;
						justify-content: center;
						align-items: center;
						width: 203rpx;
						height: 72rpx;
						border-radius: 9rpx;
						font-size: 32rpx;
					}

					.cancel {
						background-color: #e5e5e5;
						color: #6fb6b8;
					}

					.confirm {
						background-color: #6fb6b8;
						color: #fff;
					}
				}
			}

			.pop_leaveWords {
				border-radius: 19rpx;
				background-color: #fff;

				.leaveWords_title {
					display: flex;
					justify-content: center;
					align-items: center;
					width: 690rpx;
					height: 110rpx;
					font-size: 32rpx;
					font-weight: bold;
					border-radius: 19rpx 19rpx 0 0;
					border-bottom: 1rpx solid #e6e6e6;
				}

				.leaveWords_body {
					height: 320rpx;

					textarea {
						box-sizing: border-box;
						margin: 35rpx 40rpx;
						padding: 20rpx;
						width: 610rpx;
						height: 312rpx;
						// font-size: 28rpx;
						border-radius: 14rpx;
						border: 1rpx solid #e6e6e6;
					}
				}

				.leaveWords_btn {
					display: flex;
					align-items: center;
					justify-content: space-evenly;
					height: 121rpx;

					.btn_box {
						display: flex;
						justify-content: center;
						align-items: center;
						width: 203rpx;
						height: 72rpx;
						border-radius: 9rpx;
						font-size: 32rpx;
					}

					.cancel {
						background-color: #e5e5e5;
						color: #6fb6b8;
					}

					.confirm {
						background-color: #6fb6b8;
						color: #fff;
					}
				}
			}

			.pop_fee {
				padding-bottom: 50rpx;
				border-radius: 19rpx;
				background-color: #fff;

				.fee_title {
					display: flex;
					justify-content: space-between;
					align-items: center;
					box-sizing: border-box;
					padding: 0 31rpx 0 42rpx;
					width: 690rpx;
					height: 110rpx;
					font-size: 32rpx;
					font-weight: bold;
					border-radius: 19rpx 19rpx 0 0;
					border-bottom: 1rpx solid #e6e6e6;

					text {
						font-size: 45rpx;
						font-weight: 400;
						color: #808080;
					}
				}

				.fee_content {
					max-height: 50vh;
					overflow-y: auto;

					.fee_item {
						border-bottom: 1rpx solid #e6e6e6;
						.fee_box {
							display: flex;
							align-items: center;
							padding-left: 42rpx;
							height: 80rpx;
							// font-size: 28rpx;
							color: #808080;

							text {
								color: #000000;
							}
						}
					}
				}
			}
		}
	}

	.no_data {
		text-align: center;
		color: #b3b3b3;
		font-size: 24rpx;

		img {
			margin: 42rpx auto 0;
			width: 432rpx;
			height: 456rpx;
		}
	}
}
</style>
