details.wxml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <view class="container">
  2. <!-- 拍卖客服 -->
  3. <LiveCustomer wx:if="{{showLiveCustomer}}" pullUrl="{{live_room_id}}" kid="{{kid}}" online_sum="{{online_sum}}"></LiveCustomer>
  4. <view class="banner-box">
  5. <swiper indicator-dots="{{indicatorDots}}" indicator-color="rgba(255,255,255,0.5)" indicator-active-color="#ffffff" autoplay="{{false}}" interval="{{3000}}" duration="{{500}}" circular="{{true}}">
  6. <block wx:for="{{bannerImg}}" wx:key="{{index}}">
  7. <swiper-item>
  8. <block wx:if="{{index == 0 && video_file_id.length > 0}}">
  9. <video src="{{prodUrl}}web-cp-all/img_pm/img/{{item.img}}" class='slide-image' controls id='myVideo'></video>
  10. </block>
  11. <image wx:else src="{{prodUrl}}web-cp-all/img_pm/img/{{item.img}}" class="slide-image" mode="aspectFill"></image>
  12. </swiper-item>
  13. </block>
  14. </swiper>
  15. </view>
  16. <view class="goods-state-box">
  17. <view class="goods-state-title-box" wx-if="{{onlineFlag}}">
  18. <view class="goods-state-title" id="{{positionFixed?'title-position':''}}" bindtap='onPageScroll'>
  19. <view class="goods-state-time">
  20. <text class="goods-time-state" wx:if="{{goodsInfo.bid_opening === '已结束'}}">结束时间</text>
  21. <text class="goods-time-state" wx:elif="{{goodsInfo.bid_opening === '未开拍'}}">距开始还有</text>
  22. <text class="goods-time-state" wx:elif="{{goodsInfo.bid_opening === '已开拍'}}">距结束仅剩</text>
  23. <view class="triangle"></view>
  24. </view>
  25. <text class="goods-time-down" style="{{goodsInfo.bid_opening === '已结束'?'font-size:45rpx;line-height:104rpx' : ''}}">{{countDown}}</text>
  26. </view>
  27. </view>
  28. <view class="goods-state-title-box" wx-if="{{!onlineFlag}}">
  29. <view class="goods-state-title" id="{{positionFixed?'title-position':''}}" bindtap='onPageScroll'>
  30. <view class="goods-state-time">
  31. <text class="goods-time-state" wx:if="{{goodsInfo.bid_opening === '已结束'}}">结束时间</text>
  32. <text class="goods-time-state" wx:elif="{{goodsInfo.bid_opening === '未开拍'}}">距开始还有</text>
  33. <text class="goods-time-state" wx:elif="{{goodsInfo.bid_opening === '已开拍'}}">拍卖倒计时</text>
  34. <view class="triangle"></view>
  35. </view>
  36. <text class="goods-time-down" style="{{goodsInfo.bid_opening === '已结束'?'font-size:45rpx;line-height:104rpx' : ''}}">{{countDown}}</text>
  37. </view>
  38. </view>
  39. <view class="goods-info">
  40. <text>{{goodsInfo.item_name}}</text>
  41. <!-- <button bindtap='' class='btn'>
  42. <image src="./images/living.gif"></image>
  43. </button> -->
  44. <button open-type="share" class='btn'>
  45. <image src="./images/redpack.gif"></image>
  46. </button>
  47. </view>
  48. <view class="goods-price">
  49. <text class="goods-state-market" wx:if="{{goodsInfo.bid_opening === '已结束'}}">成交价:</text>
  50. <text class="goods-state-market" wx:elif="{{goodsInfo.bid_opening === '未开拍'}}">起始价:</text>
  51. <text class="goods-state-market" wx:elif="{{goodsInfo.bid_opening === '已开拍'}}">当前价:</text>
  52. <view class="goods-price-state">
  53. <text class="goods-state-price-text1">{{bidRecord.length === 0?'当前无人出价': '¥'+price_bidder+'元'}}</text>
  54. </view>
  55. <!-- 设置提醒 -->
  56. <form class="goods-time-remind" bindsubmit="formSubmit" id="container" bindreset="formReset" report-submit='true' wx-if="{{clock}}">
  57. <image id='clock' src="../../images/clock.png"></image>
  58. <button class="goods-collect" type="warn" form-type='submit' catchtap='childClick' hover-stop-propagation='true'>
  59. 设置提醒
  60. </button>
  61. </form>
  62. </view>
  63. <view class="goods-takePartIn">
  64. <text style="border-right:1px solid #999;padding-left:0">{{submit_count}}人报名</text>
  65. <text>{{circusee_num}}人围观</text>
  66. <view class="serial-num" wx:if="{{serial_number && goodsInfo.bid_opening !== '未开拍'}}">
  67. <text>您的竞买号是:</text>
  68. <text style="color:#e22;font-weight:600;">{{serial_number}}</text>
  69. </view>
  70. </view>
  71. <view class="auctioneer">
  72. <navigator url="" hover-class="none">
  73. <view class="auctioneer-img">
  74. <image src="{{user_hader}}"></image>
  75. </view>
  76. <view class="auctioneer-info">
  77. <view class="auctioneer-name">
  78. <text>商铺:{{goodsInfo.name}}</text>
  79. <text class="sign">已认证</text>
  80. </view>
  81. </view>
  82. <!-- <view class="follow">
  83. <image wx:if="{{imgsrc}}" src="../../images/followdy.png" catchtap='onFollow' data-src="{{imgsrc}}"></image>
  84. <image wx:else src="../../images/follow.png" catchtap='onFollow' data-src="{{imgsrc}}"></image>
  85. </view> -->
  86. </navigator>
  87. </view>
  88. <!-- <view class="goods-news">
  89. <image src="images/news.png"></image>
  90. <view>
  91. <text style="color:#fb752c">用户134****3828</text>
  92. <text>以</text>
  93. <text style="color:#fb752c">¥8.5</text>
  94. </view>
  95. </view> -->
  96. </view>
  97. <view class="guild-box">
  98. <view class="guild-title">
  99. <image src="./images/auction.png"></image>
  100. <text>竞买信息</text>
  101. </view>
  102. <view class="guild-content">
  103. <view class="guild-promise">
  104. <view>
  105. <image src="./images/icon-1.png"></image>
  106. <text>零风险</text>
  107. </view>
  108. <view>
  109. <image src="./images/icon-1.png"></image>
  110. <text>正品承诺</text>
  111. </view>
  112. <view>
  113. <image src="./images/icon-1.png"></image>
  114. <text>极速发货</text>
  115. </view>
  116. <view>
  117. <image src="./images/icon-1.png"></image>
  118. <text>公平公正</text>
  119. </view>
  120. </view>
  121. <view class="guild-auction-info">
  122. <view class="info-left-box">
  123. <view class="info-left-lines">
  124. <text class="info-key">起始价</text>
  125. <text wx-if="{{onlineFlag}}" class="info-val">¥{{goodsInfo.price_start}}元</text>
  126. <text wx-if="{{!onlineFlag}}" class="goods-state-price-text1">{{goodsInfo.price_start== 0?"保密": '¥'+goodsInfo.price_start+'元'}}</text>
  127. </view>
  128. <!-- <view class="info-left-lines">
  129. <text class="info-key">保证金</text>
  130. <text class="info-val">¥{{goodsInfo.price_guarantee}}元</text>
  131. </view> -->
  132. <view class="info-right-lines" wx-if="{{!onlineFlag}}">
  133. <text class="info-key">保留价</text>
  134. <!-- <text class="info-val">¥{{goodsInfo.price_retain <= 0 ? '无':goodsInfo.price_retain}}元</text> -->
  135. <text class="info-val">保密</text>
  136. </view>
  137. </view>
  138. <view class="info-right-box">
  139. <view class="info-right-lines">
  140. <text class="info-key">加价幅度</text>
  141. <text class="info-val">¥{{goodsInfo.price_add}}元</text>
  142. </view>
  143. <view class="info-right-lines">
  144. <text class="info-key">延时周期</text>
  145. <text class="info-val" wx-if="{{onlineFlag}}">{{goodsInfo.update_interval/60}}分钟/次</text>
  146. <text class="info-val" wx-if="{{!onlineFlag}}">180秒/次</text>
  147. </view>
  148. <!-- <view class="info-right-lines">
  149. <text class="info-key">保留价</text>
  150. <text class="info-val">¥{{goodsInfo.price_retain <= 0 ? '无':goodsInfo.price_retain}}元</text>
  151. </view> -->
  152. </view>
  153. </view>
  154. </view>
  155. </view>
  156. <view class="bidrecord-box" bindtap='getRecordlist'>
  157. <navigator src="" hover-stay-time="10" url="pages/recordlist/recordlist">
  158. <image src="../../images/record.png"></image>
  159. <text>出价记录</text>
  160. <image class="arrow" src="../../images/arrow.png"></image>
  161. </navigator>
  162. <view class="lines-box">
  163. <view wx:if="{{bidRecord.length <= 0}}" class="lines-box-tips">
  164. <text>暂无出价记录</text>
  165. </view>
  166. <view class="lines {{(index == 0)?'textColor':''}}" wx:for="{{bidRecord}}" wx:key="{{index}}">
  167. <image src="../../images/user.png"></image>
  168. <text>竞买号:{{item.code}}</text>
  169. <text wx:if="{{index == 0}}">领先</text>
  170. <text wx:else>出局</text>
  171. <text>{{item.created}}</text>
  172. <text class="price">¥{{item.price_bidder}}</text>
  173. </view>
  174. </view>
  175. </view>
  176. <view class="share-box">
  177. <view class="share-tab">
  178. <view class="share-tab-left {{(item.select == tabIndex?'textstyle':'')}}" bindtap='onLoadTemplate' wx:for="{{tabData}}" wx:key="{{index}}" data-index="{{index}}" data-templateName="{{item.templateName}}" >
  179. <text>{{item.tabText}}</text>
  180. </view>
  181. </view>
  182. <view class="share-content">
  183. <import src="template/template.wxml"></import>
  184. <template is="{{templateName}}" data="{{pageData,parameter,prodUrl,bid_content}}"></template>
  185. </view>
  186. </view>
  187. <view class="bidders-btn" wx:if="{{seller}}">
  188. <view wx:if="{{item_submit && goodsInfo.bid_opening === '已开拍'}}" class="bidon">
  189. <view class="offer-count">
  190. <text class="offer-count-left">当前价格¥{{price_bidder}}元</text>
  191. <text class="offer-count-right">加价幅度¥{{goodsInfo.price_add}}</text>
  192. </view>
  193. <view class="bid">
  194. <button class="reduce" bindtap='reducePrice'>-</button>
  195. <input bindfocus="bidFocus" class="bid-input" value="¥{{new_price_bidder}}" type="digit" bindblur="getBidder"></input>
  196. <button class="increase" bindtap='reduceIncrease'>+</button>
  197. </view>
  198. <view class="sub-price">
  199. <button bindtap='bid' disabled='{{subPricFlag}}'>出价</button>
  200. </view>
  201. </view>
  202. <view wx:elif="{{item_submit && goodsInfo.bid_opening === '未开拍'}}" class="not-auction">
  203. <text>您已支付保证金,请等待开始!</text>
  204. </view>
  205. <view wx:elif="{{goodsInfo.bid_opening === '已结束'}}" class="end">
  206. <text>竞买已结束</text>
  207. </view>
  208. <view wx:elif="{{is_sign&&!is_pay}}" class="end">
  209. <text>已报名,请线下支付并等待审核</text>
  210. </view>
  211. <navigator bindtap='navPayPage' url="" hover-stay-time="10" wx:elif="{{!item_submit && goodsInfo.bid_opening !== '已结束'}}">
  212. <text>交保证金报名</text>
  213. </navigator>
  214. </view>
  215. </view>
  216. <!-- 分享进入返回首页 -->
  217. <image wx-if="{{isshare === 'true'}}" bindtap='backHome' class='d-back-home' src='./images/home.png' lazy-load></image>
  218. <!-- 恭喜中拍 -->
  219. <view class="mask" wx:if="{{mask}}">
  220. <view>
  221. <image src='images/win.png'></image>
  222. <button bindtap='gopay' wx-if="{{onlineFlag}}">立即付款</button>
  223. <button bindtap='gopayOffline' wx-if="{{!onlineFlag}}">立即付款</button>
  224. </view>
  225. </view>
  226. <!-- 红包弹窗 -->
  227. <view class='red-packet' wx:if="{{is_first}}">
  228. <view class="close" bindtap='closeRedPacket'><icon type="clear" color="#fff"/></view>
  229. <image src='/images/red.png'></image>
  230. <view class="text">
  231. <text>5元“新人红包”</text>
  232. </view>
  233. <view class="btn">
  234. <button class="lj" bindtap='getRedPacket'>立即领取</button>
  235. <button class="hb" bindtap='navRedPacket'>我的红包</button>
  236. </view>
  237. </view>