<!--packageG/mycomponent/ys_member/ys_member.wxml-->
<!-- 益生 等级进度条与益生用户信息 -->
<wxs module="util">
  var setWidths = function (num) {
    return (100 / Number(num)).toFixed(2) + '%';
  };
  module.exports.setWidths = setWidths;
</wxs>
<view class="html-box" wx:if="{{datas.preview_color}}"
  style="background-color:{{datas.preview_color.color}};background-image: url({{datas.preview_color.isColor == 2? datas.preview_color.image: ''}});">

  <view class="ys_member">
    <view class="progress-panel">
      <view class="steps">
        <view class="step {{ item.member_current_level?'active-step':''}}"
          style="width:{{util.setWidths(level_list.length)}}" wx:for="{{level_list}}">
          <view class="line"></view>
          <view class="icon">
            <image wx:if="{{index > currentLevel}}" src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/depositGroup/redEnvelope_0@2x.png" alt="" mode="heightFix" />
            <image wx:else src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/depositGroup/redEnvelope_2@2x.png" alt="" mode="heightFix" />
          </view>
        </view>
      </view>
      <view class="next-level" wx:if="{{info.next_condition}}">{{ info.next_condition }}</view>
    </view>
    <!-- 二期对接 -->
    <view class="ys-member-info" wx:if="{{info.account_info && Object.prototype.isPrototypeOf(info.account_info) && Object.keys(info.account_info).length !== 0}}">
      <view class="title">我的账户</view>
          <view class="list">
            <view class="cell" catchtap="toUrl" data-url="/packageB/member/Integral_love/Integral_love">
              <view class="cell-size-13">{{ info.account_info.point }}</view>
              <view class="cell-size-10">冻结{{ info.account_info.frozen_point }}</view>
              <view class="cell-size-11">{{ optionName.integral }}</view>
            </view>
            <view class="cell" catchtap="toUrl" data-url="/packageB/member/love/Love_index/Love_index">
              <view class="cell-size-13">{{ info.account_info.redPocket }}</view>
              <view class="cell-size-10">冻结{{ info.account_info.frozen_redPocket }}</view>
              <view class="cell-size-11">{{ optionName.love }}</view>
            </view>
            <view class="cell" catchtap="toUrl" data-url="/packageA/member/balance/balance/balance">
              <view class="cell-size-13"><text style="font-size:20rpx;">￥</text>{{ info.account_info.money }}</view>
              <view class="cell-size-10">冻结<text style="font-size:20rpx;">￥</text>{{ info.account_info.frozen_money }}</view>
              <view class="cell-size-11">{{ optionName.balance }}</view>
            </view>
            <view class="cell" catchtap="toUrl" data-url="/packageB/member/integral/integral">
              <view class="cell-size-13">{{ info.account_info.flower }}</view>
              <view class="cell-size-10">冻结{{ info.account_info.frozen_flower }}</view>
              <view class="cell-size-11">{{ optionName.point }}</view>
            </view>
          </view>
    </view>
  </view>
</view>