confirmProjectOrder.wxml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <!--pages/orderDetailsProject/orderDetailsProject.wxml-->
  2. <wxs src="./../../utils/wxsUtil.wxs" module="wxsUtil" />
  3. <view class="content">
  4. <view class="line-spc"></view>
  5. <view class="border-content">
  6. <view class="title-line">
  7. <view class="title-left">预约门店:</view>
  8. <view class="title-content">{{orderDetails.store_name}}</view>
  9. <view class="inLocations" style="font-size:28rpx">
  10. <image class="inLocationImage" src="/images/location-to.png"></image>
  11. <view class="inLocationDistance">
  12. 距离您<text>{{wxsUtil.getDistance(lat1,lng1,orderDetails.latitude,orderDetails.longitude)}}</text>Km
  13. </view>
  14. </view>
  15. </view>
  16. <view class="title-line1">
  17. <view class="title-left">门店地址:</view>
  18. <view class="title-value">{{orderDetails.address}}</view>
  19. </view>
  20. </view>
  21. <view class="border-content">
  22. <view class="title-line">
  23. <view class="title-left">美容时间:</view>
  24. <view class="title-content">{{orderDetails.order_time}}<text></text></view>
  25. </view>
  26. </view>
  27. <view class="border-content flex-column">
  28. <!-- <view class="project-list"> -->
  29. <view class="peoject-list-title">共<text>{{orderDetails.project_list.length}}</text>个项目</view>
  30. <!-- </view> -->
  31. <view class="project-content" wx:for="{{orderDetails.project_list}}" wx:key='index'>
  32. <image class="project-content-img" src="{{item.cover_url}}"></image>
  33. <view class="project-content-right">
  34. <view class="item-right-time">
  35. <!-- <view class="item-right-title">{{item.name}}</view> -->
  36. <view class="item-right-title">{{item.name}}</view>
  37. <view class="item-right-title-time">¥<text>{{item.price}}</text></view>
  38. </view>
  39. <view class="item-project-add" hidden="{{item.product_name?false:true}}">
  40. +{{item.product_name}}</view>
  41. <view class="item-project-house">{{item.device_name}}({{item.room}}){{item.use_time}}分钟</view>
  42. <!-- <view class="item-project-add">+润百颜精华</view> -->
  43. </view>
  44. </view>
  45. </view>
  46. <view class="border-content">
  47. <view class="line-title-coup">
  48. <view class="coup-title">预约费用</view>
  49. <view class="coup-value">¥{{orderDetails.price}}</view>
  50. </view>
  51. <view class="coup-select" catchtap="showCard">
  52. <image class="coup-select-img" src="/images/card.png"></image>
  53. <view class="coup-select-title">次卡</view>
  54. <view class="coup-select-tag" wx:if="{{card_data.length>0}}">已选择次卡</view>
  55. <view class="spc-in"></view>
  56. <image class="right-black" src="/images/list-ker-right.png"></image>
  57. </view>
  58. <view class="coup-item" wx:for="{{selectCardProjectList}}" wx:key='index'>
  59. <view class="coup-item-left">{{item.name}}</view>
  60. <view class="coup-item-right">-¥{{item.price}}</view>
  61. </view>
  62. <view class="coup-select" catchtap="showCoup">
  63. <image class="coup-select-img" src="/images/icon_order_coupon.png"></image>
  64. <view class="coup-select-title">优惠券</view>
  65. <view class="coup-select-tag" wx:if="{{isSelectCoup.length>0}}">已选推荐优惠</view>
  66. <view class="spc-in"></view>
  67. <image class="right-black" src="/images/list-ker-right.png"></image>
  68. </view>
  69. <view class="coup-item" wx:for="{{isSelectCoup}}" wx:key='index'>
  70. <view class="coup-item-left">{{item.name}}</view>
  71. <view class="ellipsis coup-item-right" hidden="{{item.type==4?false:true}}">抵扣{{item.projectName}}</view>
  72. <view class="coup-item-right" hidden="{{item.type==3?false:true}}">抵扣全部项目(除升级包)</view>
  73. <view class="coup-item-right" hidden="{{item.type==2?false:true}}">¥{{item.price}}</view>
  74. <view class="coup-item-right" hidden="{{item.type==1?false:true}}">¥{{item.price}}</view>
  75. <!-- <view class="coup-item-right" hidden="{{item.type==1?false:true}}">¥{{item.price}}</view> -->
  76. <view class="coup-item-right" hidden="{{item.type == 0?false:true}}">-¥{{item.price}}</view>
  77. </view>
  78. <view class="coup-select">
  79. <image class="coup-select-img" src="/images/display.png"></image>
  80. <view class="coup-select-title">折扣优惠</view>
  81. <view class="spc-in"></view>
  82. <view class="color-price">-¥{{priceSet}}</view>
  83. </view>
  84. <view wx:if="{{level!=0}}" class="coup-box">
  85. <view class="coup-box-title">权益折扣</view>
  86. <view class="spc-in">
  87. </view>
  88. <!-- <view class="color-price">-¥{{priceSet}}</view> -->
  89. <view class="coup-box-title">余额支付享受{{tolevel}}折优惠</view>
  90. </view>
  91. <view class="line-show"></view>
  92. <view class="need-pay-money">
  93. <view class="need-pay-title">合计</view>
  94. <view class="need-pay-totalmoney"><text>¥</text>{{showMoney}}</view>
  95. </view>
  96. </view>
  97. <view class="border-content">
  98. <view class="title-line">
  99. <view class="title-left">订单编号:</view>
  100. <view class="not-flex">{{orderDetails.order_sn}}</view>
  101. <view class="copy" catchtap="onCopy" data-no="{{orderDetails.order_sn}}">复制</view>
  102. </view>
  103. <view class="title-line">
  104. <view class="title-left">预约时间:</view>
  105. <view class="title-content-flex">{{orderDetails.order_time}}</view>
  106. </view>
  107. <!-- <view class="title-line">
  108. <view class="title-left">支付时间</view>
  109. <view class="title-content-flex">2021-12-03 10:00</view>
  110. </view> -->
  111. </view>
  112. <view style="width:20px;height:100px"></view>
  113. </view>
  114. <view class="btm-content">
  115. <view class="btm-line" catchtap="payNow">立即支付</view>
  116. </view>
  117. <wux-popup class="popup-radius" position="bottom" catchtouchmove="true" visible="{{ visible }}" bind:close="onClose">
  118. <view class="coupon-popup">
  119. <view class="top flex-align-center need-show-line">
  120. <text style="text-align: center;">我的优惠券</text>
  121. <image src="/images/icon_20.png" class="close-img" bindtap="onCancelCoupon" />
  122. </view>
  123. <scroll-view scroll-y>
  124. <view class="list">
  125. <view class="component-coupon-item flex-justify-center flex-column {{1 == 1 ? '' : 'invalid' }} marginTop"
  126. wx:for="{{productDiscount}}" wx:key='index'>
  127. <view class="coupon-item-mark">{{marks[item.type]}}</view>
  128. <view class="coupon-item-content" catchtap="checkSelect" data-index="{{index}}">
  129. <view class="coupon-item-money">
  130. <view class="coupon-item-money-detail flex-row justify-between" style="margin-top: 30rpx;"
  131. wx:if="{{item.type == 3 || item.type == 4}}">
  132. <text class="yuan" style="font-size: 44rpx">全免</text>
  133. </view>
  134. <view class="coupon-item-money-detail flex-row justify-between {{item.type == 2 ? 'line2' : ''}}" wx:else>
  135. <text class="currency">¥</text>
  136. <text class="yuan">{{item.price}}</text>
  137. <!-- <text class="fen">.00</text> -->
  138. </view>
  139. <text class="coupon-item-limit-text ellipsis" wx:if="{{item.type == 2}}">满{{item.full_price}}元可用</text>
  140. </view>
  141. <view class="coupon-item-title flex-col justify-between flex1">
  142. <text class="ellipsis">{{item.coupon_name}}</text>
  143. <text class="coupon-time ellipsis">有效期{{item.ex_time}}</text>
  144. </view>
  145. <view wx:if="{{!source&&couponStatus==0}}" class="coupon-item-btn1 flex-col justify-center align-center"
  146. catchtap="checkSelect" data-index="{{index}}">
  147. 去使用
  148. </view>
  149. <view wx:elif="{{1==1}}" class="coupon-item-btn2 flex-col justify-center align-center"
  150. catchtap="checkSelect" data-index="{{index}}">
  151. <image src="{{item.isSelect ? '/images/icon_17.png' : '/images/icon_16.png'}}"></image>
  152. </view>
  153. </view>
  154. <!-- 0待使用,1已使用,2已过期 -->
  155. <image class="coupon-item-status-icon" wx:if="{{couponStatus == 1 || couponStatus == 2}}"
  156. src="{{couponStatus == 1 ? '/images/my/icon_coupon_used.png' : '/images/my/icon_coupon_expired.png'}}">
  157. </image>
  158. <view class="coupon-item-line flex-col"></view>
  159. <view class="coupon-item-rules flex-row flex-center" bindtap="clickRuleText" data-index="{{index}}">
  160. <text
  161. class="coupon-item-rules-text {{showRuleText==index ? ' rules-show ' : ' ellipsis '}}">{{item.coupon_desc}}</text>
  162. <view class="flex-center" style="justify-content: flex-end;">
  163. <image style="{{showRuleText==index ? 'transform: rotate(180deg);' : ''}}"
  164. src="{{couponStatus == 0 ? '/images/icon_arrow_2.png' : '/images/icon_arrow_gray.png'}}"></image>
  165. </view>
  166. </view>
  167. </view>
  168. <!-- <coupon-item class="coupon-item" wx:for="{{ productDiscount }}" item="{{item}}" wx:key="index"
  169. data-index="{{index}}" source="checkbox" couponStatus="{{item.status}}" checkStatus="{{CouPonIndex[index]}}"
  170. bind:check="onCouponChange"></coupon-item> -->
  171. <view class="btm-text">--已经到底了--</view>
  172. </view>
  173. </scroll-view>
  174. <view class="coupon-popup-btm flex-center">
  175. <view class="coupon-popup-btm-btn flex-center" bindtap="onConfirmCoupon">确认</view>
  176. </view>
  177. </view>
  178. </wux-popup>
  179. <wux-popup class="popup-radius" position="bottom" catchtouchmove="true" visible="{{ payNow }}" bind:close="onClosePay">
  180. <view class="coupon-popup payType">
  181. <view class="top flex-align-center">
  182. <text style="text-align: center;"></text>
  183. <image src="/images/icon_20.png" class="close-img" bindtap="onClosePay" />
  184. </view>
  185. <view class="moneyShow"><text>¥</text>{{ level?pay_methon==2?levelPrice:showMoney:showMoney }}</view>
  186. <view class="select-pay-methon" catchtap="pay_methonw">
  187. <image class="pay-img" src="/images/wx_pay.png"></image>
  188. <view class="pay-title">微信支付</view>
  189. <!-- <view class="pay-money"><text>¥</text>800</view> -->
  190. <image class="select-activity" src="{{pay_methon==1?'/images/icon_13.png':'/images/icon_12.png'}}"></image>
  191. </view>
  192. <view class="select-pay-methon" catchtap="pay_methonc" style="margin-bottom: 15rpx;">
  193. <image class="pay-img" src="/images/joli_pay.png"></image>
  194. <view class="pay-title">储值支付</view>
  195. <view class="pay-money"><text>¥</text>{{inserllAmount}}</view>
  196. <image class="select-activity" src="{{pay_methon==2?'/images/icon_13.png':'/images/icon_12.png'}}"></image>
  197. </view>
  198. <view wx:if="{{level!=0}}" class="coup-box-title" style="text-align: left; margin-left: 90rpx;">权益优惠减¥{{toLevelPrice}}</view>
  199. <view class="coupon-popup-btm flex-center">
  200. <view class="coupon-popup-btm-btn flex-center" bindtap="paybtm">支付</view>
  201. </view>
  202. </view>
  203. </wux-popup>
  204. <wux-popup class="popup-radius" position="bottom" catchtouchmove="true" visible="{{ visibleCard }}" bind:close="onCloseCard">
  205. <view class="coupon-popup">
  206. <view class="top flex-align-center need-show-line">
  207. <text style="text-align: center;">我的次卡</text>
  208. <image src="/images/icon_20.png" class="close-img" bindtap="onCancelCard" />
  209. </view>
  210. <scroll-view scroll-y>
  211. <view class="list cardList">
  212. <view class="content">
  213. <view class="conItem" wx:for="{{cardList}}" wx:key="index" bindtap="jumpCard" data-id="{{item.id}}">
  214. <view class="leftLine"></view>
  215. <view class="right">
  216. <view class="titleFrequency">
  217. <view class="title">{{item.name}}</view>
  218. <view class="frequency">
  219. <text class="usedTimes">{{item.used_num}}</text>
  220. <text class="totalFrequency">/{{item.total_num}}</text>
  221. </view>
  222. </view>
  223. <view class="beOverdueToUse {{item.day == '' ? 'hideRight' : ''}}">
  224. <view class="beOverdue {{item.day == '' ? 'hide' : ''}}">
  225. <text class="beOverdueItem">还有</text>
  226. <text class="beOverdueItem {{item.day < 15 ? 'tips' : ''}}">{{item.day}}天</text>
  227. <text class="beOverdueItem">({{item.expir_date}})过期</text>
  228. </view>
  229. <view class="cardImgCon" bindtap="cardSel" data-item = "{{item}}" data-index="{{index}}">
  230. <image class="cardImg" src="{{item.isSelectCard ? '/images/icon_17.png' : '/images/icon_16.png'}}"></image>
  231. </view>
  232. </view>
  233. </view>
  234. <view class="cardBg">
  235. <image src="/images/cardBg.png"></image>
  236. </view>
  237. </view>
  238. </view>
  239. <view class="btm-text">--已经到底了--</view>
  240. </view>
  241. </scroll-view>
  242. <view class="coupon-popup-btm flex-center">
  243. <view class="coupon-popup-btm-btn flex-center" bindtap="onConfirmCard">确认</view>
  244. </view>
  245. </view>
  246. </wux-popup>