user-space.vue 783 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <view class="user-space flex items-center">
  3. <view class="icon-box flex justify-center items-center">
  4. <!-- <u-icon name="account-fill" size="40" color="#BFBFBF"></u-icon> -->
  5. <open-data type="userAvatarUrl" style="width: 100%; height: 100%"></open-data>
  6. </view>
  7. <text class="u-name">刘洋</text>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. name: 'UserSpace'
  13. }
  14. </script>
  15. <style lang="scss" scoped>
  16. .user-space {
  17. height: 100rpx;
  18. padding: 0 24rpx;
  19. .icon-box {
  20. width: 64rpx;
  21. height: 64rpx;
  22. border-radius: 8rpx;
  23. background-color: #f0f0f0;
  24. overflow: hidden;
  25. }
  26. .u-name {
  27. font-size: 36rpx;
  28. color: #262626;
  29. margin-left: 16rpx;
  30. font-weight: bold;
  31. }
  32. }
  33. </style>