index.wxml 1.1 KB

123456789101112131415161718192021222324252627
  1. <!-- 导航栏 -->
  2. <van-nav-bar custom-style="background-color: #407DB8">
  3. <van-icon slot="left" name="arrow-left" size="25px" color="#fff" bind:click="backToParent"/>
  4. <text slot="title" style="color: #fff;">公告消息</text>
  5. </van-nav-bar>
  6. <!-- tabs -->
  7. <van-tabs animated bind:change="onChange" color="#2270D9" line-width="20px" title-inactive-color="#333" title-active-color="#407DB8">
  8. <van-tab wx:for="{{ tabs }}" wx:key="id" title="{{ item.title }}" />
  9. </van-tabs>
  10. <van-cell-group>
  11. <van-cell custom-class="msg-item" wx:for="{{ msgs }}" wx:key="id" wx:for-index="idx" wx:for-item="itm" id="{{ idx }}" bind:click="goToMsgDetail">
  12. <view solt="title" class="view_top_content">
  13. <text class="msg_title" user-select>{{ itm.title }}</text>
  14. <text class="msg_date" user-select>{{ itm.scheduletime }}</text>
  15. </view>
  16. <view class="content">
  17. <text user-select>{{ itm.content }}</text>
  18. </view>
  19. </van-cell>
  20. </van-cell-group>
  21. <!-- 无数据 -->
  22. <van-empty wx:if="{{isEmpty}}" class="custom-image" description="无数据"/>
  23. <!-- toast -->
  24. <van-toast id="van-toast" />