notice.wxml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <wxs module="time" src="../../utils/time.wxs"></wxs>
  2. <view id='tabs'>
  3. <view class='tabs-box' style="background-color:#fff;border-radius:40rpx;font-size:30rpx">
  4. <block wx:for="{{['未读消息','已读消息']}}" wx:key="index">
  5. <view class="tabs-item {{currentTabIndex == index ? 'selected' : '' }}" bindtap='onTabsItemTap' data-index='{{index}}'>
  6. {{item}}
  7. </view>
  8. </block>
  9. </view>
  10. <view class="yuan" wx:if='{{currentTabIndex != 1 && noreadList.length > 0 }}'></view>
  11. <view class='ordert-detail'>
  12. <view hidden='{{currentTabIndex != 0}}'>
  13. <view class="onread" wx:for='{{noreadList}}'>
  14. <view>
  15. 【{{item.title}}】
  16. </view>
  17. <view class="title">
  18. {{time.formatDate(item.createTime)}}
  19. </view>
  20. <view class="title"> {{item.content}} </view>
  21. <view class="flex-box">
  22. <view class="readwenzi">未读</view>
  23. <view style="display: flex;">
  24. <image src="/images/dui.png" style="width: 40rpx; height: 40rpx; margin-right: 10rpx;"></image>
  25. <view bindtap="know" data-infos='{{item}}' style="color:#666666">我知道了</view>
  26. </view>
  27. </view>
  28. </view>
  29. <image src="../../images/nodata1.png" class='nodata' wx:if="{{noreadList.length==0}}"></image>
  30. </view>
  31. <view hidden='{{currentTabIndex != 1}}'>
  32. <view class="onread" wx:for='{{readList}}'>
  33. <view>
  34. 【{{item.title}}】
  35. </view>
  36. <view class="title">
  37. {{item.time}}
  38. </view>
  39. <view class="title">{{item.content}}</view>
  40. <view class="flex-box">
  41. <view class="readwenzi" style="background:#999999">已读</view>
  42. <!-- <view style="display: flex; align-items: center;">
  43. <image src="/images/shan.png" style="width: 50rpx; height: 50rpx; margin-right: 10rpx;"></image>
  44. <view>删除</view>
  45. </view> -->
  46. </view>
  47. </view>
  48. <image src="../../images/nodata1.png" class='nodata' wx:if="{{readList.length==0}}"></image>
  49. </view>
  50. </view>
  51. </view>