C端小程序
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

87 lignes
6.2 KiB

  1. <button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button>
  2. <view class="page" hover-class="none" hover-stop-propagation="false">
  3. <!-- <view class='top' wx:if="{{bargaingoods&&list.length>0}}">
  4. <view class="banner" wx:if="{{list.length>0}}" hover-class="none" hover-stop-propagation="false">
  5. <c-banner wx:key="unique" list="{{list}}" />
  6. </view>
  7. </view> -->
  8. <!-- 砍价商品 -->
  9. <view class="bargaingoods" style='padding-bottom:120rpx;' wx:if="{{bargaingoods&&lists.length>0}}" hover-class="none" hover-stop-propagation="false">
  10. <view class="list" hover-class="none" hover-stop-propagation="false">
  11. <view class="listitem clearfix" wx:for="{{lists}}" wx:key="{{index}}" hover-stop-propagation="false" data-couponId='{{item.couponId}}' data-id='{{item.id}}' bindtap='invite'>
  12. <image class="fl" src="{{item.coverImg}}" mode="aspectFill" lazy-load="true" binderror=""
  13. bindload=""></image>
  14. <view class="fl ri" hover-class="none" hover-stop-propagation="false">
  15. <text class="txt01">{{item.title}}</text>
  16. <!-- <text class="txt02">{{item.subTitle}}</text> -->
  17. <view class="txt04">可砍至¥<text class="money">{{item.salePriceStr}}</text><text class="txt03">原价{{item.priceStr}}</text></view>
  18. </view>
  19. <view class="botton" wx:if="{{item.remainInventory != 0}}" hover-class="none" hover-stop-propagation="false">发起砍价</view>
  20. <view class="botton botton02" wx:if="{{item.remainInventory == 0}}" hover-class="none" hover-stop-propagation="false">已售罄</view>
  21. </view>
  22. <view class="loading" wx:if="{{loading}}">{{content}}</view>
  23. <!-- <view class='loadingtext' wx:if="{{loadingtext}}">{{loadingtext}}</view> -->
  24. </view>
  25. </view>
  26. <!-- 我的砍价 -->
  27. <view class="list mybargain" style='padding-bottom:120rpx;' wx:if="{{mybargain&&lists.length>0}}" hover-class="none" hover-stop-propagation="false">
  28. <view class="listitem clearfix" wx:for="{{lists}}" wx:key="index" zhover-stop-propagation="false">
  29. <image class="frImg" wx:if="{{item.orderStatus == 6&&todayDate<=item.pressEndDate}}" src="{{orangeImg}}" mode="aspectFill" lazy-load="true"><text>进行中</text></image>
  30. <image class="frImg" wx:if="{{item.orderStatus == 7}}" src="{{blueImg}}" mode="aspectFill" lazy-load="true"><text>已完成</text></image>
  31. <image class="frImg" wx:if="{{item.orderStatus == 8||item.orderStatus == 6&&todayDate>item.pressEndDate}}" src="{{grayImg}}" mode="aspectFill" lazy-load="true"><text>已失效</text></image>
  32. <image class="fl" src="{{item.coverImg}}" mode="aspectFill" lazy-load="true"></image>
  33. <view class="fl ri" hover-class="none" hover-stop-propagation="false">
  34. <text class="txt01">{{item.title}}</text>
  35. <!-- <text class="txt02">{{item.subTitle}}</text> -->
  36. <view class="txt04 mr txt004" wx:if="{{item.orderStatus !=7}}">已砍至¥ <text class='money'>{{item.price/100-(item.price/100-item.salePrice/100-item.pressCurrentValue/100)}}</text><text class="txt03">原价{{item.price/100}}</text></view>
  37. <!-- <text class="txt04 mr" wx:if="{{item.orderStatus == 6&&todayDate<=item.pressEndDate}}">{{item.pressCurrentValue/100}}元</text> -->
  38. <text class="txt04 mr" wx:if="{{item.orderStatus == 7}}">已砍价到底价:{{item.salePrice/100}}元</text>
  39. </view>
  40. <view class='again' wx:if="{{item.orderStatus == 6&&todayDate<=item.pressEndDate}}" hover-class="none" hover-stop-propagation="false" data-id="{{item.id}}" bindtap="inviteFriend">
  41. <view class="botton1">邀请好友</view>
  42. </view>
  43. <view class='again' wx:if="{{item.orderStatus == 7}}" data-id="{{item.id}}" bindtap="inviteFriend">
  44. <view class="botton2" hover-class="none" hover-stop-propagation="false">立即付款</view>
  45. <!-- <image class="icon" src="{{bargainsuccess}}" lazy-load="true"/> -->
  46. </view>
  47. <form bindsubmit="submit" report-submit='true' >
  48. <view class='again' wx:if="{{item.orderStatus == 8||item.orderStatus == 6&&todayDate>item.pressEndDate}}"
  49. data-couponChannelId="{{item.couponChannelId}}" data-couponId="{{item.productId}}" data-id="{{item.id}}" bindtap="barginAgain">
  50. <button form-type="submit" class="botton3" hover-class="none" hover-stop-propagation="false">重新砍价</button>
  51. <!-- <image class="icon" src="{{bargainfail}}" lazy-load="true"/> -->
  52. </view>
  53. </form>
  54. <view wx:if="{{item.orderStatus != 8}}" >
  55. <view class='line'></view>
  56. <view class='pt_progress' >
  57. <progress percent="{{(item.pressCurrentNum/item.pressLimitNum)*100}}" stroke-width="6" activeColor="#FD7E2B" />
  58. <text class='msg' wx:if="{{item.orderStatus == 6}}">还差{{item.pressLimitNum-item.pressCurrentNum}}人即享最低</text>
  59. <text class='msg' wx:if="{{item.orderStatus == 7}}">已至底价</text>
  60. </view>
  61. </view>
  62. <view wx:if="{{item.orderStatus == 2 || item.orderStatus == 9}}">
  63. <image class="icon" style="margin-top:60rpx;" src="{{bargaincancel}}" lazy-load="true"/>
  64. </view>
  65. </view>
  66. <view class="loading" wx:if="{{loading}}">{{content}}</view>
  67. </view>
  68. <view class='no-data01' wx:if='{{flag=="bargaingoods"&&lists.length==0}}' style='{{"height:"+(list.length>0?"calc(100vh - 460rpx)":"calc(100vh - 160rpx)")}}'>
  69. <image src='{{noCoupon}}'></image>
  70. <view class='no-data-text'>暂无数据</view>
  71. </view>
  72. <view class='no-data' wx:if='{{flag=="mybargain"&&lists.length==0}}'>
  73. <image src='{{noCoupon}}'></image>
  74. <view class='no-data-text'>暂无数据</view>
  75. </view>
  76. <view class='bottom'>
  77. <view bindtap="bargaingoods" class="{{bargaingoods?'bottom-left':'bottom-leftQ'}}">砍价商品</view>
  78. <view bindtap="mybargain" class="{{mybargain?'bottom-right':'bottom-rightQ'}}">我的砍价</view>
  79. </view>
  80. </view>