activityHistory.wxml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!--pages/activity/activityhistory/activityHistory.wxml-->
  2. <view class="container">
  3. <view class="tabs">
  4. <view bindtap="chooseTab" data-state='1' class="{{tabState=='1'?'choose':'nochoose'}}">我发起的
  5. <view wx:if="{{tabState=='1'}}"
  6. style=" width: 40rpx; height: 5rpx;margin-left: 130rpx; position: absolute;background:#FE5F36;"></view>
  7. </view>
  8. <view bindtap="chooseTab" data-state='2' class="{{tabState=='2'?'choose':'nochoose'}}">我参与的
  9. <view wx:if="{{tabState=='2'}}"
  10. style="width: 40rpx; height: 5rpx; margin-left: 130rpx; position: absolute;background:#FE5F36;"></view>
  11. </view>
  12. </view>
  13. <!--我发起的-->
  14. <view class="table" wx:if="{{tabState=='1'}}">
  15. <view class="hang" wx:for="{{myPost}}">
  16. <view class="shijian">{{item.startTime}}</view>
  17. <view class="row">
  18. <view class="left">
  19. <!--<view class="shijian">2020-10-10 10:10:10</view> -->
  20. <view class="wenzi">邀请亲友,立赚60现金券</view>
  21. <view class="touxiang">
  22. <image wx:for="{{item.invitees}}" wx:for-item="imgs" src="{{imgs.cusPic}}"></image>
  23. <view wx:if="{{item.invitees.length==0}}">
  24. <image src="/static/images/active/dtzl.png"></image>
  25. <image src="/static/images/active/dtzl.png"></image>
  26. <image src="/static/images/active/dtzl.png"></image>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="right">
  31. <view class="chengtuan">
  32. <span wx:if="{{item.status==0}}" style="color:black;font-size:30rpx">还差<span style="color:#FE5F36;">{{3-item.qty}}</span>人成团</span>
  33. <span wx:if="{{item.status==1}}" style="color:#FE5F36; font-size:30rpx">成团成功</span>
  34. <span wx:if="{{item.status==2}}" style="color:#FE5F36; font-size:28rpx">已失效</span>
  35. </view>
  36. <view bindtap="goCouponList" class="xjq" wx:if="{{item.status==1}}">使用现金券</view>
  37. <button open-type="share" class="xjq" wx:if="{{item.status==2}}" >再试一次</button>
  38. <button open-type="share" class="qyq" wx:if="{{item.status==0}}">
  39. <view style="font-size:24rpx;color:white;">去邀请</view>
  40. <view style="font-size:22rpx;color:white;">{{item.shichang}}</view>
  41. </button>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="mygd"><span>没有更多了</span></view>
  46. </view>
  47. <!--我参与的-->
  48. <view class="table" wx:if="{{tabState=='2'}}">
  49. <view class="hang" wx:for="{{myJoin}}">
  50. <view class="shijian">{{item.startTime}}</view>
  51. <view class="row">
  52. <view class="left">
  53. <!--<view class="shijian">2020-10-10 10:10:10</view> -->
  54. <view class="wenzi">已帮朋友助力</view>
  55. <view class="touxiang">
  56. <image wx:for="{{item.invitees}}" wx:for-item="imgs" src="{{imgs.cusPic}}"></image>
  57. <!-- <image src="/static/images/active/dtzl.png"></image>
  58. <image src="/static/images/active/dtzl.png"></image> -->
  59. </view>
  60. </view>
  61. <view class="right">
  62. <view class="chengtuan">
  63. <span wx:if="{{item.status==0}}" style="color:black;font-size:30rpx">还差<span style="color:#FE5F36;">{{3-item.qty}}</span>人成团</span>
  64. <!-- <span wx:if="{{item.status==1}}" style="color:#FE5F36; font-size:30rpx">成团成功</span> -->
  65. <span wx:if="{{item.status==1}}" style="color:#FE5F36; font-size:28rpx">已获得新人券</span>
  66. <span wx:if="{{item.status==2}}" style="color:#FE5F36; font-size:28rpx">已失效</span>
  67. </view>
  68. <button open-type="share" style="font-size:20rpx" class="xjq">发起我的活动</button>
  69. <!-- <view class="xjq">再试一次</view> -->
  70. <!-- <view class="qyq">
  71. <view style="font-size:24rpx;color:white;">去邀请</view>
  72. <view style="font-size:22rpx;color:white;">23:59:59</view>
  73. </view> -->
  74. </view>
  75. </view>
  76. </view>
  77. <view class="mygd"><span>没有更多了</span></view>
  78. </view>
  79. </view>