couponCenter.wxss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710
  1. page {
  2. background: #f4f4f4;
  3. }
  4. .coupons image {
  5. width: 100%;
  6. height: 100%;
  7. }
  8. .coupons .banner {
  9. position: relative;
  10. width: 750rpx;
  11. height: 284rpx;
  12. padding-top: 24rpx;
  13. }
  14. .coupons .banner .bg {
  15. position: absolute;
  16. top: 0;
  17. left: 0;
  18. font-size: 0;
  19. width: 750rpx;
  20. height: 220rpx;
  21. }
  22. .coupons .banner .img {
  23. font-size: 0;
  24. width: 710rpx;
  25. height: 280rpx;
  26. margin: 0 auto;
  27. position: relative;
  28. }
  29. .coupons .con-box {
  30. padding: 0 20rpx;
  31. }
  32. .coupons .con-box .c-tit {
  33. padding: 20rpx;
  34. font-size: 28rpx;
  35. font-weight: 600;
  36. position: relative;
  37. margin-top: 10rpx;
  38. }
  39. .coupons .con-box .c-tit::before {
  40. position: absolute;
  41. left: 0;
  42. top: 50%;
  43. transform: translateY(-50%);
  44. display: block;
  45. width: 0;
  46. height: 0;
  47. content: " ";
  48. font-size: 0;
  49. border: 10rpx solid transparent;
  50. border-left: 12rpx solid #f2171a;
  51. border-radius: 6rpx;
  52. }
  53. /* 通用券 */
  54. .coupons .con-box .general-box {
  55. background: #fff;
  56. padding: 20rpx;
  57. width: 710rpx;
  58. height: 206rpx;
  59. box-sizing: border-box;
  60. border-radius: 10rpx;
  61. }
  62. .coupons .con-box .general {
  63. display: flex;
  64. align-items: center;
  65. }
  66. .coupons .con-box .general .item {
  67. margin-right: 20rpx;
  68. }
  69. .coupons .con-box .general .item:last-child {
  70. margin-right: 0;
  71. }
  72. .coupons .con-box .general .item .item-box {
  73. border-radius: 10rpx;
  74. display: flex;
  75. align-items: center;
  76. position: relative;
  77. width: 258rpx;
  78. height: 166rpx;
  79. overflow: hidden;
  80. background: #fef1ef;
  81. }
  82. .coupons .con-box .general .item .item-box::before,
  83. .coupons .con-box .general .item .item-box::after {
  84. position: absolute;
  85. z-index: 1;
  86. right: 38rpx;
  87. display: block;
  88. width: 20rpx;
  89. height: 20rpx;
  90. content: " ";
  91. font-size: 0;
  92. background: #fff;
  93. border-radius: 50%;
  94. }
  95. .coupons .con-box .general .item .item-box::before {
  96. top: -10rpx;
  97. }
  98. .coupons .con-box .general .item .item-box::after {
  99. bottom: -10rpx;
  100. }
  101. .coupons .con-box .general .item .item-box .item-con {
  102. flex: 1;
  103. text-align: center;
  104. padding: 0 20rpx;
  105. position: relative;
  106. z-index: 2;
  107. }
  108. .coupons .con-box .general .item .item-box .item-con .number {
  109. display: flex;
  110. align-items: baseline;
  111. justify-content: center;
  112. color: #f2171a;
  113. font-family: arial;
  114. font-weight: 600;
  115. line-height: 1;
  116. position: relative;
  117. }
  118. .coupons .con-box .general .item .item-box .item-con .number .symbol {
  119. font-size: 28rpx;
  120. }
  121. .coupons .con-box .general .item .item-box .item-con .number .text {
  122. font-size: 44rpx;
  123. }
  124. .coupons .con-box .general .item .item-box .item-con .condition,
  125. .coupons .con-box .general .item .item-box .item-con .scope {
  126. display: -webkit-box;
  127. -webkit-box-orient: vertical;
  128. -webkit-line-clamp: 1;
  129. overflow: hidden;
  130. text-overflow: ellipsis;
  131. }
  132. .coupons .con-box .general .item .item-box .item-con .condition {
  133. font-size: 24rpx;
  134. line-height: 28rpx;
  135. margin: 6rpx 0;
  136. }
  137. .coupons .con-box .general .item .item-box .item-con .scope {
  138. font-size: 20rpx;
  139. line-height: 24rpx;
  140. color: #999;
  141. }
  142. .coupons .con-box .general .item .item-box .item-con .progress-box {
  143. width: 100%;
  144. height: 22rpx;
  145. background: #ffb5af;
  146. border-radius: 30rpx;
  147. position: relative;
  148. margin-top: 6rpx;
  149. overflow: hidden;
  150. }
  151. .coupons .con-box .general .item .item-box .item-con .progress-box .text {
  152. position: absolute;
  153. left: 0;
  154. top: 0;
  155. width: 100%;
  156. height: 22rpx;
  157. line-height: 22rpx;
  158. font-size: 20rpx;
  159. color: #fff;
  160. text-align: center;
  161. }
  162. .coupons .con-box .general .item .item-box .item-con .progress-box .progress {
  163. height: 22rpx;
  164. border-radius: 30rpx;
  165. background: #f53e17;
  166. }
  167. .coupons .con-box .general .item .item-box .item-btn {
  168. position: relative;
  169. font-size: 24rpx;
  170. color: #fff;
  171. width: 30rpx;
  172. padding: 0 10rpx;
  173. height: 100%;
  174. display: flex;
  175. align-items: center;
  176. text-align: center;
  177. flex-wrap: nowrap;
  178. line-height: 30rpx;
  179. background: -webkit-linear-gradient(left, #f53e17, #f2171a);
  180. background: linear-gradient(to right, #f53e17, #f2171a);
  181. }
  182. .coupons .con-box .general .item .item-box .item-btn::before {
  183. position: absolute;
  184. left: 0;
  185. top: 28rpx;
  186. bottom: 28rpx;
  187. display: none;
  188. width: 2rpx;
  189. height: auto;
  190. content: " ";
  191. font-size: 0;
  192. border-left: 2rpx dashed #f2171a;
  193. opacity: 0.1;
  194. }
  195. .coupons .con-box .general .item .item-box .icon {
  196. position: absolute;
  197. top: -24rpx;
  198. right: 60rpx;
  199. display: none;
  200. width: 80rpx;
  201. height: 80rpx;
  202. }
  203. .coupons .con-box .general .item .item-box.received .icon,
  204. .coupons .con-box .general .item .item-box.robbed .icon {
  205. display: block;
  206. }
  207. .coupons .con-box .general .item .item-box.received .item-btn {
  208. color: #f2171a;
  209. line-height: 32rpx;
  210. background: none;
  211. }
  212. .coupons .con-box .general .item .item-box.received .item-btn::before {
  213. display: block;
  214. }
  215. .coupons .con-box .general .item .item-box.robbed {
  216. background: #f3f3f3;
  217. }
  218. .coupons .con-box .general .item .item-box.robbed .item-con .number,
  219. .coupons .con-box .general .item .item-box.robbed .item-con .condition {
  220. color: #999;
  221. }
  222. .coupons .con-box .general .item .item-box.robbed .item-con .progress-box,
  223. .coupons .con-box .general .item .item-box.robbed .item-con .progress-box .progress {
  224. background: #ccc;
  225. }
  226. .coupons .con-box .general .item .item-box.robbed .item-btn {
  227. color: #999;
  228. line-height: 32rpx;
  229. background: none;
  230. }
  231. .coupons .con-box .general .item .item-box.robbed .item-btn::before {
  232. display: block;
  233. border-left: 2rpx dashed #333;
  234. }
  235. /* 通用券 end */
  236. /* 店铺券 */
  237. .coupons .con-box .special .item {
  238. margin-bottom: 20rpx;
  239. }
  240. .coupons .con-box .special .item .item-box {
  241. background: #fff;
  242. position: relative;
  243. border-radius: 10rpx;
  244. display: flex;
  245. overflow: hidden;
  246. }
  247. .coupons .con-box .special .item .item-box::before,
  248. .coupons .con-box .special .item .item-box::after {
  249. position: absolute;
  250. right: 198rpx;
  251. display: block;
  252. width: 24rpx;
  253. height: 24rpx;
  254. content: " ";
  255. font-size: 0;
  256. background: #f4f4f4;
  257. border-radius: 50%;
  258. z-index: 1;
  259. }
  260. .coupons .con-box .special .item .item-box::before {
  261. top: -12rpx;
  262. }
  263. .coupons .con-box .special .item .item-box::after {
  264. bottom: -12rpx;
  265. }
  266. .coupons .con-box .special .item .item-box .item-con {
  267. flex: 1;
  268. padding: 20rpx;
  269. }
  270. .coupons .con-box .special .item .item-box .item-con .shop-msg {
  271. display: flex;
  272. align-items: center;
  273. }
  274. .coupons .con-box .special .item .item-box .item-con .shop-msg .logo {
  275. width: 40rpx;
  276. height: 40rpx;
  277. font-size: 0;
  278. border-radius: 50%;
  279. overflow: hidden;
  280. }
  281. .coupons .con-box .special .item .item-box .item-con .shop-msg .logo image {
  282. border-radius: 50%;
  283. }
  284. .coupons .con-box .special .item .item-box .item-con .shop-msg .name {
  285. flex: 1;
  286. margin-left: 10rpx;
  287. font-size: 24rpx;
  288. font-weight: 600;
  289. display: -webkit-box;
  290. -webkit-box-orient: vertical;
  291. -webkit-line-clamp: 1;
  292. overflow: hidden;
  293. text-overflow: ellipsis;
  294. }
  295. .coupons .con-box .special .item .item-box .item-con .prod-msg {
  296. margin-top: 20rpx;
  297. display: flex;
  298. }
  299. .coupons .con-box .special .item .item-box .item-con .prod-msg .p-item {
  300. margin-left: 20rpx;
  301. }
  302. .coupons .con-box .special .item .item-box .item-con .prod-msg .p-item:first-child {
  303. margin-left: 0;
  304. }
  305. .coupons .con-box .special .item .item-box .item-con .prod-msg .img {
  306. width: 140rpx;
  307. height: 140rpx;
  308. border-radius: 10rpx;
  309. overflow: hidden;
  310. font-size: 0;
  311. }
  312. .coupons .con-box .special .item .item-box .item-con .prod-msg .img image {
  313. border-radius: 10rpx;
  314. }
  315. .coupons .con-box .special .item .item-box .item-con .prod-msg .price {
  316. color: #333;
  317. font-size: 22rpx;
  318. display: block;
  319. text-align: center;
  320. }
  321. .coupons .con-box .special .item .item-box .item-btn {
  322. text-align: center;
  323. display: flex;
  324. align-items: center;
  325. justify-content: center;
  326. position: relative;
  327. padding: 20rpx;
  328. width: 170rpx;
  329. background: -webkit-linear-gradient(left, #fef1ef, #fffaf9);
  330. background: linear-gradient(to right, #fef1ef, #fffaf9);
  331. }
  332. .coupons .con-box .special .item .item-box .item-btn .btn-box {
  333. position: relative;
  334. z-index: 1;
  335. flex: 1;
  336. }
  337. .coupons .con-box .special .item .item-box .item-btn .btn-box .number {
  338. display: flex;
  339. align-items: baseline;
  340. justify-content: center;
  341. color: #f2171a;
  342. font-family: arial;
  343. font-weight: 600;
  344. line-height: 1;
  345. position: relative;
  346. z-index: 2;
  347. }
  348. .coupons .con-box .special .item .item-box .item-btn .btn-box .number .symbol {
  349. font-size: 28rpx;
  350. }
  351. .coupons .con-box .special .item .item-box .item-btn .btn-box .number .text {
  352. font-size: 44rpx;
  353. }
  354. .coupons .con-box .special .item .item-box .item-btn .btn-box .condition {
  355. font-size: 24rpx;
  356. line-height: 28rpx;
  357. margin: 10rpx 0;
  358. display: -webkit-box;
  359. -webkit-box-orient: vertical;
  360. -webkit-line-clamp: 1;
  361. overflow: hidden;
  362. text-overflow: ellipsis;
  363. }
  364. .coupons .con-box .special .item .item-box .item-btn .btn-box .progress-box {
  365. height: 22rpx;
  366. background: #ffb5af;
  367. border-radius: 30rpx;
  368. position: relative;
  369. margin: 0 6rpx;
  370. overflow: hidden;
  371. }
  372. .coupons .con-box .special .item .item-box .item-btn .btn-box .progress-box .text {
  373. position: absolute;
  374. left: 0;
  375. top: 0;
  376. width: 100%;
  377. height: 22rpx;
  378. line-height: 22rpx;
  379. font-size: 20rpx;
  380. color: #fff;
  381. text-align: center;
  382. }
  383. .coupons .con-box .special .item .item-box .item-btn .btn-box .progress-box .progress {
  384. height: 22rpx;
  385. border-radius: 30rpx;
  386. background: #f53e17;
  387. }
  388. .coupons .con-box .special .item .item-box .item-btn .btn-box .btn {
  389. font-size: 24rpx;
  390. color: #fff;
  391. margin-top: 24rpx;
  392. height: 50rpx;
  393. line-height: 50rpx;
  394. box-sizing: border-box;
  395. text-align: center;
  396. border-radius: 50rpx;
  397. background: -webkit-linear-gradient(left, #f53e17, #f2171a);
  398. background: linear-gradient(to right, #f53e17, #f2171a);
  399. }
  400. .coupons .con-box .special .item .item-box .item-btn::before {
  401. position: absolute;
  402. left: 0;
  403. top: 30rpx;
  404. bottom: 30rpx;
  405. display: block;
  406. width: 2rpx;
  407. height: auto;
  408. content: " ";
  409. font-size: 0;
  410. border-left: 2rpx dashed #f2171a;
  411. opacity: 0.1;
  412. }
  413. .coupons .con-box .special .item .item-box.robbed .item-btn::before {
  414. border-left: 2rpx dashed #333;
  415. }
  416. .coupons .con-box .special .item .item-box .icon {
  417. width: 100rpx;
  418. height: 100rpx;
  419. position: absolute;
  420. right: 20rpx;
  421. top: -30rpx;
  422. display: none;
  423. }
  424. .coupons .con-box .special .item .item-box.received .icon,
  425. .coupons .con-box .special .item .item-box.robbed .icon {
  426. display: block;
  427. }
  428. .coupons .con-box .special .item .item-box.received .item-btn {
  429. background: #fff;
  430. }
  431. .coupons .con-box .special .item .item-box.received .item-btn .btn-box .btn {
  432. border: 2rpx solid #f2171a;
  433. color: #f2171a;
  434. background: #fff;
  435. line-height: 46rpx;
  436. }
  437. .coupons .con-box .special .item .item-box.robbed .item-btn {
  438. background: #fff;
  439. }
  440. .coupons .con-box .special .item .item-box.robbed .item-btn .btn-box .number,
  441. .coupons .con-box .special .item .item-box.robbed .item-btn .btn-box .condition {
  442. color: #999;
  443. }
  444. .coupons .con-box .special .item .item-box.robbed .item-btn .btn-box .progress-box,
  445. .coupons .con-box .special .item .item-box.robbed .item-btn .btn-box .progress-box .progress {
  446. background: #ccc;
  447. }
  448. .coupons .con-box .special .item .item-box.robbed .item-btn .btn-box .btn {
  449. border: 2rpx solid #ddd;
  450. color: #999;
  451. background: #fff;
  452. line-height: 46rpx;
  453. }
  454. /* 店铺券 end */
  455. /* 商品券 */
  456. .coupons .con-box .special .item .item-box .left {
  457. flex: 1;
  458. display: flex;
  459. padding: 20rpx;
  460. }
  461. .coupons .con-box .special .item .item-box .left .img {
  462. width: 180rpx;
  463. height: 180rpx;
  464. border-radius: 10rpx;
  465. overflow: hidden;
  466. font-size: 0;
  467. }
  468. .coupons .con-box .special .item .item-box .left .img image {
  469. border-radius: 10rpx;
  470. }
  471. .coupons .con-box .special .item .item-box .left .text-box {
  472. flex: 1;
  473. margin-left: 20rpx;
  474. }
  475. .coupons .con-box .special .item .item-box .left .text-box .goods-name {
  476. font-size: 24rpx;
  477. height: 72rpx;
  478. line-height: 36rpx;
  479. font-weight: 600;
  480. display: -webkit-box;
  481. -webkit-box-orient: vertical;
  482. -webkit-line-clamp: 2;
  483. overflow: hidden;
  484. text-overflow: ellipsis;
  485. position: relative;
  486. }
  487. .coupons .con-box .special .item .item-box .left .text-box .coupon-number {
  488. display: flex;
  489. align-items: baseline;
  490. margin-top: 40rpx;
  491. }
  492. .coupons .con-box .special .item .item-box .left .text-box .coupon-number .number {
  493. display: flex;
  494. align-items: baseline;
  495. color: #f2171a;
  496. font-family: arial;
  497. font-weight: 600;
  498. }
  499. .coupons .con-box .special .item .item-box .left .text-box .coupon-number .number .symbol {
  500. font-size: 28rpx;
  501. }
  502. .coupons .con-box .special .item .item-box .left .text-box .coupon-number .number .text {
  503. font-size: 44rpx;
  504. }
  505. .coupons .con-box .special .item .item-box .left .text-box .coupon-number .condition {
  506. font-size: 24rpx;
  507. flex: 1;
  508. margin-left: 10rpx;
  509. display: -webkit-box;
  510. -webkit-box-orient: vertical;
  511. -webkit-line-clamp: 1;
  512. overflow: hidden;
  513. text-overflow: ellipsis;
  514. }
  515. .coupons .con-box .special .item .item-box .right {
  516. text-align: center;
  517. display: flex;
  518. align-items: center;
  519. justify-content: center;
  520. position: relative;
  521. padding: 20rpx;
  522. width: 170rpx;
  523. }
  524. .coupons .con-box .special .item .item-box .right::before {
  525. position: absolute;
  526. left: -2rpx;
  527. top: 30rpx;
  528. bottom: 30rpx;
  529. display: block;
  530. width: 2rpx;
  531. height: auto;
  532. content: " ";
  533. font-size: 0;
  534. border-right: 2rpx dashed #f2171a;
  535. opacity: 0.1;
  536. }
  537. .coupons .con-box .special .item .item-box .right .btn-box {
  538. flex: 1;
  539. position: relative;
  540. z-index: 1;
  541. }
  542. .coupons .con-box .special .item .item-box .right .btn-box .progress-text {
  543. font-size: 24rpx;
  544. }
  545. .coupons .con-box .special .item .item-box .right .btn-box .progress-box {
  546. height: 22rpx;
  547. background: #f0f0f0;
  548. border-radius: 30rpx;
  549. margin: 10rpx 6rpx 0;
  550. overflow: hidden;
  551. }
  552. .coupons .con-box .special .item .item-box .right .btn-box .progress-box .progress {
  553. height: 22rpx;
  554. border-radius: 30rpx;
  555. background: #f53e17;
  556. }
  557. .coupons .con-box .special .item .item-box .right .btn-box .btn {
  558. font-size: 24rpx;
  559. color: #fff;
  560. height: 50rpx;
  561. line-height: 50rpx;
  562. box-sizing: border-box;
  563. text-align: center;
  564. border-radius: 50rpx;
  565. background: -webkit-linear-gradient(left, #f53e17, #f2171a);
  566. background: linear-gradient(to right, #f53e17, #f2171a);
  567. margin-top: 20rpx;
  568. }
  569. .coupons .con-box .special .item .item-box.received .right .btn-box .btn {
  570. border: 2rpx solid #f2171a;
  571. color: #f2171a;
  572. background: none;
  573. line-height: 46rpx;
  574. }
  575. .coupons .con-box .special .item .item-box.robbed .right .btn-box .btn {
  576. border: 2rpx solid #ddd;
  577. color: #999;
  578. background: none;
  579. line-height: 46rpx;
  580. }
  581. .coupons .con-box .special .item .item-box.robbed .right .btn-box .progress-text {
  582. color: #999;
  583. }
  584. .coupons .con-box .special .item .item-box.robbed .right .btn-box .progress-box,
  585. .coupons .con-box .special .item .item-box.robbed .right .btn-box .progress-box .progress {
  586. background: #eee;
  587. }
  588. /* 商品券 end */
  589. /* 列表为空 */
  590. .empty {
  591. margin-top: 100rpx;
  592. text-align: cneter;
  593. }
  594. .empty-icon {
  595. display: block;
  596. width: 80rpx;
  597. height: 80rpx;
  598. margin: 0 auto;
  599. margin-bottom: 20rpx;
  600. }
  601. .empty-icon > image {
  602. width: 100%;
  603. height: 100%;
  604. }
  605. .empty-text {
  606. font-size: 24rpx;
  607. text-align: center;
  608. color: #999;
  609. line-height: 40rpx;
  610. margin-top: 10rpx;
  611. }