<!-- 技师列表 -->
<!-- 首页，支持店铺装修 -->
<template>
	<view class="body" :style="'padding-top:' + bottomHeight">
		<!-- 头部 -->
		<!-- 导航 -->
		<view class="ss-flex-2 ss-col-center ss-margin-width2" style="position: relative;margin-bottom: 20rpx;">
			<view class="ss-flex-2 ss-col-center">
				<text class="textIcon icon-fanhui icon-navigation" @click="backPage"></text>
				<view style="margin-left: 10rpx; color: #fff; font-size: 28rpx">收藏列表</view>
			</view>
			<view class="ss-flex-1"></view>
		</view>
		<!-- 中部 -->
		<view class="list-wrap">
			<scroll-view scroll-y="true" class="list">
				<view class="ss-flex-2 box-sizing list-box" v-for="item in 10" :key="item">
					<!-- 左右布局 -->
					<view style="width: 190rpx">
						<view style="width: 190rpx; height: 160rpx">
							<image referrerpolicy="no-referrer"
								src="/static/lanhu_shouye/psq752p4oxrur1kwz38o9hz2uugu327v8c905774083-1ff9-40d7-8687-01c969b1461d.png"
								class="icon-image"></image>
						</view>
						<!-- 休息中 可服务  服务中  -->
						<view class="bt-box"> 可服务 </view>
					</view>
					<!-- 右边布局 -->
					<view class="ss-flex-1" style="margin-left: 20rpx">
						<view class="ss-flex">
							<view style="font-size: 30rpx; color: #1a2433; font-weight: 650">王琳haha</view>
							<view class="ss-flex" style="margin-left: 20rpx; margin-top: 5rpx">
								<view style="width: 25rpx; height: 25rpx">
									<image class="icon-image" referrerpolicy="no-referrer"
										src="/static/lanhu_shouye/ps45z8ynos8u6p0hlyciknnu9trq6jgvec6ac864-6e48-46fc-a850-9e88158e568c.png" />
								</view>
								<view style="font-size: 24rpx; margin-left: 5rpx; color: #009fe8; margin-top: 5rpx">4.8
								</view>
							</view>
							<view class="ss-flex-1"></view>
							<view class="job-box"> NO.00158 </view>
						</view>
						<view class="ss-flex-2">
							<view class="flag-box" style="background-color: #e57f3a"> 新人 </view>
							<view class="flag-box" style="background-color: #e50012"> 明星 </view>
							<view class="flag-box" style="background-color: #48b790"> 手法哈哈哈哈 </view>
						</view>
						<uni-tooltip style="margin-top: 5rpx"
							content="哈哈哈哈哈哈哈，哈哈哈哈哈哈哈，哈哈哈哈哈哈哈，哈哈哈哈哈哈哈，哈哈哈哈哈哈哈，哈哈哈哈哈哈哈，哈哈哈哈哈哈哈" placement="bottom">
							<view class="text-info-box">
								哈哈哈哈哈哈哈，哈哈哈哈哈哈哈，哈哈哈哈，哈哈哈哈哈哈哈，
							</view>
						</uni-tooltip>
						<view class="ss-flex-2">
							<view class="ss-flex-2 shop-box ss-row-center" style="height: 25rpx">
								<view style="width: 17rpx; height: 17rpx; margin-top: 3rpx" class="ss-flex-2">
									<image class="icon-image" referrerpolicy="no-referrer"
										src="/static/lanhu_shouye/ps45z8ynos8u6p0hlyciknnu9trq6jgvec6ac864-6e48-46fc-a850-9e88158e568c.png" />
								</view>
								<view style="font-size: 16rpx; margin-left: 5rpx; color: #444">秋水伊人</view>
							</view>
						</view>
						<view class="ss-flex-2 ss-row-center ss-col-center" style="box-sizing: border-box">
							<view style="width: 23rpx; height: 25rpx">
								<image class="icon-image" referrerpolicy="no-referrer"
									src="/static/lanhu_shouye/ps45z8ynos8u6p0hlyciknnu9trq6jgvec6ac864-6e48-46fc-a850-9e88158e568c.png" />
							</view>
							<view style="font-size: 22rpx; margin-left: 5rpx; margin-top: 15rpx"> 15 </view>
							<view style="width: 17rpx; height: 25rpx; margin-left: 30rpx">
								<image class="icon-image" referrerpolicy="no-referrer"
									src="/static/lanhu_shouye/ps45z8ynos8u6p0hlyciknnu9trq6jgvec6ac864-6e48-46fc-a850-9e88158e568c.png" />
							</view>
							<view style="font-size: 22rpx; margin-left: 5rpx; color: #009fe8; margin-top: 15rpx">
								15.256km
							</view>
							<view style="font-size: 16rpx; margin-left: 20rpx; color: #666; margin-top: 15rpx">
								莱山区哈哈哈
							</view>
							<view class="ss-flex-1"></view>
							<view class="bt-box-two" @click="onTechnician">点TA</view>
						</view>
					</view>
				</view>
			</scroll-view>
		</view>
	</view>		
</template>

