index.wxss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. /* uni.scss */
  28. page {
  29. background-color: #F0524C;
  30. }
  31. .luckyDraw {
  32. position: relative;
  33. }
  34. .luckyDraw > .back {
  35. width: 100%;
  36. }
  37. .luckyDrawContent {
  38. overflow-x: hidden;
  39. position: absolute;
  40. top: 0;
  41. width: 100%;
  42. padding: 28rpx 0;
  43. margin-bottom: 20rpx;
  44. font-family: PingFangSC-Medium, PingFang SC;
  45. }
  46. .luckyDrawContent .luckyDrawTop {
  47. padding: 0 28rpx;
  48. height: 104rpx;
  49. display: flex;
  50. justify-content: space-between;
  51. align-items: center;
  52. }
  53. .luckyDrawContent .luckyDrawTop .left {
  54. display: flex;
  55. justify-content: flex-start;
  56. align-items: center;
  57. }
  58. .luckyDrawContent .luckyDrawTop .left > .avatarView {
  59. overflow: hidden;
  60. width: 104rpx;
  61. height: 104rpx;
  62. background: #D8D8D8;
  63. border-radius: 10px;
  64. }
  65. .luckyDrawContent .luckyDrawTop .left > .avatarView > image {
  66. width: 100%;
  67. height: 100%;
  68. }
  69. .luckyDrawContent .luckyDrawTop .left .userInfo {
  70. margin-left: 28rpx;
  71. }
  72. .luckyDrawContent .luckyDrawTop .left .userInfo > view {
  73. font-size: 32rpx;
  74. font-weight: 500;
  75. color: #FFFFFF;
  76. }
  77. .luckyDrawContent .luckyDrawTop .left .userInfo > view.account {
  78. display: flex;
  79. justify-content: flex-start;
  80. align-items: center;
  81. }
  82. .luckyDrawContent .luckyDrawTop .left .userInfo > view.account > image {
  83. width: 36rpx;
  84. height: 36rpx;
  85. margin-right: 10rpx;
  86. }
  87. .luckyDrawContent .luckyDrawTop .left .userInfo > view.ID {
  88. margin-top: 4rpx;
  89. display: flex;
  90. justify-content: flex-start;
  91. align-items: center;
  92. }
  93. .luckyDrawContent .luckyDrawTop .left .userInfo > view .extract {
  94. font-size: 30rpx;
  95. margin-left: 30rpx;
  96. background-color: #d533ba;
  97. padding: 6rpx 16rpx;
  98. border-radius: 26rpx;
  99. }
  100. .luckyDrawContent .luckyDrawTop .right {
  101. width: 180rpx;
  102. height: 64rpx;
  103. background: #BA3A11;
  104. border-radius: 30rpx;
  105. display: flex;
  106. justify-content: center;
  107. align-items: center;
  108. }
  109. .luckyDrawContent .luckyDrawTop .right > text {
  110. font-size: 28rpx;
  111. font-weight: 400;
  112. color: #FFFFFF;
  113. }
  114. .luckyDrawContent .notice {
  115. width: 656rpx;
  116. height: 60rpx;
  117. background: #C7322C;
  118. box-shadow: 0px 4rpx 8rpx 0rpx rgba(49, 49, 49, 0.08);
  119. border-radius: 38rpx;
  120. opacity: 0.53;
  121. margin: 38rpx auto 0;
  122. padding: 0 30rpx;
  123. box-sizing: border-box;
  124. display: flex;
  125. justify-content: flex-start;
  126. align-items: center;
  127. }
  128. .luckyDrawContent .notice .horn {
  129. width: 28rpx;
  130. height: 28rpx;
  131. }
  132. .luckyDrawContent .notice .txts {
  133. height: 68rpx;
  134. width: 600rpx;
  135. }
  136. .luckyDrawContent .qLuckDraw {
  137. position: absolute;
  138. top: 180rpx;
  139. right: 10rpx;
  140. z-index: 200;
  141. -webkit-animation: lanimation 1.3s linear infinite;
  142. animation: lanimation 1.3s linear infinite;
  143. }
  144. .luckyDrawContent .qLuckDraw > image {
  145. width: 120rpx;
  146. height: 120rpx;
  147. }
  148. .luckyDrawContent .turntable {
  149. position: relative;
  150. margin-top: 20rpx;
  151. }
  152. .luckyDrawContent .turntable .decorate {
  153. position: relative;
  154. width: 100%;
  155. height: 880rpx;
  156. }
  157. .luckyDrawContent .turntable .decorate > image {
  158. width: 100%;
  159. position: absolute;
  160. z-index: 10;
  161. }
  162. .luckyDrawContent .turntable .decorate > image.decorateBack {
  163. top: 0;
  164. }
  165. .luckyDrawContent .turntable .decorate > image.decorateChassis {
  166. position: absolute;
  167. z-index: 1;
  168. bottom: 0;
  169. }
  170. .luckyDrawContent .turntable .turntableContent {
  171. position: absolute;
  172. top: 0;
  173. left: 0;
  174. right: 0;
  175. bottom: 0;
  176. width: 100%;
  177. height: 100%;
  178. z-index: 20;
  179. }
  180. .luckyDrawContent .turntable .turntableContent .al {
  181. width: 100%;
  182. height: 804rpx;
  183. display: flex;
  184. justify-content: center;
  185. align-items: center;
  186. padding-bottom: 40rpx;
  187. }
  188. .luckyDrawContent .turntable .turntableContent .bottom {
  189. margin-top: 30rpx;
  190. text-align: center;
  191. position: absolute;
  192. bottom: 25rpx;
  193. left: 50%;
  194. -webkit-transform: translateX(-50%);
  195. transform: translateX(-50%);
  196. }
  197. .luckyDrawContent .turntable .turntableContent .bottom .cont {
  198. font-size: 28rpx;
  199. font-weight: 400;
  200. color: #FFFFFF;
  201. margin-bottom: 12rpx;
  202. }
  203. .luckyDrawContent .turntable .turntableContent .bottom .cont text {
  204. font-size: 36rpx;
  205. color: #FEED22;
  206. font-weight: 500;
  207. }
  208. .luckyDrawContent .myPrize {
  209. margin: 30rpx 26rpx 0;
  210. min-height: 352rpx;
  211. background: #F4E2CA;
  212. border-radius: 20rpx;
  213. position: relative;
  214. padding: 40rpx 0 20rpx;
  215. }
  216. .luckyDrawContent .myPrize .title {
  217. position: absolute;
  218. width: 232rpx;
  219. height: 64rpx;
  220. background: linear-gradient(180deg, #FFEDD1 0%, #FFC954 100%);
  221. box-shadow: 0 4rpx 8rpx 0 rgba(0, 0, 0, 0.07);
  222. border-radius: 0 0 24rpx 24rpx;
  223. font-size: 32rpx;
  224. font-weight: 500;
  225. color: #F33938;
  226. text-align: center;
  227. line-height: 64rpx;
  228. left: 50%;
  229. -webkit-transform: translateX(-50%);
  230. transform: translateX(-50%);
  231. top: -12rpx;
  232. }
  233. .luckyDrawContent .myPrize .chips {
  234. display: flex;
  235. justify-content: space-between;
  236. }
  237. .luckyDrawContent .myPrize .chip {
  238. display: flex;
  239. flex-direction: column;
  240. align-items: center;
  241. width: 50%;
  242. }
  243. .luckyDrawContent .myPrize .chip > image {
  244. width: 180rpx;
  245. height: 140rpx;
  246. }
  247. .luckyDrawContent .myPrize .chip .text {
  248. font-size: 32rpx;
  249. font-weight: 500;
  250. color: #F33938;
  251. line-height: 44rpx;
  252. margin-top: 12rpx;
  253. }
  254. .luckyDrawContent .myPrize .chip .progress {
  255. position: relative;
  256. width: 200rpx;
  257. height: 38rpx;
  258. margin-top: 12rpx;
  259. background: #FFFCF7;
  260. border-radius: 26rpx;
  261. overflow: hidden;
  262. }
  263. .luckyDrawContent .myPrize .chip .progress .value {
  264. position: absolute;
  265. width: 1%;
  266. height: 100%;
  267. top: 0;
  268. left: 0;
  269. z-index: 1;
  270. background: #F37938;
  271. }
  272. .luckyDrawContent .myPrize .chip .progress > text {
  273. font-size: 28rpx;
  274. font-weight: 500;
  275. color: #333333;
  276. position: absolute;
  277. top: 50%;
  278. left: 50%;
  279. -webkit-transform: translate(-50%, -50%);
  280. transform: translate(-50%, -50%);
  281. z-index: 2;
  282. }
  283. .luckyDrawContent .myPrize .clearTime {
  284. margin: 20rpx 0 0;
  285. text-align: center;
  286. font-size: 24rpx;
  287. font-weight: 400;
  288. color: #F33938;
  289. }
  290. .luckyDrawContent .activityRules {
  291. margin: 28rpx 28rpx 0;
  292. background: #F4E2CA;
  293. border-radius: 20rpx;
  294. color: #F33938;
  295. font-size: 32rpx;
  296. font-weight: 400;
  297. }
  298. .luckyDrawContent .activityRules > .top {
  299. height: 92rpx;
  300. padding: 0 28rpx;
  301. box-sizing: border-box;
  302. display: flex;
  303. justify-content: space-between;
  304. align-items: center;
  305. }
  306. .luckyDrawContent .activityRules > .top > image {
  307. width: 40rpx;
  308. }
  309. .luckyDrawContent .activityRules > .bottom {
  310. padding: 0 28rpx 30rpx;
  311. box-sizing: border-box;
  312. }
  313. .luckyDrawContent .activityRules > .bottom > view {
  314. margin-bottom: 12rpx;
  315. font-size: 28rpx;
  316. font-weight: 400;
  317. color: #666666;
  318. line-height: 46rpx;
  319. }
  320. .luckyDrawContent .popup {
  321. position: fixed;
  322. width: 100%;
  323. height: 100vh;
  324. background: rgba(0, 0, 0, 0.6);
  325. top: 0;
  326. left: 0;
  327. right: 0;
  328. bottom: 0;
  329. z-index: 201;
  330. }
  331. .luckyDrawContent .popup .popupContent {
  332. width: 632rpx;
  333. position: absolute;
  334. top: 50%;
  335. left: 50%;
  336. -webkit-transform: translate(-50%, -50%);
  337. transform: translate(-50%, -50%);
  338. text-align: center;
  339. }
  340. .luckyDrawContent .popup .popupContent > .content {
  341. position: relative;
  342. }
  343. .luckyDrawContent .popup .popupContent > .content > image {
  344. width: 100%;
  345. height: 652rpx;
  346. }
  347. .luckyDrawContent .popup .popupContent > .content > .textCon {
  348. position: absolute;
  349. width: 100%;
  350. top: 0;
  351. left: 0;
  352. right: 0;
  353. bottom: 0;
  354. padding-top: 192rpx;
  355. }
  356. .luckyDrawContent .popup .popupContent > .content > .textCon .ts {
  357. font-size: 60rpx;
  358. font-weight: 500;
  359. color: #F5631D;
  360. }
  361. .luckyDrawContent .popup .popupContent > .content > .textCon .reward {
  362. height: 60rpx;
  363. font-size: 50rpx;
  364. font-weight: 400;
  365. display: inline-block;
  366. padding: 0 32rpx;
  367. color: #F5631E;
  368. line-height: 60rpx;
  369. margin-top: 20rpx;
  370. }
  371. .luckyDrawContent .popup .popupContent > .content > .textCon .goldText {
  372. font-size: 64rpx;
  373. font-family: FZZZHONGJW--GB1-0, FZZZHONGJW--GB1;
  374. font-weight: normal;
  375. color: #FFFFFF;
  376. margin-bottom: 25rpx;
  377. -webkit-transform: translateX(12rpx);
  378. transform: translateX(12rpx);
  379. }
  380. .luckyDrawContent .popup .popupContent > .content > .textCon .doubleBt {
  381. width: 456rpx;
  382. height: 104rpx;
  383. margin-top: 90rpx;
  384. transition: all linear .5s;
  385. }
  386. .luckyDrawContent .popup .popupContent > .content > .textCon .bt {
  387. margin-top: 14rpx;
  388. font-size: 32rpx;
  389. font-weight: 400;
  390. color: #FCE8CD;
  391. }
  392. .luckyDrawContent .popup .popupContent > .content > .textCon .againLuckDrawBt {
  393. width: 424rpx;
  394. height: 86rpx;
  395. background: linear-gradient(180deg, #FDDEA5 0%, #FFC981 75%, #FFC983 100%);
  396. border-radius: 43rpx;
  397. font-size: 36rpx;
  398. font-family: SourceHanSansCN-Medium, SourceHanSansCN;
  399. font-weight: 500;
  400. color: #854007;
  401. text-align: center;
  402. line-height: 86rpx;
  403. margin: 0 auto 40rpx;
  404. transition: all linear .5s;
  405. }
  406. .luckyDrawContent .popup .popupContent > .content > .textCon .btGold {
  407. width: 448rpx;
  408. height: 104rpx;
  409. border-radius: 52rpx;
  410. line-height: 104rpx;
  411. font-size: 40rpx;
  412. box-shadow: 0px 2rpx 8rpx 4rpx rgba(183, 2, 2, 0.37);
  413. background: linear-gradient(180deg, #FFFCBE 0%, #F87527 100%);
  414. }
  415. .luckyDrawContent .popup .popupContent > .content > .textCon .btVip {
  416. width: 426rpx;
  417. height: 88rpx;
  418. background: linear-gradient(180deg, #F6E5CA 0%, #EDC388 100%);
  419. box-shadow: 0rpx 6rpx 16rpx 0rpx rgba(162, 58, 20, 0.77);
  420. border-radius: 44rpx;
  421. }
  422. .luckyDrawContent .popup .popupContent > .close {
  423. width: 54rpx;
  424. height: 54rpx;
  425. margin-top: 76rpx;
  426. }
  427. .luckyDrawContent .fragmentAni, .luckyDrawContent .fragmentGold {
  428. position: absolute;
  429. z-index: 201;
  430. top: 453rpx;
  431. left: 330rpx;
  432. opacity: 0;
  433. }
  434. .luckyDrawContent .fragmentAni > image, .luckyDrawContent .fragmentGold > image {
  435. width: 100rpx;
  436. height: 100rpx;
  437. }
  438. .luckyDrawContent .receiveTs {
  439. position: absolute;
  440. border: 2rpx solid #f24545;
  441. top: 450rpx;
  442. z-index: 201;
  443. color: #FFFFFF;
  444. left: 50%;
  445. -webkit-transform: translateX(-50%);
  446. transform: translateX(-50%);
  447. padding: 10rpx 20rpx;
  448. background-color: rgba(131, 37, 37, 0.6);
  449. border-radius: 5rpx;
  450. opacity: 0;
  451. }
  452. .luckyDrawContent .singleLattice {
  453. position: absolute;
  454. top: 900rpx;
  455. right: 8rpx;
  456. z-index: 201;
  457. }
  458. @-webkit-keyframes lanimation {
  459. 0% {
  460. -webkit-transform: rotate(0deg);
  461. transform: rotate(0deg);
  462. }
  463. 8% {
  464. -webkit-transform: rotate(12deg);
  465. transform: rotate(12deg);
  466. }
  467. 16% {
  468. -webkit-transform: rotate(0deg);
  469. transform: rotate(0deg);
  470. }
  471. 24% {
  472. -webkit-transform: rotate(-12deg);
  473. transform: rotate(-12deg);
  474. }
  475. 32% {
  476. -webkit-transform: rotate(0deg);
  477. transform: rotate(0deg);
  478. }
  479. 100% {
  480. -webkit-transform: rotate(0deg);
  481. transform: rotate(0deg);
  482. }
  483. }