<template>

	<view class="">
		<view class="cu-list menu-avatar">
			<view class="cu-item"  :class="modalName=='move-box-'+ index?'move-cur':''" v-for="(item,index) in deviceManage"
			 :key="index" :data-target="'move-box-' + index" @tap="goDeviceDetail(item)">
				<view class="cu-avatar round lg" style="background-image:url(../../static/device-icon.png)"></view>
				<view class="content" >
					<view class="pro-title">
						<view class="cut">{{item.title}}</view>
					</view>
					<view class="pro-des  ">
						<view class="text-cut">
							{{item.des}}
						</view>
					</view>
					<view class="pro-date ">{{item.time}}111</view>
				</view>
				<view class="nav-right num">
					<view class="text-grey">
						<span class="online" v-if="item.status==0">在线</span>
						<span class="offline" v-if="item.status==1">离线</span>
						<span class="error" v-if="item.status==2">故障</span>
						<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 {
				deviceManage: json.xunJianRecord,
				modalName: null,
			};
		},
		
		onLoad:function(option){
			
		},
		onNavigationBarButtonTap(e) {
			console.log(e)
			uni.navigateTo({
				url: '/pages/export/export',
	
			});
		},
		methods: {
		
			// 页面跳转
			goDeviceDetail(item) {
				uni.navigateTo({
					url: '/pages/deviceDetail/deviceDetail',
				});
			},
		}

	}
</script>

<style lang="scss">
	.cu-item{
		height:180rpx!important
	}
</style>
