coupon.wxss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. .tabs {
  2. box-sizing: border-box;
  3. position: relative;
  4. overflow: hidden;
  5. zoom: 1;
  6. color: #666;
  7. }
  8. .tabs:after, .tabs:before {
  9. content: " ";
  10. display: table;
  11. }
  12. .tabs:after {
  13. clear: both;
  14. visibility: hidden;
  15. font-size: 0;
  16. height: 0;
  17. }
  18. .tabs-bar {
  19. outline: none;
  20. width: 100%;
  21. background-color: #fff;
  22. position: fixed;
  23. top: 0;
  24. left: 0;
  25. right: 0;
  26. z-index: 10;
  27. }
  28. .tabs-link-bar {
  29. z-index: 1;
  30. position: absolute;
  31. left: 0;
  32. bottom: 2rpx;
  33. box-sizing: border-box;
  34. height: 2rpx;
  35. background-color: #ff5777;
  36. transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  37. transform-origin: 0 0;
  38. }
  39. .tabs-bar {
  40. border-bottom: 1px solid #d9d9d9;
  41. box-sizing: border-box;
  42. }
  43. .tabs-nav--container {
  44. overflow: hidden;
  45. font-size: 14rpx;
  46. line-height: 1.5;
  47. box-sizing: border-box;
  48. position: relative;
  49. white-space: nowrap;
  50. margin-bottom: -1px;
  51. zoom: 1;
  52. }
  53. .tabs-nav--container:after, .tabs-nav--container:before {
  54. content: " ";
  55. display: table;
  56. }
  57. .tabs-nav--container:after {
  58. clear: both;
  59. visibility: hidden;
  60. font-size: 0;
  61. height: 0;
  62. }
  63. .tabs-tab-btn-disabled {
  64. cursor: not-allowed;
  65. }
  66. .tabs-tab-btn-disabled, .tabs-tab-btn-disabled:hover {
  67. color: #ccc;
  68. }
  69. .tabs-nav--wrap {
  70. overflow: hidden;
  71. margin-bottom: -1rpx;
  72. }
  73. .tabs-nav {
  74. display: flex;
  75. -moz-box-sizing: border-box;
  76. box-sizing: border-box;
  77. padding-left: 0;
  78. transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
  79. position: relative;
  80. margin: 0;
  81. list-style: none;
  82. }
  83. .tabs-nav:after, .tabs-nav:before {
  84. display: table;
  85. content: " ";
  86. }
  87. .tabs-nav:after {
  88. clear: both;
  89. }
  90. .tabs-nav .tabs-tab-disabled {
  91. pointer-events: none;
  92. cursor: default;
  93. color: #ccc;
  94. }
  95. .tabs-nav .tabs-tab {
  96. flex: 1;
  97. display: block;
  98. height: 90rpx;
  99. line-height: 90rpx;
  100. margin: 0 12rpx;
  101. box-sizing: border-box;
  102. position: relative;
  103. transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  104. cursor: pointer;
  105. text-decoration: none;
  106. text-align: center;
  107. font-size: 30rpx;
  108. color: #333;
  109. }
  110. .tabs-nav .tabs-tab:active {
  111. color: #f13e3a;
  112. }
  113. .tabs-nav .tabs-tab .anticon {
  114. width: 14rpx;
  115. height: 14rpx;
  116. margin-right: 8rpx;
  117. }
  118. .tabs-nav .tabs-tab-active {
  119. color: #ff4936;
  120. border-bottom: 6rpx solid #ff4936;
  121. }
  122. .tabs.tabs-card>.tabs-bar .tabs-link-bar {
  123. visibility: hidden;
  124. }
  125. .tabs.tabs-card>.tabs-bar .tabs-tab {
  126. margin: 0;
  127. border: 1px solid #d9d9d9;
  128. border-bottom: 0;
  129. border-radius: 6rpx 6rpx 0 0;
  130. transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  131. background: #f9f9f9;
  132. margin-right: 2rpx;
  133. }
  134. .tabs.tabs-card>.tabs-bar .tabs-tab-active {
  135. background: #fff;
  136. transform: translateZ(0);
  137. border-color: #d9d9d9;
  138. color: #f13e3a;
  139. }
  140. .tabs.tabs-card>.tabs-bar .tabs-nav--wrap {
  141. margin-bottom: 0;
  142. }
  143. .empty-wrap {
  144. padding-top: 300rpx;
  145. display: flex;
  146. justify-content: center;
  147. align-items: center;
  148. flex-direction: column;
  149. }
  150. .empty-wrap .empty-img {
  151. width: 218rpx;
  152. height: 218rpx;
  153. }
  154. .empty-wrap .empty-txt {
  155. font-size: 30rpx;
  156. font-weight: 400;
  157. color: #777;
  158. margin-top: 32rpx;
  159. }
  160. /* 新优惠券 */
  161. .list {
  162. padding: 90rpx 30rpx 20rpx;
  163. }
  164. /* 新优惠券 */
  165. .coupon {
  166. background-color: #fefefe;
  167. position: relative;
  168. padding: 0 20rpx;
  169. border-radius: 6rpx;
  170. margin-top: 24rpx;
  171. }
  172. .coupon:before, .coupon:after {
  173. content: '';
  174. position: absolute;
  175. width: 20rpx;
  176. height: 40rpx;
  177. background: #f6f6f6;
  178. top: 70rpx;
  179. z-index: 1;
  180. }
  181. .coupon:before {
  182. border-radius: 0 40rpx 40rpx 0;
  183. left: 0;
  184. }
  185. .coupon:after {
  186. border-radius: 40rpx 0 0 40rpx;
  187. right: 0;
  188. }
  189. .coupon .header {
  190. display: flex;
  191. padding: 15rpx 0;
  192. border-bottom: 2rpx dashed #dbdbdb;
  193. height: 140rpx;
  194. }
  195. .coupon .footer {
  196. color: #747474;
  197. font-size: 24rpx;
  198. padding: 22rpx 0 20rpx 0;
  199. }
  200. .coupon .price {
  201. color: #333;
  202. width: 175rpx;
  203. text-align: center;
  204. border-right: 2rpx dashed #dbdbdb;
  205. }
  206. .coupon .price .reduce-price {
  207. color: #000;
  208. font-size: 38rpx;
  209. font-weight: bold;
  210. padding-top: 30rpx;
  211. }
  212. .coupon .price .reduce-price text {
  213. font-size: 24rpx;
  214. }
  215. .coupon .price .reduce-desc {
  216. font-size: 20rpx;
  217. margin-top: 10rpx;
  218. }
  219. .coupon .info {
  220. padding-left: 30rpx;
  221. flex: 1;
  222. }
  223. .coupon .info .reduce-title {
  224. color: #000;
  225. font-size: 28rpx;
  226. font-weight: bold;
  227. padding-top: 20rpx;
  228. display: -webkit-box;
  229. -webkit-box-orient: vertical;
  230. -webkit-line-clamp: 2;
  231. overflow: hidden;
  232. }
  233. .coupon .info .reduce-type {
  234. color: #fff;
  235. font-weight: normal;
  236. font-size: 20rpx;
  237. background: #ec6b5a;
  238. padding: 2rpx 8rpx;
  239. border-radius: 4rpx;
  240. }
  241. .coupon .status {
  242. width: 130rpx;
  243. text-align: center;
  244. }
  245. .coupon .status image {
  246. width: 90rpx;
  247. height: 90rpx;
  248. margin-top: 20rpx;
  249. }
  250. .coupon.used,
  251. .coupon.expired {
  252. background: #fafafa;
  253. }
  254. .coupon.used .price,
  255. .coupon.expired .price {
  256. color: #949494;
  257. }
  258. .coupon.used .reduce-price,
  259. .coupon.expired .reduce-price,
  260. .coupon.used .reduce-title,
  261. .coupon.expired .reduce-title {
  262. color: #7a7a7a;
  263. }
  264. .coupon.used .reduce-type,
  265. .coupon.expired .reduce-type {
  266. background: #eeaea6;
  267. }
  268. .coupon.used .footer,
  269. .coupon.expired .footer {
  270. color: #b6b6b6;
  271. }
  272. .reduce-area {
  273. font-size: 24rpx;
  274. color: #666;
  275. margin-top: 10rpx;
  276. }
  277. .go-shop {
  278. border: 1rpx solid #ec6b5a;
  279. border-radius: 30rpx;
  280. color: #ec6b5a;
  281. font-size: 24rpx;
  282. margin-top: 60rpx;
  283. margin-right: 12rpx;
  284. line-height: 38rpx;
  285. }
  286. .footer-tag {
  287. font-size: 20rpx;
  288. border-radius: 5rpx;
  289. color: #fff;
  290. padding: 2rpx 5rpx;
  291. }