index.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <div class="uc_vip_code_container">
  3. <div class="card text-center padding-top-xl">
  4. <view class="user margin-xl">
  5. <view class="up">
  6. <view class="left">
  7. <img :src="userinfo.portrait"/>
  8. <view>
  9. <text>
  10. <text>{{ userinfo.user_name }}</text>
  11. </text>
  12. <text>{{ userinfo.level_name }} 有效期至 {{ userinfo.validity_time }}</text>
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. <img src="https://img.shuimuai.com/web/demo_code.png" class="qrcode margin-xl" alt="">
  18. <!-- <view class="text-center">-->
  19. <!-- <text class="text-normal ">{{ invite_code }}</text>-->
  20. <!-- </view>-->
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. import utils from '@/utils/index'
  26. var $this
  27. export default {
  28. name: "uc_vip_code_container",
  29. components: {},
  30. data() {
  31. return {
  32. userinfo: {},
  33. invite_code: ""
  34. }
  35. },
  36. methods: {}
  37. ,
  38. mounted() {
  39. },
  40. created() {
  41. $this = this;
  42. },
  43. onLoad() {
  44. $this.userinfo = wx.getStorageSync('userinfo')
  45. $this.invite_code = wx.getStorageSync('code')
  46. }
  47. }
  48. </script>
  49. <style scoped>
  50. @import "index.css";
  51. </style>