<template>
	<view class="content">
		<view class="top-search flex">
			<view class="search-box flex">
				<image class="search-icon" src="../../static/icon/sousuo.png" mode=""></image>
				<view class="search-font"><input type="text" placeholder="输入关键词搜索" v-model="productname" /></view>
			</view>
			<view class="search" @click="clickSearch()">
				搜索
			</view>
		</view>
		<view class="shoplist">
			<view class="shoplist-item flex" v-for="(item,index) in 10" @click="navTo('/pages/shoping/shopDetail')">
				<image class="shoplist-image" src="../../static/icon/hym.png" mode=""></image>
				<view class="shoplist-info">
					<view class="info-top">
						<view class="info-title">
							满园春养发馆(1号店）
						</view>
						<view class="info-address">
							<image class="address-icon" src="../../static/icon/dw.png" mode=""></image>
							<view class="address-font">距离0.3KM</view>
						</view>
					</view>
					<view class="info-tip">椒江区市府大道200号</view>
					<view class="info-bottom">
						<view class="info-bleft flex">
							<view class="infobf-item">免费茶点</view>
							<view class="infobf-item">不接受退款</view>
						</view>
						<view class="info-bright flex">
							<image class="info-icon" src="../../static/icon/call.png" mode=""></image>
							<image class="info-icon" src="../../static/icon/dh.png" mode=""></image>
						</view>
					</view>
					<view class="bc">
						<text class="h">惠</text>
						<text class="dw">￥</text>
						<text class="xian">25</text>
						<text class="yuan">￥99</text>
						<text> 头皮护理|深层清洁</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {};
		},
		onLoad() {},
		onShow() {},
		onReachBottom() {},
		onReady() {},
		methods: {
			navTo(url) {
				uni.navigateTo({
					url
				})
			}
		}
	};
</script>

<style lang="scss">
	page,
	.content {
		min-height: 100%;
		height: auto;
	}

	.top-search {
		width: 750rpx;
		height: 100rpx;
		background: #FFFFFF;
		padding: 20rpx 32rpx 16rpx;

		.search-box {
			justify-content: center;
			width: 610rpx;
			height: 64rpx;
			background: #F6F6F6;
			border-radius: 10rpx;

			.search-icon {
				width: 32rpx;
				height: 32rpx;

			}

			.search-font {
				margin-left: 20rpx;
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #666666;
			}
		}

		.search {
			font-size: 28rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #666666;
		}
	}

	.shoplist-item {
		margin: 20rpx auto 0;
		width: 700rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 0rpx 27rpx 0rpx rgba(50, 50, 52, 0.06);
		border-radius: 20rpx;
		padding: 26rpx 22rpx 22rpx;
		align-items: flex-start;

		.shoplist-image {
			flex-shrink: 0;
			width: 150rpx;
			height: 150rpx;
			border-radius: 10rpx;
		}

		.shoplist-info {
			margin-left: 18rpx;
			width: 100%;
			line-height: 1;

			.info-top {
				display: flex;
				justify-content: space-between;
				align-items: center;

				.info-title {
					font-size: 32rpx;
					font-family: PingFang SC;
					font-weight: bold;
					color: #333333;
				}

				.info-address {
					display: flex;
					align-items: center;

					.address-icon {
						width: 20rpx;
						height: 28rpx;
					}

					.address-font {
						font-size: 22rpx;
						font-family: PingFang SC;
						font-weight: 500;
						color: #666666;
					}
				}
			}

			.info-tip {
				margin-top: 18rpx;
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #666666;
			}

			.info-bottom {
				margin-top: 32rpx;
				display: flex;
				justify-content: space-between;
				align-items: flex-end;
				padding-bottom: 10rpx;
				border-bottom: 1px solid #EAECED;

				.info-bleft {
					justify-content: flex-start;

					.infobf-item {
						margin-right: 10rpx;
						background: #FCF3F0;
						border-radius: 5rpx;
						padding: 8rpx 10rpx;
						font-size: 18rpx;
						font-family: PingFang SC;
						font-weight: 500;
						color: #FF440D;
					}
				}

				.info-bright {
					justify-content: flex-end;

					.info-icon {
						margin-left: 10rpx;
						width: 46rpx;
						height: 46rpx;
					}
				}
			}

			.bc {
				margin-top: 10rpx;
				font-size: 23rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #333333;

				.h {
					padding: 6rpx;
					background: linear-gradient(-48deg, #FFA30B, #FFD158);
					border-radius: 13rpx;
					font-size: 21rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #FFFFFF;
				}

				.dw {
					font-size: 17rpx;
					font-family: PingFang SC;
					font-weight: bold;
					color: #FF4C4C;
				}

				.xian {
					font-size: 27rpx;
					font-family: PingFang SC;
					font-weight: bold;
					color: #FF4C4C;
				}

				.yuan {
					display: inline-block;
					margin-right: 10rpx;
					font-size: 24rpx;
					font-family: PingFang SC;
					font-weight: 500;
					text-decoration: line-through;
					color: #999999;
				}
			}
		}
	}
</style>