index.wxml 1.0 KB

123456789101112131415161718192021
  1. <!-- <My_tabs id='tabs' bind:onChange='tabChange' /> -->
  2. <van-tabs id='tabs' active="{{ content.type }}" color='var(--assist)' tab-active-class='tab-active-class' bind:change="tabChange">
  3. <van-tab title="应用消息" name='应用' />
  4. <van-tab title="系统消息" name='系统' />
  5. </van-tabs>
  6. <Yl_ListBox id="ListBox" height="{{height}}" bind:getlist='getlist'>
  7. <view class="unread">总共{{total}}条</view>
  8. <navigator url="#" class='list' wx:for="{{list}}" data-item="{{item}}" bindtap="toDetails">
  9. <view class="title line-1">{{item.title}}</view>
  10. <view class="content line-1">{{item.message}}</view>
  11. <view class="time">
  12. <van-tag class="tag" wx:if="{{item.objectname}}" plain type="primary">{{type.query(item.objectname)}}</van-tag>{{item.createdate}}
  13. </view>
  14. <view wx:if="{{item.isread=='0'}}" class="unread-item" />
  15. </navigator>
  16. <Yl_Empty wx:if="{{!list.length}}" />
  17. <view style="height: 180rpx;" />
  18. </Yl_ListBox>
  19. <wxs module="type" src='./modules/determineType.wxs' />