bureauDetail.vue 3.9 KB
<template>
	<view class="bureau_detail">
		<!-- 详情头部 -->
		<view class="bureau_header">
			<u-navbar placeholder :autoBack="true" leftIconColor="#fff" bgColor="transparent" />
			<view class="detail_info">
				<view class="left">
					<image class="cover_img" src="@/static/homeImg/bgimg.webp" mode=""></image>
				</view>
				<view class="right">
					<text class="f-32 l-h-38 f-w-500">北宋奇案·汴京</text>
					<view class="top">
						<text class="col-primary">8.6分</text>
						<text>古风/推理/悬疑/其他</text>
					</view>
					<view class="top">
						<text>4男2女</text>
						<text>8小时</text>
						<text>高阶</text>
					</view>
					<view class="top">
						<text class="col-primary f-w-500 f-36 l-h-48">¥148元/人</text>
						<text>1号包间</text>
					</view>
				</view>
			</view>
			<!-- 门店 -->
			<view class="store">
				<image class="logo_img" src="@/static/homeImg/home.png" mode="widthFix"></image>
				<text>门店:猎人事务所</text>
			</view>
		</view>
		<!-- 组局人员 -->
		<view class="bureau_body">
			<view class="people_box">
				<view class="people_header">
					<view class="left">
						<view class="col-9 f-24 l-h-32 mb-10">开始时间</view>
						<view class="col-f f-28 l-h-38">06月06日 周四 14:00</view>
					</view>
					<view class="right">
						<image style="width: 120rpx;height: 80rpx;" src="@/static/homeImg/cat.png" mode=""></image>
						<view>
							<view class="col-9 f-24 l-h-32 mb-10">空余车位</view>
							<view class="col-f f-28 l-h-38">等<text class="col-primary">1</text>男<text class="col-primary">1</text>女</view>
						</view>
					</view>
				</view>
				<view class="people_body">
					<image v-for="(item, index) in urls" :key="index" class="avatar" :src="item" mode=""></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				urls: [
					'https://cdn.uviewui.com/uview/album/1.jpg',
					'https://cdn.uviewui.com/uview/album/2.jpg',
					'https://cdn.uviewui.com/uview/album/3.jpg',
					'https://cdn.uviewui.com/uview/album/4.jpg',
					'https://cdn.uviewui.com/uview/album/7.jpg',
					'https://cdn.uviewui.com/uview/album/6.jpg',
					'https://cdn.uviewui.com/uview/album/5.jpg'
				]
			};
		}
	}
</script>

<style lang="scss" scoped>
.bureau_header{
	position: relative;
	height: 600rpx;
	background: radial-gradient(ellipse, #fff -110%, #1d2a3a 60%);
	.detail_info{
		display: flex;
		align-items: center;
		margin-top: 40rpx;
		padding-left: 30rpx;
		.left{
			width: 180rpx;
			height: 240rpx;
			border-radius: 8rpx;
			overflow: hidden;
			margin-right: 20rpx;
			.cover_img{
				width: 100%;
				height: 100%;
			}
		}
		.right{
			display: flex;
			flex-direction: column;
			flex: 1;
			font-size: 24rpx;
			line-height: 32rpx;
			color: #fff;
			.top{
				display: flex;
				align-items: center;
				gap: 20rpx;
				margin-top: 30rpx;
			}
		}
	}
	.store{
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		left: 30rpx;
		bottom: 40rpx;
		width: 340rpx;
		height: 60rpx;
		font-size: 24rpx;
		color: #fff;
		background: linear-gradient(270deg, rgba(51,51,51,0.6) 0%, rgba(34,34,34,0.6) 51%, rgba(51,51,51,0.6) 100%);
		border-radius: 8rpx;
		.logo_img{
			width: 32rpx;
			margin-right: 10rpx;
		}
	}
}
.bureau_body{
	height: calc(100vh - 590rpx);
	border-radius: 10rpx;
	margin-top: -10rpx;
	padding: 40rpx 30rpx;
	box-sizing: border-box;
	.people_box{
		padding: 20rpx;
		background: #333333;
		border-radius: 20rpx;
		.people_header{
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-bottom: 20rpx;
			.right{
				display: flex;
				align-items: center;
				gap: 20rpx;
			}
		}
		.people_body{
			display: flex;
			flex-wrap: wrap;
			gap: 26rpx;
			height: 260rpx;
			padding: 20rpx;
			background: #FFFFFF;
			border-radius: 12rpx;
			.avatar{
				width: 100rpx;
				height: 100rpx;
				border-radius: 50%;
			}
		}
	}
}
</style>