mine.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <view class="base-container">
  3. <view class="user-info">
  4. <view class="user-left">
  5. <image class="avatar" src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></image>
  6. <view class="info">
  7. <text class="name">听妈妈的话</text>
  8. <view class="text">这是您使用飞鸟有味的第15天</view>
  9. </view>
  10. </view>
  11. <view class="user-right">收货地址</view>
  12. </view>
  13. </view>
  14. </template>
  15. <script setup>
  16. </script>
  17. <style lang="scss" scoped>
  18. .base-container {
  19. width: 100%;
  20. min-height: 100vh;
  21. background: #f7f7f7;
  22. padding: 20rpx 24rpx;
  23. box-sizing: border-box;
  24. .user-info {
  25. background: #fff;
  26. border-radius: 16rpx;
  27. padding: 24rpx;
  28. display: flex;
  29. align-items: center;
  30. justify-content: space-between;
  31. .user-left{
  32. display: flex;
  33. align-items: center;
  34. .avatar{
  35. width: 92rpx;
  36. height: 92rpx;
  37. margin-right: 28rpx;
  38. border-radius: 50%;
  39. }
  40. .info{
  41. .name{
  42. font-family: 'PangMenZhengDao';
  43. }
  44. .text{
  45. font-size: 24rpx;
  46. }
  47. }
  48. }
  49. .user-right{
  50. font-size: 24rpx;
  51. padding: 12rpx 32rpx;
  52. border-radius: 50rpx;
  53. color: #000;
  54. background: #FFD95E;
  55. font-weight: 500;
  56. }
  57. }
  58. }
  59. </style>