takePhoto.wxss 6.3 KB

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