main.wxss 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  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. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. page {
  28. padding-top: 60px;
  29. }
  30. .u-flex {
  31. display: flex;
  32. flex-direction: row;
  33. align-items: center;
  34. }
  35. .u-flex-wrap {
  36. flex-wrap: wrap;
  37. }
  38. .u-flex-nowrap {
  39. flex-wrap: nowrap;
  40. }
  41. .u-col-center {
  42. align-items: center;
  43. }
  44. .u-col-top {
  45. align-items: flex-start;
  46. }
  47. .u-col-bottom {
  48. align-items: flex-end;
  49. }
  50. .u-row-center {
  51. justify-content: center;
  52. }
  53. .u-row-left {
  54. justify-content: flex-start;
  55. }
  56. .u-row-right {
  57. justify-content: flex-end;
  58. }
  59. .u-row-between {
  60. justify-content: space-between;
  61. }
  62. .u-row-around {
  63. justify-content: space-around;
  64. }
  65. .u-text-left {
  66. text-align: left;
  67. }
  68. .u-text-center {
  69. text-align: center;
  70. }
  71. .u-text-right {
  72. text-align: right;
  73. }
  74. .u-flex-col {
  75. display: flex;
  76. flex-direction: column;
  77. }
  78. .u-flex-0 {
  79. flex: 0;
  80. }
  81. .u-flex-1 {
  82. flex: 1;
  83. }
  84. .u-flex-2 {
  85. flex: 2;
  86. }
  87. .u-flex-3 {
  88. flex: 3;
  89. }
  90. .u-flex-4 {
  91. flex: 4;
  92. }
  93. .u-flex-5 {
  94. flex: 5;
  95. }
  96. .u-flex-6 {
  97. flex: 6;
  98. }
  99. .u-flex-7 {
  100. flex: 7;
  101. }
  102. .u-flex-8 {
  103. flex: 8;
  104. }
  105. .u-flex-9 {
  106. flex: 9;
  107. }
  108. .u-flex-10 {
  109. flex: 10;
  110. }
  111. .u-flex-11 {
  112. flex: 11;
  113. }
  114. .u-flex-12 {
  115. flex: 12;
  116. }
  117. .ellipsis-1 {
  118. overflow: hidden;
  119. text-overflow: ellipsis;
  120. display: -webkit-box;
  121. -webkit-line-clamp: 1;
  122. -webkit-box-orient: vertical;
  123. }
  124. .ellipsis-2 {
  125. overflow: hidden;
  126. text-overflow: ellipsis;
  127. display: -webkit-box;
  128. -webkit-line-clamp: 2;
  129. -webkit-box-orient: vertical;
  130. }
  131. .product {
  132. padding-bottom: 30rpx;
  133. padding-right: 20rpx;
  134. margin-bottom: 30rpx;
  135. border-bottom: 1px solid #eee;
  136. }
  137. .product .text {
  138. flex: 1;
  139. margin-left: 50rpx;
  140. }
  141. .product .text .name {
  142. height: 76rpx;
  143. font-size: 30rpx;
  144. font-weight: 600;
  145. color: #333;
  146. line-height: 38rpx;
  147. margin-bottom: 16rpx;
  148. }
  149. .product .text .price {
  150. color: #FF3C3F;
  151. }
  152. .product .text .price-num {
  153. font-size: 40rpx;
  154. font-weight: bold;
  155. margin-left: 2px;
  156. }
  157. .product .text .sales {
  158. margin-left: 30rpx;
  159. }
  160. .product .text .discount {
  161. padding: 4rpx 14rpx;
  162. border: 1px solid #FF3C3F;
  163. border-radius: 2px;
  164. color: #FF3C3F;
  165. margin-right: 50rpx;
  166. }
  167. .product .text .up {
  168. margin-bottom: 10rpx;
  169. }
  170. .product .text .down {
  171. font-size: 20rpx;
  172. }
  173. .product.small-product .text {
  174. margin-left: 30rpx;
  175. }
  176. .product.small-product .text .name {
  177. font-size: 26rpx;
  178. }
  179. .product.small-product .text .price-num {
  180. font-size: 30rpx;
  181. }
  182. .product.small-product .text .discount {
  183. margin-right: 5px;
  184. }
  185. .icon-nav {
  186. margin-bottom: 45rpx;
  187. }
  188. .icon-nav .u-image {
  189. margin-bottom: 15rpx;
  190. }
  191. .icon-nav .nav-item {
  192. text-align: center;
  193. font-size: 22rpx;
  194. color: #666;
  195. }
  196. .half-product-item {
  197. background-color: #fff;
  198. margin-bottom: 30rpx;
  199. width: 48%;
  200. }
  201. .half-product-item .down {
  202. padding: 20rpx;
  203. }
  204. .half-product-item .down .name {
  205. font-size: 30rpx;
  206. line-height: 42rpx;
  207. color: #333;
  208. margin-bottom: 10rpx;
  209. }
  210. .half-product-item .down .price-num {
  211. font-size: 40rpx;
  212. margin-left: 10rpx;
  213. }
  214. .half-product-item:nth-child(even) {
  215. margin-left: 10rpx;
  216. }
  217. .tabs-wrap {
  218. margin-bottom: 30rpx;
  219. }
  220. .tabs-wrap .more {
  221. font-size: 24rpx;
  222. color: #999;
  223. }
  224. .news .news-item {
  225. padding-bottom: 30rpx;
  226. margin-bottom: 30rpx;
  227. }
  228. .news .news-item .text {
  229. margin-left: 20rpx;
  230. }
  231. .news .news-item .text .til {
  232. font-size: 30rpx;
  233. color: #333;
  234. line-height: 1.5;
  235. font-weight: 600;
  236. margin-bottom: 17rpx;
  237. }
  238. .news .news-item .text .time {
  239. text-align: right;
  240. color: #999;
  241. font-size: 24rpx;
  242. }
  243. .page-bg {
  244. position: absolute;
  245. z-index: -1;
  246. left: 0;
  247. top: 0;
  248. right: 0;
  249. }
  250. .page-bg .img {
  251. width: 100%;
  252. }
  253. /*每个页面公共css */
  254. .u-line-1 {
  255. display: -webkit-box !important;
  256. overflow: hidden;
  257. text-overflow: ellipsis;
  258. word-break: break-all;
  259. -webkit-line-clamp: 1;
  260. -webkit-box-orient: vertical !important;
  261. }
  262. .u-line-2 {
  263. display: -webkit-box !important;
  264. overflow: hidden;
  265. text-overflow: ellipsis;
  266. word-break: break-all;
  267. -webkit-line-clamp: 2;
  268. -webkit-box-orient: vertical !important;
  269. }
  270. .u-line-3 {
  271. display: -webkit-box !important;
  272. overflow: hidden;
  273. text-overflow: ellipsis;
  274. word-break: break-all;
  275. -webkit-line-clamp: 3;
  276. -webkit-box-orient: vertical !important;
  277. }
  278. .u-line-4 {
  279. display: -webkit-box !important;
  280. overflow: hidden;
  281. text-overflow: ellipsis;
  282. word-break: break-all;
  283. -webkit-line-clamp: 4;
  284. -webkit-box-orient: vertical !important;
  285. }
  286. .u-line-5 {
  287. display: -webkit-box !important;
  288. overflow: hidden;
  289. text-overflow: ellipsis;
  290. word-break: break-all;
  291. -webkit-line-clamp: 5;
  292. -webkit-box-orient: vertical !important;
  293. }
  294. .u-border {
  295. border-width: 0.5px !important;
  296. border-color: #dadbde !important;
  297. border-style: solid;
  298. }
  299. .u-border-top {
  300. border-top-width: 0.5px !important;
  301. border-color: #dadbde !important;
  302. border-top-style: solid;
  303. }
  304. .u-border-left {
  305. border-left-width: 0.5px !important;
  306. border-color: #dadbde !important;
  307. border-left-style: solid;
  308. }
  309. .u-border-right {
  310. border-right-width: 0.5px !important;
  311. border-color: #dadbde !important;
  312. border-right-style: solid;
  313. }
  314. .u-border-bottom {
  315. border-bottom-width: 0.5px !important;
  316. border-color: #dadbde !important;
  317. border-bottom-style: solid;
  318. }
  319. .u-border-top-bottom {
  320. border-top-width: 0.5px !important;
  321. border-bottom-width: 0.5px !important;
  322. border-color: #dadbde !important;
  323. border-top-style: solid;
  324. border-bottom-style: solid;
  325. }
  326. .u-reset-button {
  327. padding: 0;
  328. background-color: transparent;
  329. font-size: inherit;
  330. line-height: inherit;
  331. color: inherit;
  332. }
  333. .u-reset-button::after {
  334. border: none;
  335. }
  336. .u-hover-class {
  337. opacity: 0.7;
  338. }
  339. .u-primary-light {
  340. color: #ecf5ff;
  341. }
  342. .u-warning-light {
  343. color: #fdf6ec;
  344. }
  345. .u-success-light {
  346. color: #f5fff0;
  347. }
  348. .u-error-light {
  349. color: #fef0f0;
  350. }
  351. .u-info-light {
  352. color: #f4f4f5;
  353. }
  354. .u-primary-light-bg {
  355. background-color: #ecf5ff;
  356. }
  357. .u-warning-light-bg {
  358. background-color: #fdf6ec;
  359. }
  360. .u-success-light-bg {
  361. background-color: #f5fff0;
  362. }
  363. .u-error-light-bg {
  364. background-color: #fef0f0;
  365. }
  366. .u-info-light-bg {
  367. background-color: #f4f4f5;
  368. }
  369. .u-primary-dark {
  370. color: #398ade;
  371. }
  372. .u-warning-dark {
  373. color: #f1a532;
  374. }
  375. .u-success-dark {
  376. color: #53c21d;
  377. }
  378. .u-error-dark {
  379. color: #e45656;
  380. }
  381. .u-info-dark {
  382. color: #767a82;
  383. }
  384. .u-primary-dark-bg {
  385. background-color: #398ade;
  386. }
  387. .u-warning-dark-bg {
  388. background-color: #f1a532;
  389. }
  390. .u-success-dark-bg {
  391. background-color: #53c21d;
  392. }
  393. .u-error-dark-bg {
  394. background-color: #e45656;
  395. }
  396. .u-info-dark-bg {
  397. background-color: #767a82;
  398. }
  399. .u-primary-disabled {
  400. color: #9acafc;
  401. }
  402. .u-warning-disabled {
  403. color: #f9d39b;
  404. }
  405. .u-success-disabled {
  406. color: #a9e08f;
  407. }
  408. .u-error-disabled {
  409. color: #f7b2b2;
  410. }
  411. .u-info-disabled {
  412. color: #c4c6c9;
  413. }
  414. .u-primary {
  415. color: #3c9cff;
  416. }
  417. .u-warning {
  418. color: #f9ae3d;
  419. }
  420. .u-success {
  421. color: #5ac725;
  422. }
  423. .u-error {
  424. color: #f56c6c;
  425. }
  426. .u-info {
  427. color: #909399;
  428. }
  429. .u-primary-bg {
  430. background-color: #3c9cff;
  431. }
  432. .u-warning-bg {
  433. background-color: #f9ae3d;
  434. }
  435. .u-success-bg {
  436. background-color: #5ac725;
  437. }
  438. .u-error-bg {
  439. background-color: #f56c6c;
  440. }
  441. .u-info-bg {
  442. background-color: #909399;
  443. }
  444. .u-main-color {
  445. color: #303133;
  446. }
  447. .u-content-color {
  448. color: #606266;
  449. }
  450. .u-tips-color {
  451. color: #909193;
  452. }
  453. .u-light-color {
  454. color: #c0c4cc;
  455. }
  456. .u-safe-area-inset-top {
  457. padding-top: 0;
  458. padding-top: constant(safe-area-inset-top);
  459. padding-top: env(safe-area-inset-top);
  460. }
  461. .u-safe-area-inset-right {
  462. padding-right: 0;
  463. padding-right: constant(safe-area-inset-right);
  464. padding-right: env(safe-area-inset-right);
  465. }
  466. .u-safe-area-inset-bottom {
  467. padding-bottom: 0;
  468. padding-bottom: constant(safe-area-inset-bottom);
  469. padding-bottom: env(safe-area-inset-bottom);
  470. }
  471. .u-safe-area-inset-left {
  472. padding-left: 0;
  473. padding-left: constant(safe-area-inset-left);
  474. padding-left: env(safe-area-inset-left);
  475. }
  476. ::-webkit-scrollbar {
  477. display: none;
  478. width: 0 !important;
  479. height: 0 !important;
  480. -webkit-appearance: none;
  481. background: transparent;
  482. }
  483. .page-wrap {
  484. padding: 20rpx;
  485. }
  486. .search-wrap {
  487. background-color: #fff;
  488. position: relative;
  489. padding: 20rpx;
  490. margin-bottom: 24rpx;
  491. }
  492. .search-wrap::after {
  493. content: "";
  494. position: absolute;
  495. width: 100%;
  496. height: 14rpx;
  497. bottom: -20rpx;
  498. left: 0;
  499. background: linear-gradient(to bottom, #F5F5F5, #fff);
  500. z-index: -1;
  501. }
  502. .vip-icon {
  503. font-weight: bold;
  504. background: linear-gradient(180deg, #FFD49C 0%, #C27D22 100%);
  505. -webkit-background-clip: text;
  506. -webkit-text-fill-color: transparent;
  507. margin-left: 10rpx;
  508. }
  509. .gray {
  510. color: #999;
  511. }
  512. .red {
  513. color: #FF3C3F;
  514. }
  515. .line-through {
  516. text-decoration: line-through;
  517. }
  518. .view-wrap {
  519. padding: 30rpx 20rpx;
  520. }
  521. .full-btn {
  522. background-color: #00A447;
  523. color: #fff;
  524. border-radius: 44rpx;
  525. padding: 22rpx 0;
  526. text-align: center;
  527. margin-bottom: 40rpx;
  528. margin-top: 20rpx;
  529. }
  530. .view-wrap {
  531. background-color: #fff;
  532. border-bottom: 10rpx solid #F5F5F5;
  533. }
  534. .single-til {
  535. margin-bottom: 20rpx;
  536. }
  537. .single-til .text {
  538. font-size: 32rpx;
  539. color: #333;
  540. font-weight: 600;
  541. }
  542. .single-til .more-text {
  543. font-size: 24rpx;
  544. color: #999;
  545. }