<!--pages/Order/order.wxml-->
<!--pages/order/index.wxml-->

<view class="tab">
  <view class="tab-item" bindtap="changeTab" data-index="0">已预约</view>
  <view class="tab-item" bindtap="changeTab" data-index="1">进行中</view>
  <view class="tab-item" bindtap="changeTab" data-index="2">已完成</view>
</view>

<view wx:if="{{currentTab==0}}">
  <view class="reserved">
    <view class="content-container">
          <image class="image" src="/images/user.png"></image>
            <view class="text-container">
              <text class="title">已预约订单名称</text>
            <view>
              <text class="description">
                电话号码：{{item.phone}}
                email：{{item.email}}
                其他信息：null
              </text>
            </view> 
          </view>
    </view>
  </view>
</view>

<view wx:if="{{currentTab==1}}">
  <view class="reserved">
    <view class="content-container">
          <image class="image" src="/images/user.png"></image>
            <view class="text-container">
              <text class="title">进行中订单名称</text>
            <view>
              <text class="description">
                电话号码：{{item.phone}}
                email：{{item.email}}
                其他信息：null
              </text>
            </view> 
          </view>
    </view>
  </view>
</view>

<view wx:if="{{currentTab==2}}">
  <view class="reserved">
    <view class="content-container">
          <image class="image" src="/images/user.png"></image>
            <view class="text-container">
              <text class="title">已完成订单名称</text>
            <view>
              <text class="description">
                电话号码：{{item.phone}}
                email：{{item.email}}
                其他信息：null
              </text>
            </view> 
          </view>
    </view>
  </view>
</view>