reserveProject.wxml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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;">
  9. <text style="font-size:28rpx;color:#999;">预约店铺:</text>
  10. <text style="font-size:28rpx">{{projectData.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">{{projectData.storeData.belong_region}}</text>
  15. </view>
  16. <!-- <text class="name">{{projectData.project_name}}</text>
  17. <text class="store">{{projectData.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;">{{projectData.store_address}}</text>
  21. </view> -->
  22. </view>
  23. <view class="border-radius flex-column">
  24. <view class="title">到店时间</view>
  25. <view class="scroll-x flex1 flex" style="overflow-x: scroll">
  26. <view class="item flex-column flex-align-center {{currentDateIndex == index ? 'active' : ''}}" wx:for="{{ times }}" wx:key="index" bindtap="onChangeDate" data-index="{{ index }}">
  27. <text wx:if="{{index == 0 }}">今天</text>
  28. <text wx:elif="{{index == 1 }}">明天</text>
  29. <text wx:else>{{item.week}}</text>
  30. <text style="margin-top: 2rpx;">{{item.day}}</text>
  31. </view>
  32. </view>
  33. <view class="time-box">
  34. <view class="tabs-title flex-align-center">
  35. <!-- <text wx:for="{{projectTime}}" wx:key="index" class="{{ currentSwiperIndex==index ? 'active' : '' }}" data-index="{{index}}" bindtap="onChangeSwiper">{{item.name}}</text> -->
  36. <text class="{{ currentSwiperIndex==0 ? 'active' : '' }}" data-index="0" bindtap="onChangeSwiper">{{projectTime[0].name}}</text>
  37. <text class="flex1" style="font-family: PingFangSC-Semibold, PingFang SC;color: #F0F0F0;">|</text>
  38. <text class="{{ currentSwiperIndex==1 ? 'active' : '' }}" data-index="1" bindtap="onChangeSwiper">{{projectTime[1].name}}</text>
  39. </view>
  40. <view class="list_Content_show" hidden="{{inFirstIn?false:true}}">
  41. <view class="timeSelect">
  42. <view class="timeShow">11:00</view>
  43. </view>
  44. <image class="list_Content_img" src="/images/white_on.png"></image>
  45. <view class="list_top_contents">
  46. <view class="first_and_title"><text>第二步:</text>选择您到店的时间</view>
  47. </view>
  48. </view>
  49. <swiper circular indicator-color="#CECECE" indicator-active-color="#FA7D22" current="{{currentSwiperIndex}}" bindchange="changeSwiper">
  50. <swiper-item wx:for="{{projectTime}}" wx:key="index">
  51. <view class="tabs-content">
  52. <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">
  53. {{ item.time_id }}
  54. </view>
  55. </view>
  56. </swiper-item>
  57. </swiper>
  58. </view>
  59. <view class="custom-time flex flex-align-center">
  60. <text style="font-family: PingFangSC-Medium, PingFang SC;">自定义到店时间</text>
  61. <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">
  62. <view class="input {{currentTimeIndex == -1 ? 'active' : ''}} flex-center">{{ time }}</view>
  63. </picker>
  64. <!-- <text class="flex1"></text>
  65. <image src="/images/icon_04.png"></image>
  66. <text style="font-size: 24rpx;">建议选择推荐时间</text> -->
  67. </view>
  68. </view>
  69. <view class="border-radius {{inSecIn?'showSec':''}}" catchtouchmove="noneEnoughPeople" wx:if="{{deviceList.length > 0}}">
  70. <view class="list_sec_show" catchtouchmove="noneEnoughPeople" hidden="{{inSecIn?false:true}}">
  71. <view class="KnowBtnSec" catchtap="knowSubmit">我知道了</view>
  72. <view class="list_sec_content">
  73. <view class="first_and_title">系统会根据您</view>
  74. <view class="first_and_title">选择的时候自动匹配设备</view>
  75. </view>
  76. <image class="list_sec_img" src="/images/white_on.png"></image>
  77. </view>
  78. <!-- <view class="title">选择设备</view> -->
  79. <view class="title">已为您自动匹配设备</view>
  80. <view class="current-project flex" style="padding-bottom: 20rpx;">
  81. <image src="{{deviceList[0].cover_url}}"></image>
  82. <view class="project-text flex1 flex-column flex-justify-space-around">
  83. <view class="flex">
  84. <text style="font-size: 28rpx;color: #999;">可用项目:</text>
  85. <text style="font-size: 28rpx;">{{projectData.name}}</text>
  86. </view>
  87. <view class="flex">
  88. <text style="font-size: 28rpx;color: #999;">设备名称:</text>
  89. <text style="font-size: 28rpx;">{{deviceList[0].device_name}}</text>
  90. </view>
  91. <view class="flex">
  92. <text style="font-size: 28rpx;color: #999;">房间号码:</text>
  93. <text style="font-size: 28rpx;">{{deviceList[0].room}}</text>
  94. </view>
  95. </view>
  96. </view>
  97. <!-- <view class="project-scroll-x flex1 flex" style="overflow-x: scroll">
  98. <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">
  99. <view class="project-box flex-column flex-align-center">
  100. <image src="{{item.cover_url}}" class="project-img"></image>
  101. <text class="flex1">{{item.status == 0 ? '不可预约' : '可预约'}}</text>
  102. <image src="/images/icon_03.png" class="active-img" wx:if="{{ item.status == 1 }}"></image>
  103. </view>
  104. <text class="name ellipsis">{{ item.device_name }}</text>
  105. <text class="name ellipsis" wx:if="{{item.room}}">({{ item.room }})</text>
  106. </view>
  107. </view> -->
  108. </view>
  109. <view class="border-radius" wx:else>
  110. <view class="title">暂无可用设备</view>
  111. <view class="current-project flex" style="padding-bottom: 20rpx;">
  112. <image src="/images/icon_no_device.png"></image>
  113. </view>
  114. </view>
  115. </view>
  116. <view class="btm flex-center">
  117. <view class="btm-btn flex-center" bindtap="addOrder">确认</view>
  118. </view>
  119. <view style="height: 152rpx;"></view>
  120. <!-- ==========================listKer========================== -->
  121. <view class="list_first_to" catchtouchmove="noneEnoughPeople" hidden="{{inFirstIn?false:true}}">
  122. <view class="list_top_show">
  123. <image class="list_top_img" src="/images/white_on.png"></image>
  124. <view class="list_top_content">
  125. <view class="first_and_title"><text>第一步:</text>核对您预约的项目和店铺</view>
  126. </view>
  127. </view>
  128. <view class="KnowBtn" catchtap="knowSubmit">我知道了</view>
  129. </view>
  130. <!-- ==========================listKer========================== -->
  131. <view class="list_first_to" catchtouchmove="noneEnoughPeople" hidden="{{inSecIn?(deviceList.length > 0?false:true):true}}">
  132. </view>