<template>
	<view class="package-good">
		<view class="rm-left">
			<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1622459631000_626.jpg" mode="aspectFill">
			</image>
		</view>
		<view class="rm-right">
			<view class="package-name">海鲜团队用餐</view>
			<view class="f11">
				<text class="king" style="margin-right: 14rpx;">6人起订</text>
				<text>仅周五、周六可用，节假日可用</text>
			</view>
			<viwe class="give f11">
				提前1天预约
			</viwe>
			<view class="price" style="margin-top:30rpx;">
				<text class="f11" style="margin-right: 10rpx;">￥</text>
				<text>889</text>
			</view>
		</view>
		<view class="rm-opera">
			<view class="buy disabled" @click="previewOrder">
				<view class="buy-content">抢</view>
				<view class="buy-tips">已售罄</view>
			</view> 
		</view>
	</view>
</template>

<script>
	export default {
		methods: {
			previewOrder(){
				uni.navigateTo({
					url:"/pages/hotel/order"
				})
			},
		},
	}
</script>

<style>
	.package-good {
		margin-bottom: 30rpx;
		display: flex;
		align-items: center;
	}

	.package-good .king {
		color: #DFBE6E !important;
	}

	.package-good .f11 {
		font-size: 22rpx;
		font-weight: 500;
	}

	.package-good .rm-right {
		width: 1px;
		flex: 1;
	}
	.package-good .rm-opera{
		margin-left: 10rpx;
		display: flex;
		flex-direction: column;
		justify-content: center;
		justify-items: center;
		align-items: center;
	}
	.package-good .rm-opera .warm-count{
		text-align: center;
		font-size: 18rpx;
		font-weight: 500;
		color: #111111;
		margin-bottom: 10rpx;
	}
	.package-good .rm-opera .buy{
		width: 70rpx;
		height: 81rpx;
		background: #FFFFFF;
		border: 2rpx solid #111111;
		border-radius: 8rpx;
		display: flex;
		flex-direction: column;
	}
	.package-good .rm-opera .buy.disabled{
		background: #EBEBEB;
		border: 2rpx solid #DCDCDC;
	}
	.package-good .rm-opera .buy.disabled .buy-tips{
		background: #A09E9E;
		color: #fff;
	}
	.package-good .rm-opera .buy.disabled .buy-content{
		color: #A09E9E;
	}
	.package-good .rm-opera .buy .buy-tips{
		height: 27rpx;
		background: #000000;
		text-align: center;
		color:#DFBE6E;
		font-size: 18rpx;
		line-height: 27rpx;
	}
	.package-good .rm-opera .buy .buy-content{
		height: 1px;
		flex: 1;
		text-align: center;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 32rpx;
		font-weight: 800;
		color: #111111;
	}
	.package-good .rm-right .package-name {
		font-size: 30rpx;
		font-weight: 800;
		color: #111111;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.package-good .rm-right .give {
		background: #ECF1F4;
		border-radius: 4rpx;
		padding: 10rpx;
		margin-top:15rpx;
		display: inline-block;
	}
	
	.package-good .rm-right .price{
		font-weight: 800;
		font-size: 40rpx;
		color:#111;
	}

	.package-good .rm-left {
		width: 174rpx;
		height: 257rpx;
		border-radius: 20rpx;
		margin-right: 30rpx;
		position: relative;
		overflow: hidden;
	}

	.package-good .rm-left image {
		width: 100%;
		height: 100%;
	}

	.package-good .rm-left .mark {
		padding: 14rpx;
		background: rgba(0, 0, 0, .4);
		color: #FFF;
		border-radius: 20rpx 0px 20rpx 0px;
		font-size: 24rpx;
		font-weight: 500;
		position: absolute;
		right: 0;
		bottom: 0;
	}
</style>
