page-crm-business-apply.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883
  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.0">
  6. <title>2023年全国旅游创新大赛 - 报名页面</title>
  7. <!-- 引入第三方库 -->
  8. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.css">
  9. <script src="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.js"></script>
  10. <script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script>
  11. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  12. <!-- 引入国内CDN资源 -->
  13. <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
  14. <link href="https://cdn.bootcdn.net/ajax/libs/animate.css/4.1.1/animate.min.css" rel="stylesheet">
  15. <script src="https://cdn.bootcdn.net/ajax/libs/echarts/5.4.2/echarts.min.js"></script>
  16. <script src="https://cdn.bootcdn.net/ajax/libs/Swiper/8.4.5/swiper-bundle.min.js"></script>
  17. <link href="https://cdn.bootcdn.net/ajax/libs/Swiper/8.4.5/swiper-bundle.min.css" rel="stylesheet">
  18. <style>
  19. :root {
  20. --primary-color: #3498db;
  21. --secondary-color: #2ecc71;
  22. --accent-color: #e74c3c;
  23. --dark-color: #2c3e50;
  24. --light-color: #ecf0f1;
  25. --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  26. --transition: all 0.3s ease;
  27. }
  28. * {
  29. margin: 0;
  30. padding: 0;
  31. box-sizing: border-box;
  32. font-family: 'Microsoft YaHei', sans-serif;
  33. }
  34. body {
  35. background-color: #f5f7fa;
  36. color: #333;
  37. line-height: 1.6;
  38. }
  39. .container {
  40. max-width: 1200px;
  41. margin: 0 auto;
  42. padding: 0 20px;
  43. }
  44. /* 头部样式 */
  45. header {
  46. background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  47. color: white;
  48. padding: 20px 0;
  49. box-shadow: var(--shadow);
  50. position: relative;
  51. overflow: hidden;
  52. }
  53. .header-content {
  54. display: flex;
  55. flex-direction: column;
  56. align-items: center;
  57. justify-content: center;
  58. text-align: center;
  59. padding: 20px 0;
  60. position: relative;
  61. z-index: 1;
  62. }
  63. .header-content::before {
  64. content: '';
  65. position: absolute;
  66. top: 0;
  67. left: 0;
  68. width: 100%;
  69. height: 100%;
  70. background: url('https://via.placeholder.com/1200x400') center/cover;
  71. opacity: 0.2;
  72. z-index: -1;
  73. }
  74. .logo {
  75. width: 120px;
  76. height: 120px;
  77. margin-bottom: 20px;
  78. background-color: white;
  79. border-radius: 50%;
  80. display: flex;
  81. align-items: center;
  82. justify-content: center;
  83. box-shadow: var(--shadow);
  84. }
  85. .logo img {
  86. width: 100%;
  87. height: 100%;
  88. object-fit: contain;
  89. }
  90. h1 {
  91. font-size: 2.5rem;
  92. margin-bottom: 10px;
  93. text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  94. }
  95. .subtitle {
  96. font-size: 1.2rem;
  97. margin-bottom: 20px;
  98. font-weight: 300;
  99. }
  100. /* 导航栏 */
  101. nav {
  102. background-color: var(--dark-color);
  103. position: sticky;
  104. top: 0;
  105. z-index: 100;
  106. box-shadow: var(--shadow);
  107. }
  108. .nav-container {
  109. display: flex;
  110. justify-content: space-between;
  111. align-items: center;
  112. padding: 10px 0;
  113. }
  114. .nav-links {
  115. display: flex;
  116. list-style: none;
  117. }
  118. .nav-links li {
  119. margin-left: 20px;
  120. }
  121. .nav-links a {
  122. color: white;
  123. text-decoration: none;
  124. font-weight: 500;
  125. padding: 5px 10px;
  126. border-radius: 4px;
  127. transition: var(--transition);
  128. }
  129. .nav-links a:hover {
  130. background-color: var(--primary-color);
  131. }
  132. /* 主要内容 */
  133. main {
  134. padding: 40px 0;
  135. }
  136. .section {
  137. margin-bottom: 50px;
  138. background-color: white;
  139. border-radius: 8px;
  140. padding: 30px;
  141. box-shadow: var(--shadow);
  142. }
  143. .section-title {
  144. color: var(--primary-color);
  145. margin-bottom: 20px;
  146. padding-bottom: 10px;
  147. border-bottom: 2px solid var(--light-color);
  148. display: flex;
  149. align-items: center;
  150. }
  151. .section-title i {
  152. margin-right: 10px;
  153. font-size: 1.5rem;
  154. }
  155. .swiper-slide {
  156. position: relative;
  157. }
  158. .swiper-slide img {
  159. width: 100%;
  160. height: 100%;
  161. object-fit: cover;
  162. }
  163. .swiper-slide-content {
  164. position: absolute;
  165. bottom: 0;
  166. left: 0;
  167. right: 0;
  168. background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  169. color: white;
  170. padding: 20px;
  171. }
  172. .swiper-button-next, .swiper-button-prev {
  173. color: white !important;
  174. }
  175. .swiper-pagination-bullet-active {
  176. background: white !important;
  177. }
  178. /* 大赛介绍 */
  179. .intro-grid {
  180. display: flex;
  181. flex-wrap: wrap;
  182. gap: 20px;
  183. margin-top: 30px;
  184. }
  185. .intro-card {
  186. flex: 1 1 300px;
  187. background-color: var(--light-color);
  188. border-radius: 8px;
  189. padding: 20px;
  190. transition: var(--transition);
  191. display: flex;
  192. flex-direction: column;
  193. align-items: center;
  194. text-align: center;
  195. }
  196. .intro-card:hover {
  197. transform: translateY(-5px);
  198. box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  199. }
  200. .intro-card i {
  201. font-size: 2.5rem;
  202. color: var(--primary-color);
  203. margin-bottom: 15px;
  204. }
  205. .intro-card h3 {
  206. color: var(--dark-color);
  207. margin-bottom: 10px;
  208. }
  209. /* 数据可视化 */
  210. .chart-container {
  211. width: 100%;
  212. height: 400px;
  213. margin-top: 20px;
  214. }
  215. /* 报名表单 */
  216. .form-group {
  217. margin-bottom: 20px;
  218. }
  219. label {
  220. display: block;
  221. margin-bottom: 8px;
  222. font-weight: 500;
  223. color: var(--dark-color);
  224. }
  225. input, select, textarea {
  226. width: 100%;
  227. padding: 12px;
  228. border: 1px solid #ddd;
  229. border-radius: 4px;
  230. font-size: 16px;
  231. transition: var(--transition);
  232. }
  233. input:focus, select:focus, textarea:focus {
  234. border-color: var(--primary-color);
  235. outline: none;
  236. box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
  237. }
  238. textarea {
  239. min-height: 120px;
  240. resize: vertical;
  241. }
  242. .form-row {
  243. display: flex;
  244. gap: 20px;
  245. }
  246. .form-row .form-group {
  247. flex: 1;
  248. }
  249. .btn {
  250. display: inline-block;
  251. background-color: var(--primary-color);
  252. color: white;
  253. padding: 12px 24px;
  254. border: none;
  255. border-radius: 4px;
  256. cursor: pointer;
  257. font-size: 16px;
  258. font-weight: 500;
  259. transition: var(--transition);
  260. text-align: center;
  261. }
  262. .btn:hover {
  263. background-color: #2980b9;
  264. transform: translateY(-2px);
  265. }
  266. .btn-block {
  267. display: block;
  268. width: 100%;
  269. }
  270. .btn-accent {
  271. background-color: var(--accent-color);
  272. }
  273. .btn-accent:hover {
  274. background-color: #c0392b;
  275. }
  276. /* 时间轴 */
  277. .timeline {
  278. position: relative;
  279. max-width: 1200px;
  280. margin: 30px auto;
  281. }
  282. .timeline::after {
  283. content: '';
  284. position: absolute;
  285. width: 6px;
  286. background-color: var(--light-color);
  287. top: 0;
  288. bottom: 0;
  289. left: 50%;
  290. margin-left: -3px;
  291. border-radius: 3px;
  292. }
  293. .timeline-item {
  294. padding: 10px 40px;
  295. position: relative;
  296. width: 50%;
  297. box-sizing: border-box;
  298. }
  299. .timeline-item::after {
  300. content: '';
  301. position: absolute;
  302. width: 20px;
  303. height: 20px;
  304. background-color: white;
  305. border: 4px solid var(--primary-color);
  306. border-radius: 50%;
  307. top: 15px;
  308. z-index: 1;
  309. }
  310. .left {
  311. left: 0;
  312. }
  313. .right {
  314. left: 50%;
  315. }
  316. .left::after {
  317. right: -10px;
  318. }
  319. .right::after {
  320. left: -10px;
  321. }
  322. .timeline-content {
  323. padding: 20px;
  324. background-color: white;
  325. border-radius: 8px;
  326. box-shadow: var(--shadow);
  327. }
  328. .timeline-date {
  329. font-weight: bold;
  330. color: var(--primary-color);
  331. margin-bottom: 5px;
  332. }
  333. /* 页脚 */
  334. footer {
  335. background-color: var(--dark-color);
  336. color: black;
  337. padding: 40px 0 20px;
  338. }
  339. .footer-content {
  340. display: flex;
  341. flex-wrap: wrap;
  342. justify-content: space-between;
  343. margin-bottom: 30px;
  344. }
  345. .footer-column {
  346. flex: 1 1 250px;
  347. margin-bottom: 20px;
  348. padding: 0 15px;
  349. }
  350. .footer-column h3 {
  351. margin-bottom: 20px;
  352. font-size: 1.2rem;
  353. position: relative;
  354. padding-bottom: 10px;
  355. }
  356. .footer-column h3::after {
  357. content: '';
  358. position: absolute;
  359. left: 0;
  360. bottom: 0;
  361. width: 50px;
  362. height: 2px;
  363. background-color: var(--primary-color);
  364. }
  365. .footer-links {
  366. list-style: none;
  367. }
  368. .footer-links li {
  369. margin-bottom: 10px;
  370. }
  371. .footer-links a {
  372. color: #bbb;
  373. text-decoration: none;
  374. transition: var(--transition);
  375. }
  376. .footer-links a:hover {
  377. color: white;
  378. padding-left: 5px;
  379. }
  380. .social-links {
  381. display: flex;
  382. gap: 15px;
  383. margin-top: 15px;
  384. }
  385. .social-links a {
  386. color: white;
  387. background-color: rgba(255, 255, 255, 0.1);
  388. width: 40px;
  389. height: 40px;
  390. border-radius: 50%;
  391. display: flex;
  392. align-items: center;
  393. justify-content: center;
  394. transition: var(--transition);
  395. }
  396. .social-links a:hover {
  397. background-color: var(--primary-color);
  398. transform: translateY(-3px);
  399. }
  400. .copyright {
  401. text-align: center;
  402. padding-top: 20px;
  403. border-top: 1px solid rgba(255, 255, 255, 0.1);
  404. font-size: 0.9rem;
  405. color: #bbb;
  406. }
  407. /* 响应式设计 */
  408. @media (max-width: 768px) {
  409. .nav-container {
  410. flex-direction: column;
  411. }
  412. .nav-links {
  413. margin-top: 15px;
  414. }
  415. .timeline::after {
  416. left: 31px;
  417. }
  418. .timeline-item {
  419. width: 100%;
  420. padding-left: 70px;
  421. padding-right: 25px;
  422. }
  423. .timeline-item::after {
  424. left: 21px;
  425. }
  426. .left::after, .right::after {
  427. left: 21px;
  428. }
  429. .right {
  430. left: 0;
  431. }
  432. .form-row {
  433. flex-direction: column;
  434. gap: 0;
  435. }
  436. }
  437. </style>
  438. </head>
  439. <body>
  440. <!-- 头部 -->
  441. <header>
  442. <div class="container header-content">
  443. <div class="logo">
  444. <img src="https://p9-dreamina-sign.byteimg.com/tos-cn-i-tb4s082cfz/1a34b801570743e98dcc46a36d4202cc~tplv-tb4s082cfz-aigc_resize:1080:1080.webp?lk3s=43402efa&x-expires=1753488000&x-signature=exUdM5NSa3%2FkbEifiXOKT7vPiPo%3D&format=.webp" alt="大赛Logo">
  445. </div>
  446. <h1 style="color: black;">2023年全国旅游创新大赛</h1>
  447. <p class="subtitle">创新引领未来 · 旅游改变生活</p>
  448. </div>
  449. </header>
  450. <!-- 主要内容 -->
  451. <main class="container">
  452. <!-- 大赛介绍 -->
  453. <section id="about" class="section">
  454. <h2 class="section-title"><i class="fa fa-info-circle"></i>大赛介绍</h2>
  455. <p>2023年全国旅游创新大赛是由国家旅游局指导,中国旅游协会主办,面向全国旅游从业者、创业者和高校学生的创新竞赛。大赛旨在发掘旅游行业创新人才,推动旅游产业转型升级,促进旅游与文化、科技等领域的深度融合。</p>
  456. <div class="intro-grid">
  457. <div class="intro-card">
  458. <i class="fa fa-lightbulb-o"></i>
  459. <h3>创新主题</h3>
  460. <p>围绕"智慧旅游"、"文旅融合"、"乡村振兴"等主题,探索旅游行业创新发展新路径。</p>
  461. </div>
  462. <div class="intro-card">
  463. <i class="fa fa-users"></i>
  464. <h3>参赛对象</h3>
  465. <p>旅游企业、创业团队、高校学生及个人均可报名参赛,团队人数不超过5人。</p>
  466. </div>
  467. <div class="intro-card">
  468. <i class="fa fa-trophy"></i>
  469. <h3>赛事价值</h3>
  470. <p>优胜者将获得奖金、投资机会、媒体曝光及与行业龙头企业合作机会。</p>
  471. </div>
  472. </div>
  473. </section>
  474. <!-- 赛程安排 -->
  475. <section id="schedule" class="section">
  476. <h2 class="section-title"><i class="fa fa-calendar"></i>赛程安排</h2>
  477. <div class="timeline">
  478. <div class="timeline-item left">
  479. <div class="timeline-content">
  480. <div class="timeline-date">2023年9月1日-10月15日</div>
  481. <p>报名阶段:在线提交报名表及项目简介</p>
  482. </div>
  483. </div>
  484. <div class="timeline-item right">
  485. <div class="timeline-content">
  486. <div class="timeline-date">2023年10月16日-11月15日</div>
  487. <p>初赛评审:专家评审团对报名项目进行线上评审</p>
  488. </div>
  489. </div>
  490. <div class="timeline-item left">
  491. <div class="timeline-content">
  492. <div class="timeline-date">2023年11月20日</div>
  493. <p>公布复赛名单:公布进入复赛的100强项目</p>
  494. </div>
  495. </div>
  496. <div class="timeline-item right">
  497. <div class="timeline-content">
  498. <div class="timeline-date">2023年12月1日-12月15日</div>
  499. <p>复赛阶段:线上路演与答辩</p>
  500. </div>
  501. </div>
  502. <div class="timeline-item left">
  503. <div class="timeline-content">
  504. <div class="timeline-date">2023年12月20日</div>
  505. <p>公布决赛名单:公布进入决赛的20强项目</p>
  506. </div>
  507. </div>
  508. <div class="timeline-item right">
  509. <div class="timeline-content">
  510. <div class="timeline-date">2024年1月10日-1月12日</div>
  511. <p>决赛暨颁奖典礼:现场路演与颁奖</p>
  512. </div>
  513. </div>
  514. </div>
  515. </section>
  516. <!-- 奖项设置 -->
  517. <section id="awards" class="section">
  518. <h2 class="section-title"><i class="fa fa-gift"></i>奖项设置</h2>
  519. <div class="intro-grid">
  520. <div class="intro-card" style="background-color: #fff8e1;">
  521. <i class="fa fa-star" style="color: #ffc107;"></i>
  522. <h3>金奖(1名)</h3>
  523. <p>奖金30万元<br>投资对接机会<br>行业媒体专访</p>
  524. </div>
  525. <div class="intro-card" style="background-color: #e8f5e9;">
  526. <i class="fa fa-star" style="color: #4caf50;"></i>
  527. <h3>银奖(3名)</h3>
  528. <p>奖金各10万元<br>创业孵化支持<br>企业合作机会</p>
  529. </div>
  530. <div class="intro-card" style="background-color: #e3f2fd;">
  531. <i class="fa fa-star" style="color: #2196f3;"></i>
  532. <h3>铜奖(6名)</h3>
  533. <p>奖金各5万元<br>专业培训课程<br>行业资源对接</p>
  534. </div>
  535. <div class="intro-card" style="background-color: #f3e5f5;">
  536. <i class="fa fa-star" style="color: #9c27b0;"></i>
  537. <h3>创新潜力奖(10名)</h3>
  538. <p>奖金各1万元<br>创业导师指导<br>参赛证书</p>
  539. </div>
  540. </div>
  541. </section>
  542. <!-- 报名表单 -->
  543. <section id="register" class="section">
  544. <h2 class="section-title"><i class="fa fa-edit"></i>报名表</h2>
  545. <form id="registrationForm">
  546. <div class="form-row">
  547. <div class="form-group">
  548. <label for="name">姓名/团队名称 <span class="required">*</span></label>
  549. <input type="text" id="name" name="name" required>
  550. </div>
  551. <div class="form-group">
  552. <label for="contact">联系电话 <span class="required">*</span></label>
  553. <input type="tel" id="contact" name="contact" required>
  554. </div>
  555. </div>
  556. <div class="form-row">
  557. <div class="form-group">
  558. <label for="email">电子邮箱 <span class="required">*</span></label>
  559. <input type="email" id="email" name="email" required>
  560. </div>
  561. <div class="form-group">
  562. <label for="category">参赛类别 <span class="required">*</span></label>
  563. <select id="category" name="category" required>
  564. <option value="">请选择参赛类别</option>
  565. <option value="tech">智慧旅游技术创新</option>
  566. <option value="culture">文旅融合产品设计</option>
  567. <option value="rural">乡村旅游开发</option>
  568. <option value="marketing">旅游营销创新</option>
  569. <option value="other">其他创新方向</option>
  570. </select>
  571. </div>
  572. </div>
  573. <div class="form-group">
  574. <label for="members">团队成员(如为团队参赛,请填写所有成员姓名及职务)</label>
  575. <textarea id="members" name="members" placeholder="例:张三 - 项目经理,李四 - 技术负责人,王五 - 市场总监"></textarea>
  576. </div>
  577. <div class="form-group">
  578. <label for="project">项目简介 <span class="required">*</span></label>
  579. <textarea id="project" name="project" required placeholder="请简要描述您的项目(不超过500字)"></textarea>
  580. </div>
  581. <div class="form-group">
  582. <label for="innovation">创新点说明 <span class="required">*</span></label>
  583. <textarea id="innovation" name="innovation" required placeholder="请说明您的项目在哪些方面具有创新性(不超过300字)"></textarea>
  584. </div>
  585. <div class="form-group">
  586. <label for="attachment">项目计划书或相关资料(PDF格式)</label>
  587. <input type="file" id="attachment" name="attachment" accept=".pdf">
  588. </div>
  589. <div class="form-group">
  590. <label>
  591. <input type="checkbox" name="agreement" required> 我已阅读并同意<a href="#">《参赛协议》</a>和<a href="#">《隐私政策》</a>
  592. </label>
  593. </div>
  594. <button type="submit" class="btn btn-block btn-accent">提交报名</button>
  595. </form>
  596. </section>
  597. </main>
  598. <!-- 页脚 -->
  599. <footer>
  600. <div class="container">
  601. <div class="footer-content">
  602. <div class="footer-column">
  603. <h3>关于大赛</h3>
  604. <p>2023年全国旅游创新大赛是由国家旅游局指导,中国旅游协会主办的全国性旅游行业创新竞赛,旨在推动旅游产业创新发展。</p>
  605. <div class="social-links">
  606. <a href="#"><i class="fa fa-weibo"></i></a>
  607. <a href="#"><i class="fa fa-weixin"></i></a>
  608. <a href="#"><i class="fa fa-qq"></i></a>
  609. <a href="#"><i class="fa fa-rss"></i></a>
  610. </div>
  611. </div>
  612. <div class="footer-column">
  613. <h3>快速链接</h3>
  614. <ul class="footer-links">
  615. <li><a href="#about">大赛介绍</a></li>
  616. <li><a href="#schedule">赛程安排</a></li>
  617. <li><a href="#awards">奖项设置</a></li>
  618. <li><a href="#register">在线报名</a></li>
  619. <li><a href="#">参赛指南</a></li>
  620. </ul>
  621. </div>
  622. <div class="footer-column">
  623. <h3>联系我们</h3>
  624. <ul class="footer-links">
  625. <li><i class="fa fa-phone"></i> 010-12345678</li>
  626. <li><i class="fa fa-map-marker"></i> 北京市朝阳区旅游大厦A座1001室</li>
  627. <li><i class="fa fa-clock-o"></i> 工作日 9:00-18:00</li>
  628. </ul>
  629. </div>
  630. <div class="footer-column">
  631. <h3>主办单位</h3>
  632. <p>中国旅游协会</p>
  633. <p>国家旅游局创新中心</p>
  634. <h3 style="margin-top: 20px;">协办单位</h3>
  635. <p>各省市旅游协会</p>
  636. <p>知名旅游企业</p>
  637. </div>
  638. </div>
  639. <div class="copyright">
  640. <p>© 2023 全国旅游创新大赛组委会 版权所有 | 京ICP备12345678号</p>
  641. </div>
  642. </div>
  643. </footer>
  644. <script>
  645. // 初始化轮播图
  646. const swiper = new Swiper('.swiper', {
  647. loop: true,
  648. autoplay: {
  649. delay: 5000,
  650. disableOnInteraction: false,
  651. },
  652. pagination: {
  653. el: '.swiper-pagination',
  654. clickable: true,
  655. },
  656. navigation: {
  657. nextEl: '.swiper-button-next',
  658. prevEl: '.swiper-button-prev',
  659. },
  660. });
  661. // 初始化数据图表
  662. const chartDom = document.getElementById('statsChart');
  663. const myChart = echarts.init(chartDom);
  664. const option = {
  665. tooltip: {
  666. trigger: 'axis',
  667. axisPointer: {
  668. type: 'shadow'
  669. }
  670. },
  671. legend: {
  672. data: ['2020年', '2021年', '2022年']
  673. },
  674. grid: {
  675. left: '3%',
  676. right: '4%',
  677. bottom: '3%',
  678. containLabel: true
  679. },
  680. xAxis: {
  681. type: 'value'
  682. },
  683. yAxis: {
  684. type: 'category',
  685. data: ['报名人数', '参赛项目', '入围复赛', '获奖项目']
  686. },
  687. series: [
  688. {
  689. name: '2020年',
  690. type: 'bar',
  691. stack: 'total',
  692. label: {
  693. show: true
  694. },
  695. emphasis: {
  696. focus: 'series'
  697. },
  698. data: [1256, 892, 120, 20],
  699. itemStyle: {
  700. color: '#3498db'
  701. }
  702. },
  703. {
  704. name: '2021年',
  705. type: 'bar',
  706. stack: 'total',
  707. label: {
  708. show: true
  709. },
  710. emphasis: {
  711. focus: 'series'
  712. },
  713. data: [1873, 1345, 150, 20],
  714. itemStyle: {
  715. color: '#2ecc71'
  716. }
  717. },
  718. {
  719. name: '2022年',
  720. type: 'bar',
  721. stack: 'total',
  722. label: {
  723. show: true
  724. },
  725. emphasis: {
  726. focus: 'series'
  727. },
  728. data: [2432, 1789, 180, 20],
  729. itemStyle: {
  730. color: '#e74c3c'
  731. }
  732. }
  733. ]
  734. };
  735. myChart.setOption(option);
  736. // 表单提交处理
  737. document.getElementById('registrationForm').addEventListener('submit', function(e) {
  738. e.preventDefault();
  739. // 这里可以添加表单验证逻辑
  740. const name = document.getElementById('name').value;
  741. const email = document.getElementById('email').value;
  742. if (!name || !email) {
  743. alert('请填写必填字段');
  744. return;
  745. }
  746. // 模拟表单提交
  747. alert('报名表提交成功!我们将在3个工作日内与您联系。');
  748. this.reset();
  749. 实际应用中这里应该是AJAX请求
  750. fetch('/api/register', {
  751. method: 'POST',
  752. body: new FormData(this)
  753. })
  754. .then(response => response.json())
  755. .then(data => {
  756. alert('报名成功!');
  757. this.reset();
  758. })
  759. .catch(error => {
  760. console.error('Error:', error);
  761. alert('提交失败,请稍后再试');
  762. });
  763. });
  764. // 响应式调整图表大小
  765. window.addEventListener('resize', function() {
  766. myChart.resize();
  767. });
  768. </script>
  769. </body>
  770. </html>