index.wxml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!-- 导航栏 -->
  2. <nav-bar title="首页" left="{{ false }}"></nav-bar>
  3. <scroll-view style="padding-bottom: 80px;" scroll-y>
  4. <!-- banner轮播图 -->
  5. <swiper class="banner" wx:if="{{banners.count != 0}}" indicator-active-color="orange" indicator-dots autoplay interval="5000" circular>
  6. <swiper-item class="banner_item" wx:for="{{banners}}" wx:key="index" id="{{item}}">
  7. <view class="swiper-item">
  8. <image src='{{item}}' mode="widthFix"></image>
  9. </view>
  10. </swiper-item>
  11. </swiper>
  12. <!-- 通知栏 -->
  13. <van-notice-bar wx:if="{{msgs.length != 0}}" left-icon="volume-o" mode="link" bind:click="goToMsg" color="#333" background="#f3f3f3" text="{{notice.title}}" scrollable></van-notice-bar>
  14. <!-- 统计 -->
  15. <view class="statistics" style="background-color: firebrick;">
  16. <view class="statistics-item" wx:for="{{statistics}}" wx:key="id" wx:for-index="idx" wx:for-item="itm">
  17. <text>{{itm.title}}</text>
  18. <text>{{homedata[idx]}}</text>
  19. </view>
  20. </view>
  21. <!-- 功能菜单 -->
  22. <view class="gird-view">
  23. <view class="gird-view__item" wx:for="{{ menus }}" wx:key="id" wx:for-index="idx" wx:for-item="itm" id="{{ itm.id }}" data-url="{{ itm.path }}" bindtap="onGirdClick">
  24. <image class="gird-view__item__icon" mode="widthFix" src="../../images/{{ itm.icon }}.png"></image>
  25. <text class="gird-view__item__title">{{ itm.title }}</text>
  26. </view>
  27. </view>
  28. <!-- 公告消息 -->
  29. <view class="msg-view">
  30. <view class="msg-view__top">
  31. <van-tabs custom-class="msg-view__menus" bind:change="onChange" color="#2270D9" line-width="20px" title-inactive-color="#333" title-active-color="#2270D9" bind:change="onTabChange">
  32. <van-tab wx:for="{{ tabs }}" wx:for-item="itm" wx:for-index="idx" wx:key="id" title="{{ itm.title }}" />
  33. </van-tabs>
  34. <image class="msg-view__top__more" src="../../images/home-more.png" bindtap="goToMsg"></image>
  35. </view>
  36. <van-cell-group wx:if="{{ !isEmpty }}">
  37. <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">
  38. <view solt="title" class="view_top_content">
  39. <text class="msg_date" user-select>{{ itm.scheduletime }}</text>
  40. <text class="msg_title" user-select>{{ itm.title }}</text>
  41. </view>
  42. </van-cell>
  43. </van-cell-group>
  44. </view>
  45. </scroll-view>
  46. <!-- 证书查询 -->
  47. <view class="certsearch" style="background-image: url('../../images/home-zscx.png');" bindtap="goToCerserach"></view>
  48. <!-- 计算器 -->
  49. <view class="calculator" style="background-image: url('../../images/home-jsq.png');" bindtap="goToCalculator" ></view>
  50. <!-- toast -->
  51. <van-toast id="van-toast" />
  52. <!-- 无数据 -->
  53. <van-empty wx:if="{{ isEmpty }}" class="custom-image" description="无数据"/>