<template>
    <view class="container">
        <view class="warn-list">
            <navigator class="warn-item" :url="'/pages/warnMap/warnMap?index=' + index" v-for="(item, index) in alarmList" :key="index">
                <view class="item-head">
                    <view class="device-info">{{ item.user_name }}</view>
                    <view class="ctime">{{ tools.formatTime(item.send_time / 1000) }}</view>
                </view>

                <view class="item-content">
                    <view class="warn-desc">{{ item.alarm_desc ? item.alarm_desc : '' }}</view>
                </view>
            </navigator>
        </view>
    </view>
</template>
<script module="tools" lang="wxs" src="@/pages/common/wxs/tools.wxs"></script>

<style>
@import './warnList - 副本.css';
</style>