<script setup>
	import {
		computed,
		ref
	} from 'vue';
	import {
		onLoad,
		onPageScroll,
		onPullDownRefresh
	} from '@dcloudio/uni-app';
	import sheep from '@/sheep';
	import $share from '@/sheep/platform/share';
	// 隐藏原生tabBar
	// uni.hideTabBar();
	// 返回首页
	const backPage = async () => {
		uni.reLaunch({
			url: '/pages/XDHome/myHome/myHome',
		});
	};


	//获取顶部安全距离
	const app = uni.getSystemInfoSync();
	const bottomHeightOne = app.statusBarHeight + 'rpx';
	const bottomHeight = ref(bottomHeightOne);

	// 点击技师，跳转到技师详情
	const onTechnician = async () => {
		uni.reLaunch({
			url: '/pages/XDHome/technician/technicianDetails/technicianDetails',
		});
	};
	onLoad((options) => {});
</script>
<style scoped>
	/deep/uni-slider .uni-slider-handle-wrapper {
		height: 18rpx !important;
	}

	.distance {
		/deep/.uni-select__input-text {
			width: 130rpx;
			color: #fff;
			overflow: hidden;
			white-space: nowrap;
			text-overflow: ellipsis;
			font-size: 24rpx;
			text-align: right;
		}
	}

	/deep/.uni-select__input-text {
		width: 180rpx;
		color: #fff;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		font-size: 24rpx;
		text-align: right;
	}

	/deep/.uni-searchbar__box {
		height: 100% !important;
	}

	/deep/.uni-select {
		border: none !important;
		padding-left: 0rpx;
	}
</style>
<style scoped lang="scss">
	.list-box {
		width: 95%;
		margin-left: 2.5%;
		margin-top: 20rpx;
		padding-bottom: 20rpx;
		border-bottom: 3rpx dashed #aaaaaa;
	}

	.bt-box-two {
		padding: 5rpx;
		padding-left: 20rpx;
		padding-right: 20rpx;
		font-size: 20rpx;
		color: #fff;
		background-color: #009fe8;
		border-radius: 5rpx;
	}

	.shop-box {
		padding: 3rpx;
		padding-left: 15rpx;
		padding-right: 15rpx;
		// background-color: #E3007F;
		color: #fff;
		border-radius: 5rpx;
		box-sizing: border-box;
	}

	.text-info-box {
		width: 100%;
		font-size: 23rpx;
		color: #6f7379;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
		text-overflow: ellipsis;
		min-height: 60rpx;
	}

	.flag-box {
		font-size: 16rpx !important;
		color: #fff;
		margin-right: 15rpx;
		padding-top: 2rpx;
		padding-bottom: 2rpx;
		text-align: center;
		box-sizing: border-box;
		border-radius: 5rpx;
		margin-top: 5rpx;
		padding-left: 15rpx;
		padding-right: 15rpx;
	}

	.job-box {
		font-size: 22rpx;
		color: #fff;
		background-color: #898f96;
		padding: 3rpx;
		padding-left: 5rpx;
		padding-right: 5rpx;
		-moz-box-sizing: border-box;
	}

	.bt-box {
		width: 100rpx;
		height: 30rpx;
		line-height: 30rpx;
		text-align: center;
		color: #fff;
		background-color: #009fe8;
		font-size: 20rpx;
		padding: 3rpx;
		border-radius: 5rpx;
		margin-top: 10rpx;
		margin-left: 40rpx;
	}

	.button-info-box {
		width: 41%;
		margin-left: 6%;
		height: 70rpx;
		line-height: 70rpx;
		text-align: center;
		font-size: 40rpx;
		margin-top: 25rpx;
		border-radius: 10rpx;
	}

	.content-text {
		width: 30%;
		height: 60rpx;
		line-height: 60rpx;
		text-align: center;
		font-size: 28rpx;
		color: #707374;
		background-color: #efeef1;
		margin-top: 15rpx;
		border-radius: 10rpx;
		margin-left: 2.5%;
	}

	.content-info-box {
		width: 95%;
		margin-left: 2.5%;
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		align-items: center;
	}

	.search-title {
		width: 90%;
		height: 50rpx;
		margin-left: 5%;
		margin-top: 20rpx;
		font-size: 30rpx;
		color: #333;
		font-weight: 650;
		text-align: left;
	}

	.popup-box {
		position: absolute;
		left: 0;
		bottom: 0;
		right: 0;
		z-index: 999;
		background-color: rgba(0, 0, 0, 0.2);
	}

	.icon-image {
		width: 100%;
		height: 100%;
	}

	// 上中下布局样式
	.body {
		display: flex;
		flex-direction: column;
		height: 100vh;
		background: linear-gradient(to bottom, #08a3e9, #fff);
		box-sizing: border-box;
	}

	// 中部滚动
	.list-wrap {
		flex-grow: 1;
		position: relative;
		background-color: #fff;
		border-radius: 10rpx;
		width: 95%;
		margin-left: 2.5%;
		box-sizing: border-box;
	}

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

	.list-scroll-view {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		margin-left: 2vw;
		margin-right: 2vw;
	}

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