warnList - 鍓湰.vue 804 B

123456789101112131415161718192021
  1. <template>
  2. <view class="container">
  3. <view class="warn-list">
  4. <navigator class="warn-item" :url="'/pages/warnMap/warnMap?index=' + index" v-for="(item, index) in alarmList" :key="index">
  5. <view class="item-head">
  6. <view class="device-info">{{ item.user_name }}</view>
  7. <view class="ctime">{{ tools.formatTime(item.send_time / 1000) }}</view>
  8. </view>
  9. <view class="item-content">
  10. <view class="warn-desc">{{ item.alarm_desc ? item.alarm_desc : '' }}</view>
  11. </view>
  12. </navigator>
  13. </view>
  14. </view>
  15. </template>
  16. <script module="tools" lang="wxs" src="@/pages/common/wxs/tools.wxs"></script>
  17. <style>
  18. @import './warnList - 副本.css';
  19. </style>