placeOrder.wxml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <view class="topBox" id="topBox">
  2. <view class="title flex" bindtap="addressDetail">
  3. <text>{{worke.title}}</text>
  4. <van-icon name="arrow" size="15" color="#191C27" />
  5. </view>
  6. <view class="footer flex ju-b">
  7. <view class="le">
  8. <view class="address">
  9. <text>{{worke.address}}</text>
  10. <text>|距离{{worke.distance}}km</text>
  11. </view>
  12. <view class="tips">
  13. <text class="tag">{{status[worke.signing_status]}}</text>
  14. <text> {{worke.unit[0].type_name}}·{{worke.unit[1].type_name}}·{{worke.unit[2].type_name}}</text>
  15. </view>
  16. </view>
  17. <view class="lr">
  18. <swiper class="swiperBox" indicator-dots indicator-color="#D7D7D7" indicator-active-color="#4699FF">
  19. <swiper-item class="flex ju-c" bindtap="location">
  20. <image src="/image/icon/navigation.png"></image>
  21. <text>导航</text>
  22. </swiper-item>
  23. <swiper-item class="flex ju-c" bindtap="goto">
  24. <image src="/image/icon/kaigui.png"></image>
  25. <text>开柜</text>
  26. </swiper-item>
  27. </swiper>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="scrollBox" id="scrollBox">
  32. <scroll-view scroll-x>
  33. <image src="/image/order/houwaitao.png" class="show" wx:for="{{5}}" wx:key="index"></image>
  34. </scroll-view>
  35. </view>
  36. <!-- <van-notice-bar mode="closeable" left-icon="/image/icon/message.png" bind:close="closeNews" text="在代码阅读过程中人们说脏话的频率是衡量代码质量的唯一标准。" h/> -->
  37. <view class="contioner flex al-s" style="height: {{height}}px;">
  38. <view class="slidebar">
  39. <scroll-view scroll-y>
  40. <view class="sliderItem b-bottom {{activeKey == index?'active':''}}" wx:for="{{navList}}" wx:key="index" data-id="{{item.id}}" bindtap="changeActive" data-activeKey="{{index}}">
  41. {{item.title}}
  42. </view>
  43. </scroll-view>
  44. </view>
  45. <view class="listBox">
  46. <scroll-view scroll-y>
  47. <view class="title flex">
  48. <text>活动</text>
  49. <view class="line"></view>
  50. </view>
  51. <view class="box">
  52. <view class="items flex b-bottom" wx:for="{{shoppingList}}" wx:key="index">
  53. <navigator url="/pages/order/serviceDetails/serviceDetails?goods_id={{item.id}}&title={{worke.title}}&address={{worke.address}}&worke_id={{worke.id}}">
  54. <view class="le">
  55. <image src="{{item.thumb?item.thumb:'/image/icon/dayiwaitao.png'}}" class="picture"></image>
  56. </view>
  57. </navigator>
  58. <view class="lr">
  59. <view class="message flex ju-b">
  60. <view class="tit">{{item.title}}</view>
  61. <view class="num flex ju-b">
  62. <view>
  63. <text class="price">¥<text class="number">{{(item.price.start_time && item.price.end_time)?item.price.sale_price:item.price.price}}</text></text>
  64. <text class="oldPrice" wx:if="{{item.price.start_time && item.price.end_time}}">¥{{item.price.price}}</text>
  65. </view>
  66. <!--
  67. <view class="btn-sky btn flex ju-c" wx:if="{{item.num == 0}}" bindtap="shoppingPlus" data-item="{{item}}">
  68. <van-icon name="plus" size="12" />
  69. </view>
  70. <view class="flex" wx:else>
  71. <view class="btn-border btn flex ju-c" bindtap="shoppingMinus" data-item="{{item}}">
  72. <van-icon name="minus" size="12" color="#191C27" />
  73. </view>
  74. <view class="nums">
  75. {{item.num}}
  76. </view>
  77. <view class="btn-sky btn flex ju-c" bindtap="shoppingPlus" data-item="{{item}}">
  78. <van-icon name="plus" size="12" />
  79. </view>
  80. </view> -->
  81. <view wx:if="{{item.good_type == 1}}">
  82. <view class="btn-sky btn flex ju-c" wx:if="{{item.num == 0}}" bindtap="shoppingPlus" data-item="{{item}}">
  83. <van-icon name="plus" size="12" />
  84. </view>
  85. <view class="flex" wx:else>
  86. <view class="btn-border btn flex ju-c" bindtap="shoppingMinus" data-item="{{item}}">
  87. <van-icon name="minus" size="12" color="#191C27" />
  88. </view>
  89. <view class="nums">
  90. {{item.num}}
  91. </view>
  92. <view class="btn-sky btn flex ju-c" bindtap="shoppingPlus" data-item="{{item}}">
  93. <van-icon name="plus" size="12" />
  94. </view>
  95. </view>
  96. </view>
  97. <view wx:else>
  98. <view class="main8">
  99. <text lines="1" class="word16" bindtap="shoppingPlus" data-item="{{item}}">立即下单</text>
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. </scroll-view>
  108. </view>
  109. </view>
  110. <view class="footerBox flex ju-c" id="footerBar">
  111. <view class="btnBox flex ju-b">
  112. <view class="le flex" bindtap="btnShow">
  113. <view class="box">
  114. <image src="/image/icon/box.png"></image>
  115. <dot num="{{carNum}}" wx:if="{{carNum > 0}}" offset="{{[-8,-15]}}" radius="50%" height="36rpx" width="36rpx" color="#F12C20"></dot>
  116. </view>
  117. <text class="tips" hidden="{{carList.length != 0}}">尚未选择服务</text>
  118. <text class="pricce" hidden="{{carList.length == 0}}">
  119. <text>¥</text>
  120. <text class="num">{{carPrice}}</text>
  121. </text>
  122. </view>
  123. <view class="lr {{carNum > 0 ? 'btn-sky' : 'gray'}}" bindtap="getOrder">
  124. 下单洗衣
  125. </view>
  126. </view>
  127. </view>
  128. <van-popup show="{{ show }}" position="bottom" bind:close="btnShow" round close-on-click-overlay>
  129. <view class="carBox">
  130. <view class="tit flex ju-b">
  131. <view class="le">
  132. 已选服务({{carNum}})
  133. </view>
  134. <view class="lr flex" bindtap="clearCarAll">
  135. <image src="/image/icon/del.png" class="del"></image>
  136. <text>清空</text>
  137. </view>
  138. </view>
  139. <view class="box">
  140. <scroll-view scroll-y>
  141. <view class="items flex b-bottom" wx:for="{{carList}}" wx:key="index">
  142. <view class="le">
  143. <image src="/image/order/houwaitao.png" class="picture"></image>
  144. </view>
  145. <view class="lr">
  146. <view class="message flex ju-b">
  147. <view class="name">{{item.title}}</view>
  148. <view class="num flex ju-b">
  149. <view>
  150. <text class="price">¥<text class="number">{{item.money}}</text></text>
  151. <!-- <text class="oldPrice">¥{{item.origin_money}}</text> -->
  152. </view>
  153. <view class="flex">
  154. <view class="btn-border btn flex ju-c" bindtap="carMinus" data-item="{{item}}">
  155. <van-icon name="minus" size="12" color="#191C27" />
  156. </view>
  157. <view class="nums">
  158. {{item.stock}}
  159. </view>
  160. <view class="btn-sky btn flex ju-c" bindtap="carPlus" data-item="{{item}}">
  161. <van-icon name="plus" size="12" />
  162. </view>
  163. </view>
  164. </view>
  165. </view>
  166. </view>
  167. </view>
  168. </scroll-view>
  169. </view>
  170. </view>
  171. </van-popup>
  172. <van-popup z-index="300" show="{{ detailsShow }}" position="bottom" bind:close="addressDetail" close-icon="/image/icon/close.png" round close-on-click-overlay closeable>
  173. <view class="details">
  174. <view class="title">
  175. {{worke.title}}
  176. </view>
  177. <view class="tag">
  178. {{status[worke.signing_status]}}
  179. </view>
  180. <view class="grayText">
  181. 地址:{{worke.address}}
  182. </view>
  183. <view class="grayText">
  184. 电话:{{worke.contact}}
  185. </view>
  186. <view class="grayText">
  187. 营业时间:{{worke.unit[0].svctm}}
  188. </view>
  189. <view class="grayText">
  190. 配送:{{worke.unit[0].type_name}}·{{worke.unit[1].type_name}}·{{worke.unit[2].type_name}}
  191. </view>
  192. </view>
  193. </van-popup>