messageList.wxml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <wxs src='../../../utils/formatFuc.wxs' module="utils"></wxs>
  2. <view>
  3. <van-tabs active="{{ activeTab }}" color="#1677FF" id="tabs" bind:change="onTabChange">
  4. <van-tab title="未读" name="1"></van-tab>
  5. <van-tab title="已读" name="2"></van-tab>
  6. </van-tabs>
  7. <view class="drop-block">
  8. <van-dropdown-menu active-color="#09afff">
  9. <van-dropdown-item value="{{ type }}" options="{{ typeList }}" bind:change="dropdownChange"/>
  10. </van-dropdown-menu>
  11. <view class="after-wrapper">
  12. <view class="arrow after-arrow"></view>
  13. <view class="date-wrapper" bindtap="dateSelect">
  14. <view>{{date}}
  15. </view>
  16. <view class="arrow"></view>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="message-list">
  21. <!-- <view class="message-item" wx:for="{{messageList}}" wx:key="index">
  22. <view class="title">
  23. <image mode="aspectFit" src="/static/images/upgrade/icon-alert.png"></image>
  24. <view>{{item.title}}</view>
  25. </view>
  26. <view class="{{item.type==8||item.type==9||item.type==10?'warn-text':''}} content">{{item.content}}</view>
  27. <view class="message-bottom" wx:if="{{activeTab==1}}">
  28. <image mode="aspectFit" src="/static/images/upgrade/icon-wyzx.png" bindtap="readNotice" data-id="{{item.id}}"></image>
  29. <view bindtap="readNotice" data-id="{{item.id}}">我已知晓</view>
  30. </view>
  31. </view> -->
  32. <!-- <view class="operate" wx:if="{{activeTab==1}}">
  33. <view>填写反馈</view>
  34. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/wx-servant/icon-right.png" bindtap="readNotice" data-id="{{item.id}}"></image>
  35. </view> -->
  36. </view>
  37. <view class="message-list">
  38. <view class="message-item modal-block" wx:for="{{messageList}}" wx:key="index">
  39. <view class="content">
  40. <view class="title">
  41. <view class="left">
  42. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/wx-servant/icon-alert.png" class="alert"></image>
  43. <view>{{item.title}}</view>
  44. </view>
  45. <view class="right" style="overflow:hidden;white-space:nowrap;">
  46. {{utils.formatDate(item.sendTime)}}
  47. </view>
  48. </view>
  49. <view class="line tiket-num">
  50. 关联单据:<text>{{item.rno}}</text>
  51. </view>
  52. <view class="line">
  53. 问题类型:{{item.noticeType}}
  54. </view>
  55. <view class="line-two">
  56. 提醒内容:{{item.content}}
  57. </view>
  58. </view>
  59. <view class="operate" bindtap="goFeedback" data-feedback="{{item.isFeedback}}" data-path="{{item.pagePath}}" data-id="{{item.id}}">
  60. <view wx:if="{{item.isFeedback==1&&activeTab==1}}">填写反馈</view>
  61. <view wx:elif="{{item.isFeedback==1&&activeTab==2}}">查看反馈</view>
  62. <view wx:elif="{{item.isFeedback!=1&&activeTab==1}}">立即处理</view>
  63. <view wx:else></view>
  64. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/wx-servant/icon-right.png" ></image>
  65. </view>
  66. </view>
  67. </view>
  68. <view class="modal-list" wx:if="{{foldList.length>=1&&activeTab==1}}">
  69. <view class="modal-block-bottom modal-block" wx:if="{{foldList.length>1}}">
  70. </view>
  71. <view class="modal-block-top modal-block {{foldList.length==1?'one-modal':''}}" >
  72. <view class="content">
  73. <view class="title">
  74. <view class="left">
  75. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/wx-servant/icon-alert.png" class="alert"></image>
  76. <view>{{foldMsg.title}}</view>
  77. </view>
  78. <view class="right">
  79. {{utils.formatDate(foldMsg.sendTime)}}
  80. </view>
  81. </view>
  82. <view class="line tiket-num">
  83. 关联单据:<text>{{foldMsg.rno}}</text>
  84. </view>
  85. <view class="line">
  86. 问题类型:{{foldMsg.noticeType}}
  87. </view>
  88. <view class="line-two">
  89. 提醒内容:{{foldMsg.content}}
  90. </view>
  91. </view>
  92. <view class="operate" bindtap="goFeedback"
  93. data-feedback="{{foldMsg.isFeedback}}" data-path="{{foldMsg.pagePath}}" data-id="{{foldMsg.id}}">
  94. <view wx:if="{{foldMsg.isFeedback==1&&activeTab==1}}">填写反馈</view>
  95. <view wx:elif="{{foldMsg.isFeedback==1&&activeTab==2}}">查看反馈</view>
  96. <view wx:elif="{{foldMsg.isFeedback!=1&&activeTab==1}}">立即处理</view>
  97. <view wx:else></view>
  98. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/wx-servant/icon-right.png" ></image>
  99. </view>
  100. </view>
  101. </view>
  102. <view class="no-msg" wx:if="{{messageList.length==0&&foldList.length==0}}">暂无内容~</view>
  103. </view>
  104. <van-popup
  105. show="{{ pickerShow }}"
  106. position="bottom"
  107. >
  108. <van-datetime-picker
  109. type="year-month"
  110. value="{{ currentDate }}"
  111. min-date="{{ minDate }}"
  112. bind:confirm="onConfirm"
  113. bind:cancel="onCancel"
  114. />
  115. </van-popup>