- <view class="message-view">
- <button open-type="contact" plain="true" hover-class="none" style="border: none;">
- <view class="contact-btn">
- <image src="../../../static/image/contact_img.png"></image>
- </view>
- </button>
- <view class="message-box" wx:for="{{messageList}}" wx:key="{{index}}">
- <view class="message-time">{{item.gmtCreated}}</view>
- <view class="message-text">
- {{item.type === 'MESSAGE' ? '[通知]' : item.type === 'OFFICIAL' ? '[官方消息]' : '[本周学习报告]'}}: {{item.content}}
- </view>
- </view>
- <view wx:if="{{messageList.length === 0}}" class="message-box-placerholder">暂无更多消息</view>
- </view>
|