couponList.wxss 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. page {
  2. background: #f4f4f4;
  3. min-height: 100%;
  4. }
  5. .container {
  6. background: #f4f4f4;
  7. min-height: 100%;
  8. padding-top: 30rpx;
  9. }
  10. .container .h {
  11. position: fixed;
  12. left: 0;
  13. top: 0;
  14. z-index: 1000;
  15. width: 100%;
  16. display: flex;
  17. background: #fff;
  18. height: 84rpx;
  19. border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  20. }
  21. .container .h .item {
  22. display: inline-block;
  23. height: 82rpx;
  24. width: 50%;
  25. padding: 0 15rpx;
  26. text-align: center;
  27. }
  28. .container .h .item .txt {
  29. display: inline-block;
  30. height: 82rpx;
  31. padding: 0 20rpx;
  32. line-height: 82rpx;
  33. color: #333;
  34. font-size: 30rpx;
  35. width: 170rpx;
  36. }
  37. .container .h .item.active .txt {
  38. color: #ab2b2b;
  39. border-bottom: 4rpx solid #ab2b2b;
  40. }
  41. .container .b {
  42. padding-top: 12rpx;
  43. height: auto;
  44. border-top:1rpx solid #ddd;
  45. }
  46. .container .b .coupon-form {
  47. height: 110rpx;
  48. width: 100%;
  49. background: #fff;
  50. padding-left: 30rpx;
  51. padding-right: 30rpx;
  52. padding-top: 20rpx;
  53. display: flex;
  54. }
  55. .container .b .input-box {
  56. flex: 1;
  57. height: 70rpx;
  58. color: #333;
  59. font-size: 24rpx;
  60. background: #fff;
  61. position: relative;
  62. border: 1px solid rgba(0, 0, 0, 0.15);
  63. border-radius: 4rpx;
  64. margin-right: 30rpx;
  65. }
  66. .container .b .input-box .coupon-sn {
  67. position: absolute;
  68. top: 10rpx;
  69. left: 30rpx;
  70. height: 50rpx;
  71. width: 100%;
  72. color: #000;
  73. line-height: 50rpx;
  74. font-size: 24rpx;
  75. }
  76. .container .b .clear-icon {
  77. position: absolute;
  78. top: 25rpx;
  79. right: 18rpx;
  80. z-index: 2;
  81. display: block;
  82. background: #fff;
  83. }
  84. .container .b .add-btn {
  85. height: 70rpx;
  86. border: none;
  87. width: 168rpx;
  88. /* background: #b4282d; */
  89. background: #09afff;
  90. border-radius: 0;
  91. line-height: 70rpx;
  92. color: #fff;
  93. font-size: 28rpx;
  94. text-align: center;
  95. }
  96. .container .b .add-btn.disabled {
  97. background: #ccc;
  98. }
  99. .container .b .help {
  100. height: 72rpx;
  101. line-height: 72rpx;
  102. text-align: right;
  103. padding-right: 30rpx;
  104. background-size: 28rpx;
  105. color: #999;
  106. font-size: 24rpx;
  107. }
  108. .container .b .coupon-list {
  109. width: 750rpx;
  110. height: 100%;
  111. overflow: hidden;
  112. }
  113. .container .b .item {
  114. position: relative;
  115. height: 290rpx;
  116. background: #ccc7c7;
  117. margin-bottom: 30rpx;
  118. margin-left: 30rpx;
  119. margin-right: 30rpx;
  120. padding-top: 52rpx;
  121. }
  122. .container .b .item.active {
  123. background: linear-gradient(to right, #cfa568, #e3bf79);
  124. }
  125. .container .b .tag {
  126. height: 32rpx;
  127. background: #a48143;
  128. padding-left: 16rpx;
  129. padding-right: 16rpx;
  130. position: absolute;
  131. left: 20rpx;
  132. color: #fff;
  133. top: 20rpx;
  134. font-size: 20rpx;
  135. text-align: center;
  136. line-height: 32rpx;
  137. }
  138. .container .b .content {
  139. margin-top: 24rpx;
  140. margin-left: 40rpx;
  141. display: flex;
  142. margin-right: 40rpx;
  143. flex-direction: row;
  144. }
  145. .container .b .content .left {
  146. flex: 1;
  147. }
  148. .container .b .discount {
  149. font-size: 50rpx;
  150. color: #b4282d;
  151. }
  152. .container .b .min {
  153. color: #fff;
  154. }
  155. .container .b .content .right {
  156. width: 400rpx;
  157. }
  158. .container .b .name {
  159. font-size: 44rpx;
  160. color: #fff;
  161. margin-bottom: 14rpx;
  162. }
  163. .container .b .time {
  164. font-size: 24rpx;
  165. color: #fff;
  166. line-height: 30rpx;
  167. }
  168. .container .b .condition {
  169. position: absolute;
  170. width: 100%;
  171. bottom: 0;
  172. left: 0;
  173. height: 78rpx;
  174. background: rgba(0, 0, 0, 0.08);
  175. padding: 24rpx 40rpx;
  176. display: flex;
  177. flex-direction: row;
  178. }
  179. .container .b .condition .txt {
  180. display: block;
  181. height: 30rpx;
  182. flex: 1;
  183. overflow: hidden;
  184. font-size: 24rpx;
  185. line-height: 30rpx;
  186. color: #fff;
  187. }
  188. .container .b .condition .icon {
  189. margin-left: 30rpx;
  190. width: 24rpx;
  191. height: 24rpx;
  192. }
  193. .container .b .page {
  194. width: 750rpx;
  195. height: 108rpx;
  196. background: #fff;
  197. margin-bottom: 20rpx;
  198. }
  199. .container .b .page view {
  200. height: 108rpx;
  201. width: 50%;
  202. float: left;
  203. font-size: 29rpx;
  204. color: #333;
  205. text-align: center;
  206. line-height: 108rpx;
  207. }
  208. .container .b .page .prev {
  209. border-right: 1px solid #d9d9d9;
  210. }
  211. .container .b .page .disabled {
  212. color: #ccc;
  213. }
  214. .b .no-list{
  215. margin:16rpx 0 0;
  216. text-align: center;
  217. color:#999;
  218. font-size: 28rpx;
  219. }
  220. .my-coupon-list{
  221. padding:20rpx 24rpx;
  222. width: 750rpx;
  223. height: 100%;
  224. overflow: hidden;
  225. }
  226. .my-coupon-item{
  227. border-radius: 18rpx;
  228. background:#fff;
  229. height: 190rpx;
  230. margin:0 0 20rpx;
  231. display: flex;
  232. justify-content: space-between;
  233. padding:0 20rpx 0 0;
  234. width:706rpx;
  235. }
  236. .coupon-left{
  237. background:rgba(9, 175, 255, 0.1);
  238. width:230rpx;
  239. display: flex;
  240. flex-direction: column;
  241. align-items: center;
  242. justify-content: space-between;
  243. height:190rpx;
  244. padding:18rpx 0 30rpx;
  245. }
  246. .coupon-left .coupon-amount{
  247. font-size: 48rpx;
  248. font-weight: bold;
  249. }
  250. .coupon-left .coupon-type{
  251. font-size: 24rpx;
  252. font-weight: bold;
  253. white-space: nowrap;
  254. overflow: hidden;
  255. text-overflow: ellipsis;
  256. width:220rpx;
  257. text-align: center;
  258. }
  259. .coupon-left .coupon-btn{
  260. background:#999999;
  261. color: #fff;
  262. width:120rpx;
  263. height: 32rpx;
  264. line-height:32rpx;
  265. font-size: 22rpx;
  266. margin-top:10rpx;
  267. border-radius:30rpx;
  268. text-align: center;
  269. }
  270. .coupon-left .coupon-btn.active-btn{
  271. background:#09afff;
  272. }
  273. .coupon-content{
  274. margin:0 20rpx 0 30rpx;
  275. display: flex;
  276. flex-direction: column;
  277. justify-content: space-between;
  278. padding:40rpx 0;
  279. flex:1
  280. }
  281. .coupon-content view.coupon-name{
  282. color:#999;
  283. font-size:30rpx;
  284. font-weight: bold;
  285. white-space: nowrap;
  286. overflow: hidden;
  287. text-overflow: ellipsis;
  288. width:330rpx;
  289. }
  290. .coupon-content view.coupon-date{
  291. color:#999;
  292. font-size:20rpx;
  293. }
  294. .coupon-right{
  295. width:84rpx;
  296. height:114rpx;
  297. padding-top:30rpx;
  298. }
  299. .coupon-status{
  300. width:84rpx;
  301. height:84rpx;
  302. }