insideMessage.wxml 764 B

123456789101112131415
  1. <view class="message-view">
  2. <button open-type="contact" plain="true" hover-class="none" style="border: none;">
  3. <view class="contact-btn">
  4. <image src="../../../static/image/contact_img.png"></image>
  5. </view>
  6. </button>
  7. <view class="message-box" wx:for="{{messageList}}" wx:key="{{index}}">
  8. <view class="message-time">{{item.gmtCreated}}</view>
  9. <view class="message-text">
  10. <!-- {{item.type === 'MESSAGE' ? '[通知]' : item.type === 'OFFICIAL' ? '[官方消息]' : '[本周学习报告]'}}: {{item.content}} -->
  11. [{{item.title}}]: {{item.content}}
  12. </view>
  13. </view>
  14. <view wx:if="{{messageList.length === 0}}" class="message-box-placerholder">暂无更多消息</view>
  15. </view>