<view class='order-deatils'>
  <view wx:if="{{tagName!='美食' && tagName!='门票' && tagName!='机票'  && tagName!='签证'}}">
    <view class='order-deatils-top'>
      <view class='order-deatils-top-s'>
        <view class='list-item-tag {{tagList[tagBoxActive].Class}}'>{{tagName}}</view>
        <view>
          <view class='list-details-states ' class='list-item-states'>
            <text wx:if="{{details.orderState == 1}}">待付定金</text>
            <text wx:elif="{{details.orderState == 2}}">待付尾款</text>
            <text wx:elif="{{details.orderState == 3}}">待发团</text>
            <text wx:elif="{{details.orderState == 4}}">交易完成</text>
            <text wx:elif="{{details.orderState == 5}}">取消</text>
          </view>
          <!-- <view class='list-details-states' wx:else class='list-item-states'>
            <text wx:if="{{details.status == 1}}">正常</text>
            <text wx:elif="{{details.status == 2}}">取消</text>
            <text wx:elif="{{details.status == 3}}">待付款</text>
          </view> -->
        </view>
      </view>
      <view class='title'>
        {{tagName!='美食' && tagName!='门票' ? details.title : tagName!='门票' ? details.diningName : details.couponsName}}
      </view>
      <view class='details-info'>
        <view class='details-info-item' wx:if="{{details.guestNum!=0}}">
          <view>
            成人
          </view>
          <view>*{{details.guestNum}}</view>
        </view>
        <view class='details-info-item' wx:if="{{details.OldPeopleNum!=0}}">
          <view>
            老人
          </view>
          <view>*{{details.OldPeopleNum}}</view>
        </view>
        <view class='details-info-item' wx:if="{{details.ChirdNum!=0}}">
          <view>
            儿童
          </view>
          <view>*{{details.ChirdNum}}</view>
        </view> 
        <view class='line-line'></view>
        <view class='details-info-item'>
          <view>
            费用合计
          </view>
          <view class='item-price'>¥{{details.preferPrice}}</view>
        </view>
        <view class='details-info-item'>
          <view>
            优惠券抵扣
          </view>
          <view class='item-price'>¥{{details.DiscountMoney}}</view>
        </view>
        <view class='details-info-item'>
          <view>
            已付金额
          </view>
          <view class='item-price'>¥{{details.CustomerPayMoney}}</view>
        </view>
        <view class='details-info-item'>
          <view>
            待付金额
          </view>
          <view class='item-price'>¥{{details.preferPrice - details.CustomerPayMoney}}</view>
        </view>
      </view>
    </view>
    <view class='order-deatils-bottom'>
      <view class='b-tit'>
        <text>订单信息</text>
      </view>
      <view class='oreder-info'>
        <view class='oreder-info-item copy-box'>
          <view>
            订单号：{{details.orderId}}
          </view>
          <view class='copy'>
            复制
          </view>
        </view>
        <view class='oreder-info-item'>
          <view>
            团队编号：{{details.tcid}}
          </view>
        </view>
        <view class='oreder-info-item'>
          <view>
            创建时间：{{details.CreateDate}}
          </view>
        </view>
      </view>
    </view>
    <view class='btn-box'>
      <view wx:if="{{details.orderState == 1}}">联系客服</view>
      <view wx:if="{{details.orderState == 1 || details.orderState == 3}}">取消订单</view>
      <view wx:if="{{details.orderState == 1 || details.orderState == 2}}" class='btn-red'>付款</view>
    </view>
  </view>
  <view wx:elif="{{tagName == '美食'}}">
    <view class='order-deatils-top'>
      <view class='order-deatils-top-s'>
        <view class='list-item-tag {{tagList[tagBoxActive].Class}}'>{{tagName}}</view>
        <view>
          <!-- <view class='list-details-states ' class='list-item-states'>
            <text wx:if="{{details.orderState == 1}}">待付定金</text>
            <text wx:elif="{{details.orderState == 2}}">待付尾款</text>
            <text wx:elif="{{details.orderState == 3}}">待发团</text>
            <text wx:elif="{{details.orderState == 4}}">交易完成</text>
            <text wx:elif="{{details.orderState == 5}}">取消</text>
          </view> -->
          <view class='list-details-states' class='list-item-states'>
            <text wx:if="{{details.status == 1}}">正常</text>
            <text wx:elif="{{details.status == 2}}">取消</text>
            <text wx:elif="{{details.status == 3}}">待付款</text>
          </view>
        </view>
      </view>
      <view class='title'>
        {{details.diningName}}
      </view>
      <view class='details-info'>
        <view class='details-info-item' wx:if="{{details.adultNum!=0}}">
          <view>
            成人
          </view>
          <view>*{{details.adultNum}}</view>
        </view>
        <view class='details-info-item' wx:if="{{details.childNum!=0}}">
          <view>
            儿童
          </view>
          <view>*{{details.childNum}}</view>
        </view> 
        <view class='line-line'></view>
        <view class='details-info-item'>
          <view>
            费用合计
          </view>
          <view class='item-price'>¥{{details.preferPrice}}</view>
        </view>
        <view wx:if="{{details.status != 2}}">
          <view class='details-info-item'>
            <view>
              待付金额
            </view>
            <view class='item-price'>¥{{details.preferPrice}}</view>
          </view>
        </view>
      </view>
    </view>
    <view class='order-deatils-bottom'>
      <view class='b-tit'>
        <text>订单信息</text>
      </view>
      <view class='oreder-info'>
        <view class='oreder-info-item copy-box'>
          <view>
            订单号：{{details.id}}
          </view>
          <view class='copy'>
            复制
          </view>
        </view> 
        <view class='oreder-info-item'>
          <view>
            创建时间：{{details.createDate}}
          </view>
        </view>
      </view>
    </view>
    <view class='btn-box'>
      <view wx:if="{{details.status == 1}}">联系客服</view>
      <view wx:if="{{details.status == 1 || details.status == 3}}">取消订单</view>
      <view wx:if="{{details.status == 3}}" class='btn-red'>付款</view>
    </view>
  </view> 
  <view wx:elif="{{tagName == '机票'}}">
    <view class='order-deatils-top'>
      <view class='order-deatils-top-s'>
        <view class='list-item-tag {{tagList[tagBoxActive].Class}}'>{{tagName}}</view>
        <view>
          <!-- <view class='list-details-states ' class='list-item-states'>
            <text wx:if="{{details.orderState == 1}}">待付定金</text>
            <text wx:elif="{{details.orderState == 2}}">待付尾款</text>
            <text wx:elif="{{details.orderState == 3}}">待发团</text>
            <text wx:elif="{{details.orderState == 4}}">交易完成</text>
            <text wx:elif="{{details.orderState == 5}}">取消</text>
          </view> -->
          <view class='list-details-states' class='list-item-states'>
            <text wx:if="{{details.OrderState == 1}}">待付款</text>
            <text wx:elif="{{details.OrderState == 2}}">正常</text>
            <text wx:elif="{{details.OrderState == 3}}">取消</text>
          </view>
        </view>
      </view>
      <view class='title'>
        <view class='list-item-name'  wx:if="{{details.airticket.ticketType==2}}">
          <text>往：{{details.airticket.goStartCityName}} - {{details.airticket.goEndCityName}}</text>
          <text style='color: #fff;'>......</text>                
          <text>返：{{details.airticket.backStartCityName}} - {{details.airticket.backEndCityName}}</text>
        </view>
      </view>
      <view class='details-info'>
        <view class='details-info-item' wx:if="{{details.ManNum!=0}}">
          <view>
            成人
          </view>
          <view>*{{details.ManNum}}</view>
        </view>
        <view class='details-info-item' wx:if="{{details.ChirdNum!=0}}">
          <view>
            儿童
          </view>
          <view>*{{details.ChirdNum}}</view>
        </view> 
        <view class='details-info-item' wx:if="{{details.BabyNum!=0}}">
          <view>
            婴儿
          </view>
          <view>*{{details.BabyNum}}</view>
        </view> 
        <view class='details-info-item' wx:if="{{details.OldPeopleNum!=0}}">
          <view>
            老人
          </view>
          <view>*{{details.OldPeopleNum}}</view>
        </view> 
        <view class='line-line'></view>
        <view class='details-info-item'>
          <view>
            费用合计
          </view>
          <view class='item-price'>¥{{details.preferPrice}}</view>
        </view>
      </view>
    </view>
    <view class='order-deatils-bottom'>
      <view class='b-tit'>
        <text>订单信息</text>
      </view>
      <view class='oreder-info'>
        <view class='oreder-info-item copy-box'>
          <view>
            订单号：{{details.orderId}}
          </view>
          <view class='copy'>
            复制
          </view>
        </view> 
        <view class='oreder-info-item'>
          <view>
            创建时间：{{details.CreateDate}}
          </view>
        </view>
      </view>
    </view>
      <view class='btn-box'>
        <view wx:if="{{details.OrderState == 1 || details.OrderState == 2}}">联系客服</view>
        <view wx:if="{{details.OrderState == 1 || details.OrderState == 3}}">取消订单</view>
        <view wx:if="{{details.OrderState == 1}}" class='btn-red'>付款</view>
      </view>
  </view> 
  <view wx:elif="{{tagName == '门票'}}">
    <view class='order-deatils-top'>
      <view class='order-deatils-top-s'>
        <view class='list-item-tag {{tagList[tagBoxActive].Class}}'>{{tagName}}</view>
        <view> 
          <view class='list-details-states' class='list-item-states'>
            <text wx:if="{{details.OrderState == 2}}">正常</text>
            <text wx:elif="{{details.OrderState == 3}}">取消</text>
            <text wx:elif="{{details.OrderState == 2}}">待付款</text>
          </view>
        </view>
      </view>
      <view class='title'>
        {{details.TicketName}}
      </view>
      <view class='details-info'>
        <view class='details-info-item' wx:if="{{details.adultNum!=0}}">
          <view>
            成人
          </view>
          <view>*{{details.adultNum}}</view>
        </view>
        <view class='details-info-item' wx:if="{{details.childNum!=0}}">
          <view>
            儿童
          </view>
          <view>*{{details.childNum}}</view>
        </view> 
        <view class='line-line'></view>
        <view class='details-info-item'>
          <view>
            费用合计
          </view>
          <view class='item-price'>¥{{details.PreferPrice}}</view>
        </view>
        <view wx:if="{{details.status != 2}}">
          <view class='details-info-item'>
            <view>
              已付金额
            </view>
            <view class='item-price'>¥{{details.Income}}</view>
          </view>
        </view>
      </view>
    </view>
    <view class='order-deatils-bottom'>
      <view class='b-tit'>
        <text>订单信息</text>
      </view>
      <view class='oreder-info'>
        <view class='oreder-info-item copy-box'>
          <view>
            订单号：{{details.orderId}}
          </view>
          <view class='copy'>
            复制
          </view>
        </view> 
        <view class='oreder-info-item'>
          <view>
            创建时间：{{details.CreateDate}}
          </view>
        </view>
      </view>
    </view>
      <view class='btn-box'>
        <view wx:if="{{details.status == 1}}">联系客服</view>
        <view wx:if="{{details.status == 1 || details.status == 3}}">取消订单</view>
        <view wx:if="{{details.status == 3}}" class='btn-red'>付款</view>
      </view>
  </view> 
  <view wx:elif="{{tagName == '签证'}}">
    <view class='order-deatils-top'>
      <view class='order-deatils-top-s'>
        <view class='list-item-tag {{tagList[tagBoxActive].Class}}'>{{tagName}}</view>
        <view>
          <!-- <view class='list-details-states ' class='list-item-states'>
            <text wx:if="{{details.orderState == 1}}">待付定金</text>
            <text wx:elif="{{details.orderState == 2}}">待付尾款</text>
            <text wx:elif="{{details.orderState == 3}}">待发团</text>
            <text wx:elif="{{details.orderState == 4}}">交易完成</text>
            <text wx:elif="{{details.orderState == 5}}">取消</text>
          </view> -->
          <view class='list-details-states' class='list-item-states'>
            <text wx:if="{{details.OrderState == 2}}">正常</text>
            <text wx:elif="{{details.OrderState == 3}}">取消</text>
            <text wx:elif="{{details.OrderState == 2}}">待付款</text>
          </view>
        </view>
      </view>
      <view class='title'>
        {{details.diningName}}
      </view>
      <view class='details-info'>
        <view class='details-info-item' wx:if="{{details.adultNum!=0}}">
          <view>
            成人
          </view>
          <view>*{{details.adultNum}}</view>
        </view>
        <view class='details-info-item' wx:if="{{details.childNum!=0}}">
          <view>
            儿童
          </view>
          <view>*{{details.childNum}}</view>
        </view> 
        <view class='line-line'></view>
        <view class='details-info-item'>
          <view>
            费用合计
          </view>
          <view class='item-price'>¥{{details.preferPrice}}</view>
        </view>
        <view wx:if="{{details.status != 2}}">
          <view class='details-info-item'>
            <view>
              待付金额
            </view>
            <view class='item-price'>¥{{details.preferPrice}}</view>
          </view>
        </view>
      </view>
    </view>
    <view class='order-deatils-bottom'>
      <view class='b-tit'>
        <text>订单信息</text>
      </view>
      <view class='oreder-info'>
        <view class='oreder-info-item copy-box'>
          <view>
            订单号：{{details.id}}
          </view>
          <view class='copy'>
            复制
          </view>
        </view> 
        <view class='oreder-info-item'>
          <view>
            创建时间：{{details.createDate}}
          </view>
        </view>
      </view>
    </view>
      <view class='btn-box'>
        <view wx:if="{{details.status == 1}}">联系客服</view>
        <view wx:if="{{details.status == 1 || details.status == 3}}">取消订单</view>
        <view wx:if="{{details.status == 3}}" class='btn-red'>付款</view>
      </view>
  </view> 
</view>
<!-- <view class='btn-box'>
        <view wx:if="{{details.orderState == 1 || details.status == 1}}">联系客服</view>
        <view>旅客名单</view> 
        <view wx:if="{{details.orderState == 3 || details.orderState == 2 || details.status == 1 || details.status == 3}}">取消订单</view>
        <view wx:if="{{details.orderState == 1 || details.orderState == 2 || details.status == 3}}" class='btn-red'>付款</view>
      </view> -->