home.less 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. /* pages/home/home.less */
  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: 15px;
  18. border-radius: 15px;
  19. box-shadow: 5px 5px 5px #aaa;
  20. .statistics-item {
  21. display: grid;
  22. justify-content: center;
  23. text-align: center;
  24. }
  25. text {
  26. margin-top: 5px;
  27. font-size: 26rpx;
  28. color: #fff;
  29. }
  30. }
  31. .menus {
  32. display: flex;
  33. flex-direction: row;
  34. margin: 15px 7.5px 10px;
  35. align-items: center;
  36. .menu-item {
  37. display: grid;
  38. justify-content: space-around;
  39. width: 100%;
  40. }
  41. .menus-item1 {
  42. display: grid;
  43. justify-content: center;
  44. font-size: 26rpx;
  45. text-align: center;
  46. text {
  47. margin-bottom: 10px;
  48. color: #666;
  49. }
  50. image {
  51. border-radius: 5px;
  52. width: 60px;
  53. height:60px;
  54. }
  55. }
  56. .menus-item2 {
  57. margin-top: 15px;
  58. background-color: #f0f0f0;
  59. text-align: center;
  60. align-content: center;
  61. display: grid;
  62. font-size: 26rpx;
  63. height: 30px;
  64. width: 90px;
  65. border-radius: 10px;
  66. color: #666;
  67. }
  68. .goldprice, .exchangerate {
  69. width: 40px;
  70. height: 80px;
  71. font-size: 14px;
  72. color: #444;
  73. text-align: center;
  74. }
  75. }
  76. .search-view {
  77. display: flex;
  78. align-items: center;
  79. align-content: center;
  80. van-search {
  81. width: 100%;
  82. }
  83. }
  84. .news-lists {
  85. display: grid;
  86. padding: 10px;
  87. align-items: center;
  88. align-content: center;
  89. .title {
  90. font-size: 20px;
  91. color: rebeccapurple;
  92. margin: 5px 0px;
  93. }
  94. }
  95. .goldprice, .exchangerate, .calculator {
  96. width: 23px;
  97. text-align: center;
  98. display: flex;
  99. justify-content: center;
  100. align-items: center;
  101. align-content: center;
  102. font-size: 12px;
  103. margin: 3px;
  104. color: #fff;
  105. border-radius: 5px;
  106. position: absolute;
  107. box-shadow: 3px 3px 3px #aaa;
  108. }
  109. .goldprice {
  110. height: 60px;
  111. top: 42%;
  112. left: 5px;
  113. background-color: navy;
  114. }
  115. .exchangerate {
  116. height: 90px;
  117. top: 42%;
  118. right: 5px;
  119. background-color: lightcoral;
  120. }
  121. .calculator {
  122. height: 90px;
  123. bottom: 120px;
  124. right: 5px;
  125. background-color: hotpink;
  126. }