<template>
	<view class="page">
		<view class="bg">
			<view class="feedback-title">投诉类型</view>
			<view class="feedback-body" @tap="showType = true">
				<view class="feedback-input">{{typeName ? typeName : '请选择投诉类型'}}</view>
			</view>
			<view class="feedback-title">投诉标题</view>
			<view class="feedback-body">
				<input class="feedback-input" v-model="sendDate.title" placeholder="请输入投诉标题 " />
			</view>
			<view class="feedback-title">投诉内容</view>
			<view class="" style="color: #999999;">
				<u-input v-model="sendDate.content" type="textarea" placeholder="请详细描述你的问题... "
					style="height: 300rpx;padding: 10rpx;background-color: #f5f5f5;border-radius: 10rpx;margin: 10rpx 0 20rpx 0;color: #999999;" />
			</view>
			<!-- <view class="feedback-title">投诉图</view> -->
			<view class="margin-tb-sm">
				<view class="flex" style="flex-direction: initial;flex-wrap: wrap;">
					<view v-if="Imgo.length" style="width: 100%;">
						<view class=" flex flex-wrap" style="justify-content: space-between;">
							<view class="flex"
								style="margin-right: 5rpx;position: relative;width: 200rpx;height: 200rpx;"
								v-for="(image,index) in Imgo" :key="index">
								<image :src="image" style="width: 100%;height: 100%;"></image>
								<view style="z-index: 999;position: absolute;top: -15rpx;right: -15rpx;"
									@click="removeImg(index)">
									<u-icon name="close-circle-fill" color="#333333" size="50rpx"></u-icon>
								</view>
							</view>
						</view>
					</view>
					<view class="" @click="addImages(2)" v-if="Imgo.length<=2">
						<view style="width: 200rpx;height: 200rpx;background: #f4f5f6;border-radius: 10rpx;"
							class="flex justify-center align-center">
							<view>
								<view class="text-center">
									<image style="width: 43.06rpx;height: 38.19rpx;"
										src="../../static/orderDetail/img-shang.png" mode=""></image>
									<!-- <u-icon name="plus" color="#666666" size="28"></u-icon> -->
								</view>
								<view class="text-center">选择图片</view>
							</view>
						</view>
					</view>
				</view>
				<view class="" style="font-size: 20.83rpx;color: #ED782E;margin-top: 40rpx;">温馨提示：最多上传3张图片</view>
			</view>
			<view style="margin-top: 20rpx;">
				<view class="feedback-title"><text>选择技师</text></view>
				<view>
					<view class="flex align-center index-mian">
						<uni-search-bar placeholder="请输入技师名称" @service="serviceTrue" @confirm="searchArti"
							:cancelext="'取消'" v-model="searchValue" @input="searchArti" @clear="resetSearch">
						</uni-search-bar>
						<view class="search-btn" @click="searchArti">
							搜索
						</view>
					</view>
					<view>
						<view class="liebiao">
							<view v-if="orderList.length" class="flex text-center flex-wrap list-view">
								<view class="margin-bottom-sm radius touxiang-left">
									<view class="flex align-center touxiang-left-view"
										:class="{'choosed': item.userId === byUserId}"
										v-for="(item, index) in orderList" :key='index' @click="chooseArti(item)">
										<view class="touxiang-left-content">
											<image style="border: 2px solid #e2e2e2;" class="touxiang-left-content-img"
												:src="item.artificerImg ? item.artificerImg : '../../static/logo.png'"
												mode="aspectFill"></image>
											<image class="touxiang-left-content-img" v-if="item.isHot == 1"
												src="https://admin.sjajk.com/file/uploadPath/2023/02/16/9ae1b7e9fa931b5fc24cd8edecc10d9f.png">
											</image>
											<image class="touxiang-frame"
												:src="item.technicianType=='3'?'../../static/vip/grade1-1.gif':item.technicianType=='4'?'../../static/vip/grade2-1.gif':'../../static/vip/grade3-1.gif'">
											</image>
										</view>
										<view class="list-right">
											<view class="flex align-center" style="justify-content: start;">
												<view class="flex align-center list-right-top">
													<view class="list-right-top-view">
														<view class="flex">
															<span
																class="list-right-top-name">{{ item.artificerName }}</span>
															<!-- <span class="label-word">{{ item.artificerClassifyList[0].classifyName }}</span> -->
														</view>
													</view>
												</view>
											</view>
											<view class="item-view-jianjie">
												{{item.content}}
											</view>
											<view class="flex  thera-lin thera-bottom">
												<view class="flex align-center" v-if="item.distance">
													<view>
														<image class="therapist-bottom-dingwei"
															src="../../static/dituzhaoren6.png"></image>
													</view>
													<view class="therapist-bottom-dingwei-text">
														{{ item.distance }}
													</view>
												</view>
												<view class="flex" v-if="item.consortiaName">
													<image class="therapist-bottom-img"
														src="../../static/dituzhaoren5.png"></image>
													<view v-if="item.consortiaName" class="therapist-mian-bottom-text">
														{{item.consortiaName}}</view>
												</view>

											</view>
										</view>
									</view>
								</view>
							</view>
							<empty v-else></empty>
						</view>
					</view>
				</view>
			</view>
		</view>

		<view class="push-button">
			<button type="primary" style="" class="feedback-submit" @tap="send">提交</button>
		</view>

		<u-action-sheet :list="typeList" v-model="showType" @click="typeCallback"></u-action-sheet>
	</view>
