mall.wxss 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. /* 积分商城页面样式 */
  2. .mall-page {
  3. background: linear-gradient(180deg, #5B9BD5 0%, #4A90C2 100%);
  4. min-height: 100vh;
  5. padding-top: env(safe-area-inset-top);
  6. padding-bottom: calc(50px + env(safe-area-inset-bottom));
  7. padding-left: 16rpx;
  8. padding-right: 16rpx;
  9. }
  10. /* 积分信息卡片 */
  11. .points-info-card {
  12. background: rgba(255, 255, 255, 0.96);
  13. margin: 24rpx 16rpx;
  14. border-radius: 28rpx;
  15. padding: 44rpx 36rpx;
  16. box-shadow: 0 12rpx 40rpx rgba(74, 144, 194, 0.18);
  17. backdrop-filter: blur(16rpx);
  18. border: 1rpx solid rgba(255, 255, 255, 0.4);
  19. }
  20. .points-header {
  21. display: flex;
  22. justify-content: space-between;
  23. align-items: center;
  24. margin-bottom: 24rpx;
  25. }
  26. .points-title {
  27. font-size: 34rpx;
  28. color: #333;
  29. font-weight: 600;
  30. letter-spacing: 0.5rpx;
  31. }
  32. .history-btn {
  33. background: linear-gradient(135deg, #4A90C2 0%, #357ABD 100%);
  34. color: #fff;
  35. border: none;
  36. border-radius: 50rpx;
  37. padding: 14rpx 28rpx;
  38. font-size: 26rpx;
  39. font-weight: 500;
  40. box-shadow: 0 4rpx 12rpx rgba(74, 144, 194, 0.25);
  41. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  42. }
  43. .points-value {
  44. font-size: 80rpx;
  45. color: #4A90C2;
  46. font-weight: 700;
  47. text-align: center;
  48. margin: 28rpx 0;
  49. letter-spacing: 2rpx;
  50. }
  51. .points-desc {
  52. text-align: center;
  53. color: #666;
  54. font-size: 26rpx;
  55. line-height: 1.4;
  56. opacity: 0.9;
  57. }
  58. /* 我的优惠券 */
  59. .my-coupons-section {
  60. margin: 36rpx 32rpx;
  61. }
  62. .section-header {
  63. display: flex;
  64. justify-content: space-between;
  65. align-items: center;
  66. margin-bottom: 28rpx;
  67. }
  68. .section-title {
  69. color: #fff;
  70. font-size: 34rpx;
  71. font-weight: 600;
  72. letter-spacing: 0.5rpx;
  73. }
  74. .view-all-btn {
  75. background: rgba(255, 255, 255, 0.25);
  76. color: #fff;
  77. border: none;
  78. border-radius: 50rpx;
  79. padding: 14rpx 28rpx;
  80. font-size: 26rpx;
  81. font-weight: 500;
  82. backdrop-filter: blur(12rpx);
  83. border: 1rpx solid rgba(255, 255, 255, 0.3);
  84. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  85. }
  86. .coupons-scroll {
  87. white-space: nowrap;
  88. }
  89. .coupons-container {
  90. display: inline-flex;
  91. padding: 0 16rpx;
  92. }
  93. .coupon-item {
  94. background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  95. border-radius: 20rpx;
  96. padding: 28rpx;
  97. margin-right: 28rpx;
  98. min-width: 220rpx;
  99. position: relative;
  100. overflow: hidden;
  101. box-shadow: 0 6rpx 20rpx rgba(255, 165, 0, 0.25);
  102. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  103. }
  104. .coupon-item::before {
  105. content: '';
  106. position: absolute;
  107. top: 50%;
  108. left: -10rpx;
  109. width: 20rpx;
  110. height: 20rpx;
  111. background: #4A90C2;
  112. border-radius: 50%;
  113. transform: translateY(-50%);
  114. }
  115. .coupon-item::after {
  116. content: '';
  117. position: absolute;
  118. top: 50%;
  119. right: -10rpx;
  120. width: 20rpx;
  121. height: 20rpx;
  122. background: #4A90C2;
  123. border-radius: 50%;
  124. transform: translateY(-50%);
  125. }
  126. .coupon-value {
  127. font-size: 40rpx;
  128. color: #fff;
  129. font-weight: 700;
  130. text-align: center;
  131. letter-spacing: 1rpx;
  132. }
  133. .coupon-name {
  134. font-size: 24rpx;
  135. color: #fff;
  136. text-align: center;
  137. margin: 8rpx 0;
  138. }
  139. .coupon-expire {
  140. font-size: 20rpx;
  141. color: rgba(255, 255, 255, 0.8);
  142. text-align: center;
  143. }
  144. .no-coupons {
  145. background: rgba(255, 255, 255, 0.1);
  146. border-radius: 16rpx;
  147. padding: 60rpx 40rpx;
  148. text-align: center;
  149. backdrop-filter: blur(10rpx);
  150. }
  151. .no-coupons-text {
  152. color: rgba(255, 255, 255, 0.7);
  153. font-size: 28rpx;
  154. }
  155. /* 积分商城 */
  156. .points-mall-section {
  157. margin: 36rpx 32rpx 32rpx;
  158. }
  159. .products-grid {
  160. display: flex;
  161. flex-direction: column;
  162. gap: 28rpx;
  163. }
  164. .product-card {
  165. background: rgba(255, 255, 255, 0.96);
  166. border-radius: 28rpx;
  167. padding: 36rpx;
  168. display: flex;
  169. align-items: center;
  170. box-shadow: 0 12rpx 40rpx rgba(74, 144, 194, 0.18);
  171. backdrop-filter: blur(16rpx);
  172. border: 1rpx solid rgba(255, 255, 255, 0.4);
  173. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  174. }
  175. .product-card:active {
  176. transform: translateY(2rpx);
  177. box-shadow: 0 8rpx 24rpx rgba(74, 144, 194, 0.12);
  178. }
  179. .product-icon {
  180. font-size: 72rpx;
  181. margin-right: 28rpx;
  182. }
  183. .product-info {
  184. flex: 1;
  185. }
  186. .product-name {
  187. font-size: 34rpx;
  188. color: #333;
  189. font-weight: 600;
  190. margin-bottom: 10rpx;
  191. letter-spacing: 0.5rpx;
  192. }
  193. .product-desc {
  194. font-size: 26rpx;
  195. color: #666;
  196. margin-bottom: 14rpx;
  197. line-height: 1.4;
  198. }
  199. .product-points {
  200. display: flex;
  201. align-items: baseline;
  202. }
  203. .points-number {
  204. font-size: 38rpx;
  205. color: #4A90C2;
  206. font-weight: 700;
  207. letter-spacing: 1rpx;
  208. }
  209. .points-unit {
  210. font-size: 24rpx;
  211. color: #4A90C2;
  212. margin-left: 4rpx;
  213. }
  214. .exchange-btn {
  215. padding: 18rpx 36rpx;
  216. border-radius: 50rpx;
  217. font-size: 30rpx;
  218. font-weight: 600;
  219. text-align: center;
  220. min-width: 180rpx;
  221. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  222. letter-spacing: 0.5rpx;
  223. }
  224. .can-exchange {
  225. background: linear-gradient(135deg, #4A90C2 0%, #357ABD 100%);
  226. color: #fff;
  227. box-shadow: 0 6rpx 20rpx rgba(74, 144, 194, 0.3);
  228. }
  229. .cannot-exchange {
  230. background: #f5f5f5;
  231. color: #999;
  232. }
  233. /* 弹窗样式 */
  234. .modal-overlay {
  235. position: fixed;
  236. top: 0;
  237. left: 0;
  238. right: 0;
  239. bottom: 0;
  240. background: rgba(0, 0, 0, 0.5);
  241. display: flex;
  242. align-items: center;
  243. justify-content: center;
  244. z-index: 1000;
  245. }
  246. .modal-content {
  247. background: #fff;
  248. border-radius: 24rpx;
  249. width: 640rpx;
  250. max-height: 80vh;
  251. overflow: hidden;
  252. }
  253. .modal-header {
  254. display: flex;
  255. justify-content: space-between;
  256. align-items: center;
  257. padding: 32rpx;
  258. border-bottom: 1rpx solid #f0f0f0;
  259. }
  260. .modal-title {
  261. font-size: 36rpx;
  262. font-weight: bold;
  263. color: #333;
  264. }
  265. .modal-close {
  266. background: none;
  267. border: none;
  268. font-size: 48rpx;
  269. color: #999;
  270. padding: 0;
  271. width: 48rpx;
  272. height: 48rpx;
  273. display: flex;
  274. align-items: center;
  275. justify-content: center;
  276. }
  277. .modal-body {
  278. padding: 32rpx;
  279. }
  280. .exchange-product {
  281. display: flex;
  282. align-items: center;
  283. margin-bottom: 32rpx;
  284. }
  285. .product-icon-large {
  286. font-size: 80rpx;
  287. margin-right: 24rpx;
  288. }
  289. .product-details {
  290. flex: 1;
  291. }
  292. .product-details .product-name {
  293. font-size: 32rpx;
  294. color: #333;
  295. font-weight: bold;
  296. margin-bottom: 8rpx;
  297. }
  298. .product-value {
  299. font-size: 28rpx;
  300. color: #4A90C2;
  301. margin-bottom: 8rpx;
  302. }
  303. .product-points {
  304. font-size: 24rpx;
  305. color: #666;
  306. margin-bottom: 8rpx;
  307. }
  308. .product-validity {
  309. font-size: 24rpx;
  310. color: #999;
  311. }
  312. .points-status {
  313. background: #f8f9fa;
  314. border-radius: 16rpx;
  315. padding: 24rpx;
  316. }
  317. .current-points {
  318. font-size: 28rpx;
  319. color: #333;
  320. margin-bottom: 8rpx;
  321. }
  322. .after-exchange {
  323. font-size: 28rpx;
  324. color: #4A90C2;
  325. font-weight: bold;
  326. }
  327. .modal-footer {
  328. display: flex;
  329. gap: 24rpx;
  330. padding: 32rpx;
  331. border-top: 1rpx solid #f0f0f0;
  332. }
  333. .cancel-btn,
  334. .confirm-btn {
  335. flex: 1;
  336. padding: 24rpx;
  337. border-radius: 40rpx;
  338. font-size: 32rpx;
  339. font-weight: bold;
  340. text-align: center;
  341. border: none;
  342. }
  343. .cancel-btn {
  344. background: #f5f5f5;
  345. color: #666;
  346. }
  347. .confirm-btn {
  348. background: linear-gradient(135deg, #4A90C2 0%, #357ABD 100%);
  349. color: #fff;
  350. }
  351. .confirm-btn[disabled] {
  352. background: #f5f5f5;
  353. color: #999;
  354. }