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.

63 satır
4.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=""
  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="status" hover-class="none" hover-stop-propagation="false" wx:if="{{discountStatus==3}}">
  26. <button bindtap="barginAgain" data-couponChannelId="{{data.couponChannelId}}" data-couponId="{{data.productId}}" data-id="{{data.id}}">发起砍价</button>
  27. <button bindtap="gotomore">更多砍价商品</button>
  28. </view>
  29. <view class="success" wx:if="{{data.orderStatus == 7}}" hover-class="none" hover-stop-propagation="false">
  30. <image src="./../../../assets/images/success01.png" mode="widthFix"></image>
  31. <text class="" selectable="false" space="false" decode="false">
  32. 砍价成功
  33. </text>
  34. </view>
  35. <view wx:if="{{data.orderStatus == 6&&discountStatus == 2}}">
  36. <button bindtap='helpDiscount' class='helpDiscount'>帮好友砍价</button>
  37. </view>
  38. <view class="people" hover-class="none" hover-stop-propagation="false">
  39. <view class="clearfix person" wx:for="{{data.orderPressList}}" wx:key="index">
  40. <view class="head fl">
  41. <image class="headicon" src="{{item.avatarUrl}}" mode="widthFix" lazy-load="true" binderror="" bindload="" />
  42. <text wx:if="{{item.first==1}}">发起人</text>
  43. </view>
  44. <view class="text fl clearfix">
  45. <text class="text01 fl"><text>{{item.nickName}}</text>砍价成功!</text>
  46. <text class="text02 fl"><text class="fl">砍掉</text><text class="fl">{{item.pressValue/100}}元</text></text>
  47. <text class="text03 fr">{{item.createDate}}前</text>
  48. </view>
  49. </view>
  50. </view>
  51. <view wx:if="{{data.orderStatus != 7&&discountStatus==1}}" class="btns clearfix" hover-class="none" hover-stop-propagation="false">
  52. <view class="fl" bindtap='orderFunc' data-orderId="{{data.id}}" data-price="{{data.price/100}}">
  53. <text>{{data.price/100}}元</text>
  54. <text>立即购买</text>
  55. </view>
  56. <button class='share user-motto fr' data-orderId='{{data.id}}' id="shareBtn" open-type="share" hover-class="other-button-hover">邀请好友继续砍价</button>
  57. </view>
  58. <view wx:if="{{data.orderStatus == 7&&discountStatus == 1}}" class="btns01 clearfix" hover-class="none" hover-stop-propagation="false">
  59. <button bindtap='orderFunc' data-orderId="{{data.id}}" data-salePrice="{{data.salePrice/100}}" hover-class="other-button-hover">{{data.salePrice/100}}元 底价购买</button>
  60. </view>
  61. </view>