电速宝
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

index.wxss 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. /* 全局样式 */
  2. page {
  3. background-color: #f5f5f5;
  4. }
  5. .address-container {
  6. padding-bottom: 20rpx;
  7. }
  8. /* 表单项目 */
  9. .form-item {
  10. display: flex;
  11. align-items: center;
  12. background-color: #fff;
  13. padding: 0 30rpx;
  14. height: 100rpx;
  15. border-bottom: 1rpx solid #f1f1f1;
  16. }
  17. .form-label {
  18. font-size: 28rpx;
  19. color: #333;
  20. width: 160rpx;
  21. }
  22. .required::after {
  23. content: '*';
  24. color: #ff4d4f;
  25. margin-left: 4rpx;
  26. }
  27. .form-input {
  28. flex: 1;
  29. height: 100%;
  30. font-size: 28rpx;
  31. color: #333;
  32. padding: 0 10rpx;
  33. }
  34. .form-input::placeholder {
  35. color: #999;
  36. font-size: 26rpx;
  37. }
  38. /* 地区选择器 */
  39. .area-picker {
  40. flex: 1;
  41. display: flex;
  42. align-items: center;
  43. justify-content: space-between;
  44. }
  45. .area-text {
  46. font-size: 28rpx;
  47. color: #333;
  48. margin-right: 10rpx;
  49. }
  50. .right-icon {
  51. margin-left: auto;
  52. }
  53. /* 开关项 */
  54. .switch-item {
  55. justify-content: space-between;
  56. }
  57. /* 提交按钮 */
  58. .submit-btn {
  59. margin: 40rpx 30rpx;
  60. height: 90rpx;
  61. line-height: 90rpx;
  62. background-color: #2C85FF;
  63. color: #fff;
  64. font-size: 32rpx;
  65. border-radius: 45rpx;
  66. margin-top: 100rpx;
  67. }
  68. .submit-btn::after {
  69. border: none;
  70. /* background-color: #cccccc; */
  71. }
  72. .submit-btn:disabled {
  73. color: #ffffff;
  74. }
  75. /* 省市区选择器 */
  76. .area-picker-view {
  77. position: fixed;
  78. bottom: 0;
  79. left: 0;
  80. right: 0;
  81. height: 400rpx;
  82. background-color: #fff;
  83. z-index: 100;
  84. }
  85. .picker-item {
  86. display: flex;
  87. align-items: center;
  88. justify-content: center;
  89. font-size: 28rpx;
  90. color: #333;
  91. }
  92. /* 遮罩层 */
  93. .mask {
  94. position: fixed;
  95. top: 0;
  96. left: 0;
  97. right: 0;
  98. bottom: 0;
  99. background-color: rgba(0, 0, 0, 0.5);
  100. z-index: 99;
  101. }
  102. /* 详细地址容器 */
  103. .detail-address-wrapper {
  104. flex: 1;
  105. display: flex;
  106. align-items: center;
  107. }
  108. /* 地图按钮 */
  109. .map-btn {
  110. width: 50rpx;
  111. height: 50rpx;
  112. padding: 0;
  113. margin-left: 10rpx;
  114. background: transparent;
  115. }
  116. .map-icon {
  117. width: 30rpx;
  118. height: 30rpx;
  119. }
  120. /* POI提示文字 */
  121. .poi-tip {
  122. position: absolute;
  123. left: 190rpx;
  124. top: 70rpx;
  125. font-size: 22rpx;
  126. color: #666;
  127. }
  128. /* 优化选择器容器样式,与原生组件适配 */
  129. .area-picker {
  130. flex: 1;
  131. display: flex;
  132. align-items: center;
  133. justify-content: space-between;
  134. padding-right: 10rpx;
  135. }
  136. .area-text {
  137. font-size: 28rpx;
  138. color: #333;
  139. /* 处理文字溢出 */
  140. overflow: hidden;
  141. text-overflow: ellipsis;
  142. white-space: nowrap;
  143. }
  144. /* 空状态文字颜色区分 */
  145. .area-text:empty::before {
  146. content: '请选择省/市/区';
  147. color: #999;
  148. }
  149. .right-icon {
  150. margin-left: 10rpx;
  151. }
  152. /* 保持原有样式不变 */
  153. .form-item {
  154. display: flex;
  155. align-items: center;
  156. background-color: #fff;
  157. padding: 0 30rpx;
  158. height: 100rpx;
  159. border-bottom: 1rpx solid #f1f1f1;
  160. }
  161. .area-picker {
  162. flex: 1;
  163. display: flex;
  164. align-items: center;
  165. justify-content: space-between;
  166. padding-right: 10rpx;
  167. }
  168. /* 其他样式保持不变 */