bookCard.vue 1.1 KB
<template>
	<view class="bookCard">
		<view class="left">
			<image class="arena_img" src="@/static/images/home/bg-1.png" mode="scaleToFill"></image>
		</view>
		<view class="right">
			<view class="arenaInfo">
				<view>羽毛球1号场</view>
				<view class="price">¥ 160/小时</view>
			</view>
			<MyButton title="订场" size="small" @comfirn="goRouter" />
		</view>
	</view>
</template>

<script>
	import MyButton from '@/components/myButton.vue'
	export default {
		components: { MyButton },
		methods: {
			goRouter(){
				uni.navigateTo({
					url: '/pages/timeBooking/timeBooking'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.bookCard{
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 24rpx;
		.left{
			width: 124rpx;
			height: 124rpx;
			margin-right: 24rpx;
			.arena_img{
				width: 100%;
				max-height: 126rpx;
			}
		}
		.right {
			display: flex;
			align-items: center;
			justify-content: space-between;
			flex: 1;
			height: 100%;
			.arenaInfo{
				font-size: 28rpx;
				color: #333;
				line-height: 32rpx;
				.price{
					font-size: 500;
					margin-top: 20rpx;
				}
			}
		}
	}
</style>