cm-coupon.wxss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. /* 图片尺寸 */
  23. /* Border Radius */
  24. /* 水平间距 */
  25. /* 垂直间距 */
  26. /* 透明度 */
  27. /* 文章场景相关 */
  28. .coupon.data-v-ee2ce490 {
  29. width: 702rpx;
  30. height: 200rpx;
  31. padding: 6rpx;
  32. margin: 24rpx;
  33. box-sizing: border-box;
  34. background: #ffffff no-repeat center;
  35. background-size: 702rpx 200rpx;
  36. }
  37. .coupon .content.data-v-ee2ce490 {
  38. position: relative;
  39. display: flex;
  40. justify-content: space-between;
  41. align-items: center;
  42. }
  43. .coupon .cover-bg.data-v-ee2ce490 {
  44. background-position: 580rpx 16rpx;
  45. background-size: 100rpx 100rpx;
  46. background-repeat: no-repeat;
  47. }
  48. .coupon .cover-bg.received.data-v-ee2ce490 {
  49. background-image: url(https://static.caimei365.com/app/mini-hehe/icon/icon-coupon-received.png);
  50. }
  51. .coupon .cover-bg.expired.data-v-ee2ce490 {
  52. background-image: url(https://static.caimei365.com/app/mini-hehe/icon/icon-coupon-expired.png);
  53. }
  54. .coupon .cover-bg.used.data-v-ee2ce490 {
  55. background-image: url(https://static.caimei365.com/app/mini-hehe/icon/icon-coupon-used.png);
  56. }
  57. .coupon.on.data-v-ee2ce490 {
  58. background-image: url(https://static.caimei365.com/app/mini-hehe/icon/icon-coupon-bg-on.png);
  59. }
  60. .coupon.off.data-v-ee2ce490 {
  61. -webkit-filter: grayscale(1);
  62. filter: grayscale(1);
  63. opacity: 0.7;
  64. background-image: url(https://static.caimei365.com/app/mini-hehe/icon/icon-coupon-bg-off.png);
  65. }
  66. .coupon .header.data-v-ee2ce490,
  67. .coupon .center.data-v-ee2ce490,
  68. .coupon .footer.data-v-ee2ce490 {
  69. display: flex;
  70. flex-direction: column;
  71. justify-content: center;
  72. }
  73. .coupon .header.data-v-ee2ce490 {
  74. align-items: center;
  75. position: relative;
  76. width: 204rpx;
  77. height: 188rpx;
  78. }
  79. .coupon .header .tag.data-v-ee2ce490 {
  80. position: absolute;
  81. top: 0;
  82. left: 0;
  83. height: 32rpx;
  84. padding: 0 6rpx;
  85. background: linear-gradient(90deg, #fc32b4 0%, #f83c6c 100%);
  86. border-radius: 10rpx 0px 10rpx 0px;
  87. font-size: 22rpx;
  88. color: #ffffff;
  89. text-align: center;
  90. line-height: 32rpx;
  91. }
  92. .coupon .header .price.data-v-ee2ce490 {
  93. font-size: 56rpx;
  94. font-weight: 600;
  95. color: #ff457b;
  96. }
  97. .coupon .header .price text.data-v-ee2ce490 {
  98. font-size: 24rpx;
  99. }
  100. .coupon .header .tip.data-v-ee2ce490 {
  101. margin-top: 6rpx;
  102. font-size: 24rpx;
  103. color: #404040;
  104. }
  105. .coupon .center.data-v-ee2ce490 {
  106. flex: 1;
  107. margin-left: 36rpx;
  108. }
  109. .coupon .center .row.data-v-ee2ce490 {
  110. width: 250rpx;
  111. white-space: nowrap;
  112. overflow: hidden;
  113. text-overflow: ellipsis;
  114. font-size: 26rpx;
  115. color: #333333;
  116. margin-bottom: 16rpx;
  117. }
  118. .coupon .center .row.bold.data-v-ee2ce490 {
  119. font-weight: 600;
  120. }
  121. .coupon .center .end-time.data-v-ee2ce490 {
  122. font-size: 20rpx;
  123. color: #999999;
  124. }
  125. .coupon .footer.data-v-ee2ce490 {
  126. align-items: center;
  127. width: 128rpx;
  128. margin-right: 24rpx;
  129. }
  130. .coupon .footer .btn.data-v-ee2ce490 {
  131. width: 128rpx;
  132. height: 48rpx;
  133. background: linear-gradient(270deg, #f83c6c 0%, #fc32b4 100%);
  134. border-radius: 28rpx;
  135. box-sizing: border-box;
  136. border: 1rpx solid transparent;
  137. text-align: center;
  138. line-height: 46rpx;
  139. font-size: 26rpx;
  140. color: #ffffff;
  141. }
  142. .coupon .footer .btn.plain.data-v-ee2ce490 {
  143. border: 1rpx solid #ff457b;
  144. background: transparent;
  145. color: #ff457b;
  146. }
  147. .coupon .radio-flag.data-v-ee2ce490 {
  148. position: absolute;
  149. top: 24rpx;
  150. right: 24rpx;
  151. color: #ff457b;
  152. font-size: 32rpx;
  153. }