<template>

	<view class="">
		<view class="cu-list menu-avatar">
			<view class="cu-item deviceTypeItem" v-for="(item,index) in inspectList" :key="index" @tap="goRecordPage(index)">
				<view class="cu-avatar round">
					<image class="image-bg" :src=item.imgUrl />
				</view>
				<view class="content">
					<view class="title">{{item.title}}</view>
				</view>
				<view class="nav-right num">
					<view>
						<text class="icon iconfont margin-right-xs margin-left-lg">&#xe629;</text>
					</view>
				</view>
			</view>
			
			
		</view>
	</view>
</template>

<script>
	import json from '../../data/json.js';
	export default {
		data() {
			return {
			inspectList: json.weiBaoList,

			};
		},
		onLoad:function(option){
			
		},
		
	
		methods: {
			goRecordPage(index){
				
				
				let url = "";
				switch (index) {
					case 0:
						url = "/pages/weiBao/plan/plan"
						break;
					case 1:
						url = "/pages/weiBao/record/record"
						break;
				}
				uni.navigateTo({
					url: url
				})
			}
		}

	}
</script>

<style lang="scss">
	
	
	
</style>
