my.wxss 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. .my-container {
  2. padding: 20rpx;
  3. background-color: #f5f5f5;
  4. min-height: 100vh;
  5. }
  6. .user-info {
  7. display: flex;
  8. align-items: center;
  9. background-color: #ffffff;
  10. padding: 30rpx;
  11. border-radius: 12rpx;
  12. margin-bottom: 20rpx;
  13. }
  14. .avatar {
  15. width: 120rpx;
  16. height: 120rpx;
  17. border-radius: 60rpx;
  18. margin-right: 20rpx;
  19. }
  20. .user-details {
  21. display: flex;
  22. flex-direction: column;
  23. }
  24. .username {
  25. font-size: 36rpx;
  26. font-weight: bold;
  27. margin-bottom: 10rpx;
  28. }
  29. .user-id {
  30. font-size: 24rpx;
  31. color: #999;
  32. }
  33. .menu-list {
  34. background-color: #ffffff;
  35. border-radius: 12rpx;
  36. margin-bottom: 20rpx;
  37. }
  38. .menu-item {
  39. display: flex;
  40. justify-content: space-between;
  41. align-items: center;
  42. padding: 30rpx;
  43. border-bottom: 1rpx solid #f5f5f5;
  44. }
  45. .menu-item:last-child {
  46. border-bottom: none;
  47. }
  48. .menu-item-left {
  49. display: flex;
  50. align-items: center;
  51. }
  52. .menu-text {
  53. margin-left: 20rpx;
  54. font-size: 28rpx;
  55. }
  56. .logout-btn {
  57. background-color: #ffffff;
  58. border-radius: 12rpx;
  59. padding: 30rpx;
  60. text-align: center;
  61. color: #ff0000;
  62. font-size: 32rpx;
  63. }
  64. /* 这里应该引入iconfont,但为了简化,我们先不添加 */
  65. .iconfont {
  66. font-size: 36rpx;
  67. color: #007AFF;
  68. }
  69. .icon-right {
  70. color: #cccccc;
  71. }