style.scss 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. .packet-bg {
  2. position: relative;
  3. display: inline-block;
  4. width: 281px;
  5. height: 387px;
  6. border-radius: 6px;
  7. background-color: #d35849;
  8. box-sizing: border-box;
  9. vertical-align: middle;
  10. position: relative;
  11. overflow: hidden;
  12. padding-top: 40px;
  13. .bg{
  14. position: absolute;
  15. height: 100%;
  16. overflow: hidden;
  17. &:before{
  18. content: "";
  19. position: absolute;
  20. top: -168px;
  21. left: 50%;
  22. transform: translateX(-50%);
  23. width: 450px;
  24. height: 450px;
  25. background: #e16654;
  26. border-radius: 50%;
  27. }
  28. }
  29. .el-icon-close {
  30. position: absolute;
  31. top: 6px;
  32. right: 6px;
  33. color: #ffffff;
  34. font-size: 20px;
  35. cursor: pointer;
  36. }
  37. }
  38. .nav-bar {
  39. display: none;
  40. }
  41. .user-info {
  42. position: relative;
  43. text-align: center;
  44. }
  45. .avatar {
  46. position: relative;
  47. display: block;
  48. width: 60px;
  49. height: 60px;
  50. margin: 0 auto;
  51. border-radius: 4px;
  52. overflow: hidden;
  53. &.no-avatar {
  54. line-height: 60px;
  55. text-align: center;
  56. font-size: 16px;
  57. color: #ffffff;
  58. }
  59. }
  60. .name {
  61. position: relative;
  62. color: #f9efc5;
  63. font-size: 14px;
  64. display: inline-block;
  65. margin: 10px 0 12px 0;
  66. }
  67. .text {
  68. position: relative;
  69. color: #f9efc5;
  70. font-size: 16px;
  71. padding: 0 14px;
  72. line-height: 1.4;
  73. }
  74. .open-btn {
  75. position: absolute;
  76. left: 0;
  77. right: 0;
  78. margin: 0 auto;
  79. font-size: 34px;
  80. bottom: 70px;
  81. width: 82px;
  82. height: 82px;
  83. line-height: 82px;
  84. text-align: center;
  85. border-radius: 50%;
  86. margin: 0 auto;
  87. background-color: #e8cca0;
  88. color: #553a1b;
  89. font-family: KaiTi, STKaiti, Microsoft Yahei, PingFang SC;
  90. cursor: pointer;
  91. &:hover {
  92. background-color: #dbbd8b;
  93. }
  94. }
  95. .detail {
  96. position: absolute;
  97. bottom: 20px;
  98. left: 0;
  99. right: 0;
  100. text-align: center;
  101. font-size: 14px;
  102. color: #f9efc5;
  103. cursor: pointer;
  104. }
  105. .detail-bg {
  106. position: relative;
  107. display: inline-block;
  108. width: 281px;
  109. border-radius: 6px;
  110. box-sizing: border-box;
  111. background-size: 100%;
  112. vertical-align: middle;
  113. position: relative;
  114. overflow: hidden;
  115. padding-top: 30px;
  116. background-color: #ffffff;
  117. &:before{
  118. content: "";
  119. position: absolute;
  120. top: -785px;
  121. left: 50%;
  122. transform: translateX(-50%);
  123. width: 850px;
  124. height: 850px;
  125. background: #e16654;
  126. border-radius: 50%;
  127. }
  128. .el-icon-close {
  129. position: absolute;
  130. top: 6px;
  131. right: 6px;
  132. color: #ffffff;
  133. font-size: 20px;
  134. cursor: pointer;
  135. }
  136. .name {
  137. color: #333333;
  138. margin-bottom: 6px;
  139. }
  140. .text {
  141. color: #333333;
  142. font-size: 12px;
  143. }
  144. }
  145. .money {
  146. position: relative;
  147. text-align: center;
  148. font-size: 24px;
  149. color: #333333;
  150. margin: 14px 0;
  151. em {
  152. font-size: 12px;
  153. color: #999999;
  154. }
  155. }
  156. .state {
  157. position: relative;
  158. font-size: 12px;
  159. color: #5a93eb;
  160. margin-bottom: 12px;
  161. }
  162. .state-num {
  163. position: relative;
  164. font-size: 12px;
  165. margin: 4px 0;
  166. color: #999999;
  167. }
  168. .packet-list {
  169. margin: 14px 12px 0 12px;
  170. height: 148px;
  171. overflow: auto;
  172. li {
  173. display: flex;
  174. padding: 6px 0;
  175. border-top: 1px solid #eee;
  176. .avatar {
  177. width: 36px;
  178. height: 36px;
  179. border-radius: 2px;
  180. }
  181. .no-avatar {
  182. line-height: 36px;
  183. }
  184. }
  185. .content {
  186. flex: 1;
  187. margin-left: 10px;
  188. font-size: 12px;
  189. text-align: left;
  190. .top {
  191. color: #333333;
  192. line-height: 1.4;
  193. margin-bottom: 8px;
  194. }
  195. .amount {
  196. float: right;
  197. }
  198. .best{
  199. display: inline-block;
  200. vertical-align: middle;
  201. width: 14px;
  202. height: 16px;
  203. margin-left: 10px;
  204. background: url(../../../assets/crown-icon.png) no-repeat;
  205. }
  206. }
  207. .time {
  208. color: #999999;
  209. }
  210. }
  211. .tips {
  212. color: #999999;
  213. text-align: center;
  214. font-size: 12px;
  215. margin: 12px 0;
  216. }
  217. .redpack-tips {
  218. color: #f9efc5;
  219. font-size: 16px;
  220. line-height: 1.4;
  221. margin-top: 30px;
  222. padding: 0 12px;
  223. }
  224. .small {
  225. margin-top: 40px;
  226. .avatar {
  227. display: inline-block;
  228. vertical-align: middle;
  229. line-height: 30px;
  230. width: 30px;
  231. height: 30px;
  232. margin-right: 10px;
  233. border-radius: 4px;
  234. &.no-avatar {
  235. line-height: 30px;
  236. }
  237. }
  238. .name {
  239. font-size: 16px;
  240. }
  241. }
  242. .loading {
  243. pointer-events: none;
  244. }
  245. /*h5 style*/
  246. .h5-wrap {
  247. .packet-bg {
  248. width: px2rem(623);
  249. height: px2rem(920);
  250. background: #df6350;
  251. padding-top: 0;
  252. overflow: visible;
  253. &:before{
  254. top: px2rem(-680);
  255. width: px2rem(1360);
  256. height: px2rem(1360);
  257. background: #df6350;
  258. box-shadow: 0 0 4px #9c4538;
  259. }
  260. }
  261. .detail-bg {
  262. width: 100%;
  263. height: 100%;
  264. box-sizing: border-box;
  265. padding: 0 0 px2rem(108); // padding-top: 10;
  266. border-radius: 0;
  267. background-color: #fff;
  268. @include webkitbox(2);
  269. &:before{
  270. top: px2rem(-1100);
  271. width: px2rem(1500);
  272. height: px2rem(1500);
  273. background: #e1604c;
  274. }
  275. &.is-quantity{
  276. &:before{
  277. top: px2rem(-880);
  278. width: px2rem(1500);
  279. height: px2rem(1500);
  280. background: #e1604c;
  281. }
  282. .packet-list{
  283. // height: px2rem(400);
  284. }
  285. }
  286. .el-icon-close {
  287. visibility: hidden;
  288. }
  289. .name{
  290. color: #f9efc5;
  291. }
  292. .text{
  293. margin-top: px2rem(18);
  294. color: #f9efc5;
  295. font-size: px2rem(28);
  296. }
  297. .money{
  298. margin: px2rem(50) auto;
  299. font-size: px2rem(62);
  300. font-weight: bold;
  301. color: #fae3b7;
  302. em{
  303. color: #fae3b7;
  304. // font-weight: normal;
  305. }
  306. }
  307. .state{
  308. color: #f9efc5;
  309. }
  310. .state-num{
  311. padding-left: px2rem(34);
  312. margin-top: px2rem(156);
  313. text-align: left;
  314. }
  315. .packet-list{
  316. height: auto;
  317. flex: 1;
  318. .content{
  319. font-size: px2rem(32);
  320. color: #181818;
  321. .bottom{
  322. display: flex;
  323. justify-content: space-between;
  324. }
  325. .time{
  326. font-size: px2rem(26);
  327. color: #b4b4b4;
  328. margin-right: px2rem(10);
  329. }
  330. .best{
  331. font-size: px2rem(28);
  332. color: #fbc463;
  333. }
  334. }
  335. li{
  336. padding: px2rem(30) 0;
  337. }
  338. }
  339. .tips{
  340. position: absolute;
  341. left: 0;
  342. width: 100%;
  343. bottom: px2rem(30);
  344. }
  345. }
  346. .nav-bar {
  347. display: block;
  348. height: px2rem(84);
  349. display: flex;
  350. padding: 0 px2rem(25);
  351. justify-content: space-between;
  352. align-items: center;
  353. color: #f9efc5;
  354. margin-bottom: px2rem(66);
  355. a{
  356. font-size: px2rem(34);
  357. }
  358. }
  359. .avatar {
  360. display: inline-block;
  361. vertical-align: middle;
  362. line-height: 30px;
  363. width: 30px;
  364. height: 30px;
  365. margin-right: 10px;
  366. border-radius: 4px;
  367. &.no-avatar {
  368. line-height: 30px;
  369. }
  370. }
  371. .name {
  372. font-size: px2rem(34);
  373. }
  374. .user-info {
  375. margin-top: px2rem(215);
  376. }
  377. .text,
  378. .redpack-tips {
  379. font-size: px2rem(48);
  380. }
  381. .detail {
  382. font-size: px2rem(32);
  383. &::after {
  384. content: '';
  385. display: inline-block;
  386. width: px2rem(12);
  387. height: px2rem(12);
  388. margin-left: 2px;
  389. border-width: 1px;
  390. border-style: solid;
  391. border-color: #f9efc5 #f9efc5 transparent transparent;
  392. transform: rotate(45deg);
  393. vertical-align: middle;
  394. }
  395. }
  396. .open-btn {
  397. bottom: px2rem(152);
  398. width: px2rem(198);
  399. height: px2rem(198);
  400. line-height: px2rem(198);
  401. font-size: px2rem(94);
  402. font-family: KaiTi, STKaiti, Microsoft Yahei, PingFang SC;
  403. }
  404. .el-icon-close {
  405. top: auto;
  406. left: 50%;
  407. bottom: -px2rem(120);
  408. width: px2rem(80);
  409. height: px2rem(80);
  410. box-sizing: border-box;
  411. transform: translate(-50%);
  412. border: px2rem(4) solid #d2b072;
  413. border-radius: 50%;
  414. font-size: px2rem(48);
  415. color: #d2b072;
  416. line-height: px2rem(72);
  417. }
  418. }