scanAppointOrder.wxml 14 KB

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