C端小程序
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

73 行
5.4 KiB

  1. <button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button>
  2. <view class="bargainDetail" hover-class="none" hover-stop-propagation="false" wx:if="{{showPage}}">
  3. <view class="listitem clearfix" hover-class="none" hover-stop-propagation="false">
  4. <image class="fl" src="{{data.coverImg}}" lazy-load="true" binderror="" bindload="" mode='aspectFill'></image>
  5. <view class="fl ri" hover-class="none" hover-stop-propagation="false">
  6. <text class="txt01">{{data.title}}</text>
  7. <text class="txt02">{{data.subTitle}}</text>
  8. <text class="txt03">{{data.price/100}}元</text>
  9. <text class="txt04">可砍至<text class="money">{{data.salePrice/100}}</text>元</text>
  10. </view>
  11. </view>
  12. <view class="progress" hover-class="none" hover-stop-propagation="false">
  13. <view class="clearfix progesstext" wx:if="{{data.orderStatus !=8&&data.orderStatus!=1&&data.orderStatus!=9}}" hover-class="none" hover-stop-propagation="false">
  14. <text class="fl">已砍 <text>{{already}}元</text></text>
  15. <text class="fr" wx:if="{{data.pressCurrentValue/100!=0}}">还剩 <text>{{remain}}元</text></text>
  16. </view>
  17. <progress percent="{{((data.price-data.salePrice-data.pressCurrentValue)/(data.price-data.salePrice))*100}}" wx:if="{{data.orderStatus !=8&&data.orderStatus!=1&&data.orderStatus!=9}}" color="#FF3535" class="progressbar"border-radius="10px" backgroundColor="#FECFCF" stroke-width="10" />
  18. <view class="time" hover-class="none" wx:if="{{data.orderStatus !=8&&data.orderStatus!=1&&data.orderStatus!=9&&data.orderStatus != 7}}" hover-stop-propagation="false">
  19. 还剩 <text>{{day}}</text>天:<text>{{hour}}</text>:<text>{{min}}</text>:<text>{{sec}}</text> 结束
  20. </view>
  21. <view class="fail" hover-class="none" hover-stop-propagation="false" wx:if="{{data.orderStatus==9}}">
  22. 砍价已取消
  23. </view>
  24. <view class="fail" hover-class="none" hover-stop-propagation="false" wx:if="{{todayDate>data.pressEndDate && discountStatus !=1}}">
  25. 好友的砍价已过期
  26. </view>
  27. <view class="fail" hover-class="none" hover-stop-propagation="false" wx:if="{{todayDate>data.pressEndDate && discountStatus ==1}}">
  28. 您的砍价已过期
  29. </view>
  30. <view class="status" hover-class="none" hover-stop-propagation="false" wx:if="{{discountStatus==3}}">
  31. <button bindtap="barginAgain" data-couponChannelId="{{data.couponChannelId}}" data-couponId="{{data.productId}}" data-id="{{data.id}}">发起砍价</button>
  32. <button bindtap="gotomore">更多砍价商品</button>
  33. </view>
  34. <view class='help' wx:if="{{data.orderStatus != 7&&data.orderStatus != 1&&data.orderStatus != 9}}">还需邀请<text>{{data.pressLimitNum-data.orderPressList.length}}</text>位好友,帮忙砍至底价</view>
  35. <view class="success" wx:if="{{data.orderStatus == 7||data.orderStatus == 1}}" hover-class="none" hover-stop-propagation="false">
  36. <image src="{{wmsuccess01}}" mode="widthFix"></image>
  37. <text class="" selectable="false" space="false" decode="false">
  38. 已砍至底价
  39. </text>
  40. </view>
  41. <view class='helpDiscount' wx:if="{{data.orderStatus == 6&&discountStatus == 2}}">
  42. <image bindtap='helpDiscount' src='{{wmhelp}}' mode='widthFix'></image>
  43. </view>
  44. </view>
  45. <view class="people" hover-class="none" hover-stop-propagation="false" wx:if="{{data.orderStatus!=9}}">
  46. <view class='title'>
  47. 砍价人数{{data.orderPressList.length}}/{{data.pressLimitNum}}人
  48. </view>
  49. <view class="clearfix person" wx:for="{{data.orderPressList}}" wx:key="index">
  50. <view class="head fl">
  51. <image class="headicon" src="{{item.avatarUrl}}" mode="widthFix" lazy-load="true" binderror="" bindload="" />
  52. <text wx:if="{{item.first==1}}">发起人</text>
  53. </view>
  54. <view class="text fl clearfix">
  55. <text class="text01 fl"><text>{{item.nickName}}</text></text>
  56. <text class="text02 fl"><text class="fl">砍掉</text><text class="fl">{{item.pressValue/100}}元</text></text>
  57. <text class="text03 fr">{{item.createDate}}前</text>
  58. </view>
  59. </view>
  60. </view>
  61. <view class="btns clearfix" wx:if="{{data.orderStatus != 7&&discountStatus==1&&todayDate<=data.pressEndDate&&data.orderStatus!=1&&data.orderStatus != 9}}" hover-class="none" hover-stop-propagation="false">
  62. <button class="fl" bindtap='orderFunc1' data-couponChannelId="{{data.couponChannelId}}" data-price="{{data.price/100}}" data-couponId="{{data.productId}}" disabled='{{showButton}}' data-rushtobuy='rushtobuy'>
  63. <text>{{data.price/100}}元</text>
  64. <text>立即购买</text>
  65. </button>
  66. <button class='share user-motto fr' data-orderId='{{data.id}}' id="shareBtn" open-type="share" hover-class="other-button-hover">邀请好友砍价</button>
  67. </view>
  68. <view style='display:{{display}}' wx:if="{{data.orderStatus == 7&&discountStatus == 1}}" class="btns01 clearfix" hover-class="none" hover-stop-propagation="false">
  69. <button bindtap='orderFunc' data-orderId="{{data.id}}" data-salePrice="{{data.salePrice/100}}" hover-class="other-button-hover">{{data.salePrice/100}}元 底价购买</button>
  70. </view>
  71. </view>