index.html 36 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover" />
  6. <meta name="format-detection" content="telephone=yes" />
  7. <title>安徽建工集团医院纪检室</title>
  8. <style>
  9. :root {
  10. --primary: #a51f23;
  11. --primary-dark: #8a1a1d;
  12. --primary-soft: #f8ecec;
  13. --gold: #c9a227;
  14. --ink: #1f1f1f;
  15. --muted: #8a8a8a;
  16. --line: #ececec;
  17. --bg: #f4f4f4;
  18. --card: #ffffff;
  19. --radius: 12px;
  20. --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  21. --header-h: 48px;
  22. --safe-bottom: env(safe-area-inset-bottom, 0px);
  23. }
  24. * { box-sizing: border-box; margin: 0; padding: 0; }
  25. html, body {
  26. height: 100%;
  27. font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  28. background: #d8d4d0;
  29. color: var(--ink);
  30. -webkit-tap-highlight-color: transparent;
  31. }
  32. /* 桌面预览:居中手机框 */
  33. .device {
  34. width: 100%;
  35. max-width: 390px;
  36. min-height: 100vh;
  37. margin: 0 auto;
  38. background: var(--bg);
  39. position: relative;
  40. box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
  41. overflow: hidden;
  42. }
  43. @media (min-width: 480px) {
  44. body { padding: 24px 0; }
  45. .device {
  46. min-height: 844px;
  47. height: 844px;
  48. border-radius: 28px;
  49. border: 1px solid #cfcbc7;
  50. }
  51. }
  52. .view {
  53. display: none;
  54. flex-direction: column;
  55. height: 100%;
  56. min-height: 100vh;
  57. position: absolute;
  58. inset: 0;
  59. background: var(--bg);
  60. overflow: hidden;
  61. }
  62. @media (min-width: 480px) {
  63. .view { min-height: 0; }
  64. }
  65. .view.active { display: flex; }
  66. /* ===== Header ===== */
  67. .app-header {
  68. height: var(--header-h);
  69. background: var(--primary);
  70. color: #fff;
  71. display: flex;
  72. align-items: center;
  73. justify-content: center;
  74. position: relative;
  75. flex-shrink: 0;
  76. z-index: 10;
  77. }
  78. .app-header .title {
  79. font-size: 17px;
  80. font-weight: 600;
  81. letter-spacing: 0.06em;
  82. }
  83. .app-header .back {
  84. position: absolute;
  85. left: 8px;
  86. top: 0;
  87. height: 100%;
  88. width: 44px;
  89. border: 0;
  90. background: transparent;
  91. color: #fff;
  92. font-size: 22px;
  93. cursor: pointer;
  94. display: flex;
  95. align-items: center;
  96. justify-content: center;
  97. }
  98. .app-header .action {
  99. position: absolute;
  100. right: 12px;
  101. top: 0;
  102. height: 100%;
  103. border: 0;
  104. background: transparent;
  105. color: #fff;
  106. font-size: 13px;
  107. cursor: pointer;
  108. display: flex;
  109. align-items: center;
  110. }
  111. /* ===== Scroll body ===== */
  112. .scroll {
  113. flex: 1;
  114. overflow-y: auto;
  115. -webkit-overflow-scrolling: touch;
  116. padding-bottom: calc(20px + var(--safe-bottom));
  117. }
  118. /* ===== Home ===== */
  119. .home-scroll {
  120. position: relative;
  121. background: #f5f5f5;
  122. }
  123. /* 顶部建筑背景:通栏铺满,底部淡出 */
  124. .home-scroll::before {
  125. content: "";
  126. position: absolute;
  127. top: 0;
  128. left: 0;
  129. right: 0;
  130. width: 100%;
  131. height: 320px;
  132. background: url("ajyy.jpeg") center 30% / cover no-repeat;
  133. opacity: 0.1;
  134. pointer-events: none;
  135. z-index: 0;
  136. -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  137. mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  138. }
  139. .home-scroll::after {
  140. display: none;
  141. }
  142. .home-hero {
  143. position: relative;
  144. padding: 26px 20px 18px;
  145. text-align: center;
  146. z-index: 1;
  147. }
  148. .logo-wrap {
  149. width: 128px;
  150. height: 128px;
  151. margin: 0 auto 12px;
  152. background: transparent;
  153. display: flex;
  154. align-items: center;
  155. justify-content: center;
  156. position: relative;
  157. z-index: 1;
  158. }
  159. .logo-wrap img {
  160. width: 100%;
  161. height: 100%;
  162. object-fit: contain;
  163. }
  164. .brand-title {
  165. font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  166. font-size: 26px;
  167. font-weight: 900;
  168. color: var(--primary);
  169. letter-spacing: 0.14em;
  170. position: relative;
  171. z-index: 1;
  172. -webkit-text-stroke: 0.4px var(--primary);
  173. text-stroke: 0.4px var(--primary);
  174. }
  175. .brand-motto {
  176. margin: 12px auto 0;
  177. max-width: 280px;
  178. display: flex;
  179. align-items: center;
  180. justify-content: center;
  181. gap: 12px;
  182. font-size: 13px;
  183. color: #888;
  184. letter-spacing: 0.22em;
  185. position: relative;
  186. z-index: 1;
  187. }
  188. .brand-motto::before,
  189. .brand-motto::after {
  190. content: "";
  191. flex: 1;
  192. height: 1px;
  193. max-width: 56px;
  194. }
  195. .brand-motto::before {
  196. background: linear-gradient(90deg, transparent, rgba(140, 140, 140, 0.75));
  197. }
  198. .brand-motto::after {
  199. background: linear-gradient(90deg, rgba(140, 140, 140, 0.75), transparent);
  200. }
  201. .brand-motto span { margin: 0 4px; color: #c8c8c8; letter-spacing: 0; }
  202. .nav-grid {
  203. display: grid;
  204. grid-template-columns: repeat(4, 1fr);
  205. gap: 8px;
  206. padding: 6px 12px 0;
  207. position: relative;
  208. z-index: 1;
  209. }
  210. .nav-card {
  211. background: var(--card);
  212. border-radius: 10px;
  213. box-shadow: var(--shadow);
  214. padding: 14px 4px 12px;
  215. text-align: center;
  216. border: 0;
  217. cursor: pointer;
  218. font-family: inherit;
  219. color: inherit;
  220. transition: transform 0.15s, box-shadow 0.15s;
  221. }
  222. .nav-card:active {
  223. transform: scale(0.97);
  224. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  225. }
  226. .nav-icon {
  227. width: 40px;
  228. height: 40px;
  229. margin: 0 auto 10px;
  230. border-radius: 50%;
  231. background: var(--primary);
  232. color: #fff;
  233. display: flex;
  234. align-items: center;
  235. justify-content: center;
  236. }
  237. .nav-icon svg { width: 20px; height: 20px; fill: currentColor; }
  238. .nav-card h3 {
  239. font-size: 13px;
  240. font-weight: 600;
  241. margin-bottom: 6px;
  242. letter-spacing: -0.02em;
  243. }
  244. .nav-card .divider {
  245. width: 14px;
  246. height: 2px;
  247. background: var(--primary);
  248. margin: 0 auto 6px;
  249. border-radius: 2px;
  250. }
  251. .nav-card p {
  252. font-size: 10px;
  253. color: var(--muted);
  254. line-height: 1.45;
  255. }
  256. .mission-banner {
  257. margin: 16px 14px 0;
  258. border-radius: var(--radius);
  259. box-shadow: var(--shadow);
  260. overflow: hidden;
  261. position: relative;
  262. z-index: 1;
  263. background: #fff;
  264. }
  265. .mission-banner img {
  266. display: block;
  267. width: 100%;
  268. height: auto;
  269. vertical-align: top;
  270. }
  271. /* ===== Forms ===== */
  272. .form-section {
  273. margin: 12px 14px 0;
  274. background: var(--card);
  275. border-radius: var(--radius);
  276. box-shadow: var(--shadow);
  277. overflow: hidden;
  278. }
  279. .form-section .sec-title {
  280. padding: 12px 14px 8px;
  281. font-size: 13px;
  282. font-weight: 600;
  283. color: var(--primary);
  284. display: flex;
  285. align-items: center;
  286. gap: 6px;
  287. }
  288. .form-section .sec-title::before {
  289. content: "";
  290. width: 3px;
  291. height: 12px;
  292. background: var(--primary);
  293. border-radius: 2px;
  294. }
  295. .field {
  296. display: flex;
  297. align-items: center;
  298. padding: 0 14px;
  299. min-height: 48px;
  300. border-top: 1px solid var(--line);
  301. gap: 12px;
  302. }
  303. .field:first-of-type { border-top: 0; }
  304. .field.top {
  305. align-items: flex-start;
  306. padding-top: 12px;
  307. padding-bottom: 12px;
  308. }
  309. .field label {
  310. width: 72px;
  311. flex-shrink: 0;
  312. font-size: 14px;
  313. color: #333;
  314. }
  315. .field label .req {
  316. color: var(--primary);
  317. margin-right: 2px;
  318. }
  319. .field input,
  320. .field textarea,
  321. .field select {
  322. flex: 1;
  323. border: 0;
  324. outline: none;
  325. font-size: 14px;
  326. font-family: inherit;
  327. color: var(--ink);
  328. background: transparent;
  329. width: 100%;
  330. resize: none;
  331. }
  332. .field input::placeholder,
  333. .field textarea::placeholder { color: #bbb; }
  334. .field textarea { min-height: 100px; line-height: 1.6; }
  335. .type-switch {
  336. display: flex;
  337. gap: 10px;
  338. flex: 1;
  339. }
  340. .type-switch label {
  341. width: auto;
  342. flex: 1;
  343. display: flex;
  344. align-items: center;
  345. justify-content: center;
  346. gap: 6px;
  347. height: 36px;
  348. border-radius: 8px;
  349. border: 1px solid var(--line);
  350. font-size: 14px;
  351. cursor: pointer;
  352. background: #fafafa;
  353. color: #666;
  354. transition: all 0.15s;
  355. }
  356. .type-switch input { display: none; }
  357. .type-switch label.active,
  358. .type-switch input:checked + span {
  359. /* handled via JS class on label */
  360. }
  361. .type-switch label.on {
  362. border-color: var(--primary);
  363. background: var(--primary-soft);
  364. color: var(--primary);
  365. font-weight: 600;
  366. }
  367. .upload-area {
  368. padding: 12px 14px 16px;
  369. border-top: 1px solid var(--line);
  370. }
  371. .upload-hint {
  372. font-size: 12px;
  373. color: var(--muted);
  374. margin-bottom: 10px;
  375. }
  376. .upload-list {
  377. display: flex;
  378. flex-wrap: wrap;
  379. gap: 10px;
  380. }
  381. .upload-item,
  382. .upload-add {
  383. width: 72px;
  384. height: 72px;
  385. border-radius: 8px;
  386. position: relative;
  387. }
  388. .upload-add {
  389. border: 1px dashed #ccc;
  390. background: #fafafa;
  391. display: flex;
  392. flex-direction: column;
  393. align-items: center;
  394. justify-content: center;
  395. gap: 4px;
  396. cursor: pointer;
  397. color: #999;
  398. font-size: 11px;
  399. }
  400. .upload-add span { font-size: 28px; line-height: 1; color: #bbb; font-weight: 300; }
  401. .upload-item {
  402. background: #eee;
  403. overflow: hidden;
  404. display: flex;
  405. align-items: center;
  406. justify-content: center;
  407. font-size: 11px;
  408. color: #666;
  409. text-align: center;
  410. padding: 4px;
  411. }
  412. .upload-item img {
  413. width: 100%;
  414. height: 100%;
  415. object-fit: cover;
  416. }
  417. .upload-item .rm {
  418. position: absolute;
  419. top: -6px;
  420. right: -6px;
  421. width: 18px;
  422. height: 18px;
  423. border-radius: 50%;
  424. background: var(--primary);
  425. color: #fff;
  426. border: 0;
  427. font-size: 12px;
  428. line-height: 18px;
  429. cursor: pointer;
  430. }
  431. .submit-bar {
  432. padding: 16px 14px 8px;
  433. }
  434. .btn-primary {
  435. width: 100%;
  436. height: 46px;
  437. border: 0;
  438. border-radius: 23px;
  439. background: var(--primary);
  440. color: #fff;
  441. font-size: 16px;
  442. font-weight: 600;
  443. letter-spacing: 0.1em;
  444. cursor: pointer;
  445. font-family: inherit;
  446. }
  447. .btn-primary:active { background: var(--primary-dark); }
  448. .btn-primary:disabled {
  449. background: #ccc;
  450. cursor: not-allowed;
  451. }
  452. .btn-ghost {
  453. width: 100%;
  454. height: 44px;
  455. border: 1px solid var(--primary);
  456. border-radius: 22px;
  457. background: #fff;
  458. color: var(--primary);
  459. font-size: 15px;
  460. font-weight: 600;
  461. cursor: pointer;
  462. font-family: inherit;
  463. margin-top: 10px;
  464. }
  465. /* ===== Notice ===== */
  466. .notice-body {
  467. padding: 20px 18px;
  468. }
  469. .notice-card {
  470. background: var(--card);
  471. border-radius: var(--radius);
  472. box-shadow: var(--shadow);
  473. padding: 20px 18px;
  474. }
  475. .notice-card h2 {
  476. text-align: center;
  477. font-size: 18px;
  478. color: var(--primary);
  479. margin-bottom: 16px;
  480. letter-spacing: 0.08em;
  481. }
  482. .notice-card .notice-list {
  483. font-size: 14px;
  484. line-height: 1.85;
  485. color: #444;
  486. }
  487. .notice-card .notice-list li {
  488. margin-left: 1.2em;
  489. margin-bottom: 8px;
  490. }
  491. .notice-card .emphasize {
  492. margin-top: 14px;
  493. padding: 12px;
  494. background: var(--primary-soft);
  495. border-radius: 8px;
  496. font-size: 13px;
  497. color: var(--primary);
  498. line-height: 1.7;
  499. }
  500. .countdown-tip {
  501. text-align: center;
  502. margin-top: 20px;
  503. font-size: 14px;
  504. color: var(--muted);
  505. }
  506. .countdown-tip b {
  507. color: var(--primary);
  508. font-size: 20px;
  509. margin: 0 4px;
  510. }
  511. /* ===== Hotline ===== */
  512. .hotline-hero {
  513. text-align: center;
  514. padding: 24px 20px 8px;
  515. }
  516. .hotline-hero .icon-big {
  517. width: 64px;
  518. height: 64px;
  519. margin: 0 auto 12px;
  520. border-radius: 50%;
  521. background: var(--primary);
  522. color: #fff;
  523. display: flex;
  524. align-items: center;
  525. justify-content: center;
  526. }
  527. .hotline-hero .icon-big svg { width: 30px; height: 30px; fill: currentColor; }
  528. .hotline-hero h2 {
  529. font-size: 18px;
  530. color: var(--primary);
  531. letter-spacing: 0.08em;
  532. }
  533. .hotline-hero p {
  534. margin-top: 6px;
  535. font-size: 13px;
  536. color: var(--muted);
  537. }
  538. .info-list {
  539. margin: 16px 14px 0;
  540. background: var(--card);
  541. border-radius: var(--radius);
  542. box-shadow: var(--shadow);
  543. overflow: hidden;
  544. }
  545. .info-item {
  546. display: flex;
  547. align-items: flex-start;
  548. gap: 12px;
  549. padding: 16px 14px;
  550. border-top: 1px solid var(--line);
  551. text-decoration: none;
  552. color: inherit;
  553. }
  554. .info-item:first-child { border-top: 0; }
  555. .info-item .ii {
  556. width: 40px;
  557. height: 40px;
  558. border-radius: 10px;
  559. background: var(--primary-soft);
  560. color: var(--primary);
  561. display: flex;
  562. align-items: center;
  563. justify-content: center;
  564. flex-shrink: 0;
  565. }
  566. .info-item .ii svg { width: 20px; height: 20px; fill: currentColor; }
  567. .info-item .meta { flex: 1; min-width: 0; }
  568. .info-item .meta small {
  569. display: block;
  570. font-size: 12px;
  571. color: var(--muted);
  572. margin-bottom: 4px;
  573. }
  574. .info-item .meta strong {
  575. display: block;
  576. font-size: 15px;
  577. font-weight: 600;
  578. word-break: break-all;
  579. }
  580. .info-item.tel strong { color: var(--primary); }
  581. .info-item .arrow {
  582. color: #ccc;
  583. font-size: 18px;
  584. align-self: center;
  585. }
  586. .work-time {
  587. margin: 14px 14px 0;
  588. padding: 12px 14px;
  589. background: #fff8e8;
  590. border-radius: 8px;
  591. font-size: 13px;
  592. color: #8a6d1d;
  593. line-height: 1.6;
  594. }
  595. /* ===== Overlay / Modal ===== */
  596. .overlay {
  597. display: none;
  598. position: absolute;
  599. inset: 0;
  600. background: rgba(0, 0, 0, 0.55);
  601. z-index: 100;
  602. align-items: center;
  603. justify-content: center;
  604. padding: 24px;
  605. }
  606. .overlay.show { display: flex; }
  607. .modal {
  608. background: #fff;
  609. border-radius: 16px;
  610. width: 100%;
  611. max-width: 320px;
  612. padding: 24px 20px 20px;
  613. text-align: center;
  614. animation: pop 0.22s ease;
  615. }
  616. @keyframes pop {
  617. from { transform: scale(0.92); opacity: 0; }
  618. to { transform: scale(1); opacity: 1; }
  619. }
  620. .modal h3 {
  621. font-size: 17px;
  622. color: var(--primary);
  623. margin-bottom: 6px;
  624. letter-spacing: 0.06em;
  625. }
  626. .modal .sub {
  627. font-size: 12px;
  628. color: var(--muted);
  629. margin-bottom: 16px;
  630. }
  631. .qr-box {
  632. width: 200px;
  633. height: 200px;
  634. margin: 0 auto 14px;
  635. background: #fff;
  636. border: 1px solid var(--line);
  637. border-radius: 8px;
  638. display: flex;
  639. align-items: center;
  640. justify-content: center;
  641. position: relative;
  642. overflow: hidden;
  643. }
  644. .qr-box canvas { width: 180px; height: 180px; }
  645. .qr-logo {
  646. position: absolute;
  647. width: 36px;
  648. height: 36px;
  649. border-radius: 6px;
  650. background: #fff;
  651. padding: 3px;
  652. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  653. }
  654. .qr-logo img {
  655. width: 100%;
  656. height: 100%;
  657. object-fit: contain;
  658. }
  659. .toast {
  660. position: absolute;
  661. left: 50%;
  662. bottom: 100px;
  663. transform: translateX(-50%) translateY(20px);
  664. background: rgba(0, 0, 0, 0.78);
  665. color: #fff;
  666. padding: 10px 18px;
  667. border-radius: 20px;
  668. font-size: 13px;
  669. opacity: 0;
  670. pointer-events: none;
  671. transition: all 0.25s;
  672. z-index: 200;
  673. white-space: nowrap;
  674. }
  675. .toast.show {
  676. opacity: 1;
  677. transform: translateX(-50%) translateY(0);
  678. }
  679. .page-hint {
  680. text-align: center;
  681. padding: 14px 12px 8px;
  682. font-size: 11px;
  683. color: #aaa;
  684. position: relative;
  685. z-index: 1;
  686. }
  687. .demo-nav {
  688. position: fixed;
  689. top: 8px;
  690. right: 8px;
  691. z-index: 999;
  692. background: rgba(0, 0, 0, 0.7);
  693. color: #fff;
  694. font-size: 11px;
  695. padding: 6px 10px;
  696. border-radius: 8px;
  697. max-width: 140px;
  698. line-height: 1.5;
  699. display: none;
  700. }
  701. @media (min-width: 480px) {
  702. .demo-nav { display: block; }
  703. }
  704. </style>
  705. </head>
  706. <body>
  707. <div class="device" id="app">
  708. <!-- ========== 首页 ========== -->
  709. <section class="view active" id="view-home" data-title="首页">
  710. <header class="app-header">
  711. <div class="title">安徽建工集团医院纪检室</div>
  712. </header>
  713. <div class="scroll home-scroll">
  714. <div class="home-hero">
  715. <div class="logo-wrap">
  716. <img src="logo1.png" alt="安徽建工" />
  717. </div>
  718. <h1 class="brand-title">安建医院纪检</h1>
  719. <p class="brand-motto">忠诚<span>|</span>干净<span>|</span>担当</p>
  720. </div>
  721. <div class="nav-grid">
  722. <button class="nav-card" type="button" onclick="startFeedback()">
  723. <div class="nav-icon" aria-hidden="true">
  724. <svg viewBox="0 0 24 24"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-1 6h2v6h-2V7zm0 8h2v2h-2v-2z"/></svg>
  725. </div>
  726. <h3>在线反馈</h3>
  727. <div class="divider"></div>
  728. <p>投诉表扬<br />有序反馈</p>
  729. </button>
  730. <button class="nav-card" type="button" onclick="go('suggest')">
  731. <div class="nav-icon" aria-hidden="true">
  732. <svg viewBox="0 0 24 24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1.003 1.003 0 0 0 0-1.42l-2.34-2.34a1.003 1.003 0 0 0-1.42 0l-1.83 1.83 3.75 3.75 1.84-1.82z"/></svg>
  733. </div>
  734. <h3>建言献策</h3>
  735. <div class="divider"></div>
  736. <p>建言献策<br />促进完善</p>
  737. </button>
  738. <button class="nav-card" type="button" onclick="go('hotline')">
  739. <div class="nav-icon" aria-hidden="true">
  740. <svg viewBox="0 0 24 24"><path d="M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.4 21 3 13.6 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.46.57 3.58a1 1 0 0 1-.25 1.02l-2.2 2.19z"/></svg>
  741. </div>
  742. <h3>监督热线</h3>
  743. <div class="divider"></div>
  744. <p>倾听诉求<br />及时回应</p>
  745. </button>
  746. <button class="nav-card" type="button" onclick="showShare()">
  747. <div class="nav-icon" aria-hidden="true">
  748. <svg viewBox="0 0 24 24"><path d="M3 11h8V3H3v8zm2-6h4v4H5V5zm8-2v8h8V3h-8zm6 6h-4V5h4v4zM3 21h8v-8H3v8zm2-6h4v4H5v-4zm10 2h2v2h-2zm4-2h-4v4h2v-2h2v-2zm-2-2h2v2h-2zm4 6h-2v2h4v-4h-2z"/></svg>
  749. </div>
  750. <h3>扫码分享</h3>
  751. <div class="divider"></div>
  752. <p>生成二维码<br />转发分享</p>
  753. </button>
  754. </div>
  755. <div class="mission-banner">
  756. <img src="assets/home-banner.png" alt="严格监督执纪 护航医院发展" />
  757. </div>
  758. <p class="page-hint">扫码即可反馈 · 支持匿名 · 信息严格保密</p>
  759. </div>
  760. </section>
  761. <!-- ========== 反馈须知 ========== -->
  762. <section class="view" id="view-notice" data-title="反馈须知">
  763. <header class="app-header">
  764. <button class="back" type="button" onclick="go('home')" aria-label="返回">‹</button>
  765. <div class="title">反馈须知</div>
  766. </header>
  767. <div class="scroll no-tab">
  768. <div class="notice-body">
  769. <div class="notice-card">
  770. <h2>在线反馈须知</h2>
  771. <ol class="notice-list">
  772. <li>请如实反映情况,对所提供信息的真实性负责。</li>
  773. <li>反馈内容应客观具体,尽量写明时间、地点、人物及相关事实。</li>
  774. <li>可上传图片、视频或文件作为佐证材料,支持多附件。</li>
  775. <li>举报人信息为选填,可匿名反馈;若留联系方式,便于核实回访。</li>
  776. <li>纪检室将对反馈信息严格保密,依法依规办理。</li>
  777. <li>禁止恶意诬告、捏造事实,违者将依法追究责任。</li>
  778. </ol>
  779. <div class="emphasize">
  780. 温馨提示:反馈类型可选「投诉」或「表扬」。反馈内容为必填项,其他信息均可选填。
  781. </div>
  782. </div>
  783. <p class="countdown-tip">请仔细阅读须知,<b id="countdown">5</b> 秒后进入反馈页面</p>
  784. <div class="submit-bar" style="padding-top: 8px;">
  785. <button class="btn-primary" id="btn-enter-feedback" type="button" disabled onclick="go('feedback')">
  786. 请阅读须知(5s)
  787. </button>
  788. </div>
  789. </div>
  790. </div>
  791. </section>
  792. <!-- ========== 在线反馈 ========== -->
  793. <section class="view" id="view-feedback" data-title="在线反馈">
  794. <header class="app-header">
  795. <button class="back" type="button" onclick="go('home')" aria-label="返回">‹</button>
  796. <div class="title">在线反馈</div>
  797. </header>
  798. <div class="scroll no-tab">
  799. <form id="form-feedback" onsubmit="return submitFeedback(event)">
  800. <div class="form-section">
  801. <div class="sec-title">反馈类型</div>
  802. <div class="field">
  803. <label><span class="req">*</span>类型</label>
  804. <div class="type-switch" id="feedback-type">
  805. <label class="on" data-value="投诉">
  806. <input type="radio" name="ftype" value="投诉" checked />
  807. 投诉
  808. </label>
  809. <label data-value="表扬">
  810. <input type="radio" name="ftype" value="表扬" />
  811. 表扬
  812. </label>
  813. </div>
  814. </div>
  815. </div>
  816. <div class="form-section">
  817. <div class="sec-title">被反馈人信息(选填)</div>
  818. <div class="field">
  819. <label>姓名</label>
  820. <input type="text" name="targetName" placeholder="请输入被反馈人姓名" />
  821. </div>
  822. <div class="field">
  823. <label>单位</label>
  824. <input type="text" name="targetUnit" placeholder="请输入所在单位/科室" />
  825. </div>
  826. <div class="field">
  827. <label>职务</label>
  828. <input type="text" name="targetPost" placeholder="请输入职务" />
  829. </div>
  830. </div>
  831. <div class="form-section">
  832. <div class="sec-title">反馈内容</div>
  833. <div class="field top">
  834. <label><span class="req">*</span>内容</label>
  835. <textarea name="content" id="feedback-content" placeholder="请客观、具体描述相关情况(必填)" required></textarea>
  836. </div>
  837. <div class="upload-area">
  838. <div class="upload-hint">反馈材料(选填)· 支持图片、视频、文件,可多选</div>
  839. <div class="upload-list" id="feedback-files">
  840. <label class="upload-add">
  841. <span>+</span>
  842. 上传
  843. <input type="file" hidden multiple accept="image/*,video/*,.pdf,.doc,.docx,.xls,.xlsx,.zip" onchange="addFiles(event, 'feedback-files')" />
  844. </label>
  845. </div>
  846. </div>
  847. </div>
  848. <div class="form-section">
  849. <div class="sec-title">举报人信息(选填)</div>
  850. <div class="field">
  851. <label>姓名</label>
  852. <input type="text" name="reporterName" placeholder="可匿名,选填" />
  853. </div>
  854. <div class="field">
  855. <label>单位</label>
  856. <input type="text" name="reporterUnit" placeholder="请输入单位" />
  857. </div>
  858. <div class="field">
  859. <label>职务</label>
  860. <input type="text" name="reporterPost" placeholder="请输入职务" />
  861. </div>
  862. <div class="field">
  863. <label>联系方式</label>
  864. <input type="tel" name="reporterPhone" placeholder="手机号 / 微信等" />
  865. </div>
  866. </div>
  867. <div class="submit-bar">
  868. <button class="btn-primary" type="submit">提交反馈</button>
  869. </div>
  870. </form>
  871. </div>
  872. </section>
  873. <!-- ========== 建言献策 ========== -->
  874. <section class="view" id="view-suggest" data-title="建言献策">
  875. <header class="app-header">
  876. <button class="back" type="button" onclick="go('home')" aria-label="返回">‹</button>
  877. <div class="title">建言献策</div>
  878. </header>
  879. <div class="scroll no-tab">
  880. <form id="form-suggest" onsubmit="return submitSuggest(event)">
  881. <div class="form-section">
  882. <div class="sec-title">建议内容</div>
  883. <div class="field top">
  884. <label><span class="req">*</span>内容</label>
  885. <textarea name="content" id="suggest-content" placeholder="请填写您的意见或建议(必填)" required></textarea>
  886. </div>
  887. <div class="upload-area">
  888. <div class="upload-hint">附件(选填)· 支持图片、视频、文件,可多选</div>
  889. <div class="upload-list" id="suggest-files">
  890. <label class="upload-add">
  891. <span>+</span>
  892. 上传
  893. <input type="file" hidden multiple accept="image/*,video/*,.pdf,.doc,.docx,.xls,.xlsx,.zip" onchange="addFiles(event, 'suggest-files')" />
  894. </label>
  895. </div>
  896. </div>
  897. </div>
  898. <div class="form-section">
  899. <div class="sec-title">联系人信息(选填)</div>
  900. <div class="field">
  901. <label>姓名</label>
  902. <input type="text" name="name" placeholder="可匿名,选填" />
  903. </div>
  904. <div class="field">
  905. <label>单位</label>
  906. <input type="text" name="unit" placeholder="请输入单位" />
  907. </div>
  908. <div class="field">
  909. <label>职务</label>
  910. <input type="text" name="post" placeholder="请输入职务" />
  911. </div>
  912. <div class="field">
  913. <label>联系方式</label>
  914. <input type="tel" name="phone" placeholder="手机号 / 微信等" />
  915. </div>
  916. </div>
  917. <div class="submit-bar">
  918. <button class="btn-primary" type="submit">提交建议</button>
  919. </div>
  920. </form>
  921. </div>
  922. </section>
  923. <!-- ========== 监督热线 ========== -->
  924. <section class="view" id="view-hotline" data-title="监督热线">
  925. <header class="app-header">
  926. <button class="back" type="button" onclick="go('home')" aria-label="返回">‹</button>
  927. <div class="title">监督热线</div>
  928. </header>
  929. <div class="scroll no-tab">
  930. <div class="hotline-hero">
  931. <div class="icon-big">
  932. <svg viewBox="0 0 24 24"><path d="M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.4 21 3 13.6 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.46.57 3.58a1 1 0 0 1-.25 1.02l-2.2 2.19z"/></svg>
  933. </div>
  934. <h2>监督举报热线</h2>
  935. <p>倾听诉求 · 及时回应 · 严格保密</p>
  936. </div>
  937. <div class="info-list">
  938. <a class="info-item tel" href="tel:0551-XXXXXXXX">
  939. <div class="ii">
  940. <svg viewBox="0 0 24 24"><path d="M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.4 21 3 13.6 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.46.57 3.58a1 1 0 0 1-.25 1.02l-2.2 2.19z"/></svg>
  941. </div>
  942. <div class="meta">
  943. <small>监督电话(点击拨打)</small>
  944. <strong>0551-XXXXXXXX</strong>
  945. </div>
  946. <div class="arrow">›</div>
  947. </a>
  948. <a class="info-item" href="mailto:jjb@ajyy.example.com">
  949. <div class="ii">
  950. <svg viewBox="0 0 24 24"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>
  951. </div>
  952. <div class="meta">
  953. <small>电子邮箱</small>
  954. <strong>jjb@ajyy.example.com</strong>
  955. </div>
  956. <div class="arrow">›</div>
  957. </a>
  958. <div class="info-item">
  959. <div class="ii">
  960. <svg viewBox="0 0 24 24"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z"/></svg>
  961. </div>
  962. <div class="meta">
  963. <small>通讯地址</small>
  964. <strong>安徽省合肥市 · 安徽建工集团医院纪检室(示例地址,落地时替换)</strong>
  965. </div>
  966. </div>
  967. </div>
  968. <div class="work-time">
  969. 受理时间:工作日 08:30–11:30、14:30–17:30<br />
  970. 紧急事项可通过电话随时联系值班人员。
  971. </div>
  972. <div class="submit-bar">
  973. <button class="btn-primary" type="button" onclick="startFeedback()">去在线反馈</button>
  974. </div>
  975. </div>
  976. </section>
  977. <!-- 扫码分享弹层 -->
  978. <div class="overlay" id="share-overlay" onclick="hideShare(event)">
  979. <div class="modal" onclick="event.stopPropagation()">
  980. <h3>扫码分享</h3>
  981. <p class="sub">长按或截图保存二维码,发给同事扫码反馈</p>
  982. <div class="qr-box">
  983. <canvas id="qr-canvas" width="180" height="180"></canvas>
  984. <div class="qr-logo"><img src="logo1.png" alt="" /></div>
  985. </div>
  986. <p class="sub" id="share-url" style="word-break: break-all; margin-bottom: 12px;"></p>
  987. <button class="btn-primary" type="button" onclick="hideShare()">关闭</button>
  988. </div>
  989. </div>
  990. <div class="toast" id="toast"></div>
  991. </div>
  992. <script>
  993. /* ---------- 简易二维码(无第三方依赖,适合方案演示) ---------- */
  994. function drawDemoQR(canvas, text) {
  995. const ctx = canvas.getContext("2d");
  996. const size = canvas.width;
  997. const cells = 25;
  998. const cell = size / cells;
  999. ctx.fillStyle = "#fff";
  1000. ctx.fillRect(0, 0, size, size);
  1001. // 伪随机但稳定的图案(基于文本 hash)
  1002. let h = 0;
  1003. for (let i = 0; i < text.length; i++) h = (h * 31 + text.charCodeAt(i)) >>> 0;
  1004. function bit(x, y) {
  1005. if (x < 7 && y < 7) return finder(x, y);
  1006. if (x >= cells - 7 && y < 7) return finder(x - (cells - 7), y);
  1007. if (x < 7 && y >= cells - 7) return finder(x, y - (cells - 7));
  1008. const n = (h ^ (x * 73856093) ^ (y * 19349663)) >>> 0;
  1009. return (n % 3) !== 0;
  1010. }
  1011. function finder(x, y) {
  1012. const onBorder = x === 0 || y === 0 || x === 6 || y === 6;
  1013. const inCenter = x >= 2 && x <= 4 && y >= 2 && y <= 4;
  1014. return onBorder || inCenter;
  1015. }
  1016. ctx.fillStyle = "#1a1a1a";
  1017. for (let y = 0; y < cells; y++) {
  1018. for (let x = 0; x < cells; x++) {
  1019. if (bit(x, y)) ctx.fillRect(x * cell, y * cell, Math.ceil(cell), Math.ceil(cell));
  1020. }
  1021. }
  1022. }
  1023. let countdownTimer = null;
  1024. function go(name) {
  1025. document.querySelectorAll(".view").forEach((v) => v.classList.remove("active"));
  1026. const el = document.getElementById("view-" + name);
  1027. if (el) el.classList.add("active");
  1028. if (name !== "notice" && countdownTimer) {
  1029. clearInterval(countdownTimer);
  1030. countdownTimer = null;
  1031. }
  1032. window.scrollTo(0, 0);
  1033. }
  1034. function startFeedback() {
  1035. go("notice");
  1036. startCountdown();
  1037. }
  1038. function startCountdown() {
  1039. let n = 5;
  1040. const btn = document.getElementById("btn-enter-feedback");
  1041. const num = document.getElementById("countdown");
  1042. btn.disabled = true;
  1043. btn.textContent = "请阅读须知(" + n + "s)";
  1044. num.textContent = n;
  1045. if (countdownTimer) clearInterval(countdownTimer);
  1046. countdownTimer = setInterval(() => {
  1047. n -= 1;
  1048. num.textContent = n;
  1049. if (n <= 0) {
  1050. clearInterval(countdownTimer);
  1051. countdownTimer = null;
  1052. btn.disabled = false;
  1053. btn.textContent = "我已阅读,进入反馈";
  1054. num.textContent = "0";
  1055. } else {
  1056. btn.textContent = "请阅读须知(" + n + "s)";
  1057. }
  1058. }, 1000);
  1059. }
  1060. // 反馈类型切换
  1061. document.querySelectorAll("#feedback-type label").forEach((lab) => {
  1062. lab.addEventListener("click", () => {
  1063. document.querySelectorAll("#feedback-type label").forEach((l) => l.classList.remove("on"));
  1064. lab.classList.add("on");
  1065. lab.querySelector("input").checked = true;
  1066. });
  1067. });
  1068. function addFiles(event, listId) {
  1069. const list = document.getElementById(listId);
  1070. const files = Array.from(event.target.files || []);
  1071. files.forEach((file) => {
  1072. const item = document.createElement("div");
  1073. item.className = "upload-item";
  1074. const rm = document.createElement("button");
  1075. rm.type = "button";
  1076. rm.className = "rm";
  1077. rm.textContent = "×";
  1078. rm.onclick = () => item.remove();
  1079. if (file.type.startsWith("image/")) {
  1080. const img = document.createElement("img");
  1081. img.src = URL.createObjectURL(file);
  1082. item.appendChild(img);
  1083. } else {
  1084. item.textContent = file.name.length > 10 ? file.name.slice(0, 8) + "…" : file.name;
  1085. }
  1086. item.appendChild(rm);
  1087. list.insertBefore(item, list.querySelector(".upload-add"));
  1088. });
  1089. event.target.value = "";
  1090. }
  1091. function toast(msg) {
  1092. const t = document.getElementById("toast");
  1093. t.textContent = msg;
  1094. t.classList.add("show");
  1095. setTimeout(() => t.classList.remove("show"), 2200);
  1096. }
  1097. function submitFeedback(e) {
  1098. e.preventDefault();
  1099. const content = document.getElementById("feedback-content").value.trim();
  1100. if (!content) {
  1101. toast("请填写反馈内容");
  1102. return false;
  1103. }
  1104. toast("提交成功(演示)");
  1105. setTimeout(() => go("home"), 1200);
  1106. return false;
  1107. }
  1108. function submitSuggest(e) {
  1109. e.preventDefault();
  1110. const content = document.getElementById("suggest-content").value.trim();
  1111. if (!content) {
  1112. toast("请填写建议内容");
  1113. return false;
  1114. }
  1115. toast("提交成功(演示)");
  1116. setTimeout(() => go("home"), 1200);
  1117. return false;
  1118. }
  1119. function showShare() {
  1120. let url = location.href.split("#")[0].split("?")[0];
  1121. if (url.startsWith("file:")) url = "https://jjb.ajyy.example.com";
  1122. document.getElementById("share-url").textContent = url;
  1123. drawDemoQR(document.getElementById("qr-canvas"), url);
  1124. document.getElementById("share-overlay").classList.add("show");
  1125. }
  1126. function hideShare(e) {
  1127. if (e && e.target !== e.currentTarget && e.type === "click" && !e.target.classList.contains("overlay")) {
  1128. /* allow modal close via button */
  1129. }
  1130. document.getElementById("share-overlay").classList.remove("show");
  1131. }
  1132. // 支持 hash 直达,方便方案文档截图:#notice #feedback #suggest #hotline #share
  1133. function applyHash() {
  1134. const h = (location.hash || "").replace("#", "");
  1135. if (h === "share") {
  1136. go("home");
  1137. setTimeout(showShare, 100);
  1138. } else if (h === "notice" || h === "feedback") {
  1139. startFeedback();
  1140. if (h === "feedback") {
  1141. // 演示截图可跳过等待
  1142. setTimeout(() => {
  1143. if (countdownTimer) clearInterval(countdownTimer);
  1144. document.getElementById("btn-enter-feedback").disabled = false;
  1145. document.getElementById("btn-enter-feedback").textContent = "我已阅读,进入反馈";
  1146. go("feedback");
  1147. }, 50);
  1148. }
  1149. } else if (["home", "suggest", "hotline"].includes(h)) {
  1150. go(h);
  1151. }
  1152. }
  1153. window.addEventListener("hashchange", applyHash);
  1154. applyHash();
  1155. </script>
  1156. </body>
  1157. </html>