coupon.wxss 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  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. }
  121. .tabs-nav .tabs-tab-active::after {
  122. content: "";
  123. position: absolute;
  124. bottom: 0;
  125. left: 0;
  126. right: 0;
  127. height: 3px;
  128. background: linear-gradient(90deg, #ff4936 0%, #ff6e3c 100%);
  129. box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(255, 89, 0, 0.25);
  130. border-radius: 24rpx;
  131. }
  132. .tabs.tabs-card>.tabs-bar .tabs-link-bar {
  133. visibility: hidden;
  134. }
  135. .tabs.tabs-card>.tabs-bar .tabs-tab {
  136. margin: 0;
  137. border: 1px solid #d9d9d9;
  138. border-bottom: 0;
  139. border-radius: 6rpx 6rpx 0 0;
  140. transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  141. background: #f9f9f9;
  142. margin-right: 2rpx;
  143. }
  144. .tabs.tabs-card>.tabs-bar .tabs-tab-active {
  145. background: #fff;
  146. transform: translateZ(0);
  147. border-color: #d9d9d9;
  148. color: #f13e3a;
  149. }
  150. .tabs.tabs-card>.tabs-bar .tabs-nav--wrap {
  151. margin-bottom: 0;
  152. }
  153. .empty-wrap {
  154. padding-top: 300rpx;
  155. display: flex;
  156. justify-content: center;
  157. align-items: center;
  158. flex-direction: column;
  159. }
  160. .empty-wrap .empty-img {
  161. width: 218rpx;
  162. height: 218rpx;
  163. }
  164. .empty-wrap .empty-txt {
  165. font-size: 30rpx;
  166. font-weight: 400;
  167. color: #777;
  168. margin-top: 32rpx;
  169. }
  170. /* 新优惠券 */
  171. .list {
  172. padding: 90rpx 30rpx 20rpx;
  173. }
  174. /* 新优惠券 */
  175. .coupon {
  176. background-color: #fefefe;
  177. position: relative;
  178. padding: 0 20rpx;
  179. border-radius: 6rpx;
  180. margin-top: 24rpx;
  181. }
  182. .coupon:before, .coupon:after {
  183. content: '';
  184. position: absolute;
  185. width: 20rpx;
  186. height: 40rpx;
  187. background: #f6f6f6;
  188. top: 70rpx;
  189. z-index: 1;
  190. }
  191. .coupon:before {
  192. border-radius: 0 40rpx 40rpx 0;
  193. left: 0;
  194. }
  195. .coupon:after {
  196. border-radius: 40rpx 0 0 40rpx;
  197. right: 0;
  198. }
  199. .coupon .header {
  200. display: flex;
  201. padding: 15rpx 0;
  202. border-bottom: 2rpx dashed #dbdbdb;
  203. height: 140rpx;
  204. }
  205. .coupon .footer {
  206. color: #747474;
  207. font-size: 24rpx;
  208. padding: 22rpx 0 20rpx 35rpx;
  209. }
  210. .coupon .price {
  211. color: #333;
  212. width: 175rpx;
  213. text-align: center;
  214. border-right: 2rpx dashed #dbdbdb;
  215. }
  216. .coupon .price .reduce-price {
  217. color: #000;
  218. font-size: 38rpx;
  219. font-weight: bold;
  220. padding-top: 30rpx;
  221. }
  222. .coupon .price .reduce-price text {
  223. font-size: 24rpx;
  224. }
  225. .coupon .price .reduce-desc {
  226. font-size: 20rpx;
  227. margin-top: 10rpx;
  228. }
  229. .coupon .info {
  230. padding-left: 30rpx;
  231. flex: 1;
  232. }
  233. .coupon .info .reduce-title {
  234. color: #000;
  235. font-size: 28rpx;
  236. font-weight: bold;
  237. padding-top: 20rpx;
  238. display: -webkit-box;
  239. -webkit-box-orient: vertical;
  240. -webkit-line-clamp: 2;
  241. overflow: hidden;
  242. }
  243. .coupon .info .reduce-type {
  244. color: #fff;
  245. font-weight: normal;
  246. font-size: 20rpx;
  247. background: #ec6b5a;
  248. padding: 2rpx 8rpx;
  249. border-radius: 4rpx;
  250. }
  251. .coupon .status {
  252. width: 130rpx;
  253. text-align: center;
  254. }
  255. .coupon .status image {
  256. width: 90rpx;
  257. height: 90rpx;
  258. margin-top: 20rpx;
  259. }
  260. .coupon.used,
  261. .coupon.expired {
  262. background: #fafafa;
  263. }
  264. .coupon.used .price,
  265. .coupon.expired .price {
  266. color: #949494;
  267. }
  268. .coupon.used .reduce-price,
  269. .coupon.expired .reduce-price,
  270. .coupon.used .reduce-title,
  271. .coupon.expired .reduce-title {
  272. color: #7a7a7a;
  273. }
  274. .coupon.used .reduce-type,
  275. .coupon.expired .reduce-type {
  276. background: #eeaea6;
  277. }
  278. .coupon.used .footer,
  279. .coupon.expired .footer {
  280. color: #b6b6b6;
  281. }
  282. .reduce-area {
  283. font-size: 24rpx;
  284. color: #666;
  285. margin-top: 10rpx;
  286. }
  287. .go-shop {
  288. border: 1rpx solid #ec6b5a;
  289. border-radius: 30rpx;
  290. color: #ec6b5a;
  291. font-size: 24rpx;
  292. margin-top: 60rpx;
  293. margin-right: 12rpx;
  294. line-height: 38rpx;
  295. }