messageCenter.wxml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <import src="../../../components/local/wxParse/wxParse"></import>
  2. <!-- 切换栏 -->
  3. <view class="tabs-wrap flex-align-center">
  4. <view class="item flex-center {{current == 1 ? 'active' : ''}}" bindtap="onTabsChange" data-id="1">
  5. 业务消息
  6. <view class="message-icon" wx:if="{{workMessageTotal!=0}}">{{workMessageTotal}}</view>
  7. </view>
  8. <view class="item flex-center {{current == 2 ? 'active' : ''}}" bindtap="onTabsChange" data-id="2">
  9. 通知
  10. <view class="message-icon" wx:if="{{notMessageTotal!=0}}">{{notMessageTotal}}</view>
  11. </view>
  12. <image bindtap="clearMessage" src="../../../images/clearMessage.png"></image>
  13. </view>
  14. <view class="message-box">
  15. <!-- 业务消息内容 -->
  16. <view class="work-box" wx:if="{{current==1}}">
  17. <view class="message-item" wx:for="{{workMessageList}}" wx:key="index">
  18. <view class="message-content">
  19. <view>{{item.content}}</view>
  20. </view>
  21. <view class="line"></view>
  22. <view class="message-bottom">{{item.create_time}}
  23. <view class="message-cicle" wx:if="{{item.status==0}}"></view>
  24. </view>
  25. </view>
  26. </view>
  27. <!-- 通知内容 -->
  28. <view class="inform-box" wx:if="{{current==2}}">
  29. <view class="inform" wx:for="{{messageList}}" wx:key="index">
  30. <view class="inform-title">{{item.title}}</view>
  31. <view class="inform-time">{{item.create_time}}</view>
  32. <view class="inform-content">
  33. <view class="inform-content-item">
  34. <template is="wxParse" data="{{wxParseData:askItemsArr[index]}}"></template>
  35. </view>
  36. </view>
  37. <view class="inform-line"></view>
  38. <view class="inform-see" data-url="{{item.url}}" data-type='{{item.url_type}}' data-id="{{item.id}}" bindtap="toMessageDetail">去看看<image src="../../../images/go_on.png"></image>
  39. </view>
  40. <view class="inform-icon" wx:if="{{item.status==0}}"></view>
  41. </view>
  42. </view>
  43. </view>