<template>
	<view class="content padding-t-20">
		<view class="flex item padding-v-20 padding-c-20">
			<view class="imgbox">
				<image class="img" src="" mode="scaleToFill"></image>
			</view>
			<view class="contentbox padding-l-20 flex">
				<view class="clamp2 title">
					法国空运高端82年拉菲陈酿 红葡萄酒...
				</view>
				<view class="oldMoneyBox ">
					<view class="flex-start padding-b-10">
						<text class="oldMoney">￥200</text>
						<image class="icon padding-l-10" src="../../static/img/domIcon.png" mode="scaleToFill"></image>
						<text class="domMoney font-size-sm">
							直降40元
						</text>
					</view>
					<view class="flex">
						<view class="money">￥200</view>
						<view class="buttomPay">立即购买</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
				
				
			};
		},
		onLoad() {},
		onShow() {},
		onReachBottom() {},
		onReady() {},
		methods: {
			navto(url) {
				// #ifdef H5
				console.log(url.indexOf('http'), 'banner');
				if (url.indexOf('http') >= 0) {
					window.location.href = url;
				}
				// #endif
				//测试数据没有写id，用title代替
				uni.navigateTo({
					url: url
				});
			}
			
		}
	};
</script>

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

	.item {
		border-radius: 10rpx;
		background-color: #FFFFFF;
		width: 690rpx;
		margin: 0 30rpx 20rpx 30rpx;
		align-items: stretch;
		line-height: 1;

		.imgbox {
			background-color: #EE2F72;
			border-radius: 10rpx;
			.img {
				height: 246rpx;
				width: 246rpx;
			}
		}

		.contentbox {
			flex-wrap: wrap;

			.title {
				width: 100%;
				align-self: flex-start;
				font-size: $font-lg;
				color: $font-color-dark;
				line-height: 1.5;
			}

			.money {
				font-size: $font-lg + 4rpx;
				font-weight: bold;
				color: #EE2F72;
			}

			.oldMoneyBox {
				align-self: flex-end;
				width: 100%;

				.oldMoney {
					font-size: $font-sm;
					text-decoration: line-through;
					color: $font-color-light;
				}

				.domMoney {
					color: #B59467;
				}

				.icon {
					width: 14rpx;
					height: 16rpx;
				}

				.buttomPay {
					padding: 14rpx 26rpx;
					font-size: $font-base;
					color: #fff;
					background: linear-gradient(90deg, #FF4A8A, #FF77A7);
					border-radius: 26px;
				}
			}
		}
	}
</style>
