<template>
	<view class="scenic">
		<view class="search-box" @click="handleSearch">
			<view class="city-box">
		  <image class="icon" src="@/static/blue-position.png" mode=""></image>	
		  <view class="city">
		  	{{city}}
		  </view>
			</view>
		  <input class="search" disabled v-model="value" type="text" placeholder="景点名称" />
		</view>
		
		<view class="more-box">
			<view class="title">
				猜你喜欢
			</view>
			<view class="btn-box">
				更多 <image class="btn" src="@/static/right.png" mode=""></image>
			</view>
		</view>
		
		<zs-list class="list" mt="20rpx" @load="loadMore" :status="status">
			<view class="item" @click="goDetail">
				<zs-img src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/65fe7c9174d67a7dbd842b74/ext/GOODS_INFO/微信图片_20240328145646.png/1.png" width="340rpx" height="340rpx" mode=""></zs-img>
				<view class="info">
					<view class="title">
						重庆杜莎夫人蜡像馆重庆杜莎夫人蜡像馆
					</view>
					<view class="price-box">
						<view class="unit">
							￥
						</view>
						<view class="price">
							580
						</view>
						<view class="text">
							起
						</view>
					</view>
					<view class="address-box">
						<view class="address">
							重庆
						</view>
						<view class="distance">
							138.8km
						</view>
					</view>
				</view>
			</view>
			<view class="item" @click="goDetail">
				<zs-img src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/65fe7c9174d67a7dbd842b74/ext/GOODS_INFO/微信图片_20240328145646.png/1.png" width="340rpx" height="340rpx" mode=""></zs-img>
				<view class="info">
					<view class="title">
						重庆杜莎夫人蜡像馆
					</view>
					<view class="price-box">
						<view class="unit">
							￥
						</view>
						<view class="price">
							580
						</view>
						<view class="text">
							起
						</view>
					</view>
					<view class="address-box">
						<view class="address">
							重庆
						</view>
						<view class="distance">
							138.8km
						</view>
					</view>
				</view>
			</view>
		</zs-list>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				city: uni.getStorageSync('city'),
				value:'',
				status:'more',
				
			}
		},
		methods: {
			handleSearch() {
				uni.navigateTo({
					url:'/scenic/search'
				})
			},
			goDetail(){
				uni.navigateTo({
					url:'/scenic/detail'
				})
			},
			loadMore(){
				
			}
		},
		
	}
</script>

<style lang="scss" >
.scenic{
	background: #F9F9F9;
	min-height: 100vh;
	padding: 112rpx 24rpx 0;
	.search-box{
		position: fixed;
		top: 20rpx;
		left: 24rpx;
		width: 702rpx;
		height: 72rpx;
		// padding: 16rpx;
		box-sizing: border-box;
		
		z-index: 9;
		.city-box{
			position: absolute;
			left: 0;
			top: 50%;
			transform: translateY(-50%);
			display: flex;
			align-items: center;
			padding: 0 28rpx;
			border-right: 1rpx solid #F0F0F0;
			.icon{
				width: 30rpx;
				height: 30rpx;
			}
			.city{
				font-weight: 600;
				font-size: 28rpx;
				color: #222222;
				margin-left: 6rpx;
			}
		}
		.search{
			width: 702rpx;
			height: 72rpx;
			background: #FFFFFF;
			border-radius: 40rpx 40rpx 40rpx 40rpx;
			padding-left: 230rpx;
			padding-right: 100rpx;
			box-sizing: border-box;
		}
	}
	.more-box{
		display: flex;
		align-items: center;
		justify-content: space-between;
		.title{
			font-weight: 600;
			font-size: 32rpx;
			color: #222222;
		}
		.btn-box{
			display: flex;
			align-items: center;
			font-weight: 300;
			font-size: 24rpx;
			color: #AAAAAA;
			.btn{
				width: 48rpx;
				height: 48rpx;
			}
		}
	}
	.zs-list{
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		.item{
			background: #FFFFFF;
			border-radius: 16rpx;
			margin-bottom: 20rpx;
			.info{
				padding: 16rpx 16rpx 20rpx;
				width: 100%;
				box-sizing: border-box;
				.title{
					font-weight: 400;
					font-size: 24rpx;
					color: #222222;
					width: 300rpx;
					white-space: nowrap;
					overflow: hidden;
					text-overflow: ellipsis;
				}
				.price-box{
					display: flex;
					align-items: flex-end;
					margin-top: 12rpx;
					.unit{
						font-weight: 600;
						font-size: 20rpx;
						color: $uni-color-primary;
					}
					.price{
						font-weight: 600;
						font-size: 36rpx;
						color: $uni-color-primary;
					}
					.text{
						font-weight: 300;
						font-size: 24rpx;
						color: #AAAAAA;
						margin-left: 6rpx;
					}
				}
				.address-box{
					display: flex;
					align-items: center;
					justify-content: space-between;
					font-weight: 300;
					font-size: 20rpx;
					color: #AAAAAA;
					margin-top: 12rpx;
				}
			}
		}
	}
}
</style>


