reserveProduct.wxml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <wxs src="./../../utils/wxsUtil.wxs" module="wxsUtil" />
  2. <view class="content">
  3. <view class="border-radius top flex-column" 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">{{productData.name}}</text>
  7. </view>
  8. <view class="flex" style="margin-bottom: 20rpx;">
  9. <text style="font-size:28rpx;color:#999;">预约店铺:</text>
  10. <text style="font-size:28rpx">{{productData.store_name}}</text>
  11. </view>
  12. <view class="flex">
  13. <text style="font-size:28rpx;color:#999;">门店地址:</text>
  14. <text class="ellipsis flex1" style="font-size:28rpx">{{productData.store_address}}</text>
  15. </view>
  16. <!-- <text class="name">{{productData.project_name}}</text>
  17. <text class="store">{{productData.store_name}}</text>
  18. <view class="address flex-align-center ellipsis">
  19. <image src="/images/icon_05.png"></image>
  20. <text class="ellipsis" style="font-size: 24rpx;color: #666666;">{{productData.store_address}}</text>
  21. </view> -->
  22. </view>
  23. <view class="list-active " wx:if="{{source == 'product'}}">
  24. <view class="flex-column" style="padding-left:24rpx;">
  25. <text class="label">选择使用项目</text>
  26. <text wx:if="{{!projectOrderList.length}}" class="label-tips">未检测到您的预约项目!\n 该产品需要在项目中使用,请选择项目一起预约。</text>
  27. </view>
  28. <!-- 项目耗材下单 - 展示进行中、待使用的可用项目 -->
  29. <view wx:if="{{projectOrderList.length > 0}}">
  30. <view wx:for="{{ projectOrderList }}" wx:key="index" class="item-active border-radius" bindtap="selectProjectOrder" data-index="{{index}}" data-item="{{item}}">
  31. <view class="title flex-justify-space-between">
  32. <text style="font-family: PingFangSC-Semibold, PingFang SC;">水光嫩肤</text>
  33. <text style="font-weight: 600;color: #FA7D22;">{{item.status == 2 ? '进行中' : '待使用'}}</text>
  34. </view>
  35. <view class="item-active-content flex flex-align-center">
  36. <image class="change-img" src="{{currentProjectOrderIndex == index ? '/images/icon_17.png' : '/images/icon_16.png'}}"></image>
  37. <image class="active-project-img" src="{{item.cover_url}}"></image>
  38. <view class="flex-column flex1 right ellipsis">
  39. <view class="flex ">
  40. <text>预约店铺:</text>
  41. <text class="flex1 ellipsis">{{item.store_name}}</text>
  42. </view>
  43. <view class="flex" style="margin: 20rpx 0;">
  44. <text>使用时间:</text>
  45. <text class="flex1 ellipsis">{{item.order_time}}</text>
  46. </view>
  47. <view class="flex ">
  48. <text>使用设备:</text>
  49. <text class="flex1 ellipsis">{{item.device_name}}</text>
  50. </view>
  51. </view>
  52. </view>
  53. <view class="item-active-price flex-align-center">
  54. <text style="font-size: 28rpx;color: #999;">实付:</text>
  55. <text style="font-size: 36rpx;font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;">¥{{item.price}}</text>
  56. </view>
  57. </view>
  58. </view>
  59. <!-- 项目耗材下单 - 没有可用的项目 -->
  60. <view wx:else>
  61. <view wx:for="{{ productProjectList }}" wx:key="index" class="item-active border-radius" bindtap="selectProductProject" data-item="{{item}}" data-index="{{index}}">
  62. <view class="item-active-content flex flex-align-center">
  63. <image class="change-img" src="{{currentProductProjectIndex == index ? '/images/icon_17.png' : '/images/icon_16.png'}}"></image>
  64. <image class="active-project-img" src="{{item.cover_url}}"></image>
  65. <view class="flex-column flex1 ellipsis">
  66. <view class="flex project-title">
  67. <text class="flex1 ellipsis">{{item.project_name}}</text>
  68. </view>
  69. <view class="flex tags" style="margin: 20rpx 0;">
  70. <view class="tags-item ellipsis" wx:for="{{ wxsUtil.split(item.project_desc, ' ') }}" wx:key="t_index" wx:for-item="t_item">
  71. {{t_item}}
  72. </view>
  73. </view>
  74. <view class="flex">
  75. <!-- <text class="flex1 ellipsis price2">¥{{item.is_member ? item.member_price : item.price}}</text> -->
  76. <text class="flex1 ellipsis price2">¥{{item.price}}</text>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. <view wx:if="{{showDateControl}}" class="border-radius flex-column">
  84. <view class="title">到店时间</view>
  85. <view class="scroll-x flex1 flex" style="overflow-x: scroll">
  86. <view class="item flex-column flex-align-center {{currentDateIndex == index ? 'active' : ''}}" wx:for="{{ times }}" wx:key="index" bindtap="onChangeDate" data-index="{{ index }}">
  87. <text wx:if="{{index == 0 }}">今天</text>
  88. <text wx:elif="{{index == 1 }}">明天</text>
  89. <text wx:else>{{item.week}}</text>
  90. <text style="margin-top: 2rpx;">{{item.day}}</text>
  91. </view>
  92. </view>
  93. <view class="time-box">
  94. <view class="tabs-title flex-align-center">
  95. <!-- <text wx:for="{{projectTime}}" wx:key="index" class="{{ currentSwiperIndex==index ? 'active' : '' }}" data-index="{{index}}" bindtap="onChangeSwiper">{{item.name}}</text> -->
  96. <text class="{{ currentSwiperIndex==0 ? 'active' : '' }}" data-index="0" bindtap="onChangeSwiper">{{projectTime[0].name}}</text>
  97. <text class="flex1" style="font-family: PingFangSC-Semibold, PingFang SC;color: #333333;">|</text>
  98. <text class="{{ currentSwiperIndex==1 ? 'active' : '' }}" data-index="1" bindtap="onChangeSwiper">{{projectTime[1].name}}</text>
  99. </view>
  100. <swiper circular indicator-color="#CECECE" indicator-active-color="#FA7D22" current="{{currentSwiperIndex}}" bindchange="changeSwiper">
  101. <swiper-item wx:for="{{projectTime}}" wx:key="index">
  102. <view class="tabs-content">
  103. <view class="item flex-center {{item.status == 0 ? 'no-change' : ''}} {{currentTimeIndex == item.index ? 'active' : '' }}" wx:for="{{ item.list }}" wx:key="index" data-index="{{item.index}}" bindtap="onChangeTime">
  104. {{ item.time_id }}
  105. </view>
  106. </view>
  107. </swiper-item>
  108. </swiper>
  109. </view>
  110. <view class="custom-time flex flex-align-center">
  111. <text style="font-family: PingFangSC-Medium, PingFang SC;">自定义到店时间</text>
  112. <picker mode="time" value="{{time}}" start="{{projectTime[0].list[0].order_time}}" end="{{projectTime[1].list[projectTime[1].list.length-1].order_time}}" bindchange="bindTimeChange">
  113. <view class="input {{currentTimeIndex == -1 ? 'active' : ''}} flex-center">{{ time }}</view>
  114. </picker>
  115. <!-- <text class="flex1"></text>
  116. <image src="/images/icon_04.png"></image>
  117. <text style="font-size: 24rpx;">建议选择推荐时间</text> -->
  118. </view>
  119. </view>
  120. <view class="border-radius" wx:if="{{showDateControl && deviceList.length > 0}}">
  121. <!-- <view class="title">选择设备</view> -->
  122. <view class="title">已为您自动匹配设备</view>
  123. <view class="current-project flex" style="padding-bottom: 20rpx;">
  124. <image src="{{deviceList[0].cover_url}}"></image>
  125. <view class="project-text flex1 flex-column flex-justify-space-around">
  126. <view class="flex">
  127. <text style="font-size: 28rpx;color: #999;">可用项目:</text>
  128. <text style="font-size: 28rpx;">{{projectData.project_name}}</text>
  129. </view>
  130. <view class="flex">
  131. <text style="font-size: 28rpx;color: #999;">设备名称:</text>
  132. <text style="font-size: 28rpx;">{{deviceList[0].device_name}}</text>
  133. </view>
  134. <view class="flex">
  135. <text style="font-size: 28rpx;color: #999;">房间号码:</text>
  136. <text style="font-size: 28rpx;">{{deviceList[0].room}}</text>
  137. </view>
  138. </view>
  139. </view>
  140. <!-- <view class="project-scroll-x flex1 flex" style="overflow-x: scroll">
  141. <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">
  142. <view class="project-box flex-column flex-align-center">
  143. <image src="{{item.cover_url}}" class="project-img"></image>
  144. <text class="flex1">{{item.status == 0 ? '不可预约' : '可预约'}}</text>
  145. <image src="/images/icon_03.png" class="active-img" wx:if="{{ item.status == 1 }}"></image>
  146. </view>
  147. <text class="name ellipsis">{{ item.device_name }}</text>
  148. <text class="name ellipsis" wx:if="{{item.room}}">({{ item.room }})</text>
  149. </view>
  150. </view> -->
  151. </view>
  152. <view class="border-radius" wx:if="{{showDateControl && deviceList.length == 0}}">
  153. <view class="title">暂无可用设备</view>
  154. <view class="current-project flex" style="padding-bottom: 20rpx;">
  155. <image src="/images/icon_no_device.png"></image>
  156. </view>
  157. </view>
  158. </view>
  159. <view class="btm flex-center">
  160. <view class="btm-btn flex-center" style="{{allowAddOrder ? '' : 'opacity: 0.3'}}" bindtap="addOrder">
  161. 确认
  162. </view>
  163. </view>
  164. <view style="height: 152rpx;"></view>