index.wxss 12 KB

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