reservation.wxml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!--pages/reservation/reservation.wxml-->
  2. <view class='charging_text_title'>
  3. <view class='charging'>
  4. <image src='/images/charging2_1.png'></image>
  5. </view>
  6. <view class='charging_text_title1'><!--
  7. <text class='bold'>{{chargPile.chargPileName}}</text>
  8. <text class="h1">终端编号:{{chargPile.chargPileId}}</text>-->
  9. <text class='bold'>{{chargPileName}}</text>
  10. <text class="h1">终端编号:{{chargPileId}}</text>
  11. </view>
  12. </view>
  13. <view class="select_card">
  14. <view class="card {{dayIndex==1?'active':''}}" data-idx="1" bindtap="switchDay">
  15. <view class="title">{{dayFlag1}}</view>
  16. <image wx:if="{{dayIndex!=1}}" class="png" src="/images/yulan.png"/>
  17. <image wx:if="{{dayIndex==1}}" class="png_active" src="/images/yulan_active.png"/>
  18. </view>
  19. <view class="card {{dayIndex==2?'active':''}}" data-idx="2" bindtap="switchDay">
  20. <view class="title">{{dayFlag2}}</view>
  21. <image wx:if="{{dayIndex!=2}}" class="png" src="/images/yulan.png"/>
  22. <image wx:if="{{dayIndex==2}}" class="png_active" src="/images/yulan_active.png"/>
  23. </view>
  24. <view class="card {{dayIndex==3?'active':''}}" data-idx="3" bindtap="switchDay">
  25. <view class="title">{{dayFlag3}}</view>
  26. <image wx:if="{{dayIndex!=3}}" src="/images/yulan.png"/>
  27. <image wx:if="{{dayIndex==3}}" class="png_active" src="/images/yulan_active.png"/>
  28. </view>
  29. <view class="card {{dayIndex==4?'active':''}}" data-idx="4" bindtap="switchDay">
  30. <view class="title">{{dayFlag4}}</view>
  31. <image wx:if="{{dayIndex!=4}}" class="png" src="/images/yulan.png"/>
  32. <image wx:if="{{dayIndex==4}}" class="png_active" src="/images/yulan_active.png"/>
  33. </view>
  34. </view>
  35. <view class="title2">已被预约时段</view>
  36. <view class="title2_sub">(显示近4天已被预约时段,以下时段无法重复预约,请酌情选择预约时间<block wx:if="{{reservationBtn}}">。预约开始时间前 {{maxEarlyExerciseTime}} 分钟至后 {{maxReservOvertime}} 分钟内启动充电视为履约,其它时间启充或未充电视为违约,违约 {{breakPunishCount}} 次后暂停预约功能</block>)</view>
  37. <view class="title2_line"></view>
  38. <scroll-view class="scrollView" scroll-y='true' wx:if="{{timeList.length > 0}}">
  39. <view wx:for="{{timeList}}" wx:key="unique" data-index="{{index}}" class="card">{{item.starttime}} ~ {{item.endtime}}
  40. </view>
  41. </scroll-view>
  42. <view class="scrollView" wx:if="{{timeList.length == 0}}">
  43. <view class="noList">暂无已被预约时段</view>
  44. </view>
  45. <button class='login_button' bindtap="goReservation" wx:if="{{reservationBtn}}" >预约充电</button>
  46. <view class='login_button_err' wx:if="{{!reservationBtn}}" >您因违约次数过多,无法进行预约</view>