<view class="ride_zige">
  <view class="zige-frame" a:if="{{frame==true}}">
    <view class="frame-content">
      <view class="frame-title">
        <text class="iconfont icon-guize"></text> 提示</view>
      <view class="frame-text">　退回后您将无法使用车辆且账户将被冻结,至缴纳押金或购买免押金卡后再次使用</view>
      <view class="frame-buttom" onTap="sureBack">立即退还</view>
    </view>
    <view class="frame-cha" onTap="closeFrame">
      <text class="iconfont icon-cha"></text></view>
  </view>
  <view class="zige-tips">
    <view class="title">—— · 获取骑行资格 · ——</view>
    <view class="text">卡费不可退，不可抵用车费？</view>
  </view>
  
  <view class="card-list" a:if="{{cardList.length}}">
    <view class="jingxuan">为你精选</view>
    <view class="mine-ad" onTap="adDetail" a:if="{{deposit.is_deposit==1 && deposit.deposit_type==2}}">
      {{deposit.deposit_expire_time}}
    </view>
    <view class="{{currentItem==item.id ? 'active' :'card-item'}}" a:for="{{cardList}}" a:key='{{index}}' data-id="{{item.id}}" 
      onTap="changeCard">
      <view class="item-left">
        <view class="card-title">
          <text>{{item.name}}</text>
          <text class="tip">特惠精选</text></view>
        <view class="card-text">有效期{{item.effective_days}}天</view>
      </view>
      <view class="item-right">
        <view class="card-title">{{item.discounted_price}}元</view>
        <view class="card-text">原价{{item.price}}</view>
      </view>
    </view>
  </view>
  <view class="card-list">
    <view class="list-title">交押金用车</view>
    <view class="card-item" class="{{ currentItem==0 ? 'active' :'card-item'}}"   onTap="changeCard" data-id='0'>
      <view class="item-left">
        <view class="card-title">押金</view>
        <view class="card-text">随时可退 | 极速到账</view>
      </view>
      <view class="item-right">
        <view class="card-title">{{deposit.deposit_type==1? '已缴纳' : depositMoney + '元'}}</view>
      </view>
    </view>
  </view>
  <view class="button" onTap='pay' a:if="{{deposit.deposit_type!==1}}">立即支付</view>
  <!--<view class="button">缴纳押金</view>   -->
  <view class="button" a:if="{{deposit.is_deposit==1 && deposit.deposit>0}}" onTap="backDeposit">退还押金</view>
  
</view>