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.

84 lines
5.4 KiB

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