<view class="mine">
  <view class="mine-top" onTap="mineData">
    <view class="avator">
      <image src="{{userInfo.user.avatar}}" class="avator-image" mode="widthFix"></image>
      <!--<open-data type="userAvatarUrl" class="avator-image"></open-data> -->
    </view>
    <view class="mine-phone">
      <text>{{userInfo.mobile}}</text></view>
    <view class="iconfont icon-iconfontjiantou2"></view>
  </view>
  <view class="mine-ad" onTap="adDetail" a:if="{{deposit.is_deposit==1 && deposit.deposit_type==2}}">
    {{deposit.deposit_expire_time}}
  </view>
  <view class="mine-ad" onTap="adDetail" a:if="{{deposit.is_deposit==1 && deposit.deposit_type==6}}">
    您已获得终身免押资格！
  </view>
  <view class="mine-tab"  a:if="{{ is_dev==false }}">
    <view class="mine-tab-item" onTap="balance">
      <view class="tab-num">￥{{userInfo.wallet_money | parseFloat}}</view>
      <view class="tab-text">余额</view>
    </view>
    <view class="mine-tab-item" onTap="coupon">
      <view class="tab-num">{{userInfo.coupon_count ? userInfo.coupon_count :'0'}}</view>
      <view class="tab-text">优惠券</view>
    </view>
    <view class="mine-tab-item" onTap="myCard">
      <view class="tab-num">{{userInfo.user.deposit_type==2 ? 1 : 0}}</view>
      <view class="tab-text">我的卡</view>
    </view>
    <view class="mine-tab-item" onTap="rideZige">
      <view class="tab-num">
        <text class="zige">{{deposit.is_deposit==0 && setting.is_deposit != 0 && deposit.is_coupon_deposit_free == false ? '去获取':'已获得'}}</text></view>
      <view class="tab-text">骑行资格</view>
    </view>
  </view>
  <view class="mine-card" a:if="{{show==true}}">
    <view class="card-left">
      <view class="left-title">购买骑行卡套餐</view>
      <view class="left-text">买卡用车更划算</view>
    </view>
    <view class="card-right" onTap="buyCard">购买</view>
  </view>
  <view class="mine-list">
    <!--<view class="list-item"><text class="zhifufen">开通微信支付分，享免充值用车</text><text class="iconfont icon-iconfontjiantou2 right-arrow"></text><text class="right-text">去开通</text></view> -->
    <view class="list-item" a:if="{{userInfo.user.is_deposit == 1 &&  userInfo.user.deposit_money>0}}" onTap="backDeposit">
      <text class="iconfont icon-tongqian list-icon"></text>
      <text>退还押金</text>
      <text class="iconfont icon-iconfontjiantou2 right-arrow"></text>
    </view>
    <view class="list-item" onTap="trip">
      <text class="iconfont icon-weizhi list-icon"></text>
      <text>行程</text>
      <text class="iconfont icon-iconfontjiantou2 right-arrow"></text>
    </view>
    <view class="list-item" onTap="accountDetails">
      <text class="iconfont icon-tongqian list-icon"></text>
      <text>账户明细</text>
      <text class="iconfont icon-iconfontjiantou2 right-arrow"></text>
    </view>
    <view class="list-item" onTap="weizhang">
      <text class="iconfont icon-shejiwenzhang list-icon"></text>
      <text>违约用车记录</text>
      <text class="iconfont icon-iconfontjiantou2 right-arrow"></text></view>
    <view class="list-item" onTap="setUp">
      <text class="iconfont icon-shezhi list-icon"></text>
      <text>设置</text>
      <text class="iconfont icon-iconfontjiantou2 right-arrow"></text>
    </view>
  </view>
</view>