C端小程序
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

bargain.wxml 6.3 KiB

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