waterabnormal.wxml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!--pages/waterabnormal/waterabnormal.wxml-->
  2. <view class="water-abnormal">
  3. <view class="date-panel">
  4. <view class="header">
  5. <picker class="date-picker" mode="date" fields="month" value="{{monthValue}}" start="{{monthStart}}"
  6. end="{{monthEnd}}" bindchange="bindDateChange">
  7. <view class="picker">
  8. <text>{{monthTxt}}</text>
  9. <image src="/static/img/icon-down.png"></image>
  10. </view>
  11. </picker>
  12. <view class="settings" bindtap="toSettings">预警规则设置</view>
  13. </view>
  14. <view class="wrap">
  15. <view class="weeks">
  16. <view class="item week" wx:for="{{weeks}}" wx:key="index">{{item}}</view>
  17. </view>
  18. <view class="days">
  19. <view class="item day" wx:for="{{dateArr}}" wx:key="index" data-info="{{item}}" bindtap="dayTap">
  20. <view
  21. class="txt {{item.isAbnormal && 'abnormal'}} {{item.isHandled && 'handled'}} {{selectedDay == item.dateStr && 'active'}}">
  22. {{item.dateNo}}</view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="list">
  28. <view class="item {{item.isTouchMove && 'item-touch-active'}} {{item.feedbackStatus && 'disabled'}}"
  29. wx:for="{{abnormalList}}" wx:key="index" wx:key="id" data-id="{{item.id}}" data-item="{{item}}"
  30. bindtouchstart="touchstart" bindtouchmove="touchmove">
  31. <view class="left">
  32. <image style="border-radius: 100%;border: 3rpx solid {{item.feedbackStatus ? '#79C3FC' : '#FF7171'}}" src="/static/img/img_abnormal{{item.warningType || '1'}}.png"></image>
  33. </view>
  34. <view class="right">
  35. <view class="title">
  36. <text class="name">{{item.content}}</text>
  37. <text class="time">{{item.time}}</text>
  38. </view>
  39. <view class="desc">
  40. <text class="handle" wx:if="{{item.feedbackStatus == 0}}">待处理<text class="tip">(左滑进行处理)</text></text>
  41. <text wx:if="{{item.feedbackStatus == 1}}">已确认:{{item.feedbackContent || '无异常关闭预警'}}</text>
  42. <text wx:if="{{item.feedbackStatus == 2}}">已反馈:{{item.feedbackContent}}</text>
  43. </view>
  44. <view class="tip">温馨提示:请关注用水情况,检查水表是否存在异常,如存在异常您可以通过反馈上报异常信息。</view>
  45. </view>
  46. <view class="opt" data-item="{{item}}" bindtap="toFeedback">反馈</view>
  47. </view>
  48. <view class="no-abnormal-tip" wx:if="{{!abnormalList.length}}">
  49. <image src="/static/img/img_no_abnormal.png"></image>
  50. <text>暂无异常预警</text>
  51. </view>
  52. </view>
  53. </view>