orderConfirm.wxml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. <import src="/components/local/wxParse/wxParse.wxml" />
  2. <wxs module="tool" src="../../app.wxs" />
  3. <wxs src="./../../utils/wxsUtil.wxs" module="wxsUtil" />
  4. <view wx:if="{{detail.id || detail.project_id}}" class="item margin item-radius current{{current}}">
  5. <view class="item-top flex-align-center ">
  6. <text class="flex1 ellipsis">{{detail.name}}</text>
  7. </view>
  8. <view>
  9. <view class="item-content flex">
  10. <image class="img" src="{{detail.banner_urls.length > 0 ? detail.banner_urls[0] : '' || deviceData.cover_url}}"></image>
  11. <view class="content flex-column">
  12. <view class="content-text-box flex1" wx:if="{{source != 'secondaryCard'}}">
  13. <text style="color:#999;">{{source == 'cardgoods' ? '可用店铺:' : '预约店铺:'}}</text>
  14. <text class="flex1 ellipsis">{{deviceData.store_name || detail.store_name}}</text>
  15. </view>
  16. <view class="content-text-box flex1">
  17. <text style="color:#999;">{{source == 'cardgoods' ? '可用时间:' : source == 'secondaryCard' ? '有效期:' : '使用时间:'}}</text>
  18. <text class="flex1 ellipsis" wx:if="{{detail.days}}">{{detail.days}}天</text>
  19. <text class="flex1 ellipsis" wx:if="{{detail.take_out_time_max}}">{{detail.take_out_time_max}}之前</text>
  20. <text class="flex1 ellipsis" wx:else>{{tool.replaceStr(timeData.order_day)}} {{tool.replaceStr(timeData.order_time)}}</text>
  21. </view>
  22. <view class="content-text-box flex1" wx:if="{{deviceData.device_name}}">
  23. <text style="color:#999;">使用设备:</text>
  24. <text class="flex1 ellipsis">{{deviceData.device_name}}</text>
  25. </view>
  26. <view class="content-text-box flex1" wx:else></view>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="item-btn flex-align-center">
  31. <text style="font-size: 28rpx;color: #999;">{{source == 'cardgoods' ? '购买费用:' : source == 'secondaryCard' ? '价格:' : '预约费用:'}}</text>
  32. <text style="font-size: 36rpx;font-family: PingFang-SC-Medium, PingFang-SC;font-weight: 500;margin-right:24rpx;" wx:if="{{source == 'secondaryCard'}}">¥{{detail.price}}</text>
  33. <text style="font-size: 36rpx;font-family: PingFang-SC-Medium, PingFang-SC;font-weight: 500;margin-right:24rpx;" wx:else>¥{{moneyData.projectWithGoodsPrice}}</text>
  34. </view>
  35. </view>
  36. <!-- 次卡分配详情 -->
  37. <view class="card-details">
  38. <view class="card-details-title">次卡详情</view>
  39. <!-- 固定次数次卡分配 -->
  40. <block wx:for="{{cardDetail}}" wx:key="id">
  41. <view wx:if="{{cardDetail}}" class="card-details-fixed" wx:if="{{item.time!=0}}">
  42. <text class="card-details-fixed-text">{{item.project_name}}</text>
  43. <text>{{item.time}}次</text>
  44. </view>
  45. </block>
  46. <!-- 用户选择分配次数 -->
  47. <view wx:for="{{Ac_cardDetail}}" class="card-details-Active" wx:key="index">
  48. <view class="card-details-Active-tittle">{{item.group_name}}</view>
  49. <block wx:for="{{item.project_list}}" wx:for-item="detail" wx:key="id">
  50. <view class="card-details-active">
  51. <text>{{detail.project_name}}</text>
  52. <view class="calculation">
  53. <view class="lation-content">
  54. <view class="reduce" data-id='{{item.Idindex}}' data-index='{{index}}' bindtap="onReduce">-</view>
  55. <view class="lation-num">{{detail.time}}</view>
  56. <view class="lation-add" data-index='{{index}}' data-id='{{item.Idindex}}' bindtap="onLationAdd">+</view>
  57. </view>
  58. </view>
  59. </view>
  60. </block>
  61. <view class="card-details-surplus">
  62. 剩余分配次数:<text>{{item.total_time}}</text>
  63. </view>
  64. </view>
  65. </view>
  66. <!-- 低价换购 -->
  67. <view class="exchange-details" wx:if="{{cardExchangeList.length!=0}}">
  68. <view class="exchange-details-title">低价换购</view>
  69. <view class="exchange-box" wx:for="{{cardExchangeList}}" wx:key="index">
  70. <view class="exchange-box-image">
  71. <image src="{{item.cover_url}}"></image>
  72. </view>
  73. <view class="exchange-info">
  74. <view class="exchange-info-title">
  75. {{item.project_name}}
  76. </view>
  77. <view class="exchange-info-bottom">
  78. <view class="exchange-info-price">
  79. ¥{{item.price}}
  80. </view>
  81. <image style="margin: 0;" class="select-activity" data-index="{{index}}" bindtap="selectExchange" src="{{selectExchange==0?'/images/icon_12.png':'/images/icon_13.png'}}"></image>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <!-- 项目耗材下单时,传入的产品信息 -->
  87. <view wx:if="{{productDetail}}" class="item margin item-radius">
  88. <view class="item-top flex-align-center ">
  89. <text class="flex1 ellipsis">{{productDetail.name}}</text>
  90. </view>
  91. <view>
  92. <view class="item-content flex">
  93. <image class="img" src="{{productDetail.banner_urls.length > 0 ? productDetail.banner_urls[0] : ''}}"></image>
  94. <view class="content flex-column">
  95. <view class="content-text-box flex">
  96. <text style="color:#999;">预约店铺:</text>
  97. <text class="flex1 ellipsis">{{productDetail.store_name || deviceData.store_name}}</text>
  98. </view>
  99. <view class="content-text-box flex">
  100. <text style="color:#999;">使用时间:</text>
  101. <text wx:if="{{projectOrderData.order_time}}" class="flex1 ellipsis">{{projectOrderData.order_time}}</text>
  102. <text wx:else class="flex1 ellipsis">{{tool.replaceStr(timeData.order_day)}} {{tool.replaceStr(timeData.order_time)}}</text>
  103. </view>
  104. <view class="content-text-box flex" wx:if="{{detail.name}}">
  105. <text style="color:#999;">使用项目:</text>
  106. <text class="flex1 ellipsis">{{detail.name}}</text>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. <view class="item-btn flex-align-center">
  112. <text style="font-size: 28rpx;">预约费用:</text>
  113. <text style="font-size: 36rpx;font-family: PingFang-SC-Medium, PingFang-SC;font-weight: 500;margin-right:24rpx;">¥{{moneyData.productPrice}}</text>
  114. </view>
  115. </view>
  116. <view class="list_Content_show" hidden="{{inFirstIn?false:true}}">
  117. <view class="timeSelect">
  118. <view class="timeShow">未选优惠券</view>
  119. </view>
  120. <image class="list_Content_img" src="/images/white_on.png"></image>
  121. <view class="list_top_contents">
  122. <view class="first_and_title"><text>第二步:</text>选择您的优惠卷/卡</view>
  123. </view>
  124. </view>
  125. <view class="margin order-sum item-radius">
  126. <view class="top">
  127. <view class="text flex" wx:if="{{source != 'secondaryCard'}}">
  128. <text class="flex1">预约费用</text>
  129. <view class="right-500">
  130. <text wx:if="{{source == 'product_with_project_order'}}">¥{{productDetail.price}}</text>
  131. <text wx:else>¥{{wxsUtil.calculateMoney([moneyData.projectWithGoodsPrice, moneyData.productPrice])}}</text>
  132. </view>
  133. </view>
  134. <!-- 折扣 -->
  135. <!-- <view class="text flex" style="margin-bottom: 0;">
  136. <view class="coupon flex flex1 flex-align-center">
  137. <image class="order-coupon-icon" src="/images/display.png" />
  138. <text>折扣优惠</text>
  139. </view>
  140. </view> -->
  141. <!-- <view wx:if="{{level!=0}}" class="coup-box">
  142. <view class="coup-box-title">权益折扣</view>
  143. <view class="spc-in">
  144. </view> -->
  145. <!-- <view class="color-price">-¥{{priceSet}}</view> -->
  146. <!-- <view class="coup-box-title">余额支付享受{{tolevel}}折优惠</view>
  147. </view> -->
  148. <view class="text flex" bindtap="onCouponOpen">
  149. <view class="coupon flex flex1 flex-align-center">
  150. <image class="order-coupon-icon" src="/images/icon_order_coupon.png" />
  151. <text>优惠券</text>
  152. </view>
  153. <view class="flex-align-center right-500">
  154. <text class="coupon-guide-tips" wx:if="{{couponList.length > 0 && currentChangeCoupon == null && memberCardCurrentDiscount != 0}}">未选优惠券</text>
  155. <text style="color: #FF3007;" wx:elif="{{ couponList.length > 0 && currentChangeCoupon != null && memberCardCurrentDiscount != 0}}">-¥{{moneyData.couponMoney}}</text>
  156. <text wx:else style="color: #bbb;">无可用</text>
  157. <image src="/images/my/right.png" style="width: 24rpx;height: 24rpx;"></image>
  158. </view>
  159. </view>
  160. <view class="text flex-center" hidden="{{true}}">
  161. <image class="order-coupon-icon" src="/images/icon_order_vip.png" />
  162. <text class="flex1">会员抵扣</text>
  163. <view class="flex-center right-500">
  164. <text style="color: #bbb;" wx:if="{{memberDiscountStatus < 1 || currentCoupon != -1}}">无可用</text>
  165. <picker bindchange="bindPickerChange" value="{{index}}" range="{{array}}" wx:else>
  166. <text class="flex-center" style="color: #FF3007;" wx:if="{{memberCardCurrentDiscount == 0}}">{{'-¥'+moneyData.memberDiscountMoney}}</text>
  167. <text class="flex-center" wx:else>{{memberCardCurrentDiscount < 0 ? '去选择' : array[memberCardCurrentDiscount] }}</text>
  168. </picker>
  169. </view>
  170. <image src="/images/my/right.png" style="width: 24rpx;height: 24rpx;"></image>
  171. </view>
  172. </view>
  173. <view class="bottom flex-align-center" wx:if="{{source != 'secondaryCard'}}">
  174. <text style="font-size: 28rpx;color: #999;">合计:</text>
  175. <text class="total-price">¥{{ wxsUtil.calculateMoney([moneyData.projectWithGoodsPrice, moneyData.productPrice, moneyData.couponMoney * -1, moneyData.memberDiscountMoney * -1]) }}</text>
  176. </view>
  177. <view class="bottom flex-align-center" wx:else>
  178. <text style="font-size: 28rpx;color: #999;">合计:</text>
  179. <text class="total-price">¥{{selectExchange==1?exchangePrice:detail.price}}</text>
  180. </view>
  181. </view>
  182. <!-- <view class="item-radius" wx:if="{{recommendMemberCard.id}}"> -->
  183. <view class="item-radius" hidden="{{true}}">
  184. <view class="item-top flex-align-center ">
  185. <text class="ellipsis" style="font-size: 28rpx;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;">开通会员本单立省</text>
  186. <text style="font-size: 36rpx;font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;color: #FF3007;">¥{{moneyData.memberDiscountMoney}}</text>
  187. </view>
  188. <view class="item-vip flex-align-center" bindtap="selectMemberCard" data-id="{{recommendMemberCard.id}}">
  189. <image class="change-img" src="{{selectCardId ? '/images/icon_17.png' : '/images/icon_16.png'}}"></image>
  190. <view class="flex1 flex item-vip-card">
  191. <image class="card-img" src="{{recommendMemberCard.cover_url}}"></image>
  192. <view class="flex1 flex-column flex-justify-space-between" style="padding:20rpx;">
  193. <view class="flex-align-center flex-justify-space-between">
  194. <text>{{recommendMemberCard.card_name}}</text>
  195. <image src="/images/icon_19.png" style="width:56rpx;height:56rpx;" catchtap="onOpenLandscape"></image>
  196. </view>
  197. <text style="font-size: 36rpx;">¥{{recommendMemberCard.price}}</text>
  198. </view>
  199. </view>
  200. </view>
  201. </view>
  202. <view class="item-radius" style="background-color: #fff;" wx:if="{{projectProducts.length > 0}}">
  203. <view class="item-top flex-align-center ">
  204. <text class="flex1 ellipsis">升级产品</text>
  205. </view>
  206. <view class="item-products-content flex">
  207. <view class="item-product flex" wx:for="{{ projectProducts }}" wx:key="index" bindtap="selectProjectProduct" data-id="{{item.id}}" data-index="{{index}}">
  208. <image src="{{item.cover_url}}"></image>
  209. <view class="flex1 flex-column flex-justify-space-between ellipsis" style="padding: 20rpx;">
  210. <text class="ellipsis" style="font-size: 28rpx;font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;">{{item.product_name}}</text>
  211. <view class="flex-justify-space-between">
  212. <text style="font-size: 36rpx;font-family: PingFangSC-Semibold, PingFang SC;font-weight: 600;">¥{{selectCardId || memberStatus == 1 || detail.is_member == 1 ? item.member_price : item.price}}</text>
  213. <image src="{{selectProductIndex == index ? '/images/icon_17.png' : '/images/icon_16.png'}}" style="width:48rpx;height:48rpx;"></image>
  214. </view>
  215. </view>
  216. </view>
  217. </view>
  218. </view>
  219. <view style="height:170rpx;"></view>
  220. <view class="buy flex-align-center flex-justify-space-between" style="padding: 0 20rpx;">
  221. <view class="flex-align-center" wx:if="{{source != 'secondaryCard'}}">
  222. <text style="font-size: 28rpx;">合计:</text>
  223. <text class="total-pay-price">¥{{ moneyData.payMoney }}</text>
  224. </view>
  225. <view class="flex-align-center" wx:else>
  226. <text style="font-size: 28rpx;">合计:</text>
  227. <text class="total-pay-price">¥{{ selectExchange==1?exchangePrice:detail.price }}</text>
  228. </view>
  229. <view wx:if="{{source == 'product_with_project_order'}}" class="btn use-btn flex-center" bindtap="onProductPay">
  230. 提交订单
  231. </view>
  232. <view wx:elif="{{source == 'goods'}}" class="btn use-btn flex-center" bindtap="onGoodsPay">
  233. 提交订单
  234. </view>
  235. <view wx:elif="{{source == 'cardgoods'}}" class="btn use-btn flex-center" bindtap="onCardgoodsPay">
  236. 提交订单
  237. </view>
  238. <view wx:elif="{{source == 'secondaryCard'}}" class="btn use-btn flex-center" bindtap="onSecondaryCardPay">
  239. 提交订单
  240. </view>
  241. <view wx:else class="btn use-btn flex-center" bindtap="onPay" id="payProject">提交订单</view>
  242. </view>
  243. <wux-landscape visible="{{ visibleLandscape }}" maskClosable="{{ true }}" closable="{{ false }}" bind:close="onCloseLandscape" class="skin-popup" catchtouchmove="true">
  244. <view class="use-popup flex-column">
  245. <view class="text-cotent">
  246. <template is="wxParse" data="{{wxParseData:article.nodes}}" />
  247. </view>
  248. <image src="/images/icon_20.png" class="close-img" bindtap="onCloseLandscape"></image>
  249. </view>
  250. </wux-landscape>
  251. <wux-popup class="popup-radius" position="bottom" catchtouchmove="true" visible="{{ visible }}" bind:close="onClose">
  252. <view class="coupon-popup">
  253. <view class="top flex-align-center need-show-line">
  254. <text style="text-align: center;">我的优惠券</text>
  255. <image src="/images/icon_20.png" class="close-img" bindtap="onCancelCoupon" />
  256. </view>
  257. <scroll-view scroll-y>
  258. <view class="list">
  259. <coupon-item class="coupon-item" wx:for="{{ couponList }}" item="{{item}}" wx:key="index" data-index="{{index}}" source="checkbox" couponStatus="{{item.status}}" checkStatus="{{currentCoupon == index}}" bind:check="onCouponChange"></coupon-item>
  260. <view class="btm-text">--已经到底了--</view>
  261. </view>
  262. </scroll-view>
  263. <view class="coupon-popup-btm flex-center">
  264. <view class="coupon-popup-btm-btn flex-center" bindtap="onConfirmCoupon">确认</view>
  265. </view>
  266. </view>
  267. </wux-popup>
  268. <wux-popup class="popup-radius" position="bottom" catchtouchmove="true" visible="{{ payNow }}" bind:close="onClosePay">
  269. <view class="coupon-popup payType">
  270. <view class="top flex-align-center">
  271. <text style="text-align: center;"></text>
  272. <image src="/images/icon_20.png" class="close-img" bindtap="onClosePay" />
  273. </view>
  274. <view class="moneyShow" wx:if="{{source != 'secondaryCard'}}"><text>¥</text>{{ moneyData.payMoney }}</view>
  275. <view class="moneyShow" wx:else><text>¥</text>{{selectExchange==1?exchangePrice:detail.price }}</view>
  276. <!-- <view class="moneyShow" wx:else><text>¥</text>{{ level?pay_methon==2?levelPrice:selectExchange==1?exchangePrice:detail.price:selectExchange==1?exchangePrice:detail.price }}</view> -->
  277. <view class="select-pay-methon" catchtap="pay_methonw">
  278. <image class="pay-img" src="/images/wx_pay.png"></image>
  279. <view class="pay-title">微信支付</view>
  280. <image class="select-activity" src="{{pay_methon==1?'/images/icon_13.png':'/images/icon_12.png'}}"></image>
  281. </view>
  282. <view class="select-pay-methon" catchtap="pay_methonc" style="margin-bottom: 15rpx;">
  283. <image class="pay-img" src="/images/joli_pay.png"></image>
  284. <view class="pay-title">储值支付</view>
  285. <view class="pay-money"><text>¥</text>{{inserllAmount}}</view>
  286. <image class="select-activity" src="{{pay_methon==2?'/images/icon_13.png':'/images/icon_12.png'}}"></image>
  287. </view>
  288. <!-- <view wx:if="{{level!=0}}" class="coup-box-title" style="text-align: left; margin-left: 90rpx;">权益优惠减¥{{toLevelPrice}}</view> -->
  289. <view class="coupon-popup-btm flex-center">
  290. <view class="coupon-popup-btm-btn flex-center" bindtap="payNow">支付</view>
  291. </view>
  292. </view>
  293. </wux-popup>
  294. <view class="list_first_to" catchtouchmove="noneEnoughPeople" hidden="{{inFirstIn?false:true}}">
  295. <view wx:if="{{detail.id || detail.project_id}}" class="item itemInNeeds current{{current}}">
  296. <view class="item-top flex-align-center onIndex111 opc">
  297. <text class="flex1 ellipsis"></text>
  298. </view>
  299. <view>
  300. <view class="item-content flex opcBack">
  301. <image class="img" src="{{detail.banner_urls.length > 0 ? detail.banner_urls[0] : '' || deviceData.cover_url}}"></image>
  302. <view class="content flex-column">
  303. <view class="content-text-box flex1">
  304. <text style="color:#999;">{{source == 'cardgoods' ? '可用店铺:' : '预约店铺:'}}</text>
  305. <text class="flex1 ellipsis">{{deviceData.store_name || detail.store_name}}</text>
  306. </view>
  307. <view class="content-text-box flex1">
  308. <text style="color:#999;">{{source == 'cardgoods' ? '可用时间:' : '使用时间:'}}</text>
  309. <text class="flex1 ellipsis" wx:if="{{detail.take_out_time_max}}">{{detail.take_out_time_max}}之前</text>
  310. <text class="flex1 ellipsis" wx:else>{{tool.replaceStr(timeData.order_day)}} {{tool.replaceStr(timeData.order_time)}}</text>
  311. </view>
  312. <view class="content-text-box flex1" wx:if="{{deviceData.device_name}}">
  313. <text style="color:#999;">使用设备:</text>
  314. <text class="flex1 ellipsis">{{deviceData.device_name}}</text>
  315. </view>
  316. <view class="content-text-box flex1" wx:else></view>
  317. </view>
  318. </view>
  319. </view>
  320. <view class="item-btn flex-align-center onIndex111 opc">
  321. <text style="font-size: 28rpx;color: #999;">{{source == 'cardgoods' ? '购买费用:' : '预约费用:'}}</text>
  322. <text style="font-size: 36rpx;font-family: PingFang-SC-Medium, PingFang-SC;font-weight: 500;margin-right:24rpx;">¥{{moneyData.projectWithGoodsPrice}}</text>
  323. </view>
  324. </view>
  325. <view class="list_top_show">
  326. <image class="list_top_img" src="/images/white_on.png"></image>
  327. <view class="list_top_content">
  328. <view class="first_and_title"><text>第一步:</text>核对您预约的项目和店铺</view>
  329. </view>
  330. </view>
  331. <view class="KnowBtn" catchtap="knowSubmit">我知道了</view>
  332. </view>