</template>

<script>
	import * as websocketUtils from 'utils/websocketUtils.js';
	import empty from '@/components/empty.vue'
	export default {
		components: {
			empty,
		},
		data() {
			return {
				newTypeList: [],
				typeId: '',
				typeName: '',
				typeList: [],
				showType: false,
				msgContents: ['界面显示错乱', '启动缓慢，卡出翔了', 'UI无法直视，丑哭了', '偶发性崩溃'],
				stars: [1, 2, 3, 4, 5],
				imageList: [],
				sendDate: {
					content: '',
					// contact: '',
					title: '',
					image: "",
				},
				ordersId: '',
				Imgo: [],
				byUserId: '',
				byuserName: '',
				userName: '',
				title: '',
				ordersNo: '',
				orderList: [],
				searchValue: '',
			};
		},
		onLoad(e) {
			this.getTypeList();
			this.getUserInfo();
			this.ordersId = e.id
			this.byuserName = e.byuserName
			this.byUserId = e.byUserId
			// #ifdef APP-PLUS
			let deviceInfo = {
				appid: plus.runtime.appid,
				imei: plus.device.imei, //设备标识
				p: plus.os.name === 'Android' ? 'a' : 'i', //平台类型，i表示iOS平台，a表示Android平台。
				md: plus.device.model, //设备型号
				app_version: plus.runtime.version,
				plus_version: plus.runtime.innerVersion, //基座版本号
				os: plus.os.version,
				net: '' + plus.networkinfo.getCurrentType()
			};
			this.sendDate = Object.assign(deviceInfo, this.sendDate);
			// #endif
		},
		methods: {
			//投诉功能：选择技师
			chooseArti(arti) {
				this.byUserId = arti.userId
				this.byUserName = arti.artificerName
			},
			//投诉功能：重置
			resetSearch() {
				this.searchValue = ''
				this.orderList = []
			},
			//投诉功能：搜索技师
			searchArti() {
				if (!this.searchValue) {
					this.$queue.showToast('请输入技师名称');
					return
				}
				let that = this
				this.$Request.get("/app/artificer/selectArtificerList", {
					artificerName: this.searchValue,
					classifyId: '',
					page: 1,
					limit: -1,
					technicianType: '',
					by: 2, //价格
					latitude: '',
					longitude: '',
					city: '请选择城市'
				}).then(res => {
					if (res.code == 0) {
						for (var i = 0; i < res.data.list.length; i++) {
							if (res.data.list[i].lifePhoto) {
								res.data.list[i].lifePhoto = res.data.list[i].lifePhoto.split(',')
							}
							if (res.data.list[i].distance > 1000) {
								res.data.list[i].distance = (res.data.list[i].distance / 1000).toFixed(1) +
									'km'
							} else {
								res.data.list[i].distance = (res.data.list[i].distance).toFixed(1) + 'm'
							}

						}
						that.orderList = res.data.list
					}
				})
			},
			typeCallback(index) {
				console.log(index)
				this.typeName = this.newTypeList[index].title;
				this.typeId = this.newTypeList[index].id;
			},
			getTypeList() {
				this.$Request.getT('/app/message/selectMessageList?page=1&limit=50&state=6').then(res => {
					if (res.code == 0) {
						if (res.data.list && res.data.list.length > 0) {
							this.newTypeList = res.data.list;
							res.data.list.forEach((d, index) => {
								let data = {
									text: d.title,
									label: index
								}
								this.typeList.push(data);
							});
						}
					}
				});
			},
			// 详情图删除
			removeImg(index) {
				console.log(index)
				this.Imgo.splice(index, 1)
			},
			close(e) {
				this.imageList.splice(e, 1);
			},
			getUserInfo() {
				this.$Request.get("/app/user/selectUserById").then(res => {
					if (res.code == 0) {
						this.userName = res.data.userName
						uni.setStorageSync('avatar', res.data.avatar)
						uni.setStorageSync('invitationCode', res.data.invitationCode)
						uni.setStorageSync('zhiFuBao', res.data.zhiFuBao)
						uni.setStorageSync('zhiFuBaoName', res.data.zhiFuBaoName)
					}
				});
			},
			send() {
				//发送反馈
				this.sendDate.image = this.Imgo
				this.sendDate.image = this.sendDate.image.toString()

				// console.log(JSON.stringify(this.sendDate));
				if (!this.typeId) {
					uni.showToast({
						icon: 'none',
						title: '请选择投诉类型'
					});
					return;
				}
				if (!this.sendDate.content) {
					uni.showToast({
						icon: 'none',
						title: '请输入投诉内容'
					});
					return;
				}
				if (!this.Imgo) {
					uni.showToast({
						icon: 'none',
						title: '请上传投诉图片'
					});
					return;
				}
				if(!this.byUserId){
					uni.showToast({
						icon: 'none',
						title: '请选择投诉的技师'
					});
					return;
				}
				this.$queue.showLoading('加载中...');
				let userId = this.$queue.getData("userId");
				console.log("this.byUserId", this.byUserId, this.byuserName)
				this.$Request.postJson('/app/message/insertMessage', {
					// ordersId: this.ordersId,
					byUserId: this.byUserId,
					title: this.sendDate.title,
					image: this.sendDate.image,
					userId: userId,
					content: this.sendDate.content,
					state: 7,
					type: 0,
					typeId: this.typeId,
					typeName: this.typeName,
					userName: this.userName,
					byUserName: this.byUserName,
				}).then(res => {
					if (res.code === 0) {
						uni.showToast({
							title: '投诉成功'
						});
						setTimeout(function() {
							// uni.navigateBack();
							uni.redirectTo({
								url: '/my/order/tousuList'
							})
						}, 1000);
					} else {
						uni.hideLoading();
						uni.showModal({
							showCancel: false,
							title: '投诉失败',
							content: res.msg
						});
					}
				});
			}, // 图片上传
			addImages(e) {
				let that = this
				uni.chooseImage({
					count: 6,
					sourceType: ['album', 'camera'],
					success: res => {
						for (let i = 0; i < res.tempFilePaths.length; i++) {
							that.$queue.showLoading("上传中...");
							uni.uploadFile({ // 上传接口
								url: websocketUtils.uploadFileUrl(), //真实的接口地址
								// url: 'https://xichewap.xianmxkj.com/sqx_fast/alioss/upload',
								filePath: res.tempFilePaths[i],
								name: 'file',
								success: (uploadFileRes) => {
									if (e == 2) {
										console.log(JSON.parse(uploadFileRes.data).data)
										that.Imgo.push(JSON.parse(uploadFileRes.data).data)
									}

									uni.hideLoading();
								}
							});
						}
					}
				})
			},
		}
	};
