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.

76 satır
5.6 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. <view class="time" hover-class="none" wx:if="{{data.orderStatus !=8&&data.orderStatus!=1&&data.orderStatus!=9&&data.orderStatus != 7}}" hover-stop-propagation="false">
  20. 还剩 <text>{{day}}</text>天:<text>{{hour}}</text>:<text>{{min}}</text>:<text>{{sec}}</text> 结束
  21. </view>
  22. <view class="fail" hover-class="none" hover-stop-propagation="false" wx:if="{{data.orderStatus==9}}">
  23. 砍价已取消
  24. </view>
  25. <view class="fail" hover-class="none" hover-stop-propagation="false" wx:if="{{todayDate>data.pressEndDate && discountStatus !=1}}">
  26. 好友的砍价已过期
  27. </view>
  28. <view class="fail" hover-class="none" hover-stop-propagation="false" wx:if="{{todayDate>data.pressEndDate && discountStatus ==1}}">
  29. 您的砍价已过期
  30. </view>
  31. <view class="status" hover-class="none" hover-stop-propagation="false" wx:if="{{discountStatus==3}}">
  32. <button bindtap="barginAgain" data-couponChannelId="{{data.couponChannelId}}" data-couponId="{{data.productId}}" data-id="{{data.id}}">发起砍价</button>
  33. <button bindtap="gotomore">更多砍价商品</button>
  34. </view>
  35. <view class='help' wx:if="{{data.orderStatus != 7&&data.orderStatus != 1&&data.orderStatus != 9}}">还需邀请<text>{{data.pressLimitNum-data.orderPressList.length}}</text>位好友,帮忙砍至底价</view>
  36. <view class="success" wx:if="{{data.orderStatus == 7||data.orderStatus == 1}}" hover-class="none" hover-stop-propagation="false">
  37. <image src="{{chenggong}}" mode="widthFix"></image>
  38. <text class="" selectable="false" space="false" decode="false">
  39. 已砍至底价
  40. </text>
  41. </view>
  42. <view class='helpDiscount' wx:if="{{data.orderStatus == 6&&discountStatus == 2}}">
  43. <image bindtap='helpDiscount' src='{{wmhelp}}' mode='widthFix'></image>
  44. </view>
  45. </view>
  46. <view class="people" hover-class="none" hover-stop-propagation="false" wx:if="{{data.orderStatus!=9}}">
  47. <view class='title'>
  48. 砍价人数{{data.orderPressList.length}}/{{data.pressLimitNum}}人
  49. </view>
  50. <view class="clearfix person" wx:for="{{data.orderPressList}}" wx:key="index">
  51. <view class="head fl">
  52. <image class="headicon" src="{{item.avatarUrl}}" mode="widthFix" lazy-load="true" binderror="" bindload="" />
  53. <text wx:if="{{item.first==1}}">发起人</text>
  54. </view>
  55. <view class="text fl clearfix">
  56. <text class="text01 fl"><text>{{item.nickName}}</text></text>
  57. <text class="text02 fl"><text class="fl">砍掉</text><text class="fl">{{item.pressValue/100}}元</text></text>
  58. <text class="text03 fr">{{item.createDate}}前</text>
  59. </view>
  60. </view>
  61. </view>
  62. <form bindsubmit="submit" report-submit='true' >
  63. <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">
  64. <!-- <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'>
  65. <text>{{data.price/100}}元</text>
  66. <text>立即购买</text>
  67. </button> -->
  68. <button class='share user-motto' data-orderId='{{data.id}}' id="shareBtn" open-type="share" hover-class="other-button-hover">邀请好友砍价</button>
  69. </view>
  70. </form>
  71. <view style='display:{{display}}' wx:if="{{data.orderStatus == 7&&discountStatus == 1}}" class="btns01 clearfix" hover-class="none" hover-stop-propagation="false">
  72. <button bindtap='orderFunc' disabled='{{showButton1}}' data-orderId="{{data.id}}" data-salePrice="{{data.salePrice/100}}" hover-class="other-button-hover">{{data.salePrice/100}}元 底价购买</button>
  73. </view>
  74. </view>