<template>
	<view class="container">
		<view class="goodsList-box">
			<view class="goodsList-item flex" >
				<image src="" mode=" scaleToFill"></image>
				<view class="goodsList-content">
					<view class="title">
						<text class="clamp2"></text>
					</view>
					<view class="goods-money flex">
						<view class="money-box">
							<text class="otMoney">￥</text>
							<image src="../../static/icon/in2.png"></image>
							<!-- <image src="../../static/error/errorImage.jpg"></image> -->
							<text class="decline">直降元</text>
							<!-- <view class="otMoney-box"> -->
								<view class="money">￥</view>
								<!-- <text class="sales">已售{{ ls.sales }}件</text> -->
							<!-- </view> -->
						</view>
						<view class="button" @click="navTo(ls)">立即购买</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
import { loadIndexs,groom } from '@/api/index.js';
export default {
	data() {
		return {
			list: [],
			bannerImg: [],
			title: '',
			goods: [],
			page: 1,
			limit: 10
		};
	},
	onLoad(option) {
	},
	methods: {
		}
	
	}

</script>

<style lang="scss">
page {
	background: $page-color-base;
}
.carousel-section {
	padding: 0;
	.titleNview-placing {
		padding-top: 0;
		height: 0;
	}
	.swiper-dots {
		left: 45rpx;
		bottom: 40rpx;
	}
	.carousel {
		width: 100%;
		height: 360rpx;
		.carousel-item {
			width: 100%;
			height: 100%;
			overflow: hidden;
		}
		image {
			width: 100%;
			height: 100%;
		}
	}
}
// 中间标题样式
.type-title-box {
	padding: 40rpx;
	.title-content {
		height: 100%;
		width: 200rpx;
		text-align: center;
		font-size: $font-lg;
		font-weight: 500;
		color: $font-color-dark;
	}
	.title-border {
		width: 250rpx;
		height: 2rpx;
		background-color: #e9e9e9;
	}
}
// 商品列表
.goodsList-box {
	padding: 30rpx;
	.goodsList-item {
		box-shadow:0 0 20rpx 6rpx #f1f1f1;
		border-radius: 10rpx;
		margin-bottom: 30rpx;
		background-color: #ffffff;
		padding: 30rpx;
		image {
			flex-shrink: 0;
			border-radius: $border-radius-sm;
			height: 180rpx;
			width: 180rpx;
		}
		.goodsList-content {
			margin-left: 20rpx;
			flex-grow: 1;
			height: 180rpx;
			position: relative;
			.title {
				font-size: $font-base;
				color: $font-color-dark;
				font-weight: bold;
			}
			.goods-money {
				position: absolute;
				left: 0;
				bottom: 0;
				width:100%;
				.money-box {
					.otMoney {
						color: #999999;
						text-decoration: line-through;
						margin-right: 15rpx;
						font-size: 20rpx;
					}
					.money {
						color: #FF6F0F;
						font-weight: bold;
						font-size: 35rpx;
					}
					image {
						width: 20rpx;
						height: 20rpx;
						margin-right: 5rpx;
					}
					.decline {
						color: #B59467;
						font-size: 20rpx;
					}
					.sales {
						color: $font-color-light;
					}
				}
				.button {
					background: #52C696;
					height: 50rpx;
					border-radius: 20rpx;
					padding: 10rpx 15rpx;
					color: #fff;
					font-size: 25rpx;
					position: relative;
					top: 20rpx;
				}
				.cart {
					border: 1px solid $color-red;
					color: $color-red;
					font-size: $font-base;
					font-weight: bold;
					border-radius: 99px;
					width: 55rpx;
					height: 55rpx;
					display: flex;
					justify-content: center;
					align-items: center;
				}
			}
		}
	}
}
</style>
