mainLand.scss 4.0 KB

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