<!--pages/confirmOrder/confirmOrder.wxml-->

<!-- 首页轮播图 -->
  <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" class='swiper'>
     <block wx:for="{{imgUrls}}" wx:key="unique">
      <swiper-item>
        <image src="{{imgbBefore + item.img}}" class="slide-image" style="width:100vw;height:35vh" />
      </swiper-item>
    </block> 
    <!-- <swiper-item>
        <image src="/images/foods/banner1.png" class="slide-image" style="width:100vw;height:30vh" />
      </swiper-item> -->

  </swiper>

<view class="order">

  <!-- 桌位信息  -->
  <!-- <block wx:if="{{orderType == 1}}"> -->
  <view class="order_info table {{orderType == 1?'active':'hide'}}">
    <form wx:if="{{orderType == 1}}" bindsubmit="appbtn" report-submit="true">
      <!-- <view class="order_title">Please choose your seat</view> -->
      <picker mode = "date" value='{{time}}' start="{{date}}" end="{{}}" bindchange="selectTime">
        <view class="row">
          <view class="row_title">Reserve Time :</view>
          <view class="row_content">{{time}}<text class="iconfont icon-more1"></text></view>
        </view>
      </picker>
      <picker range='{{ time_interval}}' value='{{time_interval}}' bindchange="selectPeriod" >
        <view class="row">
          <view class="row_title">Dine in session :</view>
          <view class="row_content">{{time_interval[time_intervalIndex]}}<text class="iconfont icon-more1"></text></view>
        </view>
      </picker>
      
      <picker range="{{floorList}}" value="{{floorIndex}}" bindchange="selectFloor">
        <view class="row">
          <view class="row_title">Floor Number:</view>
          <view class="row_content">{{floorList[floorIndex]}}
            <text class="iconfont icon-more1"></text>
          </view>
        </view>
      </picker>

      <picker range="{{seatList[floorIndex]}}"  bindchange="selectSeat">
        <view class="row">
          <view class="row_title">Table Number:</view>
          <view class="row_content" bindinput="getTable_id">{{seatList[floorIndex][seatIndex]}}<text class="iconfont icon-more1"></text></view>
        </view>
      </picker>
      <view class="row" wx:if="{{checkHack.showPersonNum}}">
        <view class="row_title">No.of Pax:</view>
        <view class=""><input type="number" bindinput="getNums" data-attr="meals_num" placeholder-class='place' placeholder="Enter No.of Pax" value="{{nums}}" maxlength="2" /></view>
      </view>
      <view class='row'>
        <view class='row_title'>Name:</view>
        <view><input placeholder='Enter Your Name' placeholder-class='place' bindinput='getName' value='{{name}}' ></input></view>
      </view>
      <view class='row'>
        <view  class='row_title'>phone:</view>
        <view><input placeholder-class='place' placeholder='Enter Your Phone' bindinput="getMobile" value='{{mobile}}' ></input></view>
      </view>
      <!-- <view class="tips">
        <view class="tips_header">备注 :</view>
        <view class="row_content"><textarea bindinput="syncRemarks" maxlength="200" /></view>
      </view> -->
      <button class="pay_btn" formType="submit">Reserve Now</button>
    </form>
  </view>
  <!-- </block> -->
  <!-- 外卖信息 -->
  <!-- <block wx:else> -->
  

  <!-- </block> -->
</view>