homeLand.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. .home-land-container {
  2. width: 100%;
  3. height: 100vh;
  4. overflow: hidden;
  5. position: relative;
  6. .scroll-container {
  7. width: 100%;
  8. height: 100%;
  9. position: relative;
  10. overflow: hidden;
  11. touch-action: pan-x;
  12. }
  13. /* 第三层:背景层 */
  14. .background-layer {
  15. position: fixed;
  16. top: 0;
  17. left: 0;
  18. width: 100%;
  19. height: 100%;
  20. background: linear-gradient(to bottom, #265f9f, #4682B4); /* 渐变背景 */
  21. z-index: 1; /* 最底层 */
  22. user-select: none; /* 禁止选中 */
  23. pointer-events: none; /* 禁止交互 */
  24. }
  25. /* 第二层:地图层(可拖动) */
  26. .map-layer {
  27. position: fixed;
  28. bottom: 0;
  29. left: 0;
  30. width: 1536rpx; /* 地图比屏幕大 */
  31. height: 100%;
  32. z-index: 2; /* 中间层 */
  33. cursor: grab; /* 拖动光标 */
  34. }
  35. /* 第一层:UI层(最上层) */
  36. // .ui-layer {
  37. // position: fixed;
  38. // top: 0;
  39. // left: 0;
  40. // right: 0;
  41. // bottom: 0;
  42. // pointer-events: none;
  43. // z-index: 100;
  44. /* UI层内部元素需要启用交互 */
  45. .ui-content {
  46. position: fixed;
  47. top: 0;
  48. left: 0;
  49. width: 100%;
  50. z-index: 100;
  51. pointer-events: none; /* 默认不接收事件 */
  52. z-index: 101;
  53. display: flex;
  54. flex-direction: column;
  55. align-items: flex-end;
  56. padding-right: 20rpx;
  57. .status-bar {
  58. height: var(--status-bar-height);
  59. }
  60. .customHead{
  61. width: 100%;
  62. display: flex;
  63. flex-direction: row;
  64. justify-content: space-between;
  65. padding-left: 20rpx;
  66. padding-top: 35rpx;
  67. box-sizing: border-box;
  68. .back-button {
  69. width: 56rpx;
  70. height: 56rpx;
  71. pointer-events: auto;
  72. }
  73. }
  74. }
  75. .currency-display {
  76. display: flex;
  77. flex-direction: row;
  78. gap: 20rpx;
  79. margin-bottom: 20rpx;
  80. padding: 10rpx;
  81. pointer-events: auto; /* 货币计数器接收事件 */
  82. .currency-item {
  83. min-width: 160rpx;
  84. display: flex;
  85. align-items: center;
  86. background: url('/static/island/UI/money_kuang.png') no-repeat center center;
  87. background-size: 100% 100%;
  88. padding: 12rpx 24rpx;
  89. border-radius: 50rpx;
  90. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  91. .currency-icon {
  92. width: 40rpx;
  93. height: 40rpx;
  94. margin-right: 12rpx;
  95. margin-left: -8rpx;
  96. }
  97. .currency-value {
  98. font-size: 28rpx;
  99. color: #FFFFFF;
  100. font-weight: bold;
  101. text-shadow:
  102. -1px -1px 0 #316624,
  103. 1px -1px 0 #316624,
  104. -1px 1px 0 #316624,
  105. 1px 1px 0 #316624;
  106. }
  107. }
  108. }
  109. .ui-buttons {
  110. display: flex;
  111. flex-direction: column;
  112. gap: 20rpx;
  113. pointer-events: auto; /* 按钮接收事件 */
  114. .ui-button {
  115. background: rgba(255, 255, 255, 0.9);
  116. border: none;
  117. padding: 16rpx 32rpx;
  118. border-radius: 8rpx;
  119. font-size: 28rpx;
  120. color: #333;
  121. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  122. min-width: 120rpx;
  123. &:active {
  124. opacity: 0.8;
  125. transform: scale(0.95);
  126. }
  127. }
  128. }
  129. // }
  130. /* 示例按钮样式 */
  131. .dialog-button {
  132. pointer-events: auto; /* 重新启用交互 */
  133. background: white;
  134. padding: 10px 20px;
  135. border-radius: 5px;
  136. box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  137. }
  138. text {
  139. font-size: 16px;
  140. color: #333;
  141. }
  142. }