passenger.vue 1.67 KB
<template>
	<view>
		<headerComp :title="titleStr"></headerComp>
		<view class="listBox">
			<view class="itemBox" v-for="item in listData" @tap="goReport(item.src)">
				<img class="icons" :src="item.iconSrc"/>
				<span class="texts">{{item.text}}</span>
				<img class="arrows" :src="item.rArrow" alt=""/>
			</view>
		</view>
	</view>
</template>

<script>
	import headerComp from '../../components/header'
	import arrow from '../../static/analysis/rArrow.png'
	import baseIcon from '../../static/analysis/base.png'
	import inout from '../../static/analysis/inout.png'
	
	export default {
		components: {
			headerComp
		},
		data() {
			return {
				titleStr:'精准客流',
				listData:[{
					text:"抓拍记录",
					iconSrc:baseIcon,
					rArrow:arrow,
					src:'captureReport/capture'
				},{
					text:"客群分时统计",
					iconSrc:inout,
					rArrow:arrow,
					src:'groupTimeReport/groupTime'
				}]
			}
		},
		methods: {
			goReport(url){
				uni.navigateTo({
					url:url,
					animationType: 'slide-in-right',
					animationDuration: 200
				})
			},
		},
	}
</script>

<style>
	.listBox{
		padding: 18.11upx 21.73upx;
	}
	.itemBox{
		padding: 25.36upx 0;
		background: #FFFFFF;
		position: relative;
		margin-bottom: 18.11upx;
	}
	.itemBox:active{
		background: #EEEEEE;
	}
	.icons{
		width: 28.98upx;
		position: absolute;
		top: 48.91upx;
		left: 43.47upx;
	}
	.texts{
		display: inline-block;
		height: 68.84upx;
		line-height: 68.84upx;
		border-left:3.62upx #EEEEEE solid;
		padding-left: 34.42upx;
		font-size: 25.4upx;
		color: #000000;
		margin-left:115.94upx;
	}
	.arrows{
		width: 14.49upx;
		height: 25.36upx;
		position: absolute;
		right: 25.36upx;
		top: 47.1upx;
	}
</style>