<!--pages/order/order.wxml-->
<view class="map_text" wx:if="{{order}}" hover-class='active'>
  <!-- <view class="map-1" bindtap="getRoute">
      <image src="/images/jt.png"></image>
      <view>路线</view>
    </view> -->
  <view class='charging_text_title'>
    <view class='charging'>
      <image src='/images/charging2_1.png'></image>
    </view>
    <view class='charging_text_title1'>
      <text class='bold'>{{order.chargPile.chargPileName}}</text>
      <text class="h1">终端编号:{{chargPileId}}</text>
    </view>
  </view>
  <text>地址:{{order.chargStation.address}}</text>
  <view class="table">
    <view class="tr title">
      <view class="th">
        <text>{{startTime}}</text>
        <text>开始充电</text>
      </view>
      <view class="th center">
        <text>——</text>
      </view>
      <view class="th">
        <text>{{endTime}}</text>
        <text>结束充电</text>
      </view>
    </view>
    <view class="tr">
      <view class="td">
        <text>{{order.chargallmoney}}元</text>
        <text>总费用</text>
      </view>
      <view class="td center">
        <text>{{order.chargpower}}度</text>
        <text>总电量</text>
      </view>
      <view class="td">
        <text>{{totalTime}}</text>
        <text>总时长</text>
      </view>
    </view>
  </view>
  <!--<text class="info_title">费用明细</text>
  <view class="info">
    <text>21:00-24:00充电15.98度</text>
    <text>电费:20.66元(1.3元/度)</text>
    <text>服务费:9.53元(0.06元/度)</text>
  </view>
  <view class="info">
    <text>21:00-24:00充电15.98度</text>
    <text>电费:20.66元(1.3元/度)</text>
    <text>服务费:9.53元(0.06元/度)</text>
  </view>
  <text class="info_title">代金券</text>
  <view class="info_view" hover-class='active'>

    <view class="zan-text">
      <text>2张(可用)</text>
    </view>
    <view class="zan-ft">
      <image src='/images/enter.png'></image>
    </view>
  </view>-->
  
  <!-- <view style="width: 100%;margin-top:50rpx">
    <ad unit-id="adunit-8eb13875bcf592b0" ad-intervals="30"></ad>
  </view> -->

</view>

    
<button class='{{orderFlag?"pay_button1":"pay_button"}}' wx:if="{{order.paystatus==0}}" bindtap="{{orderFlag?'':'payOrder'}}">去支付</button>
<button class='pay_button' wx:if="{{order.paystatus==1}}" bindtap="closeView">已余额扣款,请关闭</button>