index.wxml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <view class="swiper-cont container-fill">
  2. <swiper class="imageContainer" bindchange="handleChange" previous-margin="50rpx" next-margin="50rpx" circular autoplay>
  3. <block wx:for="{{3}}" wx:key="index">
  4. <swiper-item class="item">
  5. <image class="itemImg {{currentIndex == index ? 'active': ''}}" src="../../images/lb.png"></image>
  6. </swiper-item>
  7. </block>
  8. </swiper>
  9. <image src="../../images/show.png" style="width:650rpx;margin-left:50rpx;height:200rpx"></image>
  10. <view style="display:flex;margin-left:30rpx;margin-top:30rpx;margin-bottom:30rpx">
  11. <view style='width:10rpx;height:45rpx;background-color:#986aff;margin-right:20rpx;border-radius:10rpx'></view>近期活动
  12. </view>
  13. <view style="margin-bottom:150rpx">
  14. <view wx:for="{{arr}}" wx:key="index" class="box" bindtap="goActive" data-id='{{item.id}}' data-openId='{{item.openId}}'>
  15. <view class="top">
  16. <image src="../../images/activephoto.png" style="width:80rpx;height:80rpx;"></image>
  17. <view class="text">
  18. <view class="title">{{item.title}}</view>
  19. <view class="remark">{{item.remark}}</view>
  20. </view>
  21. <view wx:if="{{item.openId==null}}" class="btn btn1">报名</view>
  22. <view wx:if="{{item.enterStatus==0}}" class="btn btn1">审核中</view>
  23. <view wx:if="{{item.enterStatus==1}}" class="btn btn1">审核通过</view>
  24. <view wx:if="{{item.enterStatus==-1}}" class="btn btn1">审核失败</view>
  25. </view>
  26. <image src="../../images/activeimg.png" class="img2"></image>
  27. <view class="p1">
  28. <van-icon name="clock-o" color="#a267ff" size="35rpx" />
  29. <view style="margin-left:15rpx">活动时间:{{item.activeTime}}</view>
  30. </view>
  31. <view class="p1">
  32. <van-icon name="location-o" color="#a267ff" size="35rpx" />
  33. <view style="margin-left:15rpx">活动地点:{{item.address}}</view>
  34. </view>
  35. </view>
  36. <view wx:for="{{arr1}}" wx:key="index" class="box" bindtap="goActive" data-id='{{item.id}}' data-openId='{{item.openId}}'>
  37. <view class="top">
  38. <image src="../../images/activephoto.png" style="width:80rpx;height:80rpx;"></image>
  39. <view class="text">
  40. <view class="title">{{item.title}}</view>
  41. <view class="remark">{{item.remark}}</view>
  42. </view>
  43. <view wx:if="{{item.openId==null}}" class="btn btn1">报名</view>
  44. <view wx:if="{{item.enterStatus==0}}" class="btn btn1">审核中</view>
  45. <view wx:if="{{item.enterStatus==1}}" class="btn btn1">审核通过</view>
  46. <view wx:if="{{item.enterStatus==-1}}" class="btn btn1">审核失败</view>
  47. </view>
  48. <image src="../../images/activeimg.png" class="img2"></image>
  49. <view class="p1">
  50. <van-icon name="clock-o" color="#a267ff" size="35rpx" />
  51. <view style="margin-left:15rpx">活动时间:{{item.activeTime}}</view>
  52. </view>
  53. <view class="p1">
  54. <van-icon name="location-o" color="#a267ff" size="35rpx" />
  55. <view style="margin-left:15rpx">活动地点:{{item.address}}</view>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. <view class="tabbar">
  61. <view class="tab1" bindtap="goIndex">
  62. <image src="../../images/active_bar1.png" style="width:40rpx;height:40rpx;padding-top:10rpx"></image>
  63. <view style="color:#a342ff">首页</view>
  64. </view>
  65. <view class="tab1">
  66. <image src="../../images/unactive_bar2.png" style="width:40rpx;height:40rpx;padding-top:10rpx"></image>
  67. <button type="primary" id="red" session-from="nickName={{userInfo.nickName}}|avatarUrl={{userInfo.avatarUrl}}" open-type="contact">客服</button>
  68. </view>
  69. <view class="tab1" bindtap="goMy">
  70. <image src="../../images/unactive_bar3.png" style="width:40rpx;height:40rpx;padding-top:10rpx"></image>
  71. <view>我的</view>
  72. </view>
  73. </view>