</script>

<style>
	.feedback-submit {
		display: inline-block;
		width: 92%;
		text-align: center;
		background: linear-gradient(90deg, #019C88, #28BA92, #35C495);
		height: 40px;
		border-radius: 28px;
		color: #ffffff;
		line-height: 40px;
		margin-top: 4px;
		font-size: 34rpx;
	}

	.push-button {
		width: 100%;
		height: 48px;
		position: fixed;
		bottom: 0px;
		display: flex;
		flex-direction: column;
		align-items: center;
		margin: 0 auto;
	}

	.sbu-btn {
		display: flex;
		justify-content: center;
		align-items: center;
		background: #f7f7f7;
	}

	@font-face {
		font-family: uniicons;
		font-weight: normal;
		font-style: normal;
		src: url('https://img-cdn-qiniu.dcloud.net.cn/fonts/uni.ttf') format('truetype');
	}

	.page {
		width: 100%;
		height: 100vh;
		background-color: #f7f7f7 !important;
		padding-top: 20px;
	}

	.bg {
		background-color: #ffffff;
		padding: 30rpx;
		width: 95%;
		margin: 0px auto;
		border-radius: 24rpx;
	}

	/*问题反馈*/
	.feedback-title {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding: 10rpx 0;
		font-weight: bold;
		color: #333333;
		font-size: 30rpx;
	}

	.feedback-star-view.feedback-title {
		justify-content: flex-start;
		margin: 0;
	}

	.feedback-body {
		font-size: 28rpx;
		padding: 12rpx 30rpx;
		margin: 10rpx 0 24rpx 0;
		border-radius: 10rpx;
		background: #F5F5F5;
		/* color: #FFF; */
	}

	.feedback-textare {
		font-size: 34upx;
		width: 100%;
		box-sizing: border-box;
		padding: 12rpx 30rpx;
	}

	.feedback-input {
		font-size: 28rpx;
		height: 60upx;
		/* padding: 15upx 20upx; */
		line-height: 60upx;
	}

	.item-view-jianjie {
		font-weight: 400;
		font-size: 24rpx;
		color: #999;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		/* 显示的行数，可以根据需要修改 */
		overflow: hidden;
		text-overflow: ellipsis;
		text-align: left;
	}

	.touxiang-frame {
		position: absolute;
		width: 190rpx;
		height: 190rpx;
		top: -8rpx;
		left: 6rpx;
	}

	.dituList {
		width: 85%;
		height: 165px;
		display: flex;
		flex-direction: column;
		justify-content: space-around;
	}

	.liebiao {
		//height: 100vh;
		margin-top: 10px;
		display: flex;
		flex-direction: column;
	}

	.content-head {
		position: fixed;
		top: -7rpx;
		z-index: 999;
		width: 100%;
		background: #fff linear-gradient(60deg, rgba(115, 212, 183, 0.2), rgba(227, 251, 244, 0.1), rgba(193, 236, 223, 0.35));
		border-bottom: 1rpx solid #c4ede1;
		background-repeat: no-repeat;
		background-size: 100% 100%;
		// background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), #f7f7f7), url('../../static/background-img.png');
		// background-position: center center;
		// background-repeat: no-repeat;
		background-size: cover;
		// overflow: auto;
	}

	.therapist-bottom-dingwei-text {
		font-size: 24rpx;
		color: #848485;
	}

	.therapist-bottom-dingwei {
		width: 20rpx;
		height: 24rpx;
		margin-right: 3px;
	}

	.therapist-bottom-img {
		width: 26rpx;
		height: 26rpx;
		margin-right: 3px;
		margin-top: 5rpx
	}

	.therapist-mian-bottom-text {
		font-weight: bold;
		font-size: 24rpx;
		color: #222222;
	}

	.therapist-mian-bottom {
		width: 100%;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		margin-top: 10rpx;
	}

	.therapist-mian-view-text span {
		font-weight: 500;
		font-size: 26rpx;
		color: #222222;
	}

	.therapist-mian-view span {
		font-weight: 400;
		font-size: 26rpx;
		color: #7C8187;
		margin-right: 10px;
	}

	.therapist-mian-view image {
		width: 28rpx;
		height: 28rpx;
		margin-right: 2px;
	}

	/deep/.amap-logo {
		display: none !important;
	}

	.therapist-mian-view {
		display: flex;
		flex-direction: row;
		align-items: center;
	}

	.therapist-mian-top {
		width: 100%;
		display: flex;
		flex-direction: row;
		padding: 10rpx 0;
	}

	.therapist-mian {
		width: 100%;
		display: flex;
		flex-direction: column;
	}

	.list-right-top-bottom {
		width: 100%;
		text-align: left;
		font-weight: 400;
		font-size: 25rpx;
		color: #333333;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		/* 显示的行数，可以根据需要修改 */
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.list-right-top-name {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		text-align: left;
		font-weight: bold;
		font-size: 32rpx;
		color: #13141A;
	}

	.keyuyue {
		padding: 0rpx 10rpx;
		height: 44rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
		border-radius: 30rpx 20rpx 20rpx 30rpx;
		font-size: 24rpx;
	}

	.keyuyue-lan {
		background: #eefdf8;
	}

	.keyuyue-hui {
		background: #d9d9d9;
	}

	.timea-fu {
		color: #2dbe93;
		font-size: 24rpx;
		line-height: 44rpx;
		margin-left: 8rpx;
		margin-right: 5rpx;
	}

	.timea-hui {
		color: #ffffff;
		font-size: 24rpx;
		line-height: 44rpx;
		margin-left: 8rpx;
		margin-right: 5rpx;
	}

	.timea-img {
		background: #2dbe93 url('../../static/timea.png') 2rpx 1rpx;
		background-size: 28rpx 28rpx;
		background-repeat: no-repeat;
		width: 30rpx;
		height: 30rpx;
		border-radius: 8rpx;
		margin-top: 8rpx;
	}

	.timea-fu {
		font-size: 24rpx;
		color: #2dbe93;
		line-height: 44rpx;
		margin-left: 8rpx;
		margin-right: 5rpx;
	}

	.timea-time {
		font-size: 25rpx;
		color: #2dbe93;
		line-height: 44rpx;
		padding-right: 10rpx;
	}

	.list-right-top-view image {
		//width: 168.75rpx;
		height: 40.97rpx;
	}

	.list-right-top-view {
		width: 100%;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.list-right-top {
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.list-right {
		width: 72%;
		height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		padding: 16rpx;
	}

	.zpmore_view {
		position: absolute;
		bottom: -20rpx;
		left: 14rpx;
		color: #f9f3d3;
		background: linear-gradient(to right, #0a0c16, #4d4d53);
		width: 130upx;
		text-align: center;
		border-radius: 30rpx;
		height: 42rpx;
		line-height: 42rpx;
		font-size: 24rpx;
		margin-left: 10rpx;
	}

	.zpmore_view_left {
		width: 68.75rpx;
		height: 29.86rpx;
	}

	.img-span {
		padding: 1px 5px;
		font-weight: 400;
		font-size: 10px;
		color: #FFFFFF;
		background: linear-gradient(-90deg, #FF6F48, #FF9E69);
		border-radius: 7px 0px 7px 0px;
		position: absolute;
		bottom: 0px;
		right: 0;
		margin-bottom: 10px;
		margin-right: 10px;
	}

	// .zpmore_view_left image{
	// 	position: absolute;
	// 	bottom: 0px;
	// 	right: 0px;
	// 	margin: 0px 5px -16px 0px;
	// 	width: 68.75rpx;
	// 	height: 29.86rpx;
	// }
	.touxiang {
		width: 202.08rpx;
		height: 306.94rpx;
	}

	.touxiang-left-content {
		width: 180rpx;
		//width: 235.08rpx;
		height: auto;
		border-radius: 10rpx;
		position: relative;

	}

	.touxiang-left-content-img-ditu {
		width: 150rpx;
		height: 150rpx;
		border-radius: 120rpx;
		margin: 0px 10px 0px 12px;
	}

	.touxiang-left-content-img {
		width: 150rpx;
		height: 150rpx;
		border-radius: 120rpx;
		margin: 14rpx 22rpx;
	}

	.touxiang-left-view {
		width: 100%;
		height: 135px;
		border-radius: 18rpx;
		align-items: flex-start;
		background: #fff;
		margin-bottom: 12px;
		padding-bottom: 10px;
		justify-content: space-between;
		padding: 10rpx;
	}

	.touxiang-left {
		width: 100%;
		/* padding: 10px; */
		display: flex;
		flex-direction: column;
		align-items: baseline;
	}

	.list-view {
		// margin-top: 52px;
		padding: 0 20rpx;
		height: 100%;
		justify-content: space-between;
	}

	/deep/.justify-between {
		// width: 100px;
		// height: 32px;
		line-height: 32px;
		border-radius: 4px;
	}

	.padding-top-sm {
		width: 95%;
		margin: 0 auto;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	/deep/.page-box {
		height: 300px;
		margin-top: 100px;
		background: none !important;
	}

	/deep/.u-action {
		display: none;
	}

	.content {
		width: 100%;
		height: 100vh;
		background-position: center center;
		background-repeat: no-repeat;
		background-size: cover;
		// overflow: auto;
	}

	/deep/.u-content {
		height: 56rpx !important;
		border-radius: 30px !important;
	}

	.flex-sub {
		width: 220rpx !important;
		height: 60rpx !important;
		border: 1px solid #e5e5e5;
		border-radius: 30rpx;
		color: #fff !important;
	}

	.map-list {
		padding: 0 12rpx;
		width: 110rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;

	}

	.map-img {
		width: 40rpx;
		height: 40rpx;
	}

	.dingwei-img {
		width: 33.33rpx;
		height: 37.5rpx;
	}

	page {
		background-color: #F7F7F7;
	}

	.jishi_name {
		max-width: 80rpx;
		text-overflow: ellipsis;
		white-space: nowrap;
		overflow: hidden;
	}

	.zz_view {
		color: #333333;
		font-size: 24rpx;
		padding: 6rpx 10rpx;
		border-radius: 10rpx;
	}

	.zpmore_view {
		position: absolute;
		bottom: -20rpx;
		left: 14rpx;
		color: #f9f3d3;
		background: linear-gradient(to right, #0a0c16, #4d4d53);
		width: 130upx;
		text-align: center;
		border-radius: 30rpx;
		height: 42rpx;
		line-height: 42rpx;
		font-size: 22rpx;
		margin-left: 10rpx;
	}

	.byy_view {
		background: #ebebeb;
		width: 100upx;
		text-align: center;
		border-radius: 50rpx;
		height: 40rpx;
		line-height: 40rpx;
		font-size: 24rpx;
		color: #000000;
		// border: 3upx solid #999999;
		margin-top: 6rpx;
		margin-left: 40rpx;
	}

	.kfw_view {
		background: #ffaa00;
		width: 100upx;
		text-align: center;
		border-radius: 50rpx;
		height: 40rpx;
		line-height: 40rpx;
		font-size: 24rpx;
		color: #FFFFFF;
		margin-top: 6rpx;
		margin-left: 40rpx;
	}

	.kyy_view {
		background: #096f4b;
		width: 100upx;
		text-align: center;
		border-radius: 50rpx;
		height: 40rpx;
		line-height: 40rpx;
		font-size: 24rpx;
		color: #FFFFFF;
		margin-top: 6rpx;
		margin-left: 40rpx;
	}

	.bg {
		background: #FFFFFF;
	}

	.ytp_view {
		background: #e3e3e3;
		width: 400rpx;
		border-radius: 10rpx;
		font-size: 28rpx;
		text-align: center;
		height: 80rpx;
		line-height: 80rpx;
		color: #848484;
		margin-top: 40rpx;
	}

	.tp_view {
		background: #ee6c54;
		width: 400rpx;
		border-radius: 10rpx;
		font-size: 28rpx;
		text-align: center;
		height: 80rpx;
		line-height: 80rpx;
		color: #FFFFFF;
		margin-top: 40rpx;
	}

	.sticky-tabs {
		z-index: 990;
		position: sticky;
		top: var(--window-top);
		// background-color: #fff;
	}

	/* // 使用mescroll-uni,则top为0 */
	.mescroll-uni,
	/deep/.mescroll-uni {
		.sticky-tabs {
			top: 0;
		}
	}

	.demo-tip {
		padding: 18upx;
		font-size: 24upx;
		text-align: center;
	}

	.line_s {
		display: inline-flex;
		width: 10rpx;
		height: 10rpx;
		background: #1AD566;
		border-radius: 50%;
		margin-right: 10rpx;
	}

	.line_x {
		display: inline-flex;
		width: 10rpx;
		height: 10rpx;
		background: #000000;
		border-radius: 50%;
		margin-right: 10rpx;
	}

	.box {
		// border: 3rpx solid #005dff;
		background: #E8FAE1;
		color: #096f4b;
		padding: 5rpx 15rpx;
		font-size: 26rpx;
		letter-spacing: 2rpx;
		border-radius: 8rpx;
		// margin-top: 10rpx;
		margin-right: 8upx;
	}

	.actve {
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight: 800;
		color: #20C675;
	}

	.tabview1 {
		// width: 686upx;
		// height: 100upx;
		background: #FFFFFF;
		// z-index: 99;
		// display: flex;
		// line-height: 100upx;

		.tabview {
			// width: 686upx;
			// // height: 100upx;
			border-radius: 24rpx 24rpx 0 0;
			// margin-top: -50upx;
			// z-index: 99;
			display: flex;
			line-height: 100upx;

			.tabItem_sel {
				font-size: 32upx;
				font-family: PingFang SC;
				font-weight: 800;
				color: #ffffff;
				background: linear-gradient(to right, #223845, #00a85b);
				flex: 1;
				text-align: center;
			}

			.tabItem {
				font-size: 32upx;
				font-family: PingFang SC;
				color: #333333;
				flex: 1;
				text-align: center;
			}
		}

		.tabsx {
			width: 686upx;
			border-radius: 24rpx;
			padding-bottom: 10rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 20rpx 30rpx;
			font-size: 26rpx;

			.active {
				color: #20C675;
				font-size: 30rpx;
				font-weight: bold;
			}
		}
	}

	.aa {
		background: linear-gradient(to right, #223845, #00a85b);
		width: 46px;
		text-align: center;
		height: 24px;
		line-height: 24px;
		margin-left: 4px;
		color: #ffffff;
		box-shadow: 0 0 3px #dddddd;
		border-radius: 4px;
	}

	.bb {
		width: 46px;
		text-align: center;
		height: 24px;
		line-height: 24px;
		margin-left: 4px;
		color: #666666;
		border-radius: 4px;
		background-color: #f7f7f7;
	}

	//地图标点样式
	/deep/.custom-content-marker {
		width: 70px;
		height: 70px;


		.marker_border {
			//border: black solid;
			width: 20px;
			height: 20px;
			padding: 5px;
			background: white;
			box-shadow: 0px 5px 10px #888888;
			border-radius: 50%;
		}

		.marker_foot {
			// height: 50px;
			// width: 50px;
			// background: black;
			// transform: rotate(45deg);
			// position: absolute;
			// top: 50px;
			// overflow: hidden;
		}
	}

	/deep/.custom-content-marker img {
		width: 100%;
		height: 100%;
		border-radius: 50%;
	}

	.make-now {
		background: linear-gradient(90deg, rgb(1, 156, 136), rgb(15, 167, 139), rgb(53, 196, 149));
		color: rgb(255, 255, 255);
		// width: 200rpx;
		border-radius: 15px;
		height: 30px;
		line-height: 30px;
		margin-top: 5px;
	}

	.make-now1 {
		background: #d9d9d9;
		color: #ffffff;
		width: 100%;
		border-radius: 30upx;
		height: 60upx;
		line-height: 60upx;
		margin-top: 10rpx;
	}

	.jieshao {
		font-weight: 400;
		font-size: 12px;
		color: #999999;
		margin: 5px 0px;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		///overflow: hidden;
		text-overflow: ellipsis;
	}

	.thera-lin {
		display: flex;
		justify-content: space-between;
	}

	.thera-bottom {
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
	}

	.therap-pin {
		font-size: 26rpx;
		display: flex;
		align-items: flex-end;
		margin-right: 10rpx;
	}

	.therap-pin span:nth-child(2) {
		color: #019c88;
	}

	.therap-pin span:nth-child(1) {
		color: #666;
		margin-right: 10rpx;
	}

	.label-word {
		background: #f9f1e7;
		color: #9b7a6e;
		border-radius: 30rpx;
		padding: 0rpx 14rpx;
		line-height: 40rpx;
		border: 1px solid #9b7a6e;
		font-size: 22rpx;
		margin-left: 10rpx;
	}

	.screen-button {
		// border: 1px solid #019c88;
		color: #019c88;
		padding: 5rpx 10rpx;
		margin: 0 18rpx;
		border-radius: 6rpx;
	}

	.choosed {
		border: 1px solid #019c88;
	}

	.index-mian-select image {
		width: 16px;
		height: 8px;
		margin-left: 5px;
	}

	.index-mian-select {
		display: flex;
		flex-direction: row;
		align-items: center;
	}

	.index-mian {
		width: 98%;
		margin: 4rpx auto;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	/deep/.uni-searchbar__cancel {
		display: none;
	}

	.search-btn {
		text-align: center;
		line-height: 31px;
		color: #fff;
		width: 130rpx !important;
		height: 32px !important;
		margin-right: 20rpx;
		border-radius: 50rpx !important;
		background: linear-gradient(90deg, #019c88, #2fbf93) !important;
	}

	.index-line {
		width: 100%;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	/deep/.uni-searchbar__box-icon-search,
	.search-btn {
		height: 60rpx;
		background: #18A689;
		border-radius: 31rpx;

	}

	/deep/.uni-searchbar__box {
		height: 32px;
		border-radius: 15px !important;
		background-color: #fff !important;
		border: 1rpx solid #019c88;
		padding: 0px;
		display: flex;
		flex-direction: row;
		flex-flow: row-reverse;
		position: relative;
		justify-content: center;
	}

	/deep/.uni-searchbar {
		width: 80%;
		border-radius: 31rpx;
		margin-left: 6rpx;
	}
</style>