C端小程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

83 строки
5.3 KiB

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