placeOrder.wxml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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">
  20. <image src="/image/icon/navigation.png"></image>
  21. <text>导航</text>
  22. </swiper-item>
  23. <swiper-item class="flex ju-c">
  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}}"></image>
  34. </scroll-view>
  35. </view>
  36. <van-notice-bar mode="closeable" left-icon="/image/icon/message.png" bind:close="closeNews" text="在代码阅读过程中人们说脏话的频率是衡量代码质量的唯一标准。" />
  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="*this" 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="{{item.id}}">
  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/order/houwaitao.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.sale_price}}</text></text>
  64. <text class="oldPrice">¥{{item.price.price}}</text>
  65. </view>
  66. <view class="btn-sky btn flex ju-c" wx:if="{{item.num == 0}}" bindtap="shoppingPlus" data-item="{{item}}">
  67. <van-icon name="plus" size="12" />
  68. </view>
  69. <view class="flex" wx:else>
  70. <view class="btn-border btn flex ju-c" bindtap="shoppingMinus" data-item="{{item}}" >
  71. <van-icon name="minus" size="12" color="#191C27" />
  72. </view>
  73. <view class="nums">
  74. {{item.num}}
  75. </view>
  76. <view class="btn-sky btn flex ju-c" bindtap="shoppingPlus" data-item="{{item}}">
  77. <van-icon name="plus" size="12" />
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. </scroll-view>
  86. </view>
  87. </view>
  88. <view class="footerBox flex ju-c" id="footerBar">
  89. <view class="btnBox flex ju-b">
  90. <view class="le flex" bindtap="btnShow">
  91. <view class="box" >
  92. <image src="/image/icon/box.png"></image>
  93. <dot num="{{carNum}}" wx:if="{{carNum > 0}}" offset="{{[-8,-15]}}" radius="50%" height="36rpx" width="36rpx" color="#F12C20"></dot>
  94. </view>
  95. <text class="tips" hidden="{{carList.length != 0}}">尚未选择服务</text>
  96. <text class="pricce" hidden="{{carList.length == 0}}">
  97. <text>¥</text>
  98. <text class="num">{{carPrice}}</text>
  99. </text>
  100. </view>
  101. <view class="lr {{carList.length > 0 ? 'btn-sky' : 'gray'}}" bindtap="getOrder">
  102. 下单洗衣
  103. </view>
  104. </view>
  105. </view>
  106. <van-popup show="{{ show }}" position="bottom" bind:close="btnShow" round close-on-click-overlay>
  107. <view class="carBox">
  108. <view class="tit flex ju-b">
  109. <view class="le">
  110. 已选服务({{carNum}})
  111. </view>
  112. <view class="lr flex" bindtap="clearCarAll">
  113. <image src="/image/icon/del.png" class="del"></image>
  114. <text>清空</text>
  115. </view>
  116. </view>
  117. <view class="box">
  118. <scroll-view scroll-y>
  119. <view class="items flex b-bottom" wx:for="{{carList}}" wx:key="{{index}}">
  120. <view class="le">
  121. <image src="/image/order/houwaitao.png" class="picture"></image>
  122. </view>
  123. <view class="lr">
  124. <view class="message flex ju-b">
  125. <view class="name">{{item.title}}</view>
  126. <view class="num flex ju-b">
  127. <view>
  128. <text class="price">¥<text class="number">{{item.money}}</text></text>
  129. <text class="oldPrice">¥9</text>
  130. </view>
  131. <view class="flex">
  132. <view class="btn-border btn flex ju-c" bindtap="carMinus" data-item="{{item}}">
  133. <van-icon name="minus" size="12" color="#191C27" />
  134. </view>
  135. <view class="nums">
  136. {{item.stock}}
  137. </view>
  138. <view class="btn-sky btn flex ju-c" bindtap="carPlus" data-item="{{item}}">
  139. <van-icon name="plus" size="12" />
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. </view>
  145. </view>
  146. </scroll-view>
  147. </view>
  148. </view>
  149. </van-popup>
  150. <van-popup z-index="300" show="{{ detailsShow }}" position="bottom" bind:close="addressDetail" close-icon="/image/icon/close.png" round close-on-click-overlay closeable>
  151. <view class="details">
  152. <view class="title">
  153. {{worke.title}}
  154. </view>
  155. <view class="tag">
  156. {{status[worke.signing_status]}}
  157. </view>
  158. <view class="grayText">
  159. 地址:{{worke.address}}
  160. </view>
  161. <view class="grayText">
  162. 电话:{{worke.contact}}
  163. </view>
  164. <view class="grayText">
  165. 营业时间:{{worke.unit[0].svctm}}
  166. </view>
  167. <view class="grayText">
  168. 配送:{{worke.unit[0].type_name}}·{{worke.unit[1].type_name}}·{{worke.unit[2].type_name}}
  169. </view>
  170. </view>
  171. </van-popup>