takePhoto.wxss 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  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: 20rpx 30rpx;
  87. }
  88. /* 搜索框 */
  89. .search-box {
  90. display: flex;
  91. margin-bottom: 15px;
  92. }
  93. .search-input {
  94. flex: 1;
  95. padding-left: 20rpx;
  96. border: 1px solid #ddd;
  97. border-radius: 8px 0 0 8px;
  98. height: 88rpx;
  99. box-sizing: border-box;
  100. }
  101. .search-btn {
  102. background-color: #1e88e5;
  103. color: white;
  104. border: none;
  105. padding: 0 15px;
  106. border-radius: 0 8px 8px 0;
  107. line-height: 88rpx;
  108. height: 88rpx;
  109. box-sizing: border-box;
  110. font-size: 14px;
  111. }
  112. /* 列表样式 */
  113. .list-item {
  114. padding: 12px 6px;
  115. border-bottom: 1px solid #eee;
  116. }
  117. .list-item:last-child {
  118. border-bottom: none;
  119. }
  120. /* 标签样式 */
  121. .tag {
  122. display: inline-block;
  123. padding: 4px 8px;
  124. border-radius: 4px;
  125. font-size: 12px;
  126. color: white;
  127. margin-right: 5px;
  128. background-color: #1e88e5;
  129. }
  130. .tag-warning {
  131. background-color: #ff9800;
  132. }
  133. .tag-danger {
  134. background-color: #f44336;
  135. }
  136. .tag-blue {
  137. background-color: #1e88e5;
  138. }
  139. /* 证书项目样式 */
  140. .cert-item {
  141. padding: 5px 8rpx;
  142. border-bottom: 1px dashed #eee;
  143. display: flex;
  144. justify-content: space-between;
  145. }
  146. .cert-item:last-child {
  147. border-bottom: none;
  148. }
  149. .expire-date {
  150. color: #f44336;
  151. }
  152. .upgrade-info {
  153. color: #1e88e5;
  154. }
  155. .contact-info {
  156. text-align: center;
  157. }
  158. .contact-item {
  159. display: flex;
  160. justify-content: space-between;
  161. align-items: center;
  162. padding: 10rpx 0;
  163. margin-bottom: 10rpx;
  164. }
  165. .text-danger {
  166. color: #f44336;
  167. }
  168. .cert-status {
  169. display: flex;
  170. flex-direction: column;
  171. font-size: 12px;
  172. margin-top: 5rpx;
  173. }
  174. /* 热门推荐服务样式 */
  175. .section-title {
  176. background-color: #1e88e5;
  177. color: white;
  178. padding: 10px 15px;
  179. border-radius: 8px 8px 0 0;
  180. font-weight: bold;
  181. font-size: 16px;
  182. margin-top: 15px;
  183. margin-bottom: 0;
  184. }
  185. .hot-services {
  186. margin-top: 10px;
  187. }
  188. .service-item {
  189. padding: 20rpx;
  190. border-bottom: 1px solid #eee;
  191. display: flex;
  192. /* flex-direction: column; */
  193. align-items: center;
  194. justify-content: space-between;
  195. }
  196. .no-data {
  197. text-align: center;
  198. padding: 30rpx;
  199. color: #999;
  200. font-size: 28rpx;
  201. }
  202. .loading {
  203. text-align: center;
  204. padding: 30rpx;
  205. color: #666;
  206. font-size: 28rpx;
  207. }
  208. .dock-name {
  209. font-size: 20rpx;
  210. color: #666;
  211. margin-right: 20rpx;
  212. padding: 4rpx 12rpx;
  213. background-color: #f5f5f5;
  214. border-radius: 4rpx;
  215. }
  216. .service-name {
  217. font-size: 24rpx;
  218. font-weight: bold;
  219. color: #333;
  220. margin-right: 20rpx;
  221. }
  222. .service-type {
  223. color: #666;
  224. /* margin: 5px 0; */
  225. }
  226. /* 水位信息样式 */
  227. .water-level-info {
  228. margin-top: 10px;
  229. max-height: 400rpx;
  230. }
  231. .water-level-item {
  232. display: flex;
  233. align-items: center;
  234. /* justify-content: space-around; */
  235. text-align: center;
  236. padding: 12rpx;
  237. border: 1px solid #eee;
  238. border-radius: 4px;
  239. margin-bottom: 12rpx;
  240. }
  241. .water-level-item:last-child {
  242. margin-right: 0;
  243. }
  244. .water-level-station {
  245. font-weight: bold;
  246. color: #777;
  247. width: 35%;
  248. }
  249. .water-level-value {
  250. font-size: 16px;
  251. margin: 5px 0;
  252. color: #555;
  253. width: 35%;
  254. }
  255. .water-level-trend {
  256. font-size: 14px;
  257. width: 30%;
  258. text-align: center;
  259. }
  260. .rising {
  261. color: #f44336;
  262. }
  263. .falling {
  264. color: #4caf50;
  265. }
  266. .stable {
  267. color: #1e88e5;
  268. }
  269. /* 政策解读样式 */
  270. .policy-list {
  271. margin-top: 10px;
  272. }
  273. .policy-item {
  274. padding: 10px 0;
  275. border-bottom: 1px solid #eee;
  276. }
  277. .policy-item:last-child {
  278. border-bottom: none;
  279. }
  280. .policy-ship-type {
  281. font-weight: bold;
  282. }
  283. .policy-energy-type {
  284. color: #1e88e5;
  285. margin: 5px 0;
  286. }
  287. .policy-subsidy {
  288. color: #f44336;
  289. font-weight: bold;
  290. }
  291. /* 地图容器 */
  292. .map-container {
  293. height: 200px;
  294. background-color: #e0e0e0;
  295. margin-bottom: 15px;
  296. border-radius: 8px;
  297. display: flex;
  298. align-items: center;
  299. justify-content: center;
  300. color: #666;
  301. position: relative;
  302. }
  303. .map-marker {
  304. position: absolute;
  305. width: 20px;
  306. height: 20px;
  307. background-color: #1e88e5;
  308. border-radius: 50%;
  309. transform: translate(-50%, -50%);
  310. }
  311. .map-marker.ship {
  312. background-color: #4caf50;
  313. top: 40%;
  314. left: 45%;
  315. }
  316. .map-marker.cargo {
  317. background-color: #f44336;
  318. }
  319. /* 货盘列表样式 */
  320. .cargo-list {
  321. margin-top: 10px;
  322. }
  323. .cargo-item {
  324. padding: 10px;
  325. border-bottom: 1px solid #eee;
  326. }
  327. .cargo-item:last-child {
  328. border-bottom: none;
  329. }
  330. .cargo-info {
  331. margin-bottom: 20rpx;
  332. display: flex;
  333. justify-content: space-around;
  334. }
  335. .cargo-type {
  336. font-weight: bold;
  337. }
  338. .cargo-meta {
  339. display: flex;
  340. justify-content: space-between;
  341. align-items: center;
  342. }
  343. .cargo-distance {
  344. color: #666;
  345. font-size: 24rpx;
  346. margin-left: 20rpx;
  347. }
  348. /* 政策表格样式 */
  349. .policy-table {
  350. width: 100%;
  351. border: 1px solid #eee;
  352. border-radius: 4px;
  353. overflow: hidden;
  354. }
  355. .policy-header {
  356. display: flex;
  357. background-color: #f5f7fa;
  358. font-weight: bold;
  359. border-bottom: 1px solid #eee;
  360. }
  361. .policy-row {
  362. display: flex;
  363. border-bottom: 1px solid #eee;
  364. }
  365. .policy-row:last-child {
  366. border-bottom: none;
  367. }
  368. .policy-cell {
  369. flex: 1;
  370. padding: 10px;
  371. text-align: center;
  372. border-right: 1px solid #eee;
  373. display: flex;
  374. align-items: center;
  375. justify-content: center;
  376. color: #333;
  377. }
  378. .policy-header .policy-cell {
  379. color: #777;
  380. }
  381. .policy-cell:last-child {
  382. border-right: none;
  383. }