index.wxml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <view class='bargain'>
  2. <view class='iconfont icon-xiangzuo' wx:if='{{retunTop}}' bindtap='goBack' style='top:{{navH/2}}rpx'></view>
  3. <view class="header {{bargainUid != userInfo.uid ? 'on' : ''}}">
  4. <view class='people' style="top:{{navH/2}}rpx">{{bargainCount.lookCount}}人查看 丨 {{bargainCount.shareCount}}人分享 丨 {{bargainCount.userCount}}人参与</view>
  5. <view class='time font-color' wx:if="{{bargainUid == userInfo.uid}}">
  6. 倒计时 <text>{{countDownDay}}</text> 天
  7. <text>{{countDownHour}}</text> 时
  8. <text>{{countDownMinute}}</text> 分
  9. <text>{{countDownSecond}}</text> 秒
  10. </view>
  11. <view wx:if="{{bargainUid != userInfo.uid }}" class='pictxt acea-row row-center-wrapper'>
  12. <view class='pictrue'><image src='{{bargainUserInfo.avatar}}'></image></view>
  13. <view class='text'>{{bargainUserInfo.nickname}}<text>邀请您帮忙砍价</text></view>
  14. </view>
  15. </view>
  16. <view class='wrapper'>
  17. <view class='pictxt acea-row row-between-wrapper' bindtap="goProduct">
  18. <view class='pictrue'>
  19. <image src='{{bargainInfo.image}}'></image>
  20. <view class="bargain_view">
  21. 查看商品
  22. <text class="iconfont icon-jiantou iconfonts"></text>
  23. </view>
  24. </view>
  25. <view class='text acea-row row-column-around'>
  26. <view class='line2'>{{bargainInfo.title}}</view>
  27. <view class='money font-color'>当前: ¥<text class='num'>{{bargainInfo.price}}</text></view>
  28. <view class='successNum'>已有{{bargainSumCount || 0}}人砍价成功</view>
  29. </view>
  30. </view>
  31. <view class="cu-progress acea-row row-middle round margin-top">
  32. <view class='acea-row row-middle bg-red' style="width:{{bargainUserHelpInfo.pricePercent}}%;"></view>
  33. </view>
  34. <view class='money acea-row row-between-wrapper'>
  35. <view>已砍{{bargainUserHelpInfo.alreadyPrice}}元</view>
  36. <view>还剩{{bargainUserHelpInfo.price}}元</view>
  37. </view>
  38. <!-- 自己砍价 -->
  39. <view wx:if="{{bargainUid == userInfo.uid && !userBargainStatus && bargainUserHelpInfo.price > 0}}">
  40. <view class='bargainBnt' bindtap='userBargain' wx:if="{{productStock>0&&quota>0}}">立即参与砍价</view>
  41. <view class='bargainBnt grey' wx:if="{{productStock<=0||quota<=0}}">立即参与砍价</view>
  42. </view>
  43. <!-- 帮助砍价、帮砍成功:-->
  44. <view wx:if="{{bargainUid == userInfo.uid && bargainUserHelpInfo.price > 0 && userBargainStatus}}">
  45. <view class='bargainBnt' bindtap='getBargainUserBargainPricePoster'>邀请好友帮砍价</view>
  46. </view>
  47. <view wx:if="{{bargainUid != userInfo.uid && userBargainStatusHelp}}">
  48. <view class='bargainBnt' bindtap='setBargainHelp'>帮好友砍一刀</view>
  49. </view>
  50. <view wx:if="{{bargainUid != userInfo.uid && !userBargainStatusHelp}}">
  51. <view class='bargainSuccess'><text class='iconfont icon-xiaolian'></text>已成功帮助好友砍价</view>
  52. <view class='bargainBnt' bindtap='currentBargainUser'>我也要参与</view>
  53. </view>
  54. <view wx:if="{{bargainUserHelpInfo.price == 0 && bargainUid == userInfo.uid && statusPay!=3}}">
  55. <view class='bargainBnt' bindtap='goPay'>立即支付</view>
  56. </view>
  57. <view class='bargainBnt on' bindtap='goBargainList'>抢更多商品</view>
  58. <view class='tip'>已有<text class='font-color'>{{bargainUserHelpInfo.count}}</text> 位好友成功砍价</view>
  59. <view class='lock'></view>
  60. </view>
  61. <view class='bargainGang'>
  62. <view class='title font-color acea-row row-center-wrapper'>
  63. <view class='pictrue'><image src='/images/left.png'></image></view>
  64. <view class='titleCon'>砍价帮</view>
  65. <view class='pictrue on'><image src='/images/left.png'></image></view>
  66. </view>
  67. <view class='list'>
  68. <block wx:for="{{bargainUserHelpList}}" wx:key='index'>
  69. <view class='item acea-row row-between-wrapper'>
  70. <view class='pictxt acea-row row-between-wrapper'>
  71. <view class='pictrue'><image src='{{item.avatar}}'></image></view>
  72. <view class='text'>
  73. <view class='name line1'>{{item.nickname}}</view>
  74. <view class='line1'>{{item.add_time}}</view>
  75. </view>
  76. </view>
  77. <view class='money font-color'><text class="iconfont icon-kanjia"></text>砍掉{{item.price}}元</view>
  78. </view>
  79. </block>
  80. </view>
  81. <view class='load font-color' wx:if="{{!limitStatus}}" bindtap='getBargainUser'>点击加载更多</view>
  82. <view class='lock'></view>
  83. </view>
  84. <view class='goodsDetails'>
  85. <view class='title font-color acea-row row-center-wrapper'>
  86. <view class='pictrue'><image src='/images/left.png'></image></view>
  87. <view class='titleCon'>商品详情</view>
  88. <view class='pictrue on'><image src='/images/left.png'></image></view>
  89. </view>
  90. <view class='conter'>
  91. <template is="wxParse" data="{{wxParseData:description.nodes}}"/>
  92. </view>
  93. <view class='lock'></view>
  94. </view>
  95. <view class='goodsDetails'>
  96. <view class='title font-color acea-row row-center-wrapper'>
  97. <view class='pictrue'><image src='/images/left.png'></image></view>
  98. <view class='titleCon'>砍价规则</view>
  99. <view class='pictrue on'><image src='/images/left.png'></image></view>
  100. </view>
  101. <view class='conter'>
  102. <template is="wxParse" data="{{wxParseData:rule.nodes}}"/>
  103. </view>
  104. </view>
  105. <view class='bargainTip {{active==true?"on":""}}'>
  106. <view class='pictrue'><image src='/images/bargainBg.jpg'></image></view>
  107. <view wx:if="{{bargainUid == userInfo.uid }}">
  108. <view class='cutOff'>您已砍掉<text class='font-color'>{{bargainUserBargainPrice.price}}</text>元,听说分享次数越多砍价成功的机会越大哦!</view>
  109. <button open-type='share' class='tipBnt'>邀请好友帮砍价</button>
  110. </view>
  111. <view wx:else>
  112. <view class='help font-color'>成功帮砍{{bargainUserBargainPrice.price}}元</view>
  113. <view class='cutOff on'>您也可以砍价低价拿哦,快去挑选心仪的商品吧~</view>
  114. <view bindtap='currentBargainUser' class='tipBnt'>我也要参与</view>
  115. </view>
  116. </view>
  117. <view class='mask' catchtouchmove="true" hidden='{{active==false}}' bindtap='close'></view>
  118. </view>
  119. <authorize bind:onLoadFun="onLoadFun"></authorize>
  120. <import src="/wxParse/wxParse.wxml"/>
  121. <home></home>