<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="goDetail(item)">
				<view class="content" style="left:0;width:80%">
					<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}}</view>
				</view>
				<view class="nav-right num margin-right-sm">
					<view class="text-grey">
						<button class="cu-btn radius bg-green sm" v-if="item.status===0">正常</button>
						<button class="cu-btn radius bg-red sm" v-if="item.status===1">异常</button>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import json from '../../../data/json.js';
	export default {
		data() {
			return {
				deviceManage: json.weiBaoRecord,
				modalName: null,
			};
		},
		
		onLoad:function(option){
			
		},
		onNavigationBarButtonTap(e) {
			console.log(e)
			uni.navigateTo({
				url: '/pages/export/export',
	
			});
		},
		methods: {
		
			// 页面跳转
			goDetail(item) {
				uni.navigateTo({
					url: '/pages/weiBao/recordDetail/recordDetail',
				});
			},
		}

	}
</script>

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