index.wxml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <view class="container" wx:if="{{ task.task_id }}">
  2. <!-- 顶部操作栏 -->
  3. <view class="header dis-flex flex-x-between">
  4. <form bindsubmit="onTargetHome" report-submit="true">
  5. <button formType="submit" class="btn-normal">
  6. <view class="item-touch">
  7. <text>返回首页</text>
  8. </view>
  9. </button>
  10. </form>
  11. <form bindsubmit="onToggleRules" report-submit="true">
  12. <button formType="submit" class="btn-normal">
  13. <view class="item-touch">
  14. <text>玩法详情</text>
  15. </view>
  16. </button>
  17. </form>
  18. </view>
  19. <view class="content">
  20. <!-- 砍价信息 -->
  21. <view class="infos-wrap">
  22. <view class="infos-top">
  23. <view class="infos-img">
  24. <image src="{{ task.user.avatarUrl }}"></image>
  25. </view>
  26. <view class="infos-name">
  27. <text>{{ task.user.nickName }}</text>
  28. </view>
  29. </view>
  30. <view class="infos-mask">
  31. <view class="infos-prompt" wx:if="{{ active.prompt_words }}">
  32. <text>{{ active.prompt_words }}</text>
  33. </view>
  34. <!-- 商品信息 -->
  35. <form bindsubmit="onTargetGoods" report-submit="true">
  36. <button formType="submit" class="btn-normal">
  37. <view class="infos-item">
  38. <view class="infos-item-img">
  39. <image src="{{ goods.goods_image }}"></image>
  40. </view>
  41. <view class="infos-item-info">
  42. <view class="infos-item-name">
  43. <text class="twolist-hidden">{{ goods.goods_name }}</text>
  44. </view>
  45. <view class="infos-item-stock">
  46. <view class="stock-widget">
  47. <text>仅剩{{ goods.goods_sku.stock_num }}件</text>
  48. </view>
  49. </view>
  50. <view class="infos-item-price dis-flex flex-y-end">
  51. <text class="price1 col-m">底价¥</text>
  52. <text class="price2 col-m">{{ task.floor_price }}</text>
  53. <text class="price3">¥{{ task.goods_price }}</text>
  54. </view>
  55. </view>
  56. </view>
  57. </button>
  58. </form>
  59. </view>
  60. </view>
  61. <!-- 分割线 -->
  62. <view class="connect">
  63. <view class="connect-ring bgf-ring--left">
  64. <text></text>
  65. </view>
  66. <view class="connect-ring bgf-ring--right">
  67. <text></text>
  68. </view>
  69. </view>
  70. <!-- 砍价进度 -->
  71. <view class="bargain-wrap">
  72. <!-- 已砍数目 -->
  73. <view class="bargain-info">
  74. <view wx:if="{{ task.status }}" class="bargain-ing">
  75. <block wx:if="{{ !task.is_floor }}">
  76. <text>已砍</text>
  77. <text class="focal col-m">{{ task.cut_money }}</text>
  78. <text>元,还差</text>
  79. <text class="focal col-m">{{ task.surplus_money }}</text>
  80. <text>元</text>
  81. </block>
  82. <block wx:else>
  83. <text>已砍至最低</text>
  84. <text class="focal col-m">{{ task.floor_price }}</text>
  85. <text>元,砍价成功!</text>
  86. </block>
  87. </view>
  88. <view wx:else class="bargain-ing">
  89. <text class="col-9">该砍价活动已结束~</text>
  90. </view>
  91. </view>
  92. <!-- 砍价进度条 -->
  93. <view class="bgn__process m-top30">
  94. <view class="bgn__process-bottom">
  95. <view class="bgn__process-process process--ani" style="width: {{ task.bargain_rate }}%;"></view>
  96. </view>
  97. </view>
  98. <!-- 操作按钮 -->
  99. <view class="btn-container m-top30 dis-flex flex-x-center">
  100. <!-- 立即购买 -->
  101. <form wx:if="{{ showBuyBtn }}" bindsubmit="onCheckout" report-submit="true">
  102. <button formType="submit" class="btn-normal">
  103. <view class="btn-item btn-item__buy {{ task.is_floor ? 'complete' : '' }}">
  104. <text>立即购买</text>
  105. </view>
  106. </button>
  107. </form>
  108. <!-- 分享给朋友 -->
  109. <button wx:if="{{ showShareBtn }}" open-type="share" class="btn-normal">
  110. <view class="btn-item btn-item__main">
  111. <text>邀请好友砍价</text>
  112. </view>
  113. </button>
  114. <!-- 砍刀操作 -->
  115. <form wx:if="{{ showCatBtn }}" bindsubmit="onHelpCut" report-submit="true">
  116. <button formType="submit" class="btn-normal">
  117. <view class="btn-item btn-item__main btn-item-long">
  118. <text>帮TA砍一刀</text>
  119. </view>
  120. </button>
  121. </form>
  122. <!-- 查看其他砍价活动 -->
  123. <form wx:if="{{ showOtherBtn }}" bindsubmit="onTargetBargain" report-submit="true">
  124. <button formType="submit" class="btn-normal">
  125. <view class="btn-item btn-item__main btn-item-long">
  126. <text>查看其他砍价活动</text>
  127. </view>
  128. </button>
  129. </form>
  130. </view>
  131. <!-- 到期时间 -->
  132. <view class="bargain-p" wx:if="{{ task.status }}">
  133. <view class="bargain-people dis-flex flex-x-center flex-y-center">
  134. <text>活动还剩</text>
  135. <countdown wx:if="{{ countDownTime }}" date="{{ countDownTime }}" />
  136. <text>结束,快来砍价吧~</text>
  137. </view>
  138. </view>
  139. </view>
  140. <!-- 好友助力榜 -->
  141. <view class="records-container" wx:if="{{ help_list.length }}">
  142. <view class="records">
  143. <view class="records-back"></view>
  144. <view class="records-content">
  145. <view class="records-h2">
  146. <text>好友助力榜</text>
  147. </view>
  148. <view class="friend-help">
  149. <view class="records-item" wx:for="{{ help_list }}" wx:key="this">
  150. <view class="records-left">
  151. <image src="{{ item.user.avatarUrl }}"></image>
  152. <text>{{ item.user.nickName }}</text>
  153. </view>
  154. <view class="records-right semibold">
  155. <text class="bold">减 </text>
  156. <text class="red">¥{{ item.cut_money }}</text>
  157. </view>
  158. </view>
  159. </view>
  160. </view>
  161. </view>
  162. </view>
  163. </view>
  164. <!-- 砍价规则 -->
  165. <zan-dialog id="zan-base-dialog"></zan-dialog>
  166. </view>