add-address.scss 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. @import "../../../../themes/page.scss";
  2. @import "../../searc-list.scss";
  3. /* module/diet/pages/diet-info/diet-info.wxss */
  4. .add-address-scroll {
  5. padding: 0 24rpx 0rpx 24rpx;
  6. background: #f7f7f7;
  7. min-height: 100vh;
  8. width: 94%;
  9. }
  10. .smart-fill {
  11. background: #fff;
  12. border-radius: 24rpx;
  13. margin: 32rpx 0 16rpx 0;
  14. padding: 32rpx;
  15. width: 100%;
  16. box-sizing: border-box;
  17. }
  18. .smart-title {
  19. font-size: 32rpx;
  20. font-weight: 500;
  21. margin-bottom: 16rpx;
  22. }
  23. .smart-paste {
  24. color: #bbb;
  25. font-size: 26rpx;
  26. background: #f7f7f7;
  27. border-radius: 16rpx;
  28. padding: 20rpx;
  29. }
  30. .form-box {
  31. background: #fff;
  32. border-radius: 20rpx;
  33. padding: 0 24rpx;
  34. }
  35. .form-item {
  36. display: flex;
  37. align-items: center;
  38. background: #fff;
  39. border-bottom: 1px solid #f3f3f3;
  40. height: 110rpx;
  41. padding: 0 32rpx;
  42. &:last-child {
  43. border-bottom: none;
  44. }
  45. }
  46. .form-label {
  47. width: 140rpx;
  48. color: #333;
  49. font-size: 28rpx;
  50. flex-shrink: 0;
  51. }
  52. .form-input {
  53. flex: 1;
  54. height: 110rpx;
  55. background: #fff !important;
  56. border: none !important;
  57. font-size: 28rpx;
  58. line-height: 110rpx;
  59. padding: 0 16rpx;
  60. box-sizing: border-box;
  61. }
  62. .form-input ::-webkit-input-placeholder { /* Webkit/微信小程序支持 */
  63. color: red !important; // 或 #bbb,根据你想要的灰度
  64. font-size: 28rpx !important;
  65. }
  66. .form-input :-moz-placeholder { /* Firefox 4-18 */
  67. color: #E7E7E7 !important;
  68. font-size: 28rpx !important;
  69. }
  70. .form-input ::-moz-placeholder { /* Firefox 19+ */
  71. color: #E7E7E7 !important;
  72. font-size: 28rpx !important;
  73. }
  74. .form-input :-ms-input-placeholder { /* IE10+ */
  75. color: #E7E7E7 !important;
  76. font-size: 28rpx !important;
  77. }
  78. .privacy-tip {
  79. color: #ff9900;
  80. font-size: 24rpx;
  81. margin: 24rpx 0 0 0;
  82. padding: 0 24rpx;
  83. }
  84. .tag-box {
  85. display: flex;
  86. align-items: center;
  87. background: #fff;
  88. border-radius: 24rpx 24rpx 0 0;
  89. margin: 24rpx 0 0;
  90. padding: 24rpx;
  91. border-bottom: 0.5rpx solid lightgray;
  92. }
  93. .tagsList {
  94. margin-right: 10rpx !important;
  95. font-size: 28rpx !important;
  96. padding: 30rpx 43rpx !important;
  97. border-radius: 32rpx !important;
  98. background-color: white !important;
  99. border: 1px solid #E7E7E7 !important;
  100. color: #333 !important;
  101. }
  102. .selected {
  103. background-color: rgba(29,111,246,0.1) !important;
  104. border: 1px solid #1D6FF6 !important;
  105. color: #1D6FF6 !important;
  106. }
  107. .default-box {
  108. display: flex;
  109. align-items: center;
  110. background: #fff;
  111. border-radius: 0 0 20rpx 20rpx;
  112. padding: 24rpx;
  113. font-size: 28rpx;
  114. justify-content: space-between;
  115. }
  116. .save-btn-box {
  117. position: fixed;
  118. left: 0;
  119. bottom: 32rpx;
  120. width: 100%;
  121. background: transparent;
  122. // z-index: 100;
  123. display: flex;
  124. justify-content: center;
  125. align-items: center;
  126. }
  127. .save-btn {
  128. width: 48% !important;
  129. height: 96rpx !important;
  130. line-height: 96rpx !important;
  131. background: #1D6FF6 !important;
  132. color: #fff !important;
  133. font-size: 35rpx !important;
  134. border-radius: 100rpx !important;
  135. box-shadow: 0 8rpx 24rpx rgba(29,111,246,0.08) !important;
  136. border: none !important;
  137. font-weight: 500 !important;
  138. letter-spacing: 2rpx !important;
  139. text-align: center !important;
  140. }
  141. .select-tag{
  142. color: #1D6FF6 !important;
  143. border: 1px solid #1D6FF6 !important;
  144. }
  145. .form-detail {
  146. width: 100%; // 或指定宽度如 500rpx
  147. min-height: 110rpx;
  148. background: #fff !important;
  149. font-size: 28rpx;
  150. line-height: 1.6;
  151. padding: 16rpx 16rpx;
  152. box-sizing: border-box;
  153. resize: none;
  154. word-break: break-all; // 超出宽度自动换行
  155. }
  156. .address-detail-item {
  157. align-items: flex-start;
  158. min-height: 110rpx;
  159. height: auto;
  160. padding: 16rpx 32rpx;
  161. .form-label {
  162. margin-top: 16rpx;
  163. flex-shrink: 0;
  164. }
  165. .form-detail {
  166. width: 100%;
  167. font-size: 28rpx;
  168. line-height: 1.4;
  169. padding: 12rpx 16rpx;
  170. box-sizing: border-box;
  171. background: #fff !important;
  172. border-radius: 8rpx;
  173. color: black !important;
  174. min-height: 80rpx;
  175. max-height: 220rpx;
  176. overflow-y: auto;
  177. word-wrap: break-word;
  178. word-break: break-all;
  179. white-space: pre-wrap;
  180. }
  181. }
  182. .smart-paste-box {
  183. position: relative;
  184. margin-bottom: 0;
  185. width: 100%;
  186. box-sizing: border-box;
  187. }
  188. .smart-paste-input-blur {
  189. box-shadow: none !important;
  190. }
  191. .smart-paste-input-focus {
  192. box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.04) !important;
  193. min-height: 120rpx !important;
  194. }
  195. .smart-paste-btns {
  196. display: flex !important;
  197. justify-content: flex-end !important;
  198. margin-top: 24rpx !important;
  199. gap: 32rpx !important;
  200. }
  201. .smart-paste-btns-bottom {
  202. display: flex !important;
  203. justify-content: flex-end !important;
  204. margin-top: 16rpx !important;
  205. gap: 16rpx !important; // 按钮间距
  206. }
  207. .smart-btn {
  208. height: 56rpx !important;
  209. min-width: 96rpx !important;
  210. padding: 0 32rpx !important;
  211. border-radius: 32rpx !important;
  212. font-size: 28rpx !important;
  213. line-height: 56rpx !important;
  214. border: none !important;
  215. outline: none;
  216. margin: 0 10rpx 0 0 !important;
  217. }
  218. .smart-btn-clear {
  219. background: transparent !important;
  220. color: #999 !important;
  221. border: none !important;
  222. }
  223. .smart-btn-recognize {
  224. background: #1D6FF6 !important;
  225. color: #fff !important;
  226. }
  227. .smart-btn-recognize-disabled {
  228. background:rgba(29,111,246,0.7) !important;
  229. color: white !important;
  230. }
  231. // 智能识别地址聚焦时的样式
  232. .smart-paste-input-focus {
  233. height: 70px !important;
  234. }
  235. // 智能识别地址失焦时的样式
  236. .smart-paste-input-blur {
  237. height: 70px !important;
  238. }
  239. .smart-paste-input {
  240. font-size: 15rpx !important;
  241. border: none !important;
  242. background: #fafafa !important;
  243. border-radius: 20rpx !important;
  244. color: #bbb !important;
  245. padding: 20rpx !important;
  246. overflow: auto !important;
  247. }
  248. .delete-btn{
  249. width: 48%;
  250. background: #fff !important;
  251. color: #1D6FF6 !important;
  252. border: 1px solid #1D6FF6 !important;
  253. }