personal-info.wxss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. /* 基础样式 */
  2. .container {
  3. padding: 20rpx;
  4. background-color: #f7f7f7;
  5. min-height: 100vh;
  6. }
  7. /* 用户卡片样式 */
  8. .user-card {
  9. display: flex;
  10. align-items: center;
  11. background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  12. border-radius: 20rpx;
  13. padding: 40rpx 30rpx;
  14. margin-bottom: 30rpx;
  15. box-shadow: 0 10rpx 20rpx rgba(0, 0, 0, 0.1);
  16. }
  17. .avatar {
  18. width: 120rpx;
  19. height: 120rpx;
  20. border-radius: 50%;
  21. border: 4rpx solid rgba(255, 255, 255, 0.3);
  22. }
  23. .user-meta {
  24. margin-left: 30rpx;
  25. color: white;
  26. }
  27. .nickname {
  28. font-size: 36rpx;
  29. font-weight: bold;
  30. display: block;
  31. margin-bottom: 10rpx;
  32. }
  33. .user-id {
  34. font-size: 24rpx;
  35. opacity: 0.8;
  36. }
  37. /* 表格样式 */
  38. .info-table {
  39. background-color: #fff;
  40. border-radius: 20rpx;
  41. overflow: hidden;
  42. box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.05);
  43. margin-bottom: 40rpx;
  44. }
  45. .table-header {
  46. background-color: #f8f9fa;
  47. padding: 25rpx 30rpx;
  48. border-bottom: 1rpx solid #eee;
  49. }
  50. .header-text {
  51. font-size: 30rpx;
  52. font-weight: bold;
  53. color: #333;
  54. }
  55. .table-row {
  56. display: flex;
  57. justify-content: space-between;
  58. padding: 30rpx;
  59. border-bottom: 1rpx solid #f5f5f5;
  60. }
  61. .last-row {
  62. border-bottom: none;
  63. }
  64. .row-label {
  65. font-size: 28rpx;
  66. color: #666;
  67. }
  68. .row-value {
  69. font-size: 28rpx;
  70. color: #333;
  71. font-weight: 500;
  72. }
  73. .status-active {
  74. color: #52c41a;
  75. background-color: rgba(82, 196, 26, 0.1);
  76. padding: 5rpx 15rpx;
  77. border-radius: 30rpx;
  78. font-size: 24rpx;
  79. }
  80. /* 按钮样式 */
  81. .logout-btn {
  82. margin-top: 40rpx;
  83. background-color: #fff;
  84. color: #ff4d4f;
  85. border: 1rpx solid #ff4d4f;
  86. border-radius: 50rpx;
  87. font-size: 30rpx;
  88. height: 90rpx;
  89. line-height: 90rpx;
  90. }
  91. .logout-btn::after {
  92. border: none;
  93. }
  94. /* 未登录提示样式 */
  95. .login-prompt {
  96. display: flex;
  97. flex-direction: column;
  98. align-items: center;
  99. justify-content: center;
  100. height: 80vh;
  101. padding: 0 60rpx;
  102. }
  103. .prompt-image {
  104. width: 300rpx;
  105. height: 300rpx;
  106. margin-bottom: 40rpx;
  107. }
  108. .prompt-text {
  109. font-size: 32rpx;
  110. color: #666;
  111. text-align: center;
  112. margin-bottom: 50rpx;
  113. line-height: 1.6;
  114. }
  115. .login-btn {
  116. width: 100%;
  117. background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  118. color: white;
  119. border-radius: 50rpx;
  120. font-size: 32rpx;
  121. height: 90rpx;
  122. line-height: 90rpx;
  123. }
  124. .login-btn::after {
  125. border: none;
  126. }
  127. /* 新增编辑相关样式 */
  128. .row-value-edit {
  129. display: flex;
  130. align-items: center;
  131. }
  132. .edit-icon {
  133. margin-left: 10rpx;
  134. font-size: 24rpx;
  135. color: #999;
  136. }
  137. /* 编辑弹窗样式 */
  138. .edit-dialog-mask {
  139. position: fixed;
  140. top: 0;
  141. left: 0;
  142. right: 0;
  143. bottom: 0;
  144. background-color: rgba(0, 0, 0, 0.5);
  145. display: flex;
  146. justify-content: center;
  147. align-items: center;
  148. z-index: 999;
  149. }
  150. .edit-dialog {
  151. width: 80%;
  152. background-color: #fff;
  153. border-radius: 16rpx;
  154. overflow: hidden;
  155. }
  156. .edit-header {
  157. padding: 30rpx;
  158. font-size: 32rpx;
  159. font-weight: bold;
  160. text-align: center;
  161. position: relative;
  162. border-bottom: 1rpx solid #eee;
  163. }
  164. .close-icon {
  165. position: absolute;
  166. right: 30rpx;
  167. top: 30rpx;
  168. }
  169. .edit-body {
  170. padding: 30rpx;
  171. }
  172. .edit-input {
  173. width: 100%;
  174. padding: 20rpx;
  175. border: 1rpx solid #ddd;
  176. border-radius: 8rpx;
  177. font-size: 28rpx;
  178. }
  179. .edit-footer {
  180. display: flex;
  181. border-top: 1rpx solid #eee;
  182. }
  183. .edit-btn {
  184. flex: 1;
  185. margin: 0;
  186. border-radius: 0;
  187. background-color: #fff;
  188. color: #333;
  189. font-size: 30rpx;
  190. height: 90rpx;
  191. line-height: 90rpx;
  192. }
  193. .edit-btn::after {
  194. border: none;
  195. }
  196. .edit-btn.cancel {
  197. border-right: 1rpx solid #eee;
  198. }
  199. .edit-btn.confirm {
  200. color: #2575fc;
  201. font-weight: bold;
  202. }