index.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <auth-wrap class="fui-wrap" ref="authWrap">
  3. <view slot="content">
  4. <view class="user-info-bg">
  5. </view>
  6. <view class="ctl-container">
  7. <view class="user-info-content">
  8. <view class="user-info-img">
  9. <u-avatar :src=" userInfo && userInfo.avatarUrl || ''" shape="circle" :size="60"></u-avatar>
  10. </view>
  11. <view class="user-info">
  12. <view>
  13. {{ userInfo.usrName || '' }}
  14. </view>
  15. <view>
  16. {{ userInfo.tel || '' }}
  17. </view>
  18. </view>
  19. </view>
  20. <view class="ctl-panel">
  21. </view>
  22. </view>
  23. </view>
  24. </auth-wrap>
  25. </template>
  26. <script>
  27. import AuthWrap from '@/components/AuthComp/index.vue';
  28. import { getUserInfo } from '@/util';
  29. export default {
  30. components: { AuthWrap },
  31. data() {
  32. return {
  33. userInfo: {},
  34. src: 'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg',
  35. }
  36. },
  37. onLoad() {
  38. this.$refs.authWrap.reloadPage();
  39. this.userInfo = getUserInfo();
  40. },
  41. methods: {
  42. },
  43. onShareAppMessage() {
  44. return {
  45. title: 'First UI组件库'
  46. }
  47. }
  48. }
  49. </script>
  50. <style lang="scss" src="./index.scss">
  51. </style>