takePhoto.wxss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. /* pages/takePhoto/takePhoto.wxss */
  2. /* 全局样式 */
  3. page {
  4. background-color: #f5f7fa;
  5. color: #333;
  6. font-size: 14px;
  7. line-height: 1.5;
  8. }
  9. .container {
  10. background-color: #fff;
  11. min-height: 100vh;
  12. position: relative;
  13. padding-bottom: 60px;
  14. }
  15. .header {
  16. background-color: #1e88e5;
  17. color: white;
  18. padding: 15px;
  19. text-align: center;
  20. font-size: 18px;
  21. font-weight: bold;
  22. position: sticky;
  23. top: 0;
  24. z-index: 100;
  25. }
  26. .content {
  27. padding: 15px;
  28. }
  29. /* 按钮样式 */
  30. .btn-group {
  31. display: flex;
  32. flex-direction: column;
  33. gap: 15px;
  34. margin-bottom: 15px;
  35. }
  36. .btn {
  37. display: block;
  38. width: 100%;
  39. padding: 15px;
  40. border-radius: 8px;
  41. text-align: center;
  42. color: white;
  43. font-weight: bold;
  44. margin-bottom: 0;
  45. line-height: 1.5;
  46. border: none;
  47. }
  48. .btn-green {
  49. background-color: #4caf50;
  50. }
  51. .btn-blue {
  52. background-color: #1e88e5;
  53. }
  54. .btn-red {
  55. background-color: #f44336;
  56. }
  57. .btn-phone {
  58. background-color: #2196f3;
  59. display: inline-flex;
  60. align-items: center;
  61. justify-content: center;
  62. width: 220rpx;
  63. padding: 10rpx 0px;
  64. font-size: 12px;
  65. }
  66. .tel {
  67. margin-right: 12rpx;
  68. }
  69. /* 卡片样式 */
  70. .card {
  71. background-color: #fff;
  72. border-radius: 8px;
  73. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  74. margin-bottom: 15px;
  75. overflow: hidden;
  76. }
  77. .card-header {
  78. padding: 12px 15px;
  79. border-bottom: 1px solid #eee;
  80. font-weight: bold;
  81. font-size: 16px;
  82. color: #333;
  83. background-color: #f9f9f9;
  84. }
  85. .card-content {
  86. padding: 15px;
  87. }
  88. /* 搜索框 */
  89. .search-box {
  90. display: flex;
  91. margin-bottom: 15px;
  92. }
  93. .search-input {
  94. flex: 1;
  95. padding: 10px 15px;
  96. border: 1px solid #ddd;
  97. border-radius: 8px 0 0 8px;
  98. }
  99. .search-btn {
  100. background-color: #1e88e5;
  101. color: white;
  102. border: none;
  103. padding: 0 15px;
  104. border-radius: 0 8px 8px 0;
  105. line-height: 88rpx;
  106. font-size: 14px;
  107. }
  108. /* 列表样式 */
  109. .list-item {
  110. padding: 12px 15px;
  111. border-bottom: 1px solid #eee;
  112. }
  113. .list-item:last-child {
  114. border-bottom: none;
  115. }
  116. /* 标签样式 */
  117. .tag {
  118. display: inline-block;
  119. padding: 4px 8px;
  120. border-radius: 4px;
  121. font-size: 12px;
  122. color: white;
  123. margin-right: 5px;
  124. background-color: #1e88e5;
  125. }
  126. .tag-warning {
  127. background-color: #ff9800;
  128. }
  129. .tag-danger {
  130. background-color: #f44336;
  131. }
  132. /* 证书项目样式 */
  133. .cert-item {
  134. padding: 5px 8rpx;
  135. border-bottom: 1px dashed #eee;
  136. display: flex;
  137. justify-content: space-between;
  138. }
  139. .cert-item:last-child {
  140. border-bottom: none;
  141. }
  142. .expire-date {
  143. color: #f44336;
  144. }
  145. .upgrade-info {
  146. color: #1e88e5;
  147. }
  148. .contact-info {
  149. text-align: center;
  150. }
  151. /* 热门推荐服务样式 */
  152. .section-title {
  153. background-color: #1e88e5;
  154. color: white;
  155. padding: 10px 15px;
  156. border-radius: 8px 8px 0 0;
  157. font-weight: bold;
  158. font-size: 16px;
  159. margin-top: 15px;
  160. margin-bottom: 0;
  161. }
  162. .hot-services {
  163. margin-top: 10px;
  164. }
  165. .service-item {
  166. padding: 20rpx;
  167. border-bottom: 1px solid #eee;
  168. display: flex;
  169. /* flex-direction: column; */
  170. align-items: center;
  171. justify-content: space-between;
  172. }
  173. .service-name {
  174. font-weight: bold;
  175. margin-right: 16rpx;
  176. }
  177. .service-type {
  178. color: #666;
  179. /* margin: 5px 0; */
  180. }
  181. /* 水位信息样式 */
  182. .water-level-info {
  183. margin-top: 10px;
  184. }
  185. .water-level-item {
  186. display: flex;
  187. align-items: center;
  188. justify-content: space-around;
  189. text-align: center;
  190. padding: 12rpx;
  191. border: 1px solid #eee;
  192. border-radius: 4px;
  193. margin-bottom: 12rpx;
  194. }
  195. .water-level-item:last-child {
  196. margin-right: 0;
  197. }
  198. .water-level-station {
  199. font-weight: bold;
  200. color: #777;
  201. }
  202. .water-level-value {
  203. font-size: 16px;
  204. margin: 5px 0;
  205. color: #555;
  206. }
  207. .water-level-trend {
  208. font-size: 14px;
  209. }
  210. .rising {
  211. color: #f44336;
  212. }
  213. .falling {
  214. color: #4caf50;
  215. }
  216. .stable {
  217. color: #1e88e5;
  218. }
  219. /* 政策解读样式 */
  220. .policy-list {
  221. margin-top: 10px;
  222. }
  223. .policy-item {
  224. padding: 10px 0;
  225. border-bottom: 1px solid #eee;
  226. }
  227. .policy-item:last-child {
  228. border-bottom: none;
  229. }
  230. .policy-ship-type {
  231. font-weight: bold;
  232. }
  233. .policy-energy-type {
  234. color: #1e88e5;
  235. margin: 5px 0;
  236. }
  237. .policy-subsidy {
  238. color: #f44336;
  239. font-weight: bold;
  240. }
  241. /* 地图容器 */
  242. .map-container {
  243. height: 200px;
  244. background-color: #e0e0e0;
  245. margin-bottom: 15px;
  246. border-radius: 8px;
  247. display: flex;
  248. align-items: center;
  249. justify-content: center;
  250. color: #666;
  251. position: relative;
  252. }
  253. .map-marker {
  254. position: absolute;
  255. width: 20px;
  256. height: 20px;
  257. background-color: #1e88e5;
  258. border-radius: 50%;
  259. transform: translate(-50%, -50%);
  260. }
  261. .map-marker.ship {
  262. background-color: #4caf50;
  263. top: 40%;
  264. left: 45%;
  265. }
  266. .map-marker.cargo {
  267. background-color: #f44336;
  268. }
  269. /* 货盘列表样式 */
  270. .cargo-list {
  271. margin-top: 10px;
  272. }
  273. .cargo-item {
  274. padding: 10px;
  275. border-bottom: 1px solid #eee;
  276. }
  277. .cargo-item:last-child {
  278. border-bottom: none;
  279. }
  280. .cargo-info {
  281. margin-bottom: 20rpx;
  282. display: flex;
  283. justify-content: space-around;
  284. }
  285. .cargo-type {
  286. font-weight: bold;
  287. }
  288. .cargo-meta {
  289. display: flex;
  290. justify-content: space-between;
  291. align-items: center;
  292. }
  293. .cargo-distance {
  294. color: #666;
  295. font-size: 24rpx;
  296. margin-left: 20rpx;
  297. }
  298. /* 政策表格样式 */
  299. .policy-table {
  300. width: 100%;
  301. border: 1px solid #eee;
  302. border-radius: 4px;
  303. overflow: hidden;
  304. }
  305. .policy-header {
  306. display: flex;
  307. background-color: #f5f7fa;
  308. font-weight: bold;
  309. border-bottom: 1px solid #eee;
  310. }
  311. .policy-row {
  312. display: flex;
  313. border-bottom: 1px solid #eee;
  314. }
  315. .policy-row:last-child {
  316. border-bottom: none;
  317. }
  318. .policy-cell {
  319. flex: 1;
  320. padding: 10px;
  321. text-align: center;
  322. border-right: 1px solid #eee;
  323. display: flex;
  324. align-items: center;
  325. justify-content: center;
  326. color: #333;
  327. }
  328. .policy-header .policy-cell {
  329. color: #777;
  330. }
  331. .policy-cell:last-child {
  332. border-right: none;
  333. }