index.wxss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. .zs-banner .u-notice .u-icon__icon {
  28. font-size: 32rpx !important;
  29. }
  30. .zs-banner {
  31. position: relative;
  32. height: 584rpx;
  33. }
  34. .zs-banner .position-box {
  35. position: fixed;
  36. width: 100%;
  37. top: 0;
  38. left: 0;
  39. z-index: 2;
  40. display: flex;
  41. align-items: flex-end;
  42. justify-content: center;
  43. box-sizing: border-box;
  44. padding-bottom: 6rpx;
  45. }
  46. .zs-banner .position-box .position {
  47. position: absolute;
  48. left: 30rpx;
  49. color: #222;
  50. display: flex;
  51. align-items: center;
  52. font-size: 24rpx;
  53. }
  54. .zs-banner .position-box .position .position-icon {
  55. width: 40rpx;
  56. height: 40rpx;
  57. }
  58. .zs-banner .position-box .position .city {
  59. margin-left: 6rpx;
  60. line-height: 60rpx;
  61. }
  62. .zs-banner .position-box .search-box {
  63. width: 380rpx;
  64. height: 60rpx;
  65. background: #FFFFFF;
  66. border-radius: 30rpx;
  67. position: absolute;
  68. left: 160rpx;
  69. box-shadow: 0rpx 0rpx 20rpx 2rpx rgba(0, 0, 0, 0.1);
  70. }
  71. .zs-banner .position-box .search-box .icon {
  72. width: 34rpx;
  73. height: 34rpx;
  74. position: absolute;
  75. top: 50%;
  76. left: 22rpx;
  77. -webkit-transform: translateY(-50%);
  78. transform: translateY(-50%);
  79. }
  80. .zs-banner .position-box .search-box .search {
  81. line-height: 60rpx;
  82. height: 60rpx;
  83. padding-left: 80rpx;
  84. }
  85. .zs-banner .top-box {
  86. background: linear-gradient(180deg, var(--bg) 0%, #FFF 100%);
  87. height: 536rpx;
  88. box-sizing: border-box;
  89. display: flex;
  90. flex-direction: column;
  91. justify-content: flex-end;
  92. }
  93. .zs-banner .top-box .swiper {
  94. height: 584rpx;
  95. border-radius: 16rpx;
  96. }
  97. .zs-banner .top-box .swiper .swiper-item {
  98. width: 100%;
  99. height: 100%;
  100. object-fit: cover;
  101. }