index.wxml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. <van-grid clickable column-num="5">
  23. <van-grid-item wx:for="{{menus}}" wx:key="id" wx:for-index="idx" wx:for-item="itm" url="{{itm.path}}" icon="send-gift" id="{{itm.title}}" text="{{itm.title}}" bind:click="onGirdClick"/>
  24. </van-grid>
  25. <van-cell-group wx:if="{{msgs.length != 0}}">
  26. <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">
  27. <view solt="title" class="view_top_content">
  28. <text class="msg_date" user-select>{{itm.scheduletime}}</text>
  29. <text class="msg_title" user-select>{{itm.title}}</text>
  30. </view>
  31. </van-cell>
  32. </van-cell-group>
  33. </scroll-view>
  34. <!-- 证书查询 -->
  35. <view class="certsearch" style="background-image: url('../../images/home-zscx.png'); background-size: 100% 100%; width: 50px; height: 50px;" bindtap="goToCerserach"></view>
  36. <!-- 计算器 -->
  37. <view class="calculator" style="background-image: url('../../images/home-jsq.png'); background-size: 100% 100%; width: 50px; height: 50px;" bindtap="goToCalculator" ></view>
  38. <!-- toast -->
  39. <van-toast id="van-toast" />