index.wxml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <wxs src="../../../../utils/util.wxs" module="tools"></wxs>
  2. <!--轮播图-->
  3. <block wx:if="{{garden_id}}">
  4. <block wx:if="{{event_list.length>0}}">
  5. <view wx:for="{{event_list}}" wx:key="id" class="content" bindtap="goDetail" id="{{item.id}}">
  6. <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" indicator-color="{{indicatorColor}}" indicator-active-color="{{activeColor}}">
  7. <block wx:for="{{item.pic}}" wx:key="index" wx:for-item="key">
  8. <swiper-item>
  9. <image src="{{key}}" class="slide-image" mode="widthFix" lazy-load="true" />
  10. </swiper-item>
  11. </block>
  12. </swiper>
  13. <view class="title">
  14. {{item.title}}
  15. <view class="{{item.status==1?'content_tip1':'content_tip2'}}">
  16. {{item.status==1?"活动报名中":"报名已截止"}}
  17. </view>
  18. </view>
  19. <view class="time">
  20. {{tools.formatData(item.start)}}--{{tools.formatData(item.end)}}
  21. </view>
  22. <view class="address">
  23. <text>地点:{{item.addr}}</text>
  24. </view>
  25. </view>
  26. </block>
  27. <block wx:else="">
  28. <nodata />
  29. </block>
  30. </block>
  31. <block wx:else="">
  32. <nopermission />
  33. </block>