my.scss 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. page {
  2. background-color: #fff;
  3. }
  4. .page {
  5. background-color: #fff;
  6. width: 100%;
  7. height:100vh;
  8. }
  9. .topBody {
  10. width:750rpx;
  11. }
  12. .header {
  13. display: flex;
  14. flex-direction: row;
  15. justify-content: flex-start;
  16. align-items: flex-start;
  17. width:750rpx;
  18. height:420rpx;
  19. position: relative;
  20. z-index: 10;
  21. position: relative;
  22. .topBg {
  23. width:750rpx;
  24. height:250rpx;
  25. background: #90d369;
  26. border-radius: 0 0 50% 50% / 0 0 20% 20%;
  27. z-index: 0;
  28. position: absolute;
  29. }
  30. /* 新增设置按钮 */
  31. .settingBtn {
  32. position: absolute;
  33. top: 24rpx;
  34. right: 30rpx;
  35. z-index: 11;
  36. width: 48rpx;
  37. height: 48rpx;
  38. /* 新增点击态 */
  39. &:active {
  40. opacity: 0.7;
  41. transform: scale(0.95);
  42. }
  43. image {
  44. width: 100%;
  45. height: 100%;
  46. }
  47. }
  48. .top_num {
  49. position: absolute;
  50. top: 24rpx; // 垂直对齐设置按钮
  51. right: 98rpx; // 30+48+20=98 预留按钮空间
  52. display: flex;
  53. flex-direction: row;
  54. justify-content: flex-end;
  55. align-items: center;
  56. z-index: 10;
  57. .num_1, .num_2 {
  58. display: flex;
  59. flex-direction: row;
  60. align-items: center;
  61. justify-content: center;
  62. background: rgba(255, 255, 255, 0.8);
  63. border-radius: 30rpx;
  64. padding: 10rpx 20rpx;
  65. margin-left: 20rpx;
  66. .num_1, .num_2 {
  67. margin-left: 10rpx; // 缩小间距
  68. padding: 8rpx 16rpx; // 调整内边距
  69. }
  70. text:first-child {
  71. font-size: 24rpx;line-height: 32rpx;
  72. color: #666;
  73. }
  74. text:last-child {
  75. font-size: 32rpx;line-height: 32rpx;
  76. font-weight: bold;
  77. color: #333;
  78. }
  79. }
  80. }
  81. .infoBg {
  82. display: flex;
  83. flex-direction: column;
  84. justify-content: flex-start;
  85. align-items: stretch;
  86. width: 690rpx;
  87. height: 320rpx;
  88. margin: 20rpx 30rpx;
  89. margin-top: 90rpx;
  90. background: rgba(255, 255, 255, 0.95);
  91. backdrop-filter: blur(10px);
  92. border-radius: 24rpx;
  93. padding-top: calc(var(--status-bar-height) + 0rpx);
  94. box-shadow: 0 8rpx 20rpx rgba(0, 0, 0, 0.1);
  95. .top_row {
  96. display: flex;
  97. flex-direction: row;
  98. justify-content: space-between;
  99. align-items: flex-start;
  100. padding: 20rpx 0;
  101. .left {
  102. padding-left: 30rpx;padding-right: 0rpx;
  103. width:200rpx;
  104. image {
  105. width:136rpx;
  106. height:136rpx;
  107. border-radius: 100rpx;
  108. border:solid 4rpx #fff;
  109. }
  110. .level {
  111. display: flex;
  112. flex-direction: row;
  113. justify-content: center;
  114. align-items: center;
  115. height: 32rpx;
  116. padding: 0 12rpx;
  117. margin-left: 10rpx;
  118. border-radius: 12rpx;
  119. background: linear-gradient(90deg, #FF5869 0%, #F83881 100%);
  120. font-size: 20rpx;
  121. color: #fff;
  122. font-weight: normal;
  123. }
  124. }
  125. .right {
  126. color:#333;
  127. width:500rpx;
  128. font-size: 40rpx;padding-top: 20rpx;
  129. .nickname {
  130. font-weight: bold;
  131. margin-bottom: 0rpx;
  132. display: flex;
  133. flex-direction: row;
  134. justify-content: flex-start;
  135. align-items: center;
  136. image {
  137. width:36rpx;
  138. margin-left: 8rpx;
  139. margin-right: 10rpx;
  140. }
  141. .level {
  142. font-weight: normal;font-size: 32rpx;
  143. }
  144. }
  145. .tags_list {
  146. .tag {
  147. margin-right: 8rpx;
  148. }
  149. }
  150. .join_date {
  151. display: flex;
  152. flex-direction: row;
  153. justify-content: flex-start;
  154. align-items: center;
  155. font-size: 28rpx;
  156. color:#333;
  157. image {
  158. width:36rpx;
  159. margin-left: 6rpx;
  160. }
  161. }
  162. .follow_info {
  163. display: none;
  164. }
  165. }
  166. }
  167. .bottom_row {
  168. padding: 20rpx 50rpx;
  169. .intro_row {
  170. display: flex;
  171. flex-direction: row;
  172. align-items: center;
  173. margin-bottom: 20rpx;
  174. .intro_text {
  175. color: #999;
  176. font-size: 28rpx;
  177. }
  178. .add_icon {
  179. width: 28rpx;
  180. margin-left: 10rpx;
  181. }
  182. }
  183. .follow_info {
  184. display: flex;
  185. flex-direction: row;
  186. align-items: center;
  187. justify-content: flex-start;
  188. .num {
  189. font-size: 36rpx;
  190. font-weight: bold;
  191. color: #333;
  192. margin-right: 8rpx;
  193. }
  194. .label {
  195. font-size: 28rpx;
  196. color: #999;
  197. }
  198. .separator {
  199. width: 2rpx;
  200. height: 24rpx;
  201. background-color: #E5E5E5;
  202. margin: 0 30rpx;
  203. }
  204. }
  205. }
  206. }
  207. .title {
  208. font-size: 34rpx;
  209. }
  210. }
  211. .whiteItem {
  212. width:690rpx;margin:20rpx auto;
  213. .btn {
  214. width:100%;height:120rpx;
  215. display: flex;flex-direction: row;justify-content: center;align-items: center;
  216. background: #2B65D9;color:#fff;
  217. border-radius: 120rpx;
  218. }
  219. }
  220. .thread {
  221. height:210rpx;
  222. padding:50rpx;
  223. font-size: 52rpx;
  224. color:#6E6A6A;
  225. padding-top: 80rpx;
  226. }
  227. .myinfo {
  228. width: 690rpx;
  229. display:flex;
  230. flex-direction: column;
  231. margin:30rpx 30rpx 60rpx;
  232. justify-content: flex-start;
  233. .numlist {
  234. display: flex;
  235. flex-direction: row;
  236. justify-content: center;
  237. align-items: center;
  238. .item {
  239. display: flex;
  240. justify-content: center;
  241. padding:20rpx;
  242. border-radius: 38rpx;
  243. width:316rpx;
  244. height:186rpx;
  245. image {
  246. width:64rpx;
  247. }
  248. .num {
  249. color:#fff;
  250. font-size: 36rpx;
  251. text-align: center;
  252. display: flex;
  253. flex-direction: column;
  254. justify-content: center;
  255. align-items: center;
  256. .name {
  257. font-size: 28rpx;
  258. color:#BABABA;
  259. margin-top: 12rpx;
  260. }
  261. }
  262. }
  263. }
  264. .numlist2 {
  265. display: flex;
  266. flex-direction: row;
  267. justify-content: flex-start;
  268. align-items: center;
  269. flex-wrap: wrap;
  270. border-radius: 2rpx;
  271. .item {
  272. display: flex;
  273. justify-content: center;
  274. padding:20rpx;
  275. border-radius: 2rpx;
  276. width:340rpx;
  277. background: rgba(120, 120, 120, 0.09);margin:2rpx;
  278. image {
  279. width:224rpx;
  280. }
  281. .num {
  282. color:#fff;
  283. text-align: center;
  284. display: flex;
  285. flex-direction: column;
  286. justify-content: center;
  287. align-items: center;
  288. .name {
  289. font-size: 24rpx;
  290. color:#BABABA;
  291. margin-top: 12rpx;
  292. }
  293. }
  294. }
  295. }
  296. .tablist {
  297. display: flex;
  298. flex-direction: row;
  299. justify-content: flex-start;
  300. align-items: center;
  301. margin: 20rpx 0;
  302. position: relative;
  303. .item {
  304. flex: 1;
  305. height: 80rpx;
  306. display: flex;
  307. justify-content: center;
  308. align-items: center;
  309. position: relative;
  310. .name {
  311. font-size: 32rpx;
  312. color: #666;
  313. transition: all 0.3s;
  314. }
  315. &.active {
  316. .name {
  317. color: #2B65D9;
  318. font-weight: bold;
  319. }
  320. &::after {
  321. content: '';
  322. position: absolute;
  323. bottom: -10rpx;
  324. left: 50%;
  325. transform: translateX(-50%);
  326. width: 40rpx;
  327. height: 6rpx;
  328. background: #2B65D9;
  329. border-radius: 3rpx;
  330. }
  331. }
  332. &:active {
  333. opacity: 0.8;
  334. }
  335. }
  336. }
  337. }
  338. .btn_submit {
  339. width: 660rpx;
  340. height: 96rpx;
  341. margin:0 auto;
  342. border: 2rpx solid #404040;
  343. border-radius: 28rpx;
  344. font-weight: bold;
  345. font-size: 32rpx;
  346. color: #FF2A95;
  347. display: flex;
  348. flex-direction: row;
  349. justify-content: center;
  350. align-items: center;
  351. }
  352. .blankHeight {
  353. height:100rpx;
  354. }
  355. .loading-more {
  356. text-align: center;
  357. padding: 20rpx 0;
  358. color: #999;
  359. font-size: 28rpx;
  360. }
  361. .no-more {
  362. text-align: center;
  363. padding: 20rpx 0;
  364. color: #999;
  365. font-size: 28rpx;
  366. }