groupDetail.wxml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!-- 拼团商品轮播图 -->
  2. <swiper class="swiper" autoplay interval='5000' circular>
  3. <swiper-item wx:for="{{groupDetail.banner_urls}}" wx:key="index">
  4. <image src="{{item}}"></image>
  5. </swiper-item>
  6. </swiper>
  7. <!-- 拼团商品名称 -->
  8. <view class="title">{{groupDetail.name}}</view>
  9. <!-- 拼团店铺 -->
  10. <view class="store"><text>已选:</text>{{storeName}}</view>
  11. <!-- 拼团列表 -->
  12. <view class="groupList" wx:if="{{groupingList.length!=0}}">
  13. <view class="group-title">
  14. <view class="newGroup">{{total}}人发起拼团,新用户直接参与拼团</view>
  15. <view class="Checkmore" bindtap="openPop">查看更多></view>
  16. </view>
  17. <swiper class="groupList-box" bindchange='swiperChange' circular autoplay='{{autoplay}}' interval='2000' vertical='true'>
  18. <swiper-item wx:for="{{swiperPage}}" wx:key="index">
  19. <view class="groupList-item" wx:for="{{groupingList}}" wx:key="index">
  20. <view class="item-image">
  21. <image src="{{item.avatar_url}}"></image>
  22. </view>
  23. <view class="item-content">{{item.nickname}} 发起拼团 还差 <text>1人</text> 拼成</view>
  24. <view class="item-goGroup" data-grouping_id="{{item.id}}" bindtap="goGrouping">去拼单</view>
  25. </view>
  26. </swiper-item>
  27. </swiper>
  28. </view>
  29. <!-- 底部开团 -->
  30. <view class="bottom" wx:if="{{!isShare}}">
  31. <view class="oneselfBuy" bindtap="toGoodsOrderConfrim">
  32. <view class="bottom-price">¥{{groupDetail.original_price}}</view>
  33. <view class="bottom-type">单独购买</view>
  34. </view>
  35. <view class="toGroupBuy" bindtap="toGroupOrderConfrim">
  36. <view class="bottom-price">¥{{groupDetail.price}}</view>
  37. <view class="bottom-type">发起拼团</view>
  38. </view>
  39. </view>
  40. <view class="bottom" wx:if="{{isShare}}">
  41. <view class="isShare" bindtap="ShareGroup">参与拼团 ¥{{groupDetail.price}}</view>
  42. </view>
  43. <!-- 拼团中列表查看更多 -->
  44. <wux-popup class="popup-radius" position="center" visible="{{ isGroupPop }}">
  45. <scroll-view lower-threshold='10' scroll-y bindscrolltolower='refreshGroupList' class="groupPop">
  46. <view class="groupPop-title">拼单列表</view>
  47. <view class="groupPop-content">
  48. <view class="groupList-item" wx:for="{{groupingListAll}}" wx:key="index">
  49. <view class="item-image">
  50. <image src="{{item.avatar_url}}"></image>
  51. </view>
  52. <view class="item-content">{{item.nickname}} 发起拼团 还差 <text>1人</text> 拼成</view>
  53. <view class="item-goGroup" data-grouping_id="{{item.id}}" bindtap="goGrouping">去拼单</view>
  54. </view>
  55. </view>
  56. <view class="closeImage">
  57. <image src="/images/icon_20.png" class="close-img" bindtap="closePop" />
  58. </view>
  59. </scroll-view>
  60. </wux-popup>
  61. <!-- <view class="tip">仅显示10个可参与的拼单</view> -->