<template>
	<view class="room-good">
		<view class="rm-left">
			<image src="https://ak-d.tripcdn.com/images/0205w120008nyuc6gA680_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>
			<view class="f11 king" style="margin-top: 15px;">不可取消</view>
			<view class="price">
				<text class="f11" style="margin-right: 10rpx;">￥</text>
				<text>500</text>
			</view>
		</view>
		<view class="rm-opera">
			<!-- 如果库存少于5显示 -->
			<view class="buy disabled">
				<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>
