index.wxss 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  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. height: 170rpx;
  276. position: relative;
  277. }
  278. .userinfo .userinfo_avatar {
  279. position: absolute;
  280. left: 32rpx;
  281. top: -114rpx;
  282. width: 182rpx;
  283. height: 182rpx;
  284. border-radius: 50%;
  285. display: flex;
  286. align-items: center;
  287. justify-content: center;
  288. background: #fff;
  289. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.20);
  290. }
  291. .userinfo .userinfo_avatar image {
  292. width: 172rpx;
  293. height: 172rpx;
  294. border-radius: 50%;
  295. }
  296. .userinfo .userinfo_nickname {
  297. font-size: 28rpx;
  298. color: #333;
  299. line-height: 40rpx;
  300. padding-left: 220rpx;
  301. font-weight: 700;
  302. }
  303. .userinfo_id {
  304. color: #666;
  305. display: block;
  306. font-size: 20rpx;
  307. }
  308. .userinfo .userinfo_ft {
  309. background-color: #fff;
  310. height: 90rpx;
  311. padding: 0 40rpx;
  312. display: flex;
  313. align-items: center;
  314. justify-content: space-between;
  315. }
  316. .userinfo_tl {
  317. margin-left: 36rpx;
  318. }
  319. .userinfo_tl .id {
  320. font-size: 26rpx;
  321. color: #333;
  322. text-indent: 1em;
  323. font-weight: 700;
  324. margin-bottom: 8rpx;
  325. line-height: 37rpx;
  326. }
  327. .userinfo_tl .balance {
  328. font-size: 24rpx;
  329. color: #999;
  330. line-height: 33rpx;
  331. }
  332. .userinfo_tr {
  333. margin-right: 16rpx;
  334. }
  335. .userinfo_tr button {
  336. width: 124rpx;
  337. height: 58rpx;
  338. background-color: transparent;
  339. color: #ff9500;
  340. border-radius: 93px;
  341. font-size: 24rpx;
  342. text-decoration: underline;
  343. }
  344. .userinfo_tr .gd {
  345. background-color: rgba(255,149,0,1);
  346. border-radius: 28rpx;
  347. color: #fff;
  348. height: 58rpx;
  349. line-height: 58rpx;
  350. text-decoration: none;
  351. width: 172rpx;
  352. }
  353. /* 任务列表 */
  354. .taskWrap {
  355. background-color: #fff;
  356. margin: 20rpx 0;
  357. }
  358. .taskWrap .taskWrap_cell {
  359. padding: 22rpx 38rpx;
  360. display: flex;
  361. align-items: center;
  362. position: relative;
  363. }
  364. .taskWrap_cell::before {
  365. content: '';
  366. width: 548rpx;
  367. height: 1px;
  368. background-color: #e6e6e6;
  369. position: absolute;
  370. right: 54rpx;
  371. bottom: 0;
  372. }
  373. .taskWrap_cell:last-child::before {
  374. display: none;
  375. }
  376. .taskWrap_cell .icon {
  377. margin-right: 32rpx;
  378. height: 80rpx;
  379. width: 80rpx;
  380. overflow: hidden;
  381. border-radius: 50%;
  382. }
  383. .taskWrap_cell .icon image {
  384. width: 100%;
  385. height: 100%;
  386. }
  387. .taskWrap_cell .info {
  388. flex: 1;
  389. }
  390. .taskWrap_cell .info, title {
  391. font-size: 28rpx;
  392. font-weight: 700;
  393. color: #333;
  394. line-height: 40rpx;
  395. }
  396. .taskWrap_cell .info .target {
  397. font-size: 22rpx;
  398. color: #999;
  399. margin-top: 6rpx;
  400. line-height: 30rpx;
  401. }
  402. .taskWrap_cell .right {
  403. margin-left: auto;
  404. margin-right: 16rpx;
  405. }
  406. /* 我玩过的游戏 */
  407. .playLog {
  408. background-color: #fff;
  409. }
  410. .playLog .title {
  411. height: 96rpx;
  412. font-size: 32rpx;
  413. color: #333;
  414. line-height: 96rpx;
  415. padding: 0 26rpx;
  416. font-weight: 700;
  417. }
  418. .gameWrap {
  419. min-height: 250rpx;
  420. padding: 0 14rpx;
  421. padding-bottom: 37rpx;
  422. align-items: center;
  423. }
  424. .gameWrap .gameWrap_item {
  425. float: left;
  426. width: 25%;
  427. }
  428. .gameWrap navigator {
  429. width: 100%;
  430. height: 100%;
  431. display: flex;
  432. align-items: center;
  433. justify-content: center;
  434. flex-direction: column;
  435. }
  436. .gameWrap_item .name {
  437. font-size: 26rpx;
  438. color: #333;
  439. text-align: center;
  440. line-height: 37rpx;
  441. width: 152rpx;
  442. overflow: hidden;
  443. text-overflow: ellipsis;
  444. white-space: nowrap;
  445. margin-top: 15rpx;
  446. margin-bottom: 7rpx;
  447. font-weight: 700;
  448. }
  449. .gameWrap_item .icon {
  450. width: 152rpx;
  451. height: 152rpx;
  452. border-radius: 24rpx;
  453. position: relative;
  454. }
  455. .gameWrap_item .icon image {
  456. width: 100%;
  457. height: 100%;
  458. border-radius: 24rpx;
  459. }
  460. .gameWrap_item .icon text {
  461. position: absolute;
  462. right: -5rpx;
  463. bottom: 0;
  464. padding: 0 12rpx;
  465. height: 36rpx;
  466. background: #ff1a19;
  467. border-radius: 18rpx 18rpx 18rpx 0;
  468. font-size: 18rpx;
  469. font-weight: 400;
  470. color: #fff;
  471. display: flex;
  472. align-items: center;
  473. justify-content: center;
  474. }
  475. .gameWrap_item .num {
  476. font-size: 22rpx;
  477. color: #999;
  478. text-align: center;
  479. width: 152rpx;
  480. overflow: hidden;
  481. text-overflow: ellipsis;
  482. white-space: nowrap;
  483. }