<template>
  <div class="uc_vip_code_container">
    <div class="card text-center padding-top-xl">
      <view class="user margin-xl">
        <view class="up">
          <view class="left">
            <img :src="userinfo.portrait"/>
            <view>
              <text>
                <text>{{ userinfo.user_name }}</text>
              </text>
              <text>{{ userinfo.level_name }} </text><text  v-if="userinfo.level != 1"> 有效期至 {{ userinfo.validity_time }}</text>
            </view>
          </view>
        </view>
      </view>
      <img src="https://img.shuimuai.com/web/demo_code.png" class="qrcode margin-xl" alt="">
      <view class="text-center">
        <text class="text-normal ">邀请卡:&emsp;{{ userinfo.invite_id }}</text>
      </view>
    </div>
  </div>
</template>

<script>
import utils from '@/utils/index'

var $this
export default {
  name: "uc_vip_code_container",
  components: {},
  data() {
    return {
      userinfo: {},
      invite_code: ""
    }
  },
  methods: {}
  ,
  mounted() {
  },
  created() {
    $this = this;
  },
  onLoad() {
    $this.userinfo = wx.getStorageSync('userinfo')
    $this.invite_code = wx.getStorageSync('code')

  }
}
</script>

<style scoped>
.uc_vip_code_container {
  padding: 80px 0px;
}

.card {
  width: 347px;
  height: 403px;
  background: #FFFFFF;
  box-shadow: 0px 3px 7px 0px #A6A6A6;
  border-radius: 11px;
  margin: 0px auto;
}

.user {
  width: 100%;
}

.user .up {
  width: 100%;
  height: 40px;
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user .up .left {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: start;
}

.user .up .left image {
  width: 40px;
  height: 40px;
  margin-left: 17px;
  margin-right: 8px;
}


.user .up .left view {
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.user .up .left view text:first-child {
  font-size: 15px;
  font-weight: bold;
}

.user .up .left view text:last-child {
  font-size: 13px;
}

.user .up .right {
  height: 40px;

}

.qrcode {
  width: 139px;
  height: 139px;

}
</style>
