checkout.wxml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. <wxs src="../../../utils/formatFuc.wxs" module="formatFuc" />
  2. <view class="container">
  3. <view class="address-box">
  4. <view class="address-item address-empty" >
  5. <image class="map-icon" mode="aspectFit" src='/static/images/new/dingwei.png'></image>
  6. <view class="m">
  7. {{shopAddress}}
  8. </view>
  9. <view class="r">
  10. <!-- <van-icon name="arrow" /> -->
  11. </view>
  12. </view>
  13. </view>
  14. <view class="order-box" wx:if="{{couponId==24}}">
  15. <view class="order-item no-border">
  16. <view class="l">
  17. <text class="name">预约时间</text>
  18. </view>
  19. <view class="r">
  20. <picker mode="multiSelector" bindchange="bindMultiPickerChange" bindcolumnchange="bindMultiPickerColumnChange"
  21. value="{{multiIndex}}" range="{{multiArray}}">
  22. <text class="message-app txt">{{orderData}}</text>
  23. </picker>
  24. </view>
  25. </view>
  26. </view>
  27. <!-- 预约时间 -->
  28. <view class="appoint-time-block" wx:if="{{isNeedAppoint||couponId==24}}">
  29. <view class="appoint-time-operate">
  30. <view class="operate-left">
  31. 预约时间
  32. </view>
  33. <view class="operate-right" bindtap="showAppoint">
  34. <text class="not-select" wx:if="{{!isFinishAppoint}}">请选择</text>
  35. <text wx:if="{{isFinishAppoint}}">更改</text>
  36. <van-icon name="arrow" color="#2a2a2a" />
  37. </view>
  38. </view>
  39. <view class="appoint-time-show" wx:if="{{isFinishAppoint}}">
  40. <!-- 服务时间 -->
  41. <view class="one-time" wx:if="{{isOneAppoint}}">
  42. <text>服务时间</text>
  43. <text>{{oneTimeAppoint}}</text>
  44. </view>
  45. <view class="multi-times" wx:if="{{!isOneAppoint}}">
  46. <view class="multi-times-item">
  47. <text>服务频率</text>
  48. <text>{{activeTab==1?'一周1次':(activeTab==2?'一周2次':'二周1次')}}</text>
  49. </view>
  50. <view class="multi-times-item">
  51. <text>服务时间</text>
  52. <text>{{selectedDateList[0].weekStr+' '+selectedDateList[0].time}}</text>
  53. </view>
  54. <view class="multi-times-item" wx:if="{{activeTab==2}}">
  55. <text></text>
  56. <text>{{selectedDateList[1].weekStr+' '+selectedDateList[1].time}}</text>
  57. </view>
  58. <view class="multi-times-item">
  59. <text>首次服务时间</text>
  60. <text>{{firstAppointList[firstDateIndex].date}}</text>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. <!-- 多次预约结果 -->
  66. <view class="appoint-result" wx:if="{{appointFailTip}}">
  67. 根据您的预约需求,有<text class="orange-font">{{noSerTimes}}</text>个日期暂时无法提供预约服务,为您保留<text class="orange-font">{{noSerTimes}}</text>个保洁次卡,下单成功后在"<text class="orange-font">我的订单-查看服务</text>"里预约服务
  68. </view>
  69. <view class="order-box">
  70. <view class="order-item no-border">
  71. <view class="l">
  72. <text class="name">备注</text>
  73. </view>
  74. <view class="r">
  75. <input class="txt"
  76. disabled="{{remarkDisable}}"
  77. class="message-item" bindinput="bindMessageInput" placeholder="如需要,请输入备注信息" value="{{message}}" />
  78. </view>
  79. </view>
  80. </view>
  81. <!-- 商品详情 -->
  82. <view class="goods-items">
  83. <view class="item" wx:for="{{checkedGoodsList}}" wx:key="id">
  84. <!-- <view class="name">{{item.goodsName}}</view> -->
  85. <view style="display: flex;">
  86. <view class="img">
  87. <image src="{{item.picAddress.length>=1?item.picAddress[0]:''}}" mode="aspectFill"></image>
  88. </view>
  89. <view class="info">
  90. <view class="name">{{item.skuName}}</view>
  91. <view class="m" style="margin-top:20rpx">规格:{{item.propertyValue}}</view>
  92. <view class="m">skuCode:{{item.skuCode}}</view>
  93. <view class="b">单价:¥{{item.salePrice}}</view>
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. <!-- 分享进来并且是客户的,不展示会员信息 -->
  99. <!-- 超级鲸会员 -->
  100. <!-- 开通会员 -->
  101. <!-- <block hidden="{{shareId!=0&&!userInfo.isDis}}">
  102. <view class="member-benefit" wx:if="{{isMember}}">
  103. <view class="member-tag">
  104. <text>超级鲸会员</text>
  105. </view>
  106. <view class="member-tip">会员专享已省{{memberDiscount}}元</view>
  107. </view>
  108. <view class="buy-member" wx:else bindtap="goBuyMember">
  109. <view class="member-tag">
  110. <text>超级鲸会员</text>
  111. </view>
  112. <view class="member-tip">开通会员,本单立省{{memberDiscount}}元</view>
  113. <van-icon name="arrow" color="#85868A"/>
  114. </view>
  115. </block> -->
  116. <view class="actual-price">
  117. 数量:<text>{{buyNumber}}</text>
  118. </view>
  119. <view class="actual-price">
  120. 需支付:<text>¥{{actualPrice}}</text>
  121. </view>
  122. <view class="go-pay-wrapper">
  123. <!-- submitOrder -->
  124. <van-button type="info" block round bindtap="orderPay">去付款</van-button>
  125. </view>
  126. <!-- custom-style="height: 80%" -->
  127. <van-popup
  128. show="{{ choosePopup }}"
  129. round
  130. position="bottom"
  131. bind:click-overlay="onClose"
  132. >
  133. <view class="popup-wrapper {{popupType==1?'popup-wrapper-special':''}}">
  134. <!-- 标题 -->
  135. <view class="popup-title {{popupType==1?'popup-title-special':''}}">
  136. {{popupType==1?'选择预约时间':(popupType==2?'选择服务频次':'选择首次预约时间')}}
  137. </view>
  138. <block wx:if="{{popupType==1}}">
  139. <view class="popup-content {{popupType==1?'popup-content-special':''}}">
  140. <view class="time-select-left">
  141. <view wx:for="{{dateList}}" wx:key="index" class="time-select-left-item" bindtap="dateCheck" data-week="{{item.week}}" data-index="{{index}}" data-date="{{item.date}}">
  142. <!-- <view hidden="{{index>1}}" class="date-tag">{{index==0?'明天':'后天'}}</view> -->
  143. <view>
  144. <text wx:if="{{index<=1}}" class="date-tag">{{index==0?'明天':'后天'}}</text>
  145. <!-- <text hidden="{{index>=2}}" class="full-time">约满</text> -->
  146. <text wx:if="{{checkedGoodsList[0].goodsId != 1190332&&(index<=1||(index<=7&&(item.week=='周六'||item.week=='周日')))}}" class="full-time">约满</text>
  147. </view>
  148. <view class="{{dateIndex==index?'current-date':''}}">{{item.date+' '+item.week}}</view>
  149. </view>
  150. </view>
  151. <view class="time-select-right">
  152. <view wx:for="{{timeList}}" wx:key="id" class="time-select-right-item" bindtap="timeCheck" data-index="{{index}}">
  153. <view class="{{timeIndex==index?'current-date':''}}">{{item.time}}</view>
  154. <view wx:if="{{timeIndex==index}}" class="date-tag">已选</view>
  155. </view>
  156. </view>
  157. </view>
  158. </block>
  159. <!-- 选择频次 -->
  160. <block wx:if="{{popupType==2}}">
  161. <van-tabs wx:if="{{ choosePopup }}" active="{{ activeTab }}" color="#09afff" bind:change="onTabChange">
  162. <van-tab title="一周1次" name="1"></van-tab>
  163. <van-tab title="一周2次" name="2"></van-tab>
  164. <van-tab title="二周1次" name="3"></van-tab>
  165. </van-tabs>
  166. <view class="popup-content select-week-times">
  167. <view class="time-select-left week-select-left">
  168. <view wx:for="{{weekArrList}}" wx:key="index" class="time-select-left-item " bindtap="weekCheck" data-index="{{index}}">
  169. <view class="week-str {{weekIndex==index?'current-date':''}}">{{item.week}}</view>
  170. <view class="select-num-tag" wx:if="{{item.num>0}}">{{item.num}}</view>
  171. </view>
  172. </view>
  173. <view class="time-select-right">
  174. <view wx:for="{{timeList}}" wx:key="id" class="time-select-right-item" bindtap="timeSelect" data-index="{{index}}" data-time="{{item.time}}">
  175. <!-- <view class="{{formatFuc.defineIndexOf(selectedWeekList,weekIndex)>-1?'current-date':''}}">{{item.time}}</view>
  176. <view wx:if="{{formatFuc.defineIndexOf(selectedWeekList,weekIndex)>-1}}" class="date-tag">已选</view> -->
  177. <view class="{{formatFuc.includeItem(selectedDateList,weekIndex,item.time)&&formatFuc.defineIndexOf(selectedWeekList,weekIndex)>-1?'current-date':''}}">{{item.time}}</view>
  178. <view wx:if="{{formatFuc.includeItem(selectedDateList,weekIndex,item.time)&&formatFuc.defineIndexOf(selectedWeekList,weekIndex)>-1}}" class="date-tag">已选</view>
  179. </view>
  180. </view>
  181. </view>
  182. </block>
  183. <!-- 选择首次预约时间 -->
  184. <block wx:if="{{popupType==3}}">
  185. <view class="popup-content">
  186. <view class="first-appoint-date-list">
  187. <view class="first-appoint-date-item" wx:for="{{firstAppointList}}" wx:key="index" bindtap="firstDateCheck" data-index="{{index}}">
  188. <view class="{{firstDateIndex==index?'current-date':''}}">{{item.date+' '+item.week}}</view>
  189. <view wx:if="{{firstDateIndex==index}}" class="first-time-selected date-tag">已选</view>
  190. </view>
  191. </view>
  192. </view>
  193. </block>
  194. </view>
  195. <!-- 确认按钮 -->
  196. <view class="popup-btn-wrapper {{popupType==1?'popup-btn-special':''}}">
  197. <van-button type="info" block round bindtap="confirmTime">确定</van-button>
  198. </view>
  199. </van-popup>
  200. <!-- 支付失败弹框 -->
  201. <van-overlay show="{{ payFailShow }}" >
  202. <view class="overlay-wrapper">
  203. <view class="fail-wrapper">
  204. <view class="fail-top">
  205. <image src="/static/images/new/icon-fail.png"></image>
  206. <view class="fail-text">支付失败</view>
  207. <view class="sub-color">支付遇到问题,请尝试重新支付</view>
  208. </view>
  209. <view class="fail-bottom">
  210. <view class="cancel-btn" bindtap="cancelPay">取消</view>
  211. <view class="btn-devide"></view>
  212. <view class="repay-btn" bindtap="rePay">重新支付</view>
  213. </view>
  214. </view>
  215. </view>
  216. </van-overlay>
  217. </view>