groupFlow.wxml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <wxs src='../../../utils/wxsUtil.wxs' module="wxs"></wxs>
  2. <!-- 拼团失败图片 -->
  3. <view class="fail-image">
  4. <image src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20221027/%E5%A4%B1%E8%B4%A5%402x.png"></image>
  5. </view>
  6. <!-- 拼团提醒 -->
  7. <!-- 状态:0拼团中,1拼团成功,-1已取消(拼团失败),-2已结束(拼团失败) -->
  8. <view class="group-tip" wx:if="{{groupStatus==-2||groupStatus==-1}}">拼团已结束,您可以发起新的拼团</view>
  9. <view class="group-tip" wx:if="{{checkGrouping==0&&self==false}}">你不符合参与拼团条件,可发起新的拼团</view>
  10. <!-- 拼团说明 -->
  11. <view class="group-explain">
  12. <view>拼团说明:</view>
  13. <view>1.被邀请人为小程序新用户</view>
  14. <view>2.美妆产品在拼团成功后在【我的】-【美妆产品订单】</view>
  15. <view>3.次卡拼团成功后在【我的卡包】</view>
  16. </view>
  17. <!-- 拼团商品 -->
  18. <view class="group-product">
  19. <view class="product-item-left">
  20. <image src="{{groupGoodsDetail.cover_url}}"></image>
  21. </view>
  22. <view class="product-item-right">
  23. <view class="item-right-title">{{groupGoodsDetail.name}}</view>
  24. <!-- <view class="item-right-price">¥{{item.price}}</view> -->
  25. <view class="item-right-price"> <text>¥</text><text class="price__big">{{wxs.formatValue(groupGoodsDetail.price, 'split')[0]}}</text>.<text>{{wxs.formatValue(groupGoodsDetail.price, 'split')[1]}}</text></view>
  26. </view>
  27. </view>
  28. <!-- 拼团列表 -->
  29. <view class="groupList" wx:if="{{groupingList.length!=0&&checkGrouping==1}}">
  30. <view class="group-title">
  31. <view class="newGroup">{{total}}人发起拼团,新用户直接参与拼团</view>
  32. <view class="Checkmore">查看更多></view>
  33. </view>
  34. <swiper class="groupList-box" bindchange='swiperChange' autoplay autoplay='2000'>
  35. <swiper-item wx:for="{{swiperPage}}" wx:key="index">
  36. <view class="groupList-item" wx:for="{{groupingList}}" wx:key="index">
  37. <view class="item-image">
  38. <image src="{{item.avatar_url}}"></image>
  39. </view>
  40. <view class="item-content">{{item.nickname}} 发起拼团 还差 <text>1人</text> 拼成</view>
  41. <view class="item-goGroup" data-grouping_id="{{item.id}}" bindtap="goGrouping">去拼单</view>
  42. </view>
  43. </swiper-item>
  44. </swiper>
  45. </view>
  46. <!-- 支付 -->
  47. <view class="bottom">
  48. <view class="oneselfBuy" bindtap="toGoodsOrderConfrim">
  49. <view class="bottom-price">¥{{groupGoodsDetail.original_price}}</view>
  50. <view class="bottom-type">单独购买</view>
  51. </view>
  52. <view class="toGroupBuy" bindtap="toGroupOrderConfrim">
  53. <view class="bottom-price">¥{{groupGoodsDetail.price}}</view>
  54. <view class="bottom-type">发起拼团</view>
  55. </view>
  56. </view>