<view class="teamCode">
  <van-nav-bar title="我的激活码" right-text="使用记录" bind:click-right="codeHistory" />
  <view class="code_button" style="text-align:center;">
    <van-button  type="default" catchtap="openDialog">使用激活码</van-button>
  </view>
  <view>
    <van-dialog title="提示" use-slot show="{{ show1 }}" show-cancel-button show-confirm-button bind:confirm="getUserInfo" bind:cancel="onClose">
      <van-field model:value="{{ username }}"  placeholder="请输入激活码" />
    </van-dialog>
  </view>
  <view class="upgradeList ul" wx:for="{{codes}}" wx:key="index">
    <view class="li">
      <text class="span">可升至{{item.has_one_level.level_name}}</text>
      <text class="span">{{item.code}}</text>
    </view>
  </view>
</view>
<shopfoot></shopfoot>