index.wxml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <view class="nav-blue">
  2. </view>
  3. <view class="coursel">
  4. <swiper class='indexSwiper' indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}"
  5. duration="{{duration}}" bindchange="swiperChange" circular='true'>
  6. <block wx:for="{{imgUrls}}" wx:key='index'>
  7. <swiper-item>
  8. <image src="{{item}}" class="slide-image" />
  9. </swiper-item>
  10. </block>
  11. </swiper>
  12. <view class="dots">
  13. <block wx:for="{{imgUrls}}" wx:key="unique">
  14. <view class="dot{{index == swiperCurrent ? ' active' : ''}}"></view>
  15. </block>
  16. </view>
  17. </view>
  18. <view>
  19. <i-cell-group>
  20. <i-cell wx:for="{{tableData}}"
  21. data-item="item"
  22. wx:key="postId"
  23. title="{{item.title}}"
  24. is-link
  25. url="/pages/post/post?postId={{item.postId}}"
  26. label="{{item.publishTime}}"
  27. />
  28. </i-cell-group>
  29. </view>
  30. <view wx:if="{{from==-1}}" style="text-align:center;margin-top:40rpx">
  31. <view class="padding">没有更多了</view>
  32. </view>
  33. <view class="cu-tabbar-height"> </view>