index.wxml 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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="{{lbArr}}" wx:key="index">
  4. <swiper-item class="item">
  5. <image class="itemImg {{currentIndex == index ? 'active': ''}}" src="{{item.src}}"></image>
  6. </swiper-item>
  7. </block>
  8. </swiper>
  9. <image src="../../images/show.png" style="width:750rpx;margin-left:0rpx;height:200rpx;margin-top:20rpx" bindtap="goShare"></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. <!-- <image wx:if='{{arr.length==0&&arr1.length==0}}' src="../../images/empty.png" style="width:320rpx;height:320rpx;margin-left:215rpx"></image>
  14. <view wx:if='{{arr.length==0&&arr1.length==0}}' style="color:#999;width:750rpx;height:320rpx;top:550rpx;left:0rpx;text-align:center">近期还没有活动呦</view> -->
  15. <view style="margin-bottom:150rpx;position:relative">
  16. <image wx:if='{{arr.length==0}}' bindtap="goActiveDefault" style="width:750rpx;height:280rpx" src="../../images/activeDefault0.jpg"></image>
  17. <view wx:for="{{arr}}" wx:key="index" class="box" bindtap="goActive" data-id='{{item.id}}' data-openId='{{item.openId}}'>
  18. <view class="top">
  19. <image src="../../images/logo.png" style="width:80rpx;height:80rpx;"></image>
  20. <view class="text">
  21. <view class="title">{{item.title}}</view>
  22. <view class="remark">{{item.remark}}</view>
  23. </view>
  24. <view wx:if="{{item.openId==null}}" class="btn btn1">报名</view>
  25. <view wx:if="{{item.enterStatus==0}}" class="btn btn1">审核中</view>
  26. <view wx:if="{{item.enterStatus==1}}" class="btn btn1">审核通过</view>
  27. <view wx:if="{{item.enterStatus==-1}}" class="btn btn1">审核失败</view>
  28. </view>
  29. <image src="{{item.posterUrl}}" class="img2"></image>
  30. <view class="p1">
  31. <van-icon name="clock-o" color="#a267ff" size="35rpx" />
  32. <view style="margin-left:15rpx">活动时间:{{item.activeTime}}</view>
  33. </view>
  34. <view class="p1">
  35. <van-icon name="location-o" color="#a267ff" size="35rpx" />
  36. <view style="margin-left:15rpx">活动地点:{{item.address}}</view>
  37. </view>
  38. </view>
  39. <view wx:for="{{arr1}}" wx:key="index" class="box" bindtap="goActive" data-id='{{item.id}}' data-openId='{{item.openId}}'>
  40. <view class="top">
  41. <image src="../../images/logo.png" style="width:80rpx;height:80rpx;"></image>
  42. <view class="text">
  43. <view class="title">{{item.title}}</view>
  44. <view class="remark">{{item.remark}}</view>
  45. </view>
  46. <view wx:if="{{item.openId==null}}" class="btn btn1">报名</view>
  47. <view wx:if="{{item.enterStatus==0}}" class="btn btn1">审核中</view>
  48. <view wx:if="{{item.enterStatus==1}}" class="btn btn1">审核通过</view>
  49. <view wx:if="{{item.enterStatus==-1}}" class="btn btn1">审核失败</view>
  50. </view>
  51. <image src="{{item.posterUrl}}" class="img2"></image>
  52. <view class="p1">
  53. <van-icon name="clock-o" color="#a267ff" size="35rpx" />
  54. <view style="margin-left:15rpx">活动时间:{{item.activeTime}}</view>
  55. </view>
  56. <view class="p1">
  57. <van-icon name="location-o" color="#a267ff" size="35rpx" />
  58. <view style="margin-left:15rpx">活动地点:{{item.address}}</view>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. <view class="tabbar">
  64. <view class="tab1" bindtap="goIndex">
  65. <image src="../../images/active_bar1.png" style="width:40rpx;height:40rpx;padding-top:10rpx"></image>
  66. <view style="color:#a342ff">首页</view>
  67. </view>
  68. <view class="tab1">
  69. <image src="../../images/unactive_bar2.png" style="width:40rpx;height:40rpx;padding-top:10rpx"></image>
  70. <button type="primary" id="red" session-from="nickName={{userInfo.nickName}}|avatarUrl={{userInfo.avatarUrl}}" open-type="contact">客服</button>
  71. </view>
  72. <view class="tab1" bindtap="goMy">
  73. <image src="../../images/unactive_bar3.png" style="width:40rpx;height:40rpx;padding-top:10rpx"></image>
  74. <view>我的</view>
  75. </view>
  76. </view>
  77. <view wx:if="{{!letterStatus}}" style="width:100vw;height:100vh;background:rgba(0,0,0,0.8);position:fixed;top:0rpx;text-align:center" catchtouchmove="preventTouchMove">
  78. <image src="../../images/xin.png" class="xin"></image>
  79. <view>
  80. <van-icon name="close" color="#fff" size="50rpx" style="margin-top:20rpx" bindtap="closeLetter" />
  81. </view>
  82. </view>