itemNotification.wxml 1.0 KB

12345678910111213141516171819
  1. <!-- 为消息-我的消息里通知的组件,组件中数据来自data:newNewsData.js -->
  2. <view class="card">
  3. <view class="top">
  4. <view class="profile" wx:if="{{item.type === '回复'}}">
  5. <text class="primary-text-color" style="font-size: 24rpx;">
  6. <text class="publisher-name" style="color: #000000;">{{item.message.publisher.name}}</text> 对您的评论进行了回复
  7. </text>
  8. </view>
  9. <view class="profile" wx:if="{{item.type === '动态'}}">
  10. <text class="primary-text-color" style="font-size: 24rpx;">您收藏的信息 <text class="publisher-name"
  11. style="color: #000000;">{{item.message.name}}</text> 有新动态</text>
  12. </view>
  13. <text class="primary-text-color detail" bindtap="getMessageInfo">查看</text>
  14. </view>
  15. <view class="bottom">
  16. <view class="text secondary-text-color {{ellipsis ? 'ellipsis' : 'unellipsis'}}">{{item.content}}</view>
  17. <view class="detail primary-text-color" bindtap="toggleEllipsis">{{ellipsis ? '展开' : '收起'}}</view>
  18. </view>
  19. </view>