<template>
	<view class="room-good">
		<view class="rm-left">
			<image src="https://ak-d.tripcdn.com/images/0206l120008hti7x86A59_R_1080_808_R5_D.jpg" mode="aspectFill">
			</image>
			<view class="mark">12</view>
		</view>
		<view class="rm-right">
			<view class="room-name">藏韵高级双床房</view>
			<view class="f11">
				<text class="king" style="margin-right: 14rpx;">含早餐</text>
				<text>1.5m大床 2人入住 24㎡ 有窗</text>
			</view>
			<viwe class="give f11">
				免费专辑接机 + 送沟口 + 1张情景演出票
			</viwe>
			<view class="f11 king" style="margin-top:15rpx;">入住当天18：00前可免费取消</view>
			<view class="price">
				<text class="f11" style="margin-right: 10rpx;">￥</text>
				<text>889</text>
			</view>
		</view>
		<view class="rm-opera">
			<!-- 如果库存少于5显示 -->
			<view class="warm-count">剩2间</view>
			<view class="buy">
				<view class="buy-content">抢</view>
				<view class="buy-tips">在线订</view>
			</view>
		</view>
	</view>
</template>

<script>
</script>

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

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

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

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

	.room-good .rm-right .give {
		width: 278rpx;
		background: #ECF1F4;
		border-radius: 4rpx;
		padding: 10rpx;

		text-overflow: -o-ellipsis-lastline;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		-webkit-box-orient: vertical;
		margin-top:15rpx;
	}
	
	.room-good .rm-right .price{
		font-weight: 800;
		font-size: 40rpx;
		color:#111;
	}

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

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

	.room-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>
