reserveCar.wxml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <wxs src="./../../utils/wxsUtil.wxs" module="wxsUtil" />
  2. <view class="content">
  3. <view class="border-radius top flex-column {{inFirstIn?'showIndexs':''}}" style="padding: 20rpx 24rpx;">
  4. <!-- <view class="flex" style="margin-bottom: 20rpx;">
  5. <text style="font-size:28rpx;color:#999;">{{source == "project" ? "预约项目:" : "预约产品:"}}</text>
  6. <text style="font-size:28rpx">{{projectData.name}}</text>
  7. </view> -->
  8. <view class="flex" style="margin-bottom: 20rpx;" bindtap="">
  9. <text style="font-size:28rpx;color:#999;">预约门店:</text>
  10. <text class="flex1" style="font-size:28rpx">{{projectData.storeData.store_name}}</text>
  11. <view class="inLocations" style="font-size:28rpx">
  12. <image class="inLocationImage" src="/images/location-to.png"></image>
  13. <view class="inLocationDistance">
  14. 距离您<text>{{wxsUtil.getDistance(lat1,lng1,projectData.storeData.latitude,projectData.storeData.longitude)}}</text>Km
  15. </view>
  16. </view>
  17. </view>
  18. <view class="flex">
  19. <text style="font-size:28rpx;color:#999;">门店地址:</text>
  20. <text class="flex1" style="font-size:28rpx;color:#999999">{{projectData.storeData.belong_region}}</text>
  21. </view>
  22. <!-- <text class="name">{{projectData.project_name}}</text>
  23. <text class="store">{{projectData.store_name}}</text>
  24. <view class="address flex-align-center ellipsis">
  25. <image src="/images/icon_05.png"></image>
  26. <text class="ellipsis" style="font-size: 24rpx;color: #666666;">{{projectData.store_address}}</text>
  27. </view> -->
  28. </view>
  29. <view class="border-radius flex-column">
  30. <view class="title">到店时间</view>
  31. <view class="scroll-x flex1 flex" style="overflow-x: scroll">
  32. <view class="item flex-column flex-align-center {{currentDateIndex == index ? 'active' : ''}}"
  33. wx:for="{{ times }}" wx:key="index" bindtap="onChangeDate" data-index="{{ index }}">
  34. <text wx:if="{{index == 0 }}">今天</text>
  35. <text wx:elif="{{index == 1 }}">明天</text>
  36. <text wx:else>{{item.week}}</text>
  37. <text style="margin-top: 2rpx;">{{item.day}}</text>
  38. </view>
  39. </view>
  40. <view class="time-box">
  41. <view class="tabs-title flex-align-center">
  42. <!-- <text wx:for="{{projectTime}}" wx:key="index" class="{{ currentSwiperIndex==index ? 'active' : '' }}" data-index="{{index}}" bindtap="onChangeSwiper">{{item.name}}</text> -->
  43. <text class="{{ currentSwiperIndex==0 ? 'active' : '' }}" data-index="0"
  44. bindtap="onChangeSwiper">{{projectTime[0].name}}</text>
  45. <text class="flex1" style="font-family: PingFangSC-Semibold, PingFang SC;color: #F0F0F0;">|</text>
  46. <text class="{{ currentSwiperIndex==1 ? 'active' : '' }}" data-index="1"
  47. bindtap="onChangeSwiper">{{projectTime[1].name}}</text>
  48. </view>
  49. <view class="list_Content_show" hidden="{{inFirstIn?false:true}}">
  50. <view class="timeSelect">
  51. <view class="timeShow">11:00</view>
  52. </view>
  53. <image class="list_Content_img" src="/images/white_on.png"></image>
  54. <view class="list_top_contents">
  55. <view class="first_and_title"><text>第二步:</text>选择您到店的时间</view>
  56. </view>
  57. </view>
  58. <swiper circular indicator-color="#CECECE" indicator-active-color="#FA7D22" current="{{currentSwiperIndex}}"
  59. bindchange="changeSwiper">
  60. <swiper-item wx:for="{{projectTime}}" wx:key="index">
  61. <view class="tabs-content">
  62. <view
  63. class="item flex-center {{item.status == 0 ? 'no-change' : ''}} {{currentTimeIndex == item.index ? 'active' : '' }}"
  64. wx:for="{{ item.list }}" wx:key="index" data-index="{{item.index}}" bindtap="onChangeTime">
  65. {{ item.order_time }}
  66. </view>
  67. </view>
  68. </swiper-item>
  69. </swiper>
  70. </view>
  71. <view class="custom-time flex flex-align-center">
  72. <text style="font-family: PingFangSC-Medium, PingFang SC;">自定义到店时间</text>
  73. <picker mode="time" value="{{time}}" start="{{projectTime[0].list[0].order_time}}"
  74. end="{{projectTime[1].list[projectTime[1].list.length-1].order_time}}" bindchange="bindTimeChange">
  75. <view class="input {{currentTimeIndex == -1 ? 'active' : ''}} flex-center">{{ time }}</view>
  76. </picker>
  77. <!-- <text class="flex1"></text>
  78. <image src="/images/icon_04.png"></image>
  79. <text style="font-size: 24rpx;">建议选择推荐时间</text> -->
  80. </view>
  81. </view>
  82. <!-- 下面是选择的项目操作 -->
  83. <view class="border-radius flex-column">
  84. <view class="project-list">
  85. <view class="peoject-list-title">共<text>{{projectList.length}}</text>个项目</view>
  86. <view class="peoject-list-time">预计时间:{{time}}-{{showTimes}}</view>
  87. </view>
  88. <view class="project-content" wx:for="{{projectList}}" wx:key='index'>
  89. <image class="project-content-img" src="{{item.cover_url}}"></image>
  90. <view class="project-content-right">
  91. <view class="item-right-time">
  92. <view class="item-right-title">{{item.name}}</view>
  93. <view class="item-right-title-time">{{item.use_time}}分钟</view>
  94. </view>
  95. <view class="item-project-add" hidden="{{onType=='one'?true:(item.selectMaterial?false:true)}}">+{{item.selectMaterial.name}}</view>
  96. <view class="item-project-add" hidden="{{onType=='one'?(item.product_name?false:true):true}}">+{{item.product_name}}</view>
  97. <!-- <view class="item-project-add">+润百颜精华</view> -->
  98. </view>
  99. </view>
  100. </view>
  101. <!-- <view class="border-radius {{inSecIn?'showSec':''}}" catchtouchmove="noneEnoughPeople" wx:if="{{deviceList.length > 0}}">
  102. <view class="list_sec_show" catchtouchmove="noneEnoughPeople" hidden="{{inSecIn?false:true}}">
  103. <view class="KnowBtnSec" catchtap="knowSubmit">我知道了</view>
  104. <view class="list_sec_content">
  105. <view class="first_and_title">系统会根据您</view>
  106. <view class="first_and_title">选择的时候自动匹配设备</view>
  107. </view>
  108. <image class="list_sec_img" src="/images/white_on.png"></image>
  109. </view> -->
  110. <!-- <view class="title">选择设备</view> -->
  111. <!-- <view class="title">已为您自动匹配设备</view>
  112. <view class="current-project flex" style="padding-bottom: 20rpx;">
  113. <image src="{{deviceList[0].cover_url}}"></image>
  114. <view class="project-text flex1 flex-column flex-justify-space-around">
  115. <view class="flex">
  116. <text style="font-size: 28rpx;color: #999;">可用项目:</text>
  117. <text style="font-size: 28rpx;">{{projectData.name}}</text>
  118. </view>
  119. <view class="flex">
  120. <text style="font-size: 28rpx;color: #999;">设备名称:</text>
  121. <text style="font-size: 28rpx;">{{deviceList[0].device_name}}</text>
  122. </view>
  123. <view class="flex">
  124. <text style="font-size: 28rpx;color: #999;">房间号码:</text>
  125. <text style="font-size: 28rpx;">{{deviceList[0].room}}</text>
  126. </view>
  127. </view>
  128. </view> -->
  129. <!-- <view class="project-scroll-x flex1 flex" style="overflow-x: scroll">
  130. <view class="ellipsis item flex-column flex-align-center {{item.status == 0 ? 'no-change' : ''}} {{index == currentDeviceIndex && item.status == 1 ? 'active' : ''}}" wx:for="{{ deviceList }}" wx:key="index" data-index="{{index}}" bindtap="onChangeDevice">
  131. <view class="project-box flex-column flex-align-center">
  132. <image src="{{item.cover_url}}" class="project-img"></image>
  133. <text class="flex1">{{item.status == 0 ? '不可预约' : '可预约'}}</text>
  134. <image src="/images/icon_03.png" class="active-img" wx:if="{{ item.status == 1 }}"></image>
  135. </view>
  136. <text class="name ellipsis">{{ item.device_name }}</text>
  137. <text class="name ellipsis" wx:if="{{item.room}}">({{ item.room }})</text>
  138. </view>
  139. </view> -->
  140. <!-- </view> -->
  141. <!-- <view class="border-radius" wx:else>
  142. <view class="title">暂无可用设备</view>
  143. <view class="current-project flex" style="padding-bottom: 20rpx;">
  144. <image src="/images/icon_no_device.png"></image>
  145. </view>
  146. </view> -->
  147. </view>
  148. <view class="btm flex-center">
  149. <view class="btm-down-line">
  150. <view class="btm-line-tips">合计</view>
  151. <view class="btm-line-tips-red">¥</view>
  152. <view class="btm-line-tips-money">{{money}}</view>
  153. <view class="btm-line-submit" catchtap="toBuyNow">立即预约</view>
  154. </view>
  155. <!-- <view class="btm-btn flex-center" bindtap="addOrder">确认</view> -->
  156. </view>
  157. <view style="height: 152rpx;"></view>
  158. <!-- ==========================listKer========================== -->
  159. <view class="list_first_to" catchtouchmove="noneEnoughPeople" hidden="{{inFirstIn?false:true}}">
  160. <view class="list_top_show">
  161. <image class="list_top_img" src="/images/white_on.png"></image>
  162. <view class="list_top_content">
  163. <view class="first_and_title"><text>第一步:</text>核对您预约的项目和店铺</view>
  164. </view>
  165. </view>
  166. <view class="KnowBtn" catchtap="knowSubmit">我知道了</view>
  167. </view>
  168. <!-- ==========================listKer========================== -->
  169. <view class="list_first_to" catchtouchmove="noneEnoughPeople"
  170. hidden="{{inSecIn?(deviceList.length > 0?false:true):true}}">
  171. </view>