C端小程序
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

66 satır
4.8 KiB

  1. <view class="page" hover-class="none" hover-stop-propagation="false">
  2. <view class='top' wx:if="{{bargaingoods&&list.length>0}}">
  3. <view class="banner" wx:if="{{list.length>0}}" hover-class="none" hover-stop-propagation="false">
  4. <c-banner wx:key="unique" list="{{list}}" />
  5. </view>
  6. </view>
  7. <view class="bargaingoods" style='padding-bottom:120rpx;' wx:if="{{bargaingoods&&lists.length>0}}" hover-class="none" hover-stop-propagation="false">
  8. <view class="list" hover-class="none" hover-stop-propagation="false">
  9. <view class="listitem clearfix" wx:for="{{lists}}" wx:key="{{index}}" hover-stop-propagation="false" data-couponId='{{item.couponId}}' data-id='{{item.id}}' bindtap='invite'>
  10. <image class="fl" src="{{item.coverImg}}" mode="aspectFill" lazy-load="true" binderror=""
  11. bindload=""></image>
  12. <view class="fl ri" hover-class="none" hover-stop-propagation="false">
  13. <text class="txt01">{{item.title}}</text>
  14. <text class="txt02">{{item.subTitle}}</text>
  15. <text class="txt03">{{item.priceStr}}元</text>
  16. <text class="txt04">可砍至<text class="money">{{item.salePriceStr}}</text>元</text>
  17. </view>
  18. <view class="botton" wx:if="{{item.remainInventory != 0}}" hover-class="none" hover-stop-propagation="false">发起砍价</view>
  19. <view class="botton botton02" wx:if="{{item.remainInventory == 0}}" hover-class="none" hover-stop-propagation="false">已售罄</view>
  20. </view>
  21. <view class="loading" wx:if="{{loading}}">{{content}}</view>
  22. <!-- <view class='loadingtext' wx:if="{{loadingtext}}">{{loadingtext}}</view> -->
  23. </view>
  24. </view>
  25. <view class="list mybargain" style='padding-bottom:120rpx;' wx:if="{{mybargain&&lists.length>0}}" hover-class="none" hover-stop-propagation="false">
  26. <view class="listitem clearfix" wx:for="{{lists}}" wx:key="index" hover-stop-propagation="false">
  27. <image class="fl" src="{{item.coverImg}}" mode="aspectFill" lazy-load="true"></image>
  28. <view class="fl ri" hover-class="none" hover-stop-propagation="false">
  29. <text class="txt01">{{item.title}}</text>
  30. <text class="txt02">{{item.subTitle}}</text>
  31. <text class="txt04 mr txt004" wx:if="{{item.orderStatus == 6&&todayDate<=item.pressEndDate}}">距砍价到{{item.salePrice/100}}元还差:</text>
  32. <text class="txt04 mr" wx:if="{{item.orderStatus == 6&&todayDate<=item.pressEndDate}}">{{item.pressCurrentValue/100}}元</text>
  33. <text class="txt04 mr" wx:if="{{item.orderStatus == 7}}">已砍价到底价:{{item.salePrice/100}}元</text>
  34. </view>
  35. <view class='again' wx:if="{{item.orderStatus == 6&&todayDate<=item.pressEndDate}}" hover-class="none" hover-stop-propagation="false" data-id="{{item.id}}" bindtap="inviteFriend">
  36. <view class="botton1">邀请好友砍价</view>
  37. </view>
  38. <view class='again' wx:if="{{item.orderStatus == 7}}" data-id="{{item.id}}" bindtap="inviteFriend">
  39. <view class="botton2" hover-class="none" hover-stop-propagation="false">立即支付</view>
  40. <image class="icon" src="{{bargainsuccess}}" lazy-load="true"/>
  41. </view>
  42. <view class='again' wx:if="{{item.orderStatus == 8||item.orderStatus == 6&&todayDate>item.pressEndDate}}" data-couponChannelId="{{item.couponChannelId}}" data-couponId="{{item.productId}}" data-id="{{item.id}}" bindtap="barginAgain">
  43. <view class="botton3" hover-class="none" hover-stop-propagation="false">重新砍价</view>
  44. <image class="icon" src="{{bargainfail}}" lazy-load="true"/>
  45. </view>
  46. <view wx:if="{{item.orderStatus == 2 || item.orderStatus == 9}}">
  47. <image class="icon" style="margin-top:60rpx;" src="{{bargaincancel}}" lazy-load="true"/>
  48. </view>
  49. </view>
  50. <view class="loading" wx:if="{{loading}}">{{content}}</view>
  51. </view>
  52. <view class='no-data01' wx:if='{{flag=="bargaingoods"&&lists.length==0}}' style='{{"height:"+(list.length>0?"calc(100vh - 460rpx)":"calc(100vh - 160rpx)")}}'>
  53. <image src='{{actUrl}}'></image>
  54. <view class='no-data-text'>暂无数据</view>
  55. </view>
  56. <view class='no-data' wx:if='{{flag=="mybargain"&&lists.length==0}}'>
  57. <image src='{{actUrl}}'></image>
  58. <view class='no-data-text'>暂无数据</view>
  59. </view>
  60. <view class='bottom'>
  61. <view class='bottom-left' bindtap="bargaingoods" style="background:{{bargaingoods?'#FF8220':'#FFB614'}}">砍价商品</view>
  62. <view class='bottom-right' bindtap="mybargain" style="background:{{ mybargain?'#FF8220':'#FFB614'}}">我的砍价</view>
  63. </view>
  64. </view>