info.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <title>Update</title>
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  7. <meta name="full-screen" content="yes" />
  8. <meta name="x5-fullscreen" content="true" />
  9. <meta name="viewport"
  10. content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
  11. <link rel="stylesheet" href="css/element-ui.css" />
  12. <link rel="stylesheet" href="css/element@2.12.2.css" />
  13. <link rel="stylesheet" href="css/index.css" />
  14. <style>
  15. :root {
  16. --primary: #2563eb;
  17. --primary-soft: #eff6ff;
  18. --danger: #ef4444;
  19. --danger-dark: #dc2626;
  20. --success: #16a34a;
  21. --text-main: #0f172a;
  22. --text-secondary: #475569;
  23. --text-muted: #94a3b8;
  24. --border: #e2e8f0;
  25. --border-strong: #cbd5e1;
  26. --bg-page: #f4f7fb;
  27. --bg-card: rgba(255, 255, 255, 0.94);
  28. --bg-section: #f8fafc;
  29. --radius-lg: 28px;
  30. --radius-md: 20px;
  31. --radius-sm: 14px;
  32. --shadow-card: 0 24px 70px rgba(15, 23, 42, 0.08),
  33. 0 4px 18px rgba(15, 23, 42, 0.05);
  34. --shadow-hover: 0 16px 40px rgba(37, 99, 235, 0.14);
  35. }
  36. * {
  37. box-sizing: border-box;
  38. }
  39. html,
  40. body {
  41. min-height: 100%;
  42. }
  43. body {
  44. margin: 0;
  45. background:
  46. radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 32%),
  47. radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 34%),
  48. var(--bg-page);
  49. font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
  50. "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  51. color: var(--text-main);
  52. -webkit-font-smoothing: antialiased;
  53. }
  54. img {
  55. display: block;
  56. max-width: 100%;
  57. }
  58. .container {
  59. width: 100%;
  60. }
  61. .page-shell {
  62. width: 100%;
  63. min-height: 100vh;
  64. padding: 32px 20px;
  65. display: flex;
  66. justify-content: center;
  67. }
  68. .document-card {
  69. width: min(1080px, 100%);
  70. background: var(--bg-card);
  71. border: 1px solid rgba(255, 255, 255, 0.78);
  72. border-radius: var(--radius-lg);
  73. box-shadow: var(--shadow-card);
  74. backdrop-filter: blur(18px);
  75. overflow: hidden;
  76. }
  77. .hero-header {
  78. padding: 30px 34px;
  79. display: flex;
  80. align-items: center;
  81. justify-content: space-between;
  82. gap: 20px;
  83. background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  84. border-bottom: 1px solid var(--border);
  85. }
  86. .hero-title-group {
  87. display: flex;
  88. align-items: flex-start;
  89. gap: 16px;
  90. }
  91. .hero-icon {
  92. width: 48px;
  93. height: 48px;
  94. flex: 0 0 auto;
  95. border-radius: 16px;
  96. display: inline-flex;
  97. align-items: center;
  98. justify-content: center;
  99. color: var(--primary);
  100. background: var(--primary-soft);
  101. font-size: 24px;
  102. }
  103. .hero-title {
  104. margin: 0;
  105. font-size: 28px;
  106. line-height: 1.2;
  107. font-weight: 800;
  108. letter-spacing: -0.03em;
  109. }
  110. .hero-subtitle {
  111. margin: 8px 0 0;
  112. color: var(--text-secondary);
  113. font-size: 14px;
  114. line-height: 1.6;
  115. }
  116. .format-badges {
  117. display: flex;
  118. flex-wrap: wrap;
  119. gap: 8px;
  120. margin-top: 12px;
  121. }
  122. .format-badge {
  123. padding: 5px 10px;
  124. border-radius: 999px;
  125. background: #fff;
  126. border: 1px solid var(--border);
  127. color: var(--text-secondary);
  128. font-size: 12px;
  129. font-weight: 600;
  130. }
  131. .lang-switch {
  132. flex: 0 0 auto;
  133. display: inline-flex;
  134. align-items: center;
  135. gap: 8px;
  136. padding: 10px 12px;
  137. border: 1px solid var(--border);
  138. border-radius: 999px;
  139. background: #fff;
  140. box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  141. }
  142. .lang-switch img {
  143. width: 18px;
  144. height: 12px;
  145. object-fit: cover;
  146. border-radius: 2px;
  147. }
  148. .lang-switch .menu {
  149. color: var(--text-main);
  150. font-size: 14px;
  151. font-weight: 600;
  152. cursor: pointer;
  153. }
  154. .content-info {
  155. padding: 30px 34px 36px;
  156. }
  157. .section-card {
  158. margin-bottom: 24px;
  159. padding: 24px;
  160. border-radius: var(--radius-md);
  161. border: 1px solid var(--border);
  162. background: linear-gradient(180deg, #ffffff 0%, var(--bg-section) 100%);
  163. }
  164. .section-header {
  165. display: flex;
  166. align-items: center;
  167. gap: 14px;
  168. margin-bottom: 22px;
  169. }
  170. .section-header-icon {
  171. width: 38px;
  172. height: 38px;
  173. border-radius: 13px;
  174. display: inline-flex;
  175. align-items: center;
  176. justify-content: center;
  177. color: var(--primary);
  178. background: var(--primary-soft);
  179. font-size: 20px;
  180. }
  181. .section-title-wrap {
  182. flex: 1;
  183. min-width: 0;
  184. }
  185. .section-title {
  186. margin: 0;
  187. font-size: 18px;
  188. line-height: 1.35;
  189. font-weight: 750;
  190. color: var(--text-main);
  191. }
  192. .section-description {
  193. margin: 6px 0 0;
  194. color: var(--text-secondary);
  195. font-size: 14px;
  196. line-height: 1.55;
  197. }
  198. .upload-grid {
  199. display: grid;
  200. grid-template-columns: repeat(2, minmax(0, 1fr));
  201. gap: 18px;
  202. }
  203. .upload-grid.single {
  204. grid-template-columns: minmax(0, 1fr);
  205. }
  206. .upload-box {
  207. width: 100%;
  208. }
  209. .upload-box .el-upload {
  210. position: relative;
  211. width: 100%;
  212. height: 190px;
  213. border: 2px dashed var(--border-strong);
  214. border-radius: 18px;
  215. background: #fff;
  216. overflow: hidden;
  217. cursor: pointer;
  218. transition: border-color 0.22s ease, box-shadow 0.22s ease,
  219. transform 0.22s ease, background-color 0.22s ease;
  220. }
  221. .upload-box .el-upload:hover {
  222. border-color: var(--primary);
  223. background: #f8fbff;
  224. box-shadow: var(--shadow-hover);
  225. transform: translateY(-2px);
  226. }
  227. .upload-inner {
  228. width: 100%;
  229. height: 100%;
  230. display: flex;
  231. flex-direction: column;
  232. align-items: center;
  233. justify-content: center;
  234. gap: 10px;
  235. padding: 18px;
  236. text-align: center;
  237. }
  238. .upload-inner .avatar {
  239. width: 100%;
  240. height: 100%;
  241. object-fit: cover;
  242. }
  243. .upload-preview {
  244. width: 100%;
  245. height: 100%;
  246. }
  247. .upload-placeholder-icon {
  248. width: 56px;
  249. height: 56px;
  250. border-radius: 18px;
  251. display: inline-flex;
  252. align-items: center;
  253. justify-content: center;
  254. color: var(--primary);
  255. background: var(--primary-soft);
  256. font-size: 30px;
  257. }
  258. .upload-placeholder-title {
  259. margin: 0;
  260. color: var(--text-main);
  261. font-size: 15px;
  262. font-weight: 700;
  263. }
  264. .upload-placeholder-text {
  265. margin: 0;
  266. color: var(--text-muted);
  267. font-size: 13px;
  268. line-height: 1.45;
  269. }
  270. .pdf-preview {
  271. width: 100%;
  272. height: 100%;
  273. display: flex;
  274. flex-direction: column;
  275. align-items: center;
  276. justify-content: center;
  277. gap: 10px;
  278. color: var(--primary);
  279. background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  280. }
  281. .pdf-preview i {
  282. font-size: 36px;
  283. }
  284. .pdf-preview span {
  285. font-size: 14px;
  286. font-weight: 700;
  287. }
  288. .file-upload-action {
  289. display: flex;
  290. flex-wrap: wrap;
  291. align-items: center;
  292. gap: 12px;
  293. margin-bottom: 16px;
  294. justify-content: center;
  295. }
  296. .file-upload-action .el-button--primary {
  297. height: 42px;
  298. padding: 0 20px;
  299. border-radius: 999px;
  300. border: none;
  301. font-weight: 700;
  302. background: var(--primary);
  303. box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
  304. }
  305. .other-files-grid {
  306. display: grid;
  307. grid-template-columns: repeat(3, minmax(0, 1fr));
  308. gap: 14px;
  309. }
  310. .file-card .el-upload {
  311. height: 140px;
  312. }
  313. .submit-area {
  314. position: sticky;
  315. bottom: 0;
  316. z-index: 2;
  317. display: flex;
  318. justify-content: center;
  319. padding: 22px 0 0;
  320. background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .9) 34%);
  321. }
  322. .submit-area .el-button--danger {
  323. min-width: 240px;
  324. height: 50px;
  325. border: none;
  326. border-radius: 999px;
  327. font-size: 16px;
  328. font-weight: 800;
  329. background: linear-gradient(135deg, var(--danger), var(--danger-dark));
  330. box-shadow: 0 14px 30px rgba(239, 68, 68, 0.28);
  331. transition: transform 0.22s ease, box-shadow 0.22s ease;
  332. }
  333. .submit-area .el-button--danger:hover,
  334. .submit-area .el-button--danger:focus {
  335. transform: translateY(-2px);
  336. box-shadow: 0 18px 38px rgba(239, 68, 68, 0.34);
  337. }
  338. .el-dropdown-menu {
  339. border-radius: 14px;
  340. overflow: hidden;
  341. }
  342. .el-button,
  343. .el-input__inner,
  344. .el-textarea__inner {
  345. font-family: inherit;
  346. }
  347. @media (max-width: 900px) {
  348. .page-shell {
  349. padding: 22px 14px;
  350. }
  351. .hero-header,
  352. .content-info {
  353. padding-left: 24px;
  354. padding-right: 24px;
  355. }
  356. .other-files-grid {
  357. grid-template-columns: repeat(2, minmax(0, 1fr));
  358. }
  359. }
  360. @media (max-width: 720px) {
  361. .page-shell {
  362. padding: 12px;
  363. }
  364. .document-card {
  365. border-radius: 22px;
  366. }
  367. .hero-header {
  368. padding: 22px 18px;
  369. flex-direction: column;
  370. align-items: stretch;
  371. }
  372. .hero-title-group {
  373. gap: 12px;
  374. }
  375. .hero-icon {
  376. width: 42px;
  377. height: 42px;
  378. border-radius: 14px;
  379. font-size: 21px;
  380. }
  381. .hero-title {
  382. font-size: 22px;
  383. }
  384. .lang-switch {
  385. width: 100%;
  386. justify-content: center;
  387. }
  388. .content-info {
  389. padding: 20px 16px 24px;
  390. }
  391. .section-card {
  392. padding: 18px;
  393. border-radius: 18px;
  394. }
  395. .section-header {
  396. align-items: flex-start;
  397. margin-bottom: 18px;
  398. }
  399. .section-title {
  400. font-size: 16px;
  401. }
  402. .section-description {
  403. font-size: 13px;
  404. }
  405. .upload-grid,
  406. .other-files-grid {
  407. grid-template-columns: 1fr;
  408. }
  409. .upload-box .el-upload {
  410. height: 156px;
  411. border-radius: 16px;
  412. }
  413. .file-card .el-upload {
  414. height: 132px;
  415. }
  416. .submit-area .el-button--danger {
  417. width: 100%;
  418. min-width: 0;
  419. }
  420. }
  421. @media (max-width: 380px) {
  422. .hero-title-group {
  423. flex-direction: column;
  424. }
  425. .format-badges {
  426. gap: 6px;
  427. }
  428. .format-badge {
  429. font-size: 11px;
  430. }
  431. }
  432. </style>
  433. </head>
  434. <body>
  435. <div class="container" id="index">
  436. <div class="page-shell">
  437. <div class="document-card">
  438. <header class="hero-header">
  439. <div class="hero-title-group">
  440. <div class="hero-icon">
  441. <i class="el-icon-postcard"></i>
  442. </div>
  443. <div>
  444. <h1 class="hero-title">{{lang.item1}}</h1>
  445. <!-- <p class="hero-subtitle">Please upload clear and valid document images or PDF files.</p> -->
  446. <div class="format-badges">
  447. <span class="format-badge">JPEG</span>
  448. <span class="format-badge">JPG</span>
  449. <span class="format-badge">PNG</span>
  450. <span class="format-badge">PDF</span>
  451. </div>
  452. </div>
  453. </div>
  454. <div class="lang-switch chooseLang">
  455. <!-- <img
  456. v-if="langList[language] == 'ENGLISH'"
  457. src="img/EN.jpg"
  458. alt="English"
  459. />
  460. <img
  461. v-if="langList[language] == '中文简体'"
  462. src="img/CN.jpg"
  463. alt="中文简体"
  464. /> -->
  465. <el-dropdown trigger="click" @command="chooseLang">
  466. <span class="menu">
  467. {{langList[language]}}
  468. <i class="el-icon-arrow-down el-icon--right"></i>
  469. </span>
  470. <el-dropdown-menu slot="dropdown">
  471. <el-dropdown-item command="en">English</el-dropdown-item>
  472. <el-dropdown-item command="cn">中文简体</el-dropdown-item>
  473. </el-dropdown-menu>
  474. </el-dropdown>
  475. </div>
  476. </header>
  477. <main class="content-info">
  478. <section class="section-card">
  479. <div class="section-header">
  480. <div class="section-header-icon">
  481. <i class="el-icon-document"></i>
  482. </div>
  483. <div class="section-title-wrap">
  484. <h2 class="section-title">{{lang.item2}}</h2>
  485. <p class="section-description"> {{lang.item6}}</p>
  486. </div>
  487. </div>
  488. <div class="upload-grid">
  489. <el-upload class="avatar-uploader upload-box" action="''" :http-request="handleUploadID1"
  490. :headers="AccessToken" :disabled="fileListID1.status == 2 ? true : false" :show-file-list="false"
  491. :on-success="handleAvatarSuccess1" :before-upload="beforeAvatarUpload">
  492. <div class="upload-inner">
  493. <img
  494. v-if="(fileListID1.againPath && (fileListID1.againPath.substr(-3,3) != 'pdf' && fileListID1.againPath.substr(-3,3) != 'PDF')) || (fileListID1.path && (fileListID1.path.substr(-3,3) != 'pdf' && fileListID1.path.substr(-3,3) != 'PDF'))"
  495. :src="imgUrl+(fileListID1.againPath || fileListID1.path)" class="avatar" />
  496. <div class="pdf-preview"
  497. v-else-if="(fileListID1.againPath && (fileListID1.againPath.substr(-3,3) == 'pdf' || fileListID1.againPath.substr(-3,3) == 'PDF')) || (fileListID1.path && (fileListID1.path.substr(-3,3) == 'pdf' || fileListID1.path.substr(-3,3) == 'PDF'))">
  498. <i class="el-icon-document"></i>
  499. <span>PDF</span>
  500. </div>
  501. <template v-else>
  502. <div class="upload-placeholder-icon">
  503. <i class="el-icon-picture-outline"></i>
  504. </div>
  505. <p class="upload-placeholder-title">{{lang.item5}}</p>
  506. </template>
  507. </div>
  508. </el-upload>
  509. <el-upload class="avatar-uploader upload-box" action="''" :http-request="handleUploadID2"
  510. :headers="AccessToken" :disabled="fileListID2.status == 2 ? true : false" :show-file-list="false"
  511. :on-success="handleAvatarSuccess2" :before-upload="beforeAvatarUpload">
  512. <div class="upload-inner">
  513. <img
  514. v-if="(fileListID2.againPath && (fileListID2.againPath.substr(-3,3) != 'pdf' && fileListID2.againPath.substr(-3,3) != 'PDF')) || (fileListID2.path && (fileListID2.path.substr(-3,3) != 'pdf' && fileListID2.path.substr(-3,3) != 'PDF'))"
  515. :src="imgUrl+(fileListID2.againPath || fileListID2.path)" class="avatar" />
  516. <div class="pdf-preview"
  517. v-else-if="(fileListID2.againPath && (fileListID2.againPath.substr(-3,3) == 'pdf' || fileListID2.againPath.substr(-3,3) == 'PDF')) || (fileListID2.path && (fileListID2.path.substr(-3,3) == 'pdf' || fileListID2.path.substr(-3,3) == 'PDF'))">
  518. <i class="el-icon-document"></i>
  519. <span>PDF</span>
  520. </div>
  521. <template v-else>
  522. <div class="upload-placeholder-icon">
  523. <i class="el-icon-picture-outline"></i>
  524. </div>
  525. <p class="upload-placeholder-title">{{lang.item5}}</p>
  526. </template>
  527. </div>
  528. </el-upload>
  529. </div>
  530. </section>
  531. <section class="section-card">
  532. <div class="section-header">
  533. <div class="section-header-icon">
  534. <i class="el-icon-document"></i>
  535. </div>
  536. <div class="section-title-wrap">
  537. <h2 class="section-title">{{lang.item7}}</h2>
  538. <p class="section-description">{{lang.item9}}</p>
  539. </div>
  540. </div>
  541. <div class="upload-grid single">
  542. <el-upload class="avatar-uploader upload-box" :action="''" :http-request="handleUploadAdd1"
  543. :headers="AccessToken" :disabled="fileListAdd1.status == 2 ? true : false" :show-file-list="false"
  544. :on-success="handleAvatarSuccess3" :before-upload="beforeAvatarUpload">
  545. <div class="upload-inner">
  546. <img
  547. v-if="(fileListAdd1.againPath && (fileListAdd1.againPath.substr(-3,3) != 'pdf' && fileListAdd1.againPath.substr(-3,3) != 'PDF')) || (fileListAdd1.path && (fileListAdd1.path.substr(-3,3) != 'pdf' && fileListAdd1.path.substr(-3,3) != 'PDF'))"
  548. :src="imgUrl+(fileListAdd1.againPath || fileListAdd1.path)" class="avatar" />
  549. <div class="pdf-preview"
  550. v-else-if="(fileListAdd1.againPath && (fileListAdd1.againPath.substr(-3,3) == 'pdf' || fileListAdd1.againPath.substr(-3,3) == 'PDF')) || (fileListAdd1.path && (fileListAdd1.path.substr(-3,3) == 'pdf' || fileListAdd1.path.substr(-3,3) == 'PDF'))">
  551. <i class="el-icon-document"></i>
  552. <span>PDF</span>
  553. </div>
  554. <template v-else>
  555. <div class="upload-placeholder-icon">
  556. <i class="el-icon-picture-outline"></i>
  557. </div>
  558. <p class="upload-placeholder-title">{{lang.item8}}</p>
  559. </template>
  560. </div>
  561. </el-upload>
  562. </div>
  563. </section>
  564. <section class="section-card">
  565. <div class="section-header">
  566. <div class="section-header-icon">
  567. <i class="el-icon-folder-opened"></i>
  568. </div>
  569. <div class="section-title-wrap">
  570. <h2 class="section-title">{{lang.item10}}</h2>
  571. <p class="section-description">{{lang.item11}} {{lang.item12}}</p>
  572. </div>
  573. </div>
  574. <div class="file-upload-action">
  575. <el-upload class="avatar-uploaderOther fileOther" :action="''" :http-request="handleUploadOtherAdd"
  576. :headers="AccessToken" :show-file-list="false" :on-success="handleAvatarSuccessOther"
  577. :before-upload="beforeAvatarUpload">
  578. <el-button type="primary">
  579. <i class="el-icon-upload"></i>
  580. <span>{{lang.Upload}}</span>
  581. </el-button>
  582. </el-upload>
  583. </div>
  584. <div class="other-files-grid">
  585. <div id="files" v-for="(item,index) in fileListOthers" :key="index">
  586. <el-upload class="avatar-uploaderOther fileOthers upload-box file-card"
  587. :action="imgUrl +'/custom/file/upload/10/' + item.id" :headers="AccessToken"
  588. :disabled="fileListOther.status == 2 ? true : false" :show-file-list="false"
  589. :on-success="handleAvatarSuccessOther" :before-upload="beforeAvatarUpload">
  590. <div class="upload-inner file">
  591. <img
  592. v-if="(item.againPath && (item.againPath.substr(-3,3) != 'pdf' && item.againPath.substr(-3,3) != 'PDF')) || (item.path && (item.path.substr(-3,3) != 'pdf' && item.path.substr(-3,3) != 'PDF'))"
  593. :src="imgUrl+(item.againPath || item.path)" class="avatar" />
  594. <div class="pdf-preview" v-else>
  595. <i class="el-icon-document"></i>
  596. <span>FILE</span>
  597. </div>
  598. </div>
  599. </el-upload>
  600. </div>
  601. </div>
  602. </section>
  603. <div class="submit-area">
  604. <el-button type="danger" @click="update">{{lang.btn}}</el-button>
  605. </div>
  606. </main>
  607. </div>
  608. </div>
  609. </div>
  610. <script src="js/vue.min.js"></script>
  611. <script src="js/axios.min.js"></script>
  612. <script src="js/element-ui.js"></script>
  613. <script src="js/element@2.12.2.js"></script>
  614. <script src="upload.js"></script>
  615. <script src="info.js"></script>
  616. </body>
  617. </html>