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.

66 line
4.3 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=""
  4. bindload=""></image>
  5. <view class="fl ri" hover-class="none" hover-stop-propagation="false">
  6. <text class="txt01">{{data.title}}</text>
  7. <text class="txt02">{{data.subTitle}}</text>
  8. <text class="txt03">{{data.price/100}}元</text>
  9. <text class="txt04">可砍至<text class="money">{{data.salePrice/100}}</text>元</text>
  10. </view>
  11. </view>
  12. <view class="progress" hover-class="none" hover-stop-propagation="false" wx:if="{{data.orderStatus != 8}}">
  13. <view class="clearfix progesstext" hover-class="none" hover-stop-propagation="false">
  14. <text class="fl">已砍 <text>{{already}}元</text></text>
  15. <text class="fr" wx:if="{{data.pressCurrentValue/100!=0}}">还剩 <text>{{remain}}元</text></text>
  16. </view>
  17. <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" />
  18. <view class="time" hover-class="none" hover-stop-propagation="false" wx:if="{{data.orderStatus != 7}}">
  19. 还剩 <text>{{hour}}</text>:<text>{{min}}</text>:<text>{{sec}}</text> 结束
  20. </view>
  21. </view>
  22. <view class="fail" hover-class="none" hover-stop-propagation="false" wx:if="{{todayDate>data.pressEndDate && from=='discount'&& discountStatus !=1}}">
  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="status" hover-class="none" hover-stop-propagation="false" wx:if="{{discountStatus==3}}">
  29. <button bindtap="barginAgain" data-couponChannelId="{{data.couponChannelId}}" data-couponId="{{data.productId}}" data-id="{{data.id}}">发起砍价</button>
  30. <button bindtap="gotomore">更多砍价商品</button>
  31. </view>
  32. <view class="success" wx:if="{{data.orderStatus == 7}}" 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 wx:if="{{data.orderStatus == 6&&discountStatus == 2}}">
  39. <button bindtap='helpDiscount' class='helpDiscount'>帮好友砍价</button>
  40. </view>
  41. <view class="people" hover-class="none" hover-stop-propagation="false">
  42. <view class="clearfix person" wx:for="{{data.orderPressList}}" wx:key="index">
  43. <view class="head fl">
  44. <image class="headicon" src="{{item.avatarUrl}}" mode="widthFix" lazy-load="true" binderror="" bindload="" />
  45. <text wx:if="{{item.first==1}}">发起人</text>
  46. </view>
  47. <view class="text fl clearfix">
  48. <text class="text01 fl"><text>{{item.nickName}}</text>砍价成功!</text>
  49. <text class="text02 fl"><text class="fl">砍掉</text><text class="fl">{{item.pressValue/100}}元</text></text>
  50. <text class="text03 fr">{{item.createDate}}前</text>
  51. </view>
  52. </view>
  53. </view>
  54. <view wx:if="{{data.orderStatus != 7&&discountStatus==1&&todayDate<=data.pressEndDate}}" class="btns clearfix" hover-class="none" hover-stop-propagation="false">
  55. <view class="fl" bindtap='orderFunc' data-orderId="{{data.id}}" data-price="{{data.price/100}}">
  56. <text>{{data.price/100}}元</text>
  57. <text>立即购买</text>
  58. </view>
  59. <button class='share user-motto fr' data-orderId='{{data.id}}' id="shareBtn" open-type="share" hover-class="other-button-hover">邀请好友继续砍价</button>
  60. </view>
  61. <view wx:if="{{data.orderStatus == 7&&discountStatus == 1}}" class="btns01 clearfix" hover-class="none" hover-stop-propagation="false">
  62. <button bindtap='orderFunc' data-orderId="{{data.id}}" data-salePrice="{{data.salePrice/100}}" hover-class="other-button-hover">{{data.salePrice/100}}元 底价购买</button>
  63. </view>
  64. </view>