appointOrder.wxml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. <wxs module="filter" src="../../../utils/filter.wxs" />
  2. <view class="container">
  3. <!-- 地址 -->
  4. <view class="order-address">
  5. <!-- 有地址,选择 -->
  6. <view wx:if="{{addressId>0}}" class="address-select" bindtap="addressSelect">
  7. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-order-map.png" class="map-img">
  8. </image>
  9. <view class="address-main">
  10. <view class="main-line">
  11. <view>{{checkedAddress.name}}</view>
  12. <view class="phone">{{checkedAddress.tel}}</view>
  13. </view>
  14. <view class="customer-address" wx:if="{{checkedAddress.addressName}}">{{checkedAddress.addressName}}{{checkedAddress.detail}}</view>
  15. <view class="customer-address" wx:else="">{{checkedAddress.addressDetail}}</view>
  16. </view>
  17. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/wx-dy/arrow-grey.png" class="arrow-img"></image>
  18. </view>
  19. <!-- 没地址,输入 -->
  20. <view wx:else class="address-input-module add-address">
  21. <view class="add-form">
  22. <view class="form-item" bindtap="goMap" style="height:auto;min-height:78rpx; ">
  23. <view class="label"><text>*</text>服务地址</view>
  24. <view class="content" style="height:auto;min-height:78rpx; ">
  25. <view wx:if="{{address.addressname==''}}" style="color: #ACADB1;;font-size:24rpx;" class="input">
  26. 选择省、市、县(区)、乡(镇)
  27. </view>
  28. <view wx:else class="input"> {{address.addressname}}</view>
  29. <!-- <input class="input" value="{{address.addressname}}" disabled="true" placeholder="选择省、市、县(区)、乡(镇)" placeholder-style="color: #ACADB1;;font-size:24rpx;"/> -->
  30. <image src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-address-map.png" style="width: 28rpx;height: 28rpx;margin:28rpx 0 0 10rpx;"></image>
  31. </view>
  32. </view>
  33. <view class="form-item">
  34. <view class="label"><text>*</text>小区门牌</view>
  35. <view class="content">
  36. <input class="input" bindinput="bindinputAddress" value="{{address.detail}}" placeholder="详细地址,例xx小区x号楼x单元xx室" placeholder-style="color: #ACADB1;;font-size:24rpx;" />
  37. </view>
  38. </view>
  39. <view class="form-item">
  40. <view class="label"><text>*</text>联系人</view>
  41. <view class="content special-content">
  42. <input class="input" bindinput="bindinputName" placeholder="姓名" value="{{address.name}}" auto-focus placeholder-style="color: #ACADB1;;font-size:24rpx;" />
  43. <view class="gender-wrapper">
  44. <view class="female" bindtap="femaleSelect">
  45. <image src="https://mall.zhaijieshi.cc/file/jzmall-dy/icon-select-popup.png" mode="asceptFit" wx:if="{{gender==2}}"></image>
  46. <image src="https://mall.zhaijieshi.cc/file/jzmall-dy/icon-unselect-popup.png" mode="asceptFit" wx:else>
  47. </image>
  48. <text>女士</text>
  49. </view>
  50. <view class="male" bindtap="maleSelect">
  51. <image src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-select-popup.png" mode="asceptFit" wx:if="{{gender==1}}"></image>
  52. <image src="https://mall.zhaijieshi.cc/file/jzmall-dy/icon-unselect-popup.png" mode="asceptFit" wx:else>
  53. </image>
  54. <text>先生</text>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. <view class="form-item">
  60. <view class="label"><text>*</text>联系电话</view>
  61. <view class="content">
  62. <input class="input" bindinput="bindinputMobile" value="{{address.tel}}" type="number" placeholder="手机号码" maxlength="11" placeholder-style="color: #ACADB1;;font-size:24rpx;" />
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. <!-- <view style="color:red;font-size:24rpx;margin-top:20rpx;">临近春节,服务力紧张,我们会尽量为您安排。如果不能准时服务,支持全额退款</view> -->
  69. <!-- 预约服务时间 -->
  70. <view class="appoint-main-module">
  71. <view class="appoint-block" bindtap="showAppoint">
  72. <view class="title"><text>*</text>上门时段</view>
  73. <view class="appoint-time" wx:if="{{appointDate==''}}">服务者将在此时段内上门</view>
  74. <view class="appoint-timed" wx:else>{{appointDate}}</view>
  75. <image src="https://mall.zhaijieshi.cc/file/wx-dy/arrow-grey.png" mode="aspectFit" class="arrow-img"></image>
  76. </view>
  77. <view class="appoint-block" bindtap="showRemarkSelect">
  78. <view class="title">选择备注</view>
  79. <view class="appoint-time" wx:if="{{remark==''}}">请选择备注</view>
  80. <view class="appoint-timed" wx:else>{{remark}}</view>
  81. <image src="https://mall.zhaijieshi.cc/file/wx-dy/arrow-grey.png" mode="aspectFit" class="arrow-img"></image>
  82. </view>
  83. <view class="appoint-block">
  84. <view class="title">补充信息</view>
  85. <input placeholder="请输入补充信息" class="appoint-timed" value="{{message}}" placeholder-style="font-size:24rpx;color: #ACADB1;" bindinput="bindMessageInput" />
  86. <image src="https://mall.zhaijieshi.cc/file/wx-dy/arrow-grey.png" mode="aspectFit" class="arrow-img"></image>
  87. </view>
  88. </view>
  89. <!-- 预约备注 -->
  90. <!-- <view class="appoint-block" bindtap="showRemark">
  91. <view>预约备注</view>
  92. <view class="appoint-time" wx:if="{{message==''}}">请备注您的需求</view>
  93. <view wx:else class="remark-text">{{message}}</view>
  94. <image src="https://mall.zhaijieshi.cc/file/wx-dy/order-arrow.png" mode="aspectFit" class="arrow-img"></image>
  95. </view> -->
  96. <!-- 商品 -->
  97. <view class="product-block">
  98. <!-- <view class="title">
  99. 服务项目
  100. </view> -->
  101. <view class="product-detail">
  102. <view class="profuct-info">
  103. <image mode="aspectFit" class="product-img" src="{{orderInfo.picUrl+'?w=200'}}"></image>
  104. <view class="info-right">
  105. <view class="info-main">
  106. <view class="product-name">{{orderInfo.goodsName}}</view>
  107. <view class="price">¥<text style="font-size: 24rpx;">{{orderInfo.actualPrice}}</text></view>
  108. </view>
  109. <view class="sku-name" wx:if="{{orderInfo.increaseSumPrice}}">
  110. <view> 加购: {{orderInfo.unitDescribe}}*{{orderInfo.unitIncreaseNumber}}</view>
  111. <view>¥{{orderInfo.increaseSumPrice}}</view>
  112. </view>
  113. <view class="sku-name">
  114. 规格:{{orderInfo.skuName}}
  115. </view>
  116. <!-- <view class="other-info">规格:1</view> -->
  117. <view class="other-info">服务{{orderInfo.serviceTimes}}次</view>
  118. <!-- <view class="other-info">单价:¥{{product.price}}</view> -->
  119. </view>
  120. </view>
  121. </view>
  122. </view>
  123. <!-- 服务须知 -->
  124. <view wx:if="{{goodsTip.remark!=null}}" class="notice-block">
  125. <view class="notice-title">{{goodsTip.title}}</view>
  126. <view class="notice-item" wx:for="{{goodsTip.remark}}" wx:key="index">
  127. <view class="notice-index">{{index+1}}.</view>
  128. <view>{{item}}</view>
  129. </view>
  130. </view>
  131. <!-- 订单信息 -->
  132. <view class="order-info">
  133. <view class="order-top">
  134. <view class="topic">
  135. 订单编号:
  136. </view>
  137. <view>
  138. {{orderInfo.orderSn}}
  139. </view>
  140. <image mode="aspectFit" class="copy-img" src="https://mall.zhaijieshi.cc/file/jzmall-dy/icon-order-copy.png" bindtap="copyOrder"></image>
  141. </view>
  142. <view class="order-top">
  143. <view class="topic">
  144. 下单时间:
  145. </view>
  146. <view>
  147. {{orderInfo.createTime}}
  148. </view>
  149. </view>
  150. <view class="order-top">
  151. <view class="topic">
  152. 支付方式:
  153. </view>
  154. <view>
  155. {{orderInfo.payChannel}}
  156. </view>
  157. </view>
  158. <view class="order-bottom">
  159. <view class="order-price">
  160. <view class="topic">
  161. 订单金额:
  162. </view>
  163. <view>
  164. ¥{{orderInfo.orderPrice}}
  165. </view>
  166. </view>
  167. <view class="coupon-price">
  168. <view class="topic">
  169. 优惠金额:
  170. </view>
  171. <view>
  172. ¥{{orderInfo.discountPrice}}
  173. </view>
  174. </view>
  175. <view class="real-price">
  176. 实际付款:<text>¥{{orderInfo.actualPrice}}</text>
  177. </view>
  178. </view>
  179. </view>
  180. <!-- 提交按钮 -->
  181. <view class="appoint-btn" bindtap="submitAll" wx:if="{{!isHide}}">
  182. 立即预约
  183. </view>
  184. <!-- 备注弹框 -->
  185. <view class="appoint-overlay-wrapper" wx:if="{{ remarkShow }}" bindtap="onRemarkClose">
  186. </view>
  187. <view class="remark-popup" wx:if="{{ remarkShow }}">
  188. <view class="title">
  189. 订单备注
  190. </view>
  191. <textarea bindinput="bindMessageInput" placeholder="请输入订单备注信息" value="{{message}}" placeholder-style="font-size:26rpx;color:#666;" maxlength="200" class="remark-textarea"></textarea>
  192. <view class="btn" bindtap="confirmRemark">
  193. 确定
  194. </view>
  195. </view>
  196. <view class="appoint-overlay-wrapper" wx:if="{{ choosePopup }}" bindtap="onClose">
  197. </view>
  198. <view class="popup-wrapper popup-wrapper-special" wx:if="{{ choosePopup }}">
  199. <!-- 标题 -->
  200. <view class="popup-title popup-title-special popup-title-new">
  201. <view>选择服务开始时间</view>
  202. <view wx:if="{{selectTimeValue>=17}}" class="fee-tips">您选的时间段可能会加收夜间服务费,具体以与商家的沟通为准</view>
  203. </view>
  204. <block>
  205. <view class="popup-content popup-content-special">
  206. <view class="time-select-top" style="display: flex;">
  207. <scroll-view class="scroll-view_H" scroll-x="true" scroll-left="0">
  208. <view class="time-select-left-item" bindtap="dateCheck" data-index="{{index}}" data-week="{{item.week}}" data-date="{{item.date}}" data-isbook="{{item.isBook}}" wx:for="{{dateList}}" wx:key="index" style="display: inline-block;">
  209. <view class="date-line-wrapper">
  210. <view class="date-msg {{dateIndex == index ? 'current-date' : ''}} {{item.dateMsg != '' ? 'avail-date' : ''}}">
  211. {{item.weekOfDay}}
  212. </view>
  213. <view class="date-msg1 {{dateIndex == index ? 'current-date' : ''}} {{item.dateMsg != '' ? 'avail-date' : ''}}"> {{ filter.formatTime(item.bookdate)}}</view>
  214. <view class=" {{dateIndex == index ? 'current-line' : ''}} {{item.dateMsg != '' ? 'current-line0' : ''}}"></view>
  215. </view>
  216. </view>
  217. </scroll-view>
  218. </view>
  219. <view class="time-select-middle">
  220. <view class="noon-select">
  221. <view class="noon-item {{noonType=='1'?'active-noon':''}}" data-noon="1" bindtap="noonTab">上午</view>
  222. <view class="divider"></view>
  223. <view class="noon-item {{noonType=='2'?'active-noon':''}}" data-noon="2" bindtap="noonTab">下午</view>
  224. </view>
  225. <view class="time-item-wrapper">
  226. <view bindtap="timeCheck" data-stock="{{item.stock}}" data-index="{{index}}" data-msg="{{item.timeMsg}}" data-toastmsg="{{item.toastMsg}}" class="time-msg {{timeIndex == index ? 'current-time' : ''}} {{item.toastMsg != null ? 'avail-time' : ''}}" wx:for="{{timeList}}" wx:key="index">
  227. <view class="{{timeIndex === index ? 'current-time' : ''}}">{{ item.begin }}</view>
  228. </view>
  229. </view>
  230. <view class="appointment-tips">
  231. <view> <span></span>
  232. <text>可预约</text>
  233. </view>
  234. <view> <span class="selected"></span>
  235. <text>已选择</text>
  236. </view>
  237. <view> <span class="no-appointment"></span>
  238. <text>不可约</text>
  239. </view>
  240. </view>
  241. <view class="time-select-bottom" wx:if="{{date!=''&&time!=''&&week!=''}}">
  242. <span>当前选择:</span>{{date}}({{week}}){{time}}
  243. </view>
  244. </view>
  245. </view>
  246. </block>
  247. <!-- 确认按钮 -->
  248. <view class="popup-btn-wrapper">
  249. <view bindtap="confirmTime" class="confirm-btn">确定</view>
  250. </view>
  251. </view>
  252. <!-- 地址弹框 -->
  253. <view class="appoint-overlay-wrapper address-overlay" wx:if="{{ addressShow }}" bindtap="onAddressClose">
  254. <view class="address-popup" cantap="onAddressClick">
  255. <view class="title">
  256. 选择地址
  257. </view>
  258. <view class="address-list">
  259. <view class="address-item" wx:for="{{addressList}}" wx:key="index" data-address="{{item}}" bindtap="addressConfirm">
  260. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-order-map.png" class="map-img"></image>
  261. <view class="address-main">
  262. <view class="main-line">
  263. <view>{{item.name}}</view>
  264. <view class="phone">{{item.tel}}</view>
  265. </view>
  266. <view class="customer-address" wx:if="{{item.addressName}}">{{item.addressName}}{{item.detail}}</view>
  267. <view class="customer-address" wx:else="">{{item.addressDetail}}</view>
  268. </view>
  269. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/wx-dy/arrow-grey.png" class="arrow-img">
  270. </image>
  271. </view>
  272. </view>
  273. <view class="add-address-btn" bindtap="goAddAddress">添加其他地址</view>
  274. </view>
  275. </view>
  276. <!-- 备注弹框 -->
  277. <view class="appoint-overlay-wrapper remark-overlay" wx:if="{{ remarkPopupShow }}" bindtap="onRemarkPopupClose">
  278. <view class="remark-select" catchtap="onRemarkClick">
  279. <view class="title">
  280. 选择备注
  281. </view>
  282. <view class="remark-list">
  283. <view class="remark-item" wx:for="{{remarkList}}" wx:key="index" data-remark="{{item}}" catchtap="remarkItemSelect">
  284. <view class="remark-value">{{item}}</view>
  285. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-select-popup.png" class="radio-img" wx:if="{{remarkActive==item}}"></image>
  286. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-unselect-popup.png" class="radio-img" wx:else></image>
  287. </view>
  288. </view>
  289. <view class="remark-conf-btn" catchtap="remarkItemConfirm">提交备注</view>
  290. </view>
  291. </view>
  292. </view>