C端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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