appointment.wxml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <view class="container">
  2. <view class="product-title card f17">{{productInfo.productName}}</view>
  3. <view class="shop-name card f17">门店·{{shopInfo.storeName}}</view>
  4. <view class="people-num card">
  5. <view class="title">选择人数</view>
  6. <view class="num-box">
  7. <view bindtap="reducePeopleNum" class="" data-num="{{peopleNum}}">
  8. <image class="" src="../../images/icons/reduce.png" lazy-load="false" binderror="" bindload="">
  9. </image>
  10. </view>
  11. <input type="text" value="{{peopleNum}}" disabled="true" class="num-text" />
  12. <view bindtap="addPeopleNum" class="" data-num="{{peopleNum}}">
  13. <image class="" src="../../images/icons/add.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false"
  14. binderror="" bindload="">
  15. </image>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="order-time card">
  20. <mp-tabs tabs="{{tabs}}" style="width: 100%;" data-active="{{activeTab}}" activeTab="{{activeTab}}" swiperClass="weui-tabs-swiper" bindtabclick="onTabClick"
  21. bindchange="onSlideChangeEnd" activeClass="tab-bar-title__selected" tabActiveTextColor="#E32490" swiperHeight="{{(tabs[activeTab].list.length)/5*140}}">
  22. <block wx:for="{{tabs}}" wx:key="title">
  23. <view class="tab-content" data-set="{{item}}" slot="tab-content-{{index}}" bind:tap="handleClick" style="height: {{orderTimeHeight}}rpx;">
  24. <view class="orders" style="height: {{orderTimeHeight}}rpx;overflow-y: auto;">
  25. <block wx:for="{{tabs[index].list}}"wx:for-index="index" wx:key="id">
  26. <view class="time-info {{item.checked&&item.inTime?'select-time':''}} {{item.inTime?'':'out-time'}}" data-time="{{item.time}}" data-i="{{index}}" bindtap = "getOrderTime" >
  27. <view class="time fw300" >{{item.time}}</view>
  28. <view class="price fw300" >¥{{productInfo.currentPrice}}</view>
  29. </view>
  30. </block>
  31. </view>
  32. </view>
  33. </block>
  34. </mp-tabs>
  35. </view>
  36. <navigator class="appointment card" url="" hover-class="appointment-hover" open-type="navigate">
  37. <view class="btn" bindtap = "checkAuth">
  38. 确认预约
  39. </view>
  40. </navigator>
  41. </view>