C端小程序
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

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