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.

71 regels
5.1 KiB

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