<!-- 路线详情 -->
<van-popup
  custom-class="customer-van-popup customer-van-popup_way"
  show="{{ booWay }}"
  round
  position="bottom"
  bind:close="hideWay">
  <view style="right:0;top:0;"
        class="close-icon"
        bind:tap="hideWay">
    <image class="image" src="{{tools.imgFilter('/common/Popup_bus_icon_close@2x.png')}}"></image>
  </view>
  <view class="title">路线详情</view>
  <!-- min-height-420 max-height-668 -->
  <view
    class="way-list {{order_pass_location && order_pass_location.length > 0 ? 'max-height-668' : 'min-height-420'}}">
    <scroll-view
      class="scroll-wrap"
      scroll-y>
      <view class="list">
        <view class="address">
          <text class="label">起</text>
          <view class="wrap">
            <text class="text">{{start_point.name}}</text>
            <text class="text">{{start_point.address_name}}</text>
          </view>
        </view>
        <image class="icon"
               src="{{tools.imgFilter('/createOrder/Popup_route_icon_direction@2x.png')}}"></image>
      </view>
      <block wx:if="{{order_pass_location && order_pass_location.length > 0}}">
        <view class="list"
              wx:for="{{order_pass_location}}"
              wx:key="index">
          <view class="address">
            <text style="background: #CCCCCC;" class="label">经</text>
            <view class="wrap">
              <text class="text">{{item.name}}</text>
              <text class="text">{{item.address_name}}</text>
            </view>
          </view>
          <image class="icon"
                 src="{{tools.imgFilter('/createOrder/Popup_route_icon_direction@2x.png')}}"></image>
        </view>
      </block>
      <view class="list">
        <view class="address">
          <text class="label" style="background: #FD6600;">终</text>
          <view class="wrap">
            <text class="text">{{end_point.name}}</text>
            <text class="text">{{end_point.address_name}}</text>
          </view>
        </view>
      </view>
    </scroll-view>
    <view class="mask"
          hidden="{{order_pass_location.length <= 2}}"></view>
  </view>
</van-popup>
<wxs src="../wxs/index.wxs" module="tools"></wxs>
