home.wxml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!--parents//pages/main/main.wxml-->
  2. <import src="../../../templates/footer/footer.wxml" />
  3. <import src="../../../templates/loading/loading.wxml" />
  4. <view class='container'>
  5. <template is='loading' wx:if='{{!isLoaded}}'></template>
  6. <view class='wrapper' wx:else>
  7. <view class='list'>
  8. <view class='li-header'>
  9. <view class='li-carousel'>
  10. <swiper class="li-carousel-img" indicator-dots="true" indicator-color="#f4f4f4" indicator-active-color="#4eb8b8" autoplay="true" interval='2000' circular='true'>
  11. <block wx:for="{{imgList}}" wx:key="key">
  12. <swiper-item bindtap='chomeCarouselClick' data-url='{{item.url}}'>
  13. <image class="li-carousel-img" src='{{item?baseImgUrl+item:""}}' mode='aspectFill' ></image>
  14. </swiper-item>
  15. </block>
  16. </swiper>
  17. </view>
  18. <view class="item-Tops">签到签离</view>
  19. <view class='li-items'>
  20. <view class='li-item' wx:for='{{sign}}' wx:key='index' data-index='{{index}}' bindtap='selectRouteCtl'>
  21. <view class='li-item-bgc'>
  22. <image class='li-item-icon' src='{{item.icon}}'></image>
  23. </view>
  24. <view class='li-item-text'>{{item.text}}</view>
  25. </view>
  26. </view>
  27. <view class="item-Tops">图书借阅</view>
  28. <view class='li-items'>
  29. <view class='li-item' wx:for='{{library}}' wx:key='index' data-index='{{index}}' bindtap='selectRouteCtlBorrow'>
  30. <view class='li-item-bgc1'>
  31. <image class='li-item-icon' src='{{item.icon}}'></image>
  32. </view>
  33. <view class='li-item-text'>{{item.text}}</view>
  34. </view>
  35. </view>
  36. <view class="item-Tops">书籍调配</view>
  37. <view class='li-items'>
  38. <view class='li-item' wx:for='{{Books}}' wx:key='index' data-index='{{index}}' bindtap='selectRouteCtlBooks'>
  39. <view class='li-item-bgc2'>
  40. <image class='li-item-icon' src='{{item.icon}}'></image>
  41. </view>
  42. <view class='li-item-text'>{{item.text}}</view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <template is='footer' data='{{...footerData}}'></template>
  49. </view>