home.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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: 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: 14px;
  71. color: #444;
  72. text-align: center;
  73. }
  74. }
  75. .search-view {
  76. display: flex;
  77. align-items: center;
  78. align-content: center;
  79. van-search {
  80. width: 95%;
  81. }
  82. }
  83. .news-lists {
  84. display: grid;
  85. padding: 10px;
  86. align-items: center;
  87. align-content: center;
  88. .title {
  89. font-size: 18px;
  90. color: blue;
  91. margin: 5px 0px;
  92. }
  93. }
  94. .goldprice, .exchangerate, .calculator {
  95. width: 25px;
  96. background-color: #f0f0f0;
  97. text-align: center;
  98. vertical-align: middle;
  99. display: flex;
  100. justify-content: center;
  101. align-items: center;
  102. align-content: center;
  103. font-size: 14px;
  104. padding: 5px;
  105. color: #444;
  106. }
  107. .goldprice {
  108. height: 60px;
  109. }
  110. .exchangerate, .calculator {
  111. height: 100px;
  112. }