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

<script>
	import headerComp from '../../components/header'
	import baseIcon from '../../static/analysis/base.png'
	import arrow from '../../static/analysis/rArrow.png'
	import yoy from '../../static/analysis/yoy.png'
	import heattime from '../../static/analysis/heattime.png'
	import weather from '../../static/analysis/weather.png'
	import compare from '../../static/analysis/compare.png'
	import timePair from '../../static/analysis/timePair.png'
	import week from '../../static/analysis/week.png'
	import inout from '../../static/analysis/inout.png'
	import rank from '../../static/analysis/rank.png'
	import mainStore from '../../static/analysis/mainStore.png'
	import timeFlow from '../../static/analysis/timeFlow.png'
	import active from '../../static/analysis/active.png'
	import identical from '../../static/analysis/identical.png'
	import storeRate from '../../static/analysis/storeRate.png'

	
	export default{
		data(){
			return{
				titleStr:'综合分析',
				listData:[{
					text:"基础统计",
					iconSrc:baseIcon,
					rArrow:arrow,
					src:'staticReport/staticDayReport'
				},{
					text:"进出客流对比",
					iconSrc:inout,
					rArrow:arrow
				},{
					text:"排行榜统计",
					iconSrc:rank,
					rArrow:arrow
				},{
					text:"同环比分析",
					iconSrc:yoy,
					rArrow:arrow
				},{
					text:"主力店铺同环比",
					iconSrc:mainStore,
					rArrow:arrow
				},{
					text:"时段客流分布",
					iconSrc:timeFlow,
					rArrow:arrow
				},{
					text:"周中周末对比分析",
					iconSrc:week,
					rArrow:arrow
				},{
					text:"天气分析",
					iconSrc:weather,
					rArrow:arrow
				},{
					text:"节假日活动对比",
					iconSrc:active,
					rArrow:arrow
				},{
					text:"同节日对象对比",
					iconSrc:identical,
					rArrow:arrow
				},{
					text:"进店率统计",
					iconSrc:storeRate,
					rArrow:arrow
				},{
					text:"时间对比分析",
					iconSrc:timePair,
					rArrow:arrow
				}]
			}
		},
		onLoad: function (option) {},
		computed: {
			i18n() {
				return this.$t("index")
			}
		},
		components:{
			headerComp
		},
		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>