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.

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