index.wxss 9.7 KB

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