index.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. },
  39. onShow() {
  40. this.$refs.authWrap.reloadPage();
  41. this.userInfo = getUserInfo();
  42. },
  43. methods: {},
  44. onShareAppMessage() {
  45. return {
  46. title: 'First UI组件库',
  47. };
  48. },
  49. };
  50. </script>
  51. <style lang="scss" src="./index.scss">
  52. </style>