home.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. /* pages/home/home.wxss */
  2. .nav-bar {
  3. background-color: red;
  4. }
  5. .banner {
  6. height: 210px;
  7. .swiper-item, image {
  8. width: 100%;
  9. }
  10. }
  11. .statistics {
  12. display: flex;
  13. flex-direction: row;
  14. justify-content: space-between;
  15. margin: 10px;
  16. background-color: #f0f0f0;
  17. padding: 10px;
  18. border-radius: 10px;
  19. .statistics-item {
  20. display: grid;
  21. justify-content: center;
  22. text-align: center;
  23. }
  24. text {
  25. margin-top: 5px;
  26. font-size: 26rpx;
  27. color: #666;
  28. }
  29. }
  30. .menus {
  31. display: flex;
  32. flex-direction: row;
  33. margin: 15px 7.5px 10px;
  34. align-items: center;
  35. .menu-item {
  36. display: grid;
  37. justify-content: space-around;
  38. width: 100%;
  39. }
  40. .menus-item1 {
  41. display: grid;
  42. justify-content: center;
  43. font-size: 26rpx;
  44. text-align: center;
  45. text {
  46. margin-bottom: 10px;
  47. color: #666;
  48. }
  49. image {
  50. border-radius: 5px;
  51. width: 60px;
  52. height:60px;
  53. }
  54. }
  55. .menus-item2 {
  56. margin-top: 15px;
  57. background-color: #f0f0f0;
  58. text-align: center;
  59. align-content: center;
  60. display: grid;
  61. font-size: 26rpx;
  62. height: 30px;
  63. width: 90px;
  64. border-radius: 10px;
  65. color: #666;
  66. }
  67. .goldprice, .exchangerate {
  68. width: 40px;
  69. height: 80px;
  70. font-size: 26rpx;
  71. color: #666;
  72. text-align: center;
  73. }
  74. .search-view {
  75. display: flex;
  76. align-items: center;
  77. align-content: center;
  78. van-search {
  79. width: 90%;
  80. }
  81. .calculator {
  82. width: 20px;
  83. font-size: 26rpx;
  84. color: #666;
  85. text-align: center;
  86. }
  87. }
  88. }
  89. .news-lists {
  90. display: grid;
  91. padding: 10px;
  92. view text {
  93. font-size: 18px;
  94. padding-bottom: 10px;
  95. color: blue;
  96. }
  97. .new-lists-item {
  98. padding-top: 20px;
  99. display: flex;
  100. border-bottom: 1px solid #f0f0f0;
  101. image {
  102. height: 80px;
  103. margin-left: 10px;
  104. border-radius: 5px;
  105. }
  106. .new-lists-item-left {
  107. display: grid;
  108. text:nth-child(1) {
  109. width: 100%;
  110. font-size: 14px;
  111. color: #333;
  112. }
  113. text:nth-child(2) {
  114. font-size: 12px;
  115. color: #666;
  116. }
  117. }
  118. }
  119. }