index.wxss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  1. /* pages/user/user.wxss */
  2. .banner {
  3. background-color: #fff;
  4. height: 592rpx;
  5. padding-bottom: 285rpx;
  6. }
  7. .banner > image {
  8. height: 100%;
  9. width: 100%;
  10. }
  11. .income {
  12. background-color: #fff;
  13. border-radius: 20rpx;
  14. box-shadow: 0 2rpx 10rpx 0 rgba(0, 0, 0, 0.1);
  15. display: flex;
  16. height: 198rpx;
  17. margin: 13rpx 32rpx 52rpx;
  18. padding: 63rpx 0 45rpx;
  19. position: relative;
  20. }
  21. .income_item {
  22. border-right: 2rpx solid #f0f0f0;
  23. flex: 1;
  24. text-align: center;
  25. }
  26. .income_item:last-child {
  27. border-right: 0 none;
  28. }
  29. .income_price {
  30. color: #e4536e;
  31. display: block;
  32. font-size: 48rpx;
  33. font-weight: bold;
  34. line-height: 1;
  35. margin: -10rpx 0 24rpx;
  36. }
  37. .income_text {
  38. color: #999;
  39. display: block;
  40. font-size: 28rpx;
  41. line-height: 1;
  42. }
  43. .btn_group {
  44. display: flex;
  45. height: 117rpx;
  46. margin: 0 11rpx;
  47. padding-bottom: 35rpx;
  48. }
  49. .btn_item {
  50. align-items: center;
  51. background-color: #fff;
  52. border-radius: 41rpx;
  53. box-shadow: 0 4rpx 12rpx 0 rgba(0, 0, 0, 0.2);
  54. color: #333;
  55. display: flex;
  56. flex: 1;
  57. font-weight: bold;
  58. font-size: 32rpx;
  59. height: 82rpx;
  60. justify-content: center;
  61. margin: 0 21rpx;
  62. }
  63. .btn_icon {
  64. height: 48rpx;
  65. margin-right: 10rpx;
  66. vertical-align: -10rpx;
  67. width: 48rpx;
  68. }
  69. .quick {
  70. margin: 20rpx 0;
  71. }
  72. .quick_item {
  73. align-items: center;
  74. background-color: #fff;
  75. border-bottom: 2rpx solid #fafafa;
  76. color: #333;
  77. display: flex;
  78. font-size: 30rpx;
  79. height: 107rpx;
  80. padding: 0 54rpx 0 44rpx;
  81. }
  82. .quick_icon {
  83. height: 46rpx;
  84. margin-right: 28rpx;
  85. vertical-align: -10rpx;
  86. width: 46rpx;
  87. }
  88. .quick_text {
  89. flex: 1;
  90. }
  91. .quick_rarr {
  92. height: 40rpx;
  93. width: 40rpx;
  94. }
  95. .to-withdraw {
  96. background-color: rgba(0, 0, 0, 0.6);
  97. height: 100%;
  98. left: 0;
  99. position: fixed;
  100. top: 0;
  101. width: 100%;
  102. }
  103. .to-withdraw_inner {
  104. left: 50%;
  105. position: absolute;
  106. text-align: center;
  107. top: 50%;
  108. transform: translate(-50%, -50%);
  109. }
  110. .to-withdraw_img {
  111. height: 350rpx;
  112. margin-bottom: 70rpx;
  113. vertical-align: top;
  114. width: 640rpx;
  115. }
  116. .to-withdraw_btn {
  117. background-color: #557cff;
  118. border-radius: 44rpx;
  119. color: #fff;
  120. display: inline-block;
  121. font-size: 36rpx;
  122. font-weight: bold;
  123. height: 88rpx;
  124. width: 526rpx;
  125. }
  126. /* ------------------------------------------------------------------------------- */
  127. page {
  128. background: #fff;
  129. }
  130. .userTop {
  131. padding: 64rpx 20rpx;
  132. width: 100%;
  133. display: flex;
  134. background: #fff;
  135. justify-content: center;
  136. flex-direction: column;
  137. align-items: center;
  138. position: relative;
  139. }
  140. .avatar {
  141. }
  142. .avatar .avatar_bg {
  143. height: 178rpx;
  144. width: 178rpx;
  145. background: #eee;
  146. border-radius: 50%;
  147. display: flex;
  148. align-items: center;
  149. justify-content: center;
  150. position: relative;
  151. }
  152. .avatar .avatar_bg .icon {
  153. background: #b7b7b7;
  154. width: 160rpx;
  155. height: 160rpx;
  156. overflow: hidden;
  157. border-radius: 50%;
  158. display: block;
  159. }
  160. .avatar .avatar_bg .icon image {
  161. width: 100%;
  162. height: 100%;
  163. }
  164. .avatar .avatar_bg .sex {
  165. position: absolute;
  166. width: 38rpx;
  167. height: 38rpx;
  168. bottom: 9rpx;
  169. right: 12rpx;
  170. }
  171. .userTop .nickname {
  172. margin-top: 16rpx;
  173. height: 24rpx;
  174. }
  175. .userTop .nickname .username {
  176. font-size: 36rpx;
  177. color: #333;
  178. }
  179. .cards {
  180. width: 100%;
  181. background: #fff;
  182. padding: 0 44rpx;
  183. display: flex;
  184. align-items: center;
  185. justify-content: space-between;
  186. }
  187. .cards .cards_item {
  188. width: 312rpx;
  189. height: 140rpx;
  190. border-radius: 14px;
  191. color: #fff;
  192. display: flex;
  193. align-items: center;
  194. justify-content: space-between;
  195. flex-direction: column;
  196. padding-bottom: 20rpx;
  197. padding-top: 20rpx;
  198. }
  199. .cards .cards_item:first-child {
  200. background: #656dff;
  201. }
  202. .cards .cards_item:last-child {
  203. background: #00aeff;
  204. }
  205. .cards .num {
  206. line-height: 50rpx;
  207. font-size: 38rpx;
  208. font-weight: 700;
  209. }
  210. .cards .label {
  211. line-height: 40rpx;
  212. font-size: 28rpx;
  213. }
  214. .cards .label text {
  215. font-weight: 700;
  216. }
  217. .games {
  218. background: #fff;
  219. margin-bottom: 20rpx;
  220. padding: 50rpx 44rpx 0 50rpx;
  221. }
  222. .games .games_title {
  223. font-size: 36rpx;
  224. color: #333;
  225. padding: 15rpx 0;
  226. font-weight: 700;
  227. display: block;
  228. }
  229. .games .games_tips {
  230. font-size: 28rpx;
  231. color: #666;
  232. display: block;
  233. }
  234. .games .games_list {
  235. padding-top: 46rpx;
  236. padding-bottom: 35rpx;
  237. display: flex;
  238. align-items: center;
  239. }
  240. .games .games_list .item {
  241. margin-right: 47rpx;
  242. }
  243. .games .games_list .item .content {
  244. display: flex;
  245. align-items: center;
  246. justify-content: space-between;
  247. flex-direction: column;
  248. }
  249. .games .icon {
  250. width: 130rpx;
  251. height: 130rpx;
  252. border-radius: 30rpx;
  253. }
  254. .games .name {
  255. font-size: 24rpx;
  256. max-width: 130rpx;
  257. overflow: hidden;
  258. text-overflow: ellipsis;
  259. white-space: nowrap;
  260. color: #333;
  261. line-height: 33rpx;
  262. margin-top: 20rpx;
  263. }
  264. .banner1 {
  265. background: #FFFFFF;
  266. height: 340rpx;
  267. margin-bottom: -170rpx;
  268. }
  269. .banner1 image {
  270. margin-top: -20rpx;
  271. width: 100%;
  272. }
  273. /* 用户信息 */
  274. .userinfo {
  275. background-color: #fff;
  276. height: 234rpx;
  277. position: relative;
  278. }
  279. .userinfo .userinfo_avatar {
  280. position: absolute;
  281. left: 32rpx;
  282. top: 32rpx;
  283. width: 182rpx;
  284. height: 182rpx;
  285. border-radius: 50%;
  286. display: flex;
  287. align-items: center;
  288. justify-content: center;
  289. background: #fff;
  290. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.20);
  291. }
  292. .userinfo .userinfo_avatar image {
  293. width: 172rpx;
  294. height: 172rpx;
  295. border-radius: 50%;
  296. }
  297. .userinfo .userinfo_nickname {
  298. display: block;
  299. font-size: 40rpx;
  300. color: #333;
  301. line-height: 40rpx;
  302. padding-left: 248rpx;
  303. font-weight: 700;
  304. padding-top: 50rpx;
  305. }
  306. .userinfo_id {
  307. color: #999;
  308. display: block;
  309. font-size: 26rpx;
  310. margin-top: 16rpx;
  311. }
  312. .userinfo .userinfo_ft {
  313. background-color: #fff;
  314. height: 80rpx;
  315. padding: 0 40rpx;
  316. display: flex;
  317. align-items: center;
  318. justify-content: space-between;
  319. padding-left: 248rpx;
  320. }
  321. .userinfo_tl {
  322. /* margin-left: 36rpx; */
  323. }
  324. .userinfo_tl .id {
  325. font-size: 26rpx;
  326. color: #333;
  327. text-indent: 1em;
  328. font-weight: 700;
  329. margin-bottom: 8rpx;
  330. line-height: 37rpx;
  331. }
  332. .userinfo_tl .balance {
  333. font-size: 24rpx;
  334. color: #666;
  335. line-height: 33rpx;
  336. }
  337. .userinfo_tr {
  338. margin-right: 16rpx;
  339. }
  340. .userinfo_tr button {
  341. width: 124rpx;
  342. height: 58rpx;
  343. background-color: transparent;
  344. color: #ff9500;
  345. border-radius: 93px;
  346. font-size: 24rpx;
  347. text-decoration: underline;
  348. }
  349. .userinfo_tr .gd {
  350. background-color: #FF9500;
  351. border-radius: 228rpx;
  352. color: #fff;
  353. height: 44rpx;
  354. line-height: 44rpx;
  355. text-decoration: none;
  356. width: 112rpx;
  357. font-size: 20rpx;
  358. }
  359. /* 任务列表 */
  360. .taskWrap {
  361. background-color: #fff;
  362. margin: 20rpx 0;
  363. }
  364. .taskWrap .taskWrap_cell {
  365. padding: 22rpx 38rpx;
  366. display: flex;
  367. align-items: center;
  368. position: relative;
  369. }
  370. .taskWrap_cell::before {
  371. content: '';
  372. width: 548rpx;
  373. height: 1px;
  374. background-color: #e6e6e6;
  375. position: absolute;
  376. right: 54rpx;
  377. bottom: 0;
  378. }
  379. .taskWrap_cell:last-child::before {
  380. display: none;
  381. }
  382. .taskWrap_cell .icon {
  383. margin-right: 32rpx;
  384. height: 80rpx;
  385. width: 80rpx;
  386. overflow: hidden;
  387. border-radius: 50%;
  388. }
  389. .taskWrap_cell .icon image {
  390. width: 100%;
  391. height: 100%;
  392. }
  393. .taskWrap_cell .info {
  394. flex: 1;
  395. }
  396. .taskWrap_cell .info, title {
  397. font-size: 28rpx;
  398. font-weight: 700;
  399. color: #333;
  400. line-height: 40rpx;
  401. }
  402. .taskWrap_cell .info .target {
  403. font-size: 22rpx;
  404. color: #999;
  405. margin-top: 6rpx;
  406. line-height: 30rpx;
  407. }
  408. .taskWrap_cell .right {
  409. margin-left: auto;
  410. margin-right: 16rpx;
  411. }
  412. /* 我玩过的游戏 */
  413. .playLog {
  414. background-color: #fff;
  415. }
  416. .playLog .title {
  417. height: 96rpx;
  418. font-size: 32rpx;
  419. color: #333;
  420. line-height: 96rpx;
  421. padding: 0 26rpx;
  422. font-weight: 700;
  423. }
  424. .gameWrap {
  425. min-height: 250rpx;
  426. padding: 0 14rpx;
  427. padding-bottom: 37rpx;
  428. align-items: center;
  429. }
  430. .gameWrap .gameWrap_item {
  431. float: left;
  432. width: 25%;
  433. }
  434. .gameWrap navigator,
  435. .gameWrap .entrance {
  436. width: 100%;
  437. height: 100%;
  438. display: flex;
  439. align-items: center;
  440. justify-content: center;
  441. flex-direction: column;
  442. }
  443. .gameWrap_item .name {
  444. font-size: 26rpx;
  445. color: #333;
  446. text-align: center;
  447. line-height: 37rpx;
  448. width: 152rpx;
  449. overflow: hidden;
  450. text-overflow: ellipsis;
  451. white-space: nowrap;
  452. margin-top: 15rpx;
  453. margin-bottom: 7rpx;
  454. font-weight: 700;
  455. }
  456. .gameWrap_item .icon {
  457. width: 152rpx;
  458. height: 152rpx;
  459. border-radius: 24rpx;
  460. position: relative;
  461. }
  462. .gameWrap_item .icon image {
  463. width: 100%;
  464. height: 100%;
  465. border-radius: 24rpx;
  466. }
  467. .gameWrap_item .icon text {
  468. position: absolute;
  469. right: -5rpx;
  470. bottom: 0;
  471. padding: 0 12rpx;
  472. height: 36rpx;
  473. background: #ff1a19;
  474. border-radius: 18rpx 18rpx 18rpx 0;
  475. font-size: 18rpx;
  476. font-weight: 400;
  477. color: #fff;
  478. display: flex;
  479. align-items: center;
  480. justify-content: center;
  481. }
  482. .gameWrap_item .num {
  483. font-size: 22rpx;
  484. color: #999;
  485. text-align: center;
  486. width: 152rpx;
  487. overflow: hidden;
  488. text-overflow: ellipsis;
  489. white-space: nowrap;
  490. }
  491. .share {
  492. position: fixed;
  493. top: auto;
  494. right: 30rpx;
  495. bottom: 54rpx;
  496. z-index: 99;
  497. }
  498. .share button {
  499. background-color: transparent;
  500. height: 80rpx;
  501. width: 80rpx;
  502. padding-left: 0;
  503. display: flex;
  504. align-items: center;
  505. }
  506. .share button image {
  507. width: 80rpx;
  508. height: 80rpx;
  509. }
  510. /* 分享 */
  511. .shareMask {
  512. width: 100vw;
  513. position: fixed;
  514. top: 0;
  515. z-index: 100;
  516. height: 100vh;
  517. background-color: rgba(0, 0, 0, 0.6);
  518. }
  519. .shareMask .menu {
  520. position: absolute;
  521. bottom: 0;
  522. left: 0;
  523. width: 100%;
  524. background-color: #fff;
  525. height: 228rpx;
  526. display: flex;
  527. align-items: center;
  528. justify-content: space-between;
  529. }
  530. .shareMask .menu_item {
  531. flex: 1;
  532. height: 100%;
  533. background: #fff;
  534. display: flex;
  535. align-items: center;
  536. justify-content: center;
  537. flex-direction: column;
  538. }
  539. .shareMask .menu_item image {
  540. width: 100rpx;
  541. height: 100rpx;
  542. }
  543. .shareMask .menu_item text {
  544. color: #333;
  545. font-size: 24rpx;
  546. font-weight: bold;
  547. margin-top: 12rpx;
  548. }
  549. /* 分享朋友圈 */
  550. .shareCircles {
  551. width: 100vw;
  552. position: fixed;
  553. top: 0;
  554. z-index: 100;
  555. height: 100%;
  556. }
  557. .shareCircles .task {
  558. background-color: rgba(0, 0, 0, 0.6);
  559. position: absolute;
  560. top: 0;
  561. left: 0;
  562. width: 100%;
  563. height: 100%;
  564. }
  565. .shareCircles .content {
  566. width: 466rpx;
  567. display: flex;
  568. align-items: center;
  569. flex-direction: column;
  570. height: 1005rpx;
  571. position: absolute;
  572. left: 50%;
  573. top: 50%;
  574. transform: translate(-50%, -50%);
  575. z-index: 999;
  576. }
  577. .shareCircles .main_img {
  578. width: 466rpx;
  579. height: 828rpx;
  580. }
  581. .shareCircles .main_img image {
  582. width: 100%;
  583. height: 100%;
  584. }
  585. .shareCircles .prompt {
  586. font-size: 28rpx;
  587. line-height: 40rpx;
  588. color: #fff;
  589. margin-top: 17rpx;
  590. margin-bottom: 32rpx;
  591. white-space: nowrap;
  592. }
  593. .shareCircles .btn {
  594. width: 395rpx;
  595. height: 88rpx;
  596. border-radius: 100px;
  597. font-size: 36rpx;
  598. color: #fff;
  599. display: flex;
  600. align-items: center;
  601. justify-content: center;
  602. background: #557cff;
  603. }
  604. .share_close {
  605. height: 40rpx;
  606. position: absolute;
  607. right: 27rpx;
  608. top: -61rpx;
  609. width: 40rpx;
  610. }