index.wxss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  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 .userInfo {
  66. margin-left: 28rpx;
  67. }
  68. .luckyDrawContent .luckyDrawTop .left .userInfo > view {
  69. font-size: 32rpx;
  70. font-weight: 500;
  71. color: #FFFFFF;
  72. }
  73. .luckyDrawContent .luckyDrawTop .left .userInfo > view.account {
  74. display: flex;
  75. justify-content: flex-start;
  76. align-items: center;
  77. }
  78. .luckyDrawContent .luckyDrawTop .left .userInfo > view.account > image {
  79. width: 36rpx;
  80. height: 36rpx;
  81. margin-right: 10rpx;
  82. }
  83. .luckyDrawContent .luckyDrawTop .left .userInfo > view.ID {
  84. margin-top: 4rpx;
  85. }
  86. .luckyDrawContent .luckyDrawTop .right {
  87. width: 180rpx;
  88. height: 64rpx;
  89. background: #BA3A11;
  90. border-radius: 30rpx;
  91. display: flex;
  92. justify-content: center;
  93. align-items: center;
  94. }
  95. .luckyDrawContent .luckyDrawTop .right > text {
  96. font-size: 28rpx;
  97. font-weight: 400;
  98. color: #FFFFFF;
  99. }
  100. .luckyDrawContent .notice {
  101. width: 656rpx;
  102. height: 60rpx;
  103. background: #C7322C;
  104. box-shadow: 0px 4rpx 8rpx 0rpx rgba(49, 49, 49, 0.08);
  105. border-radius: 38rpx;
  106. opacity: 0.53;
  107. margin: 38rpx auto 0;
  108. padding: 0 30rpx;
  109. box-sizing: border-box;
  110. display: flex;
  111. justify-content: flex-start;
  112. align-items: center;
  113. }
  114. .luckyDrawContent .notice .horn {
  115. width: 28rpx;
  116. height: 28rpx;
  117. }
  118. .luckyDrawContent .notice .txts {
  119. height: 68rpx;
  120. width: 600rpx;
  121. }
  122. .luckyDrawContent .qLuckDraw {
  123. position: absolute;
  124. top: 180rpx;
  125. right: 10rpx;
  126. z-index: 200;
  127. -webkit-animation: lanimation 1.3s linear infinite;
  128. animation: lanimation 1.3s linear infinite;
  129. }
  130. .luckyDrawContent .qLuckDraw > image {
  131. width: 120rpx;
  132. height: 120rpx;
  133. }
  134. .luckyDrawContent .turntable {
  135. position: relative;
  136. margin-top: 20rpx;
  137. }
  138. .luckyDrawContent .turntable .decorate {
  139. position: relative;
  140. width: 100%;
  141. height: 880rpx;
  142. }
  143. .luckyDrawContent .turntable .decorate > image {
  144. width: 100%;
  145. position: absolute;
  146. z-index: 10;
  147. }
  148. .luckyDrawContent .turntable .decorate > image.decorateBack {
  149. top: 0;
  150. }
  151. .luckyDrawContent .turntable .decorate > image.decorateChassis {
  152. position: absolute;
  153. z-index: 1;
  154. bottom: 0;
  155. }
  156. .luckyDrawContent .turntable .turntableContent {
  157. position: absolute;
  158. top: 0;
  159. left: 0;
  160. right: 0;
  161. bottom: 0;
  162. width: 100%;
  163. height: 100%;
  164. z-index: 20;
  165. }
  166. .luckyDrawContent .turntable .turntableContent .al {
  167. width: 100%;
  168. height: 804rpx;
  169. display: flex;
  170. justify-content: center;
  171. align-items: center;
  172. padding-bottom: 40rpx;
  173. }
  174. .luckyDrawContent .turntable .turntableContent .bottom {
  175. margin-top: 30rpx;
  176. text-align: center;
  177. position: absolute;
  178. bottom: 25rpx;
  179. left: 50%;
  180. -webkit-transform: translateX(-50%);
  181. transform: translateX(-50%);
  182. }
  183. .luckyDrawContent .turntable .turntableContent .bottom .cont {
  184. font-size: 28rpx;
  185. font-weight: 400;
  186. color: #FFFFFF;
  187. margin-bottom: 12rpx;
  188. }
  189. .luckyDrawContent .turntable .turntableContent .bottom .cont text {
  190. font-size: 36rpx;
  191. color: #FEED22;
  192. font-weight: 500;
  193. }
  194. .luckyDrawContent .myPrize {
  195. margin: 30rpx 26rpx 0;
  196. min-height: 352rpx;
  197. background: #F4E2CA;
  198. border-radius: 20rpx;
  199. position: relative;
  200. padding: 40rpx 0 20rpx;
  201. }
  202. .luckyDrawContent .myPrize .title {
  203. position: absolute;
  204. width: 232rpx;
  205. height: 64rpx;
  206. background: linear-gradient(180deg, #FFEDD1 0%, #FFC954 100%);
  207. box-shadow: 0 4rpx 8rpx 0 rgba(0, 0, 0, 0.07);
  208. border-radius: 0 0 24rpx 24rpx;
  209. font-size: 32rpx;
  210. font-weight: 500;
  211. color: #F33938;
  212. text-align: center;
  213. line-height: 64rpx;
  214. left: 50%;
  215. -webkit-transform: translateX(-50%);
  216. transform: translateX(-50%);
  217. top: -12rpx;
  218. }
  219. .luckyDrawContent .myPrize .chips {
  220. display: flex;
  221. justify-content: space-between;
  222. }
  223. .luckyDrawContent .myPrize .chip {
  224. display: flex;
  225. flex-direction: column;
  226. align-items: center;
  227. width: 50%;
  228. }
  229. .luckyDrawContent .myPrize .chip > image {
  230. width: 180rpx;
  231. height: 140rpx;
  232. }
  233. .luckyDrawContent .myPrize .chip .text {
  234. font-size: 32rpx;
  235. font-weight: 500;
  236. color: #F33938;
  237. line-height: 44rpx;
  238. margin-top: 12rpx;
  239. }
  240. .luckyDrawContent .myPrize .chip .progress {
  241. position: relative;
  242. width: 200rpx;
  243. height: 38rpx;
  244. margin-top: 12rpx;
  245. background: #FFFCF7;
  246. border-radius: 26rpx;
  247. overflow: hidden;
  248. }
  249. .luckyDrawContent .myPrize .chip .progress .value {
  250. position: absolute;
  251. width: 1%;
  252. height: 100%;
  253. top: 0;
  254. left: 0;
  255. z-index: 1;
  256. background: #F37938;
  257. }
  258. .luckyDrawContent .myPrize .chip .progress > text {
  259. font-size: 28rpx;
  260. font-weight: 500;
  261. color: #333333;
  262. position: absolute;
  263. top: 50%;
  264. left: 50%;
  265. -webkit-transform: translate(-50%, -50%);
  266. transform: translate(-50%, -50%);
  267. z-index: 2;
  268. }
  269. .luckyDrawContent .myPrize .clearTime {
  270. margin: 20rpx 0 0;
  271. text-align: center;
  272. font-size: 24rpx;
  273. font-weight: 400;
  274. color: #F33938;
  275. }
  276. .luckyDrawContent .activityRules {
  277. margin: 28rpx 28rpx 0;
  278. background: #F4E2CA;
  279. border-radius: 20rpx;
  280. color: #F33938;
  281. font-size: 32rpx;
  282. font-weight: 400;
  283. }
  284. .luckyDrawContent .activityRules > .top {
  285. height: 92rpx;
  286. padding: 0 28rpx;
  287. box-sizing: border-box;
  288. display: flex;
  289. justify-content: space-between;
  290. align-items: center;
  291. }
  292. .luckyDrawContent .activityRules > .top > image {
  293. width: 40rpx;
  294. }
  295. .luckyDrawContent .activityRules > .bottom {
  296. padding: 0 28rpx 30rpx;
  297. box-sizing: border-box;
  298. }
  299. .luckyDrawContent .activityRules > .bottom > view {
  300. margin-bottom: 12rpx;
  301. font-size: 28rpx;
  302. font-weight: 400;
  303. color: #666666;
  304. line-height: 46rpx;
  305. }
  306. .luckyDrawContent .popup {
  307. position: fixed;
  308. width: 100%;
  309. height: 100vh;
  310. background: rgba(0, 0, 0, 0.6);
  311. top: 0;
  312. left: 0;
  313. right: 0;
  314. bottom: 0;
  315. z-index: 201;
  316. }
  317. .luckyDrawContent .popup .popupContent {
  318. width: 632rpx;
  319. position: absolute;
  320. top: 50%;
  321. left: 50%;
  322. -webkit-transform: translate(-50%, -50%);
  323. transform: translate(-50%, -50%);
  324. text-align: center;
  325. }
  326. .luckyDrawContent .popup .popupContent > .content {
  327. position: relative;
  328. }
  329. .luckyDrawContent .popup .popupContent > .content > image {
  330. width: 100%;
  331. height: 652rpx;
  332. }
  333. .luckyDrawContent .popup .popupContent > .content > .textCon {
  334. position: absolute;
  335. width: 100%;
  336. top: 0;
  337. left: 0;
  338. right: 0;
  339. bottom: 0;
  340. padding-top: 192rpx;
  341. }
  342. .luckyDrawContent .popup .popupContent > .content > .textCon .ts {
  343. font-size: 60rpx;
  344. font-weight: 500;
  345. color: #F5631D;
  346. }
  347. .luckyDrawContent .popup .popupContent > .content > .textCon .reward {
  348. height: 60rpx;
  349. font-size: 50rpx;
  350. font-weight: 400;
  351. display: inline-block;
  352. padding: 0 32rpx;
  353. color: #F5631E;
  354. line-height: 60rpx;
  355. margin-top: 20rpx;
  356. }
  357. .luckyDrawContent .popup .popupContent > .content > .textCon .goldText {
  358. font-size: 64rpx;
  359. font-family: FZZZHONGJW--GB1-0, FZZZHONGJW--GB1;
  360. font-weight: normal;
  361. color: #FFFFFF;
  362. margin-bottom: 25rpx;
  363. -webkit-transform: translateX(12rpx);
  364. transform: translateX(12rpx);
  365. }
  366. .luckyDrawContent .popup .popupContent > .content > .textCon .doubleBt {
  367. width: 456rpx;
  368. height: 104rpx;
  369. margin-top: 90rpx;
  370. transition: all linear .5s;
  371. }
  372. .luckyDrawContent .popup .popupContent > .content > .textCon .bt {
  373. margin-top: 14rpx;
  374. font-size: 32rpx;
  375. font-weight: 400;
  376. color: #FCE8CD;
  377. }
  378. .luckyDrawContent .popup .popupContent > .content > .textCon .againLuckDrawBt {
  379. width: 424rpx;
  380. height: 86rpx;
  381. background: linear-gradient(180deg, #FDDEA5 0%, #FFC981 75%, #FFC983 100%);
  382. border-radius: 43rpx;
  383. font-size: 36rpx;
  384. font-family: SourceHanSansCN-Medium, SourceHanSansCN;
  385. font-weight: 500;
  386. color: #854007;
  387. text-align: center;
  388. line-height: 86rpx;
  389. margin: 0 auto 40rpx;
  390. transition: all linear .5s;
  391. }
  392. .luckyDrawContent .popup .popupContent > .content > .textCon .btGold {
  393. width: 448rpx;
  394. height: 104rpx;
  395. border-radius: 52rpx;
  396. line-height: 104rpx;
  397. font-size: 40rpx;
  398. box-shadow: 0px 2rpx 8rpx 4rpx rgba(183, 2, 2, 0.37);
  399. background: linear-gradient(180deg, #FFFCBE 0%, #F87527 100%);
  400. }
  401. .luckyDrawContent .popup .popupContent > .content > .textCon .btVip {
  402. width: 426rpx;
  403. height: 88rpx;
  404. background: linear-gradient(180deg, #F6E5CA 0%, #EDC388 100%);
  405. box-shadow: 0rpx 6rpx 16rpx 0rpx rgba(162, 58, 20, 0.77);
  406. border-radius: 44rpx;
  407. }
  408. .luckyDrawContent .popup .popupContent > .close {
  409. width: 54rpx;
  410. height: 54rpx;
  411. margin-top: 76rpx;
  412. }
  413. .luckyDrawContent .fragmentAni, .luckyDrawContent .fragmentGold {
  414. position: absolute;
  415. z-index: 201;
  416. top: 453rpx;
  417. left: 330rpx;
  418. opacity: 0;
  419. }
  420. .luckyDrawContent .fragmentAni > image, .luckyDrawContent .fragmentGold > image {
  421. width: 100rpx;
  422. height: 100rpx;
  423. }
  424. .luckyDrawContent .receiveTs {
  425. position: absolute;
  426. border: 2rpx solid #f24545;
  427. top: 450rpx;
  428. z-index: 201;
  429. color: #FFFFFF;
  430. left: 50%;
  431. -webkit-transform: translateX(-50%);
  432. transform: translateX(-50%);
  433. padding: 10rpx 20rpx;
  434. background-color: rgba(131, 37, 37, 0.6);
  435. border-radius: 5rpx;
  436. opacity: 0;
  437. }
  438. .luckyDrawContent .singleLattice {
  439. position: absolute;
  440. top: 900rpx;
  441. right: 8rpx;
  442. z-index: 201;
  443. }
  444. @-webkit-keyframes lanimation {
  445. 0% {
  446. -webkit-transform: rotate(0deg);
  447. transform: rotate(0deg);
  448. }
  449. 8% {
  450. -webkit-transform: rotate(12deg);
  451. transform: rotate(12deg);
  452. }
  453. 16% {
  454. -webkit-transform: rotate(0deg);
  455. transform: rotate(0deg);
  456. }
  457. 24% {
  458. -webkit-transform: rotate(-12deg);
  459. transform: rotate(-12deg);
  460. }
  461. 32% {
  462. -webkit-transform: rotate(0deg);
  463. transform: rotate(0deg);
  464. }
  465. 100% {
  466. -webkit-transform: rotate(0deg);
  467. transform: rotate(0deg);
  468. }
  469. }