<!-- packageH/member/upgrade_code/upgrade_code/upgrade_code.wxml -->
<view class="upgrade-code">
  <view class="logo-warpper">
    <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/img/logo@2x.png" class="logo" />
  </view>
  <view class="codes-list">
    <navigator class="codes-item" hover-class="codes-item-hover" wx:for="{{ codeList }}" wx:key="id" wx:for-item="codeItem" url="{{ '/packageH/member/upgrade_code/group_details/group_details?code_id='+codeItem.id }}">
      <view class="codes-content">
        <view class="codes-name">{{ codeItem.code.name }}</view>
        <view class="codes-level">
          升级码等级：{{ codeItem._level_text }}
        </view>
        <view class="codes-footer">
          <text class="codes-remainder">剩余：{{ codeItem.num - codeItem.used_num }}个</text>
          <view class="codes-view">
            查看
            <text class="iconfont icon-member_right"></text>
          </view>
        </view>
      </view>
      <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/img/group_bgimg@2x.png" class="codes-item-bgimg" />
    </navigator>
  </view>
</view>