ArenaDetailCard.vue 3.2 KB
<template>
	<view class="detail_card">
		<view class="header_module">
			<CommonTitleNav title-name="彩虹体育馆" :mark-color="ThemeColor.PrimaryColor" right-title="4.8分" :sideTitleColor="ThemeColor.PrimaryColor" >
				<template #side-content>
					<view style="display: flex;align-items: center;font-size: 24rpx;" @click="goMore">
						<text style="margin-right: 6rpx;">更多场照</text>
						<u-icon name="play-right-fill" :color="ThemeColor.PrimaryColor" size="12"></u-icon>
					</view>
				</template>
			</CommonTitleNav>
			<view class="range">距离您1.2km</view>
		</view>
		
		<u-scroll-list indicatorWidth="0">
			<view class="list_card" v-for="(item, index) in list" :key="index">
					<image class="cover" :src="item.thumb"></image>
			</view>
		</u-scroll-list>
		
		<view class="footer-module">
			<view class="left">
				<view class="businessTime">营业时间:周一至周五 9:00-23:00</view>
				<CommonIconNav icon-name="map" title-content="1.2km 滨湖路地铁C口"></CommonIconNav>
			</view>
			<view class="right">
				<view class="nav">
					<u-icon size="20" name="https://bpic.588ku.com/element_origin_min_pic/19/06/15/bf733c98b302dd7b87f9d086310e75ea.jpg"></u-icon>
					<text class="text">导航</text>
				</view>
				<view class="phone">
					<u-icon size="20" name="phone"></u-icon>
					<text class="text">电话</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import CommonTitleNav from '@/components/commonTitleNav.vue'
	import CommonIconNav from '@/components/commonIconNav.vue'
	import ThemeColor from '@/utils/themeColor'
	export default {
		components: { CommonTitleNav, CommonIconNav },
		data(){
			return {
				ThemeColor,
				list: [{
						thumb: "https://cdn.uviewui.com/uview/goods/1.jpg"
				}, {
						thumb: "https://cdn.uviewui.com/uview/goods/2.jpg"
				}, {
						thumb: "https://cdn.uviewui.com/uview/goods/3.jpg"
				}, {
						thumb: "https://cdn.uviewui.com/uview/goods/4.jpg"
				}, {
						thumb: "https://cdn.uviewui.com/uview/goods/5.jpg"
				}]
			}
		},
		methods: {
			goMore(){
				uni.navigateTo({
					url: '/pages/morePhotos/morePhotos'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.u-scroll-list__indicator{
		margin-top: 0;
	}
	.detail_card{
		width: 690rpx;
		height: 384rpx;
		background: #FFFFFF;
		border-radius: 16rpx;
		margin: 0 auto;
		padding: 34rpx 34rpx 20rpx;
		box-sizing: border-box;
		.header_module{
			.range{
				margin: 14rpx 0;
				color: #999;
				font-size: 24rpx;
				line-height: 28rpx;
			}
		}
		
		.list_card{
			width: 224rpx;
			height: 136rpx;
			margin-right: 20rpx;
			&:last-child{
				margin-right: 0;
			}
			.cover{
				width: 224rpx;
				height: 136rpx;
			}
		}
		
		
		.footer-module{
			display: flex;
			align-content: center;
			justify-content: space-between;
			margin-top: -40rpx;
			.left{
				color: #333;
				font-size: 24rpx;
				line-height: 32rpx;
				.businessTime{
					margin-bottom: 14rpx;
				}
			}
			.right{
				display: flex;
				align-items: center;
				font-size: 24rpx;
				color: #666;
				.nav, .phone{
					display: flex;
					flex-direction: column;
					align-items: center;
					.text{
						margin-top: 6rpx;
					}
				}
				.nav{
					margin-right: 40rpx;
				}
			}
		}
	}
</style>