grouponList.wxml 1.3 KB

123456789101112131415161718192021222324252627282930
  1. <view class="container">
  2. <scroll-view class="groupon-list" scroll-y="true" scroll-top="{{scrollTop}}">
  3. <view class="item" wx:for="{{grouponList}}" wx:for-index="index" wx:for-item="item" wx:key="id">
  4. <navigator url="/pages/goods/goods?id={{item.id}}">
  5. <image class="img" src="{{item.picUrl}}" background-size="cover"></image>
  6. <view class="right">
  7. <view class="text">
  8. <view class="header">
  9. <text class="name">{{item.name}}</text>
  10. <view class="capsule-tag">
  11. <zan-capsule color="#a78845" leftText="{{item.grouponMember}}人成团" rightText="立减{{item.grouponDiscount}}" />
  12. </view>
  13. </view>
  14. <text class="desc">{{item.brief}}</text>
  15. <view class="price">
  16. <view class="counterPrice">现价:¥{{item.retailPrice}}</view>
  17. <view class="retailPrice">团购价:¥{{item.grouponPrice}}</view>
  18. </view>
  19. </view>
  20. </view>
  21. </navigator>
  22. </view>
  23. <view class="page" wx:if="{{showPage}}">
  24. <view class="prev {{ page <= 1 ? 'disabled' : ''}}" bindtap="prevPage">上一页</view>
  25. <view class="next {{ (count / limit) < page ? 'disabled' : ''}}" bindtap="nextPage">下一页</view>
  26. </view>
  27. </scroll-view>
  28. </view>