index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629
  1. <script lang="ts" setup>
  2. import { ref } from 'vue'
  3. const indexActive = ref(1)
  4. const carousel = ref()
  5. // elementui走马灯组件bug:item只有两个时变换的方向有问题
  6. // fix:多增加一份item,自定义轮播点
  7. const handlerCarouselChange = (cur:number)=> {
  8. if(cur === 1 || cur === 3) {
  9. indexActive.value = 2
  10. }else {
  11. indexActive.value = 1
  12. }
  13. }
  14. </script>
  15. <template>
  16. <div class="page-home">
  17. <no-ssr>
  18. <el-carousel ref="carousel" indicator-position="none" loop height="100vh" @change="handlerCarouselChange">
  19. <el-carousel-item>
  20. <div class="home-banner banner ">
  21. <div class="bg"><img src="~/assets/images/common/pic_home_banner00.png" /></div>
  22. <div class="slogan">
  23. <h2 class="tittle">17PDF Reader</h2>
  24. <h3 class="subtitle">阅轻松·阅简单·阅快捷</h3>
  25. <p class="info">行业领先的阅读引擎,精准快速的格式转换,让移动无纸化办公轻松易行!</p>
  26. <a class="power-sdk" href="https://www.compdf.com?utm_source=anroidapp&utm_medium=17pdfweb&utm_campaign=pdfsdk" target="_blank">由 ComPDFKit 提供技术支持 <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 12.9567L10.714 8.24261L6 3.52856" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg></a>
  27. </div>
  28. </div>
  29. </el-carousel-item>
  30. <el-carousel-item>
  31. <div class="home-banner converter-banner banner">
  32. <div class="slogan">
  33. <h2 class="tittle">在线格式转换</h2>
  34. <h3 class="subtitle">轻松拖拽/一键转档/批量转换</h3>
  35. <p>支持多种常用格式转档,先进的转换引擎,精准快速,超乎想象。</p>
  36. <a href="/converter">立即体验</a>
  37. </div>
  38. <div class="bg"><img src="~/assets/images/common/pic_home_banner02.png" /></div>
  39. </div>
  40. </el-carousel-item>
  41. <el-carousel-item>
  42. <div class="home-banner banner">
  43. <div class="bg"><img src="~/assets/images/common/pic_home_banner00.png" /></div>
  44. <div class="slogan">
  45. <h2 class="tittle">17PDF Reader</h2>
  46. <h3 class="subtitle">阅轻松·阅简单·阅快捷</h3>
  47. <p class="info">行业领先的阅读引擎,精准快速的格式转换,让移动无纸化办公轻松易行!</p>
  48. <a class="power-sdk" href="https://www.compdf.com?utm_source=anroidapp&utm_medium=17pdfweb&utm_campaign=pdfsdk" target="_blank">由 ComPDFKit 提供技术支持 <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 12.9567L10.714 8.24261L6 3.52856" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg></a>
  49. </div>
  50. </div>
  51. </el-carousel-item>
  52. <el-carousel-item>
  53. <div class="home-banner converter-banner banner">
  54. <div class="slogan">
  55. <h2 class="tittle">在线格式转换</h2>
  56. <h3 class="subtitle">轻松拖拽/一键转档/批量转换</h3>
  57. <p>支持多种常用格式转档,先进的转换引擎,精准快速,超乎想象。</p>
  58. <a href="/converter">立即体验</a>
  59. </div>
  60. <div class="bg"><img src="~/assets/images/common/pic_home_banner02.png" /></div>
  61. </div>
  62. </el-carousel-item>
  63. </el-carousel>
  64. </no-ssr>
  65. <!-- 自定义轮播点 -->
  66. <ul class="indicators">
  67. <li v-for="index in 2" :key="index" :class="index === indexActive?'is-active':''" class="indicator">
  68. </li>
  69. </ul>
  70. <div class="home_info">
  71. <div class="item white">
  72. <div class="left"><img src="http://cn-file.17pdf.com/website/home/pic_home_file_converter.png" /></div>
  73. <div class="right">
  74. <div class="cotent">
  75. <h3>格式转换</h3>
  76. <p>PDF高效格式转换,支持PDF to Word、PPT、Excel、TXT、JPG/PNG,一键转档,批量转换,突破格式壁垒。</p>
  77. <a href="/converter">立即使用</a>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="home_function">
  83. <h3>更多强大功能 · 助力效率提升</h3>
  84. <ul class="clear">
  85. <li>
  86. <div class="list">
  87. <img src="http://cn-file.17pdf.com/website/home/ic_home_more_eyes.png" />
  88. <div class="wrap">
  89. <h4>文件阅读</h4>
  90. <p>优质的阅读引擎带来流畅、稳定的阅读体验,轻松阅读无干扰。</p>
  91. </div>
  92. </div>
  93. </li>
  94. <li>
  95. <div class="list">
  96. <img src="http://cn-file.17pdf.com/website/home/ic_home_more_mark.png" />
  97. <div class="wrap">
  98. <h4>文件注释</h4>
  99. <p>支持高亮、下划线、波浪线、手写等注释方式,可插入图片及语音笔记。</p>
  100. </div>
  101. </div>
  102. </li>
  103. <li>
  104. <div class="list">
  105. <img src="http://cn-file.17pdf.com/website/home/ic_home_more_manage.png" />
  106. <div class="wrap">
  107. <h4>文件管理</h4>
  108. <p>文件移动复制、压缩删除,PDF文件密码保护,并可将PDF文件生成链接方便分享。</p>
  109. </div>
  110. </div>
  111. </li>
  112. <li>
  113. <div class="list">
  114. <img src="http://cn-file.17pdf.com/website/home/ic_home_more_edit.png" />
  115. <div class="wrap">
  116. <h4>页面编辑</h4>
  117. <p>可将PDF任意页面进行删除、旋转、排序、拆分并另存为新的PDF,还能对多个PDF文件进行合并。</p>
  118. </div>
  119. </div>
  120. </li>
  121. <li>
  122. <div class="list">
  123. <img src="http://cn-file.17pdf.com/website/home/ic_home_moer_mode.png" />
  124. <div class="wrap">
  125. <h4>阅读模式</h4>
  126. <p>日间模式/夜间模式/护眼模式自由切换,缓解视觉疲劳。</p>
  127. </div>
  128. </div>
  129. </li>
  130. <li>
  131. <div class="list">
  132. <img src="http://cn-file.17pdf.com/website/home/ic_home_more_search.png" />
  133. <div class="wrap">
  134. <h4>搜索索引</h4>
  135. <p>从PDF文档中提取、选择、搜索和检索文本,以最快的速度搜索索引PDF文本信息。</p>
  136. </div>
  137. </div>
  138. </li>
  139. <li>
  140. <div class="list">
  141. <img src="http://cn-file.17pdf.com/website/home/ic_home_more_scan.png" />
  142. <div class="wrap">
  143. <h4>文件扫描</h4>
  144. <p>支持拍照扫描文件、图片并保存为PDF文件,可调整图片边缘及使用滤镜,抠图精准。</p>
  145. </div>
  146. </div>
  147. </li>
  148. <li>
  149. <div class="list">
  150. <img src="http://cn-file.17pdf.com/website/home/ic_home_more_read.png" />
  151. <div class="wrap">
  152. <h4>文件朗读</h4>
  153. <p>支持文字转语音(TTS),朗读PDF文件内容,解放双眼,让耳朵“读”文件。</p>
  154. </div>
  155. </div>
  156. </li>
  157. </ul>
  158. </div>
  159. <div class="home_user_say">
  160. <h3>5年口碑 · 品质之选</h3>
  161. <no-ssr>
  162. <el-carousel class="user_say_carousel">
  163. <el-carousel-item class="item">
  164. <ul class="clear">
  165. <li>
  166. <img src="http://cn-file.17pdf.com/website/home/pic_home_head_01.png" /><span>Leon Reed</span>
  167. <p>绝对是最好用的PDF阅读器,没有之一,强力推荐!</p>
  168. <div>---来自百度的用户说</div>
  169. </li>
  170. <li>
  171. <img src="http://cn-file.17pdf.com/website/home/pic_home_head_02.png" /><span>Ella Pope</span>
  172. <p>支持切白边,没广告,好用!</p>
  173. <div>---来自VIVO的用户说</div>
  174. </li>
  175. <li>
  176. <img src="http://cn-file.17pdf.com/website/home/pic_home_head_03.png" /><span>tube244</span>
  177. <p>用着很方便,可以横屏,比iReader好。</p>
  178. <div>---来自OPPO的用户说</div>
  179. </li>
  180. </ul>
  181. </el-carousel-item>
  182. <el-carousel-item class="item">
  183. <ul class="clear">
  184. <li>
  185. <img src="http://cn-file.17pdf.com/website/home/pic_home_head_04.png" /><span>lemo</span>
  186. <p>解压功能非常好,谷歌风设计,流畅,读书方便。</p>
  187. <div>---来自360的用户说</div>
  188. </li>
  189. <li>
  190. <img src="http://cn-file.17pdf.com/website/home/pic_home_head_05.png" /><span>wing 。</span>
  191. <p>真的适合学习勾画重点呀。赞!</p>
  192. <div>---来自华为的用户说</div>
  193. </li>
  194. <li>
  195. <img src="http://cn-file.17pdf.com/website/home/pic_home_head_06.png" /><span>378java</span>
  196. <p>格式转档功能非常强大,是刚需!</p>
  197. <div>---来自小米的用户说</div>
  198. </li>
  199. </ul>
  200. </el-carousel-item>
  201. <el-carousel-item class="item">
  202. <ul class="clear">
  203. <li>
  204. <img src="http://cn-file.17pdf.com/website/home/pic_home_head_01.png" /><span>Leon Reed</span>
  205. <p>绝对是最好用的PDF阅读器,没有之一,强力推荐!</p>
  206. <div>---来自百度的用户说</div>
  207. </li>
  208. <li>
  209. <img src="http://cn-file.17pdf.com/website/home/pic_home_head_02.png" /><span>Ella Pope</span>
  210. <p>支持切白边,没广告,好用!</p>
  211. <div>---来自VIVO的用户说</div>
  212. </li>
  213. <li>
  214. <img src="http://cn-file.17pdf.com/website/home/pic_home_head_03.png" /><span>tube244</span>
  215. <p>用着很方便,可以横屏,比iReader好。</p>
  216. <div>---来自OPPO的用户说</div>
  217. </li>
  218. </ul>
  219. </el-carousel-item>
  220. <el-carousel-item class="item">
  221. <ul class="clear">
  222. <li>
  223. <img src="http://cn-file.17pdf.com/website/home/pic_home_head_04.png" /><span>lemo</span>
  224. <p>解压功能非常好,谷歌风设计,流畅,读书方便。</p>
  225. <div>---来自360的用户说</div>
  226. </li>
  227. <li>
  228. <img src="http://cn-file.17pdf.com/website/home/pic_home_head_05.png" /><span>wing 。</span>
  229. <p>真的适合学习勾画重点呀。赞!</p>
  230. <div>---来自华为的用户说</div>
  231. </li>
  232. <li>
  233. <img src="http://cn-file.17pdf.com/website/home/pic_home_head_06.png" /><span>378java</span>
  234. <p>格式转档功能非常强大,是刚需!</p>
  235. <div>---来自小米的用户说</div>
  236. </li>
  237. </ul>
  238. </el-carousel-item>
  239. </el-carousel>
  240. </no-ssr>
  241. </div>
  242. <div class="free_signup">
  243. <p>开启17PDF Reader高效办公学习旅程</p>
  244. <span>现在注册即送10张格式转换券!</span>
  245. <a>立即注册</a>
  246. </div>
  247. </div>
  248. </template>
  249. <style lang="scss">
  250. .page-home {
  251. position: relative;
  252. z-index: 1;
  253. top: -80px;
  254. margin-bottom: -80px;
  255. .el-carousel {
  256. border-bottom: 1px solid #dcdcdc;
  257. .el-carousel__arrow {
  258. display: none;
  259. }
  260. }
  261. .home_banner_wrap{
  262. border-bottom: 1px solid #dcdcdc;
  263. position: relative;
  264. top: -80px;
  265. z-index: 1;
  266. }
  267. .home-banner {
  268. display: flex;
  269. height: 100%;
  270. width: 100%;
  271. cursor: pointer;
  272. background:rgb(240,241,243);
  273. .bg{
  274. height: 100%;
  275. width: 50%;
  276. img{
  277. width: 100%;
  278. max-width: 770px;
  279. margin-top: 28%;
  280. }
  281. }
  282. .slogan {
  283. padding-top: 19%;
  284. padding-left: 70px;
  285. width: 50%;
  286. .tittle {
  287. color: rgb(26, 26, 26);
  288. font-size: 68px;
  289. padding-bottom: 10px;
  290. font-weight: normal;
  291. }
  292. .subtitle {
  293. color: rgb(77, 77, 77);
  294. font-size: 33px;
  295. }
  296. .info {
  297. color: rgb(77, 77, 77);
  298. opacity: 0.8;
  299. font-size: 22px;
  300. padding-top: 10px;
  301. max-width: 450px;
  302. }
  303. .power-sdk {
  304. display: flex;
  305. align-items: center;
  306. margin-top: 20px;
  307. color: #4D4D4D;
  308. font-size: 16px;
  309. line-height: 22px;
  310. font-weight: 600;
  311. svg {
  312. margin-left: 8px;
  313. }
  314. &:hover {
  315. color: #FF4F4F;
  316. text-decoration: underline;
  317. }
  318. }
  319. .home-btn {
  320. background-color: rgb(255, 255, 255);
  321. font-size: 18px;
  322. padding: 8px 38px;
  323. margin-top: 35px;
  324. position: absolute;
  325. border-radius: 4px;
  326. a {
  327. color: rgb(235, 64, 26);
  328. &:hover, &:active {
  329. text-decoration: none;
  330. }
  331. }
  332. &:hover {
  333. background-color: #FFE8E8;
  334. }
  335. }
  336. }
  337. }
  338. .indicators {
  339. display: flex;
  340. justify-content: center;
  341. position: relative;
  342. align-items: center;
  343. bottom: 45px;
  344. z-index: 3;
  345. .indicator {
  346. width: 10px;
  347. height: 10px;
  348. margin-left: 5px;
  349. background-color: white;
  350. border-radius: 10px;
  351. border: 1px solid rgba(0,0,0,0.87);
  352. &.is-active {
  353. width: 12px;
  354. height: 12px;
  355. border-radius: 12px;
  356. background-color: black;
  357. }
  358. }
  359. }
  360. .converter-banner {
  361. cursor: pointer;
  362. background-color: #fff;
  363. .bg {
  364. text-align: right;
  365. }
  366. .slogan {
  367. max-width: 470px;
  368. padding: 19% 0px 0px;
  369. margin-left: 12%;
  370. .tittle {
  371. font-size: 48px;
  372. color: rgb(51,51,51);
  373. margin:0px;
  374. font-weight: normal;
  375. padding-bottom: 0px;
  376. }
  377. .subtitle{
  378. font-size: 32px;
  379. color: rgb(77,77,77);
  380. margin: 30px 0px 12px;
  381. }
  382. p{
  383. font-size: 24px;
  384. color: rgb(77,77,77);
  385. }
  386. a{
  387. width: 160px;
  388. height: 52px;
  389. background: rgb(255,79,79);
  390. color: #fff;
  391. font-size: 24px;
  392. border-radius: 4px;
  393. display: block;
  394. margin-top: 48px;
  395. line-height: 52px;
  396. text-align: center;
  397. &:hover{
  398. background:rgba(255,79,79,0.9);
  399. }
  400. }
  401. }
  402. .bg img {
  403. margin-top: 26%;
  404. }
  405. }
  406. .home_info{
  407. width: 100%;
  408. .item{
  409. height: 418px;
  410. padding:0px 10%;
  411. text-align: center;
  412. .right{
  413. width: 50%;
  414. float: left;
  415. }
  416. .left{
  417. width: 50%;
  418. float: left;
  419. }
  420. img{
  421. width: 394px;
  422. margin-top: 75px;
  423. }
  424. .cotent{
  425. width: 394px;
  426. display: inline-block;
  427. h3{
  428. font-size: 36px;
  429. color: rgba(0,0,0,0.87);
  430. margin:126px 0px 16px;
  431. text-align: left;
  432. }
  433. p{
  434. font-size: 18px;
  435. color: rgba(0,0,0,0.87);
  436. text-align: left;
  437. }
  438. a{
  439. font-size: 18px;
  440. display: block;
  441. color: rgb(255,79,79);
  442. width: 124px;
  443. height: 40px;
  444. border:1px solid rgb(255,79,79);
  445. border-radius: 4px;
  446. line-height: 40px;
  447. margin-top: 32px;
  448. &:hover{
  449. background: rgb(255,79,79);
  450. color: #fff;
  451. }
  452. }
  453. }
  454. &.white{
  455. background: #fff;
  456. }
  457. &.gray{
  458. background: rgb(250,250,250);
  459. }
  460. }
  461. }
  462. .home_function{
  463. width: 100%;
  464. background-color: #fafafa;
  465. h3{
  466. height: 50px;
  467. line-height: 50px;
  468. margin-bottom: 100px;
  469. padding-top: 70px;
  470. font-size: 36px;
  471. color: rgb(51,51,51);
  472. text-align: center;
  473. }
  474. ul{
  475. padding:0px 10%;
  476. margin: 0;
  477. &::after {
  478. visibility: hidden;
  479. display: block;
  480. font-size: 0;
  481. content: " ";
  482. clear: both;
  483. height: 0;
  484. }
  485. li{
  486. list-style: none;
  487. height: 110px;
  488. width: 50%;
  489. float: left;
  490. margin-bottom: 20px;
  491. text-align: center;
  492. .list{
  493. width: 460px;
  494. display: inline-block;
  495. }
  496. img{
  497. float: left;
  498. width: 96px;
  499. height: 96px;
  500. }
  501. .wrap{
  502. max-width:324px;
  503. float: left;
  504. margin-left: 40px;
  505. h4{
  506. font-size: 24px;
  507. color: rgba(0,0,0,0.87);
  508. margin: 6px 0px 6px;
  509. text-align: left;
  510. }
  511. p{
  512. font-size: 16px;
  513. line-height: 24px;
  514. color: rgb(102,102,102);
  515. text-align: left;
  516. }
  517. }
  518. }
  519. }
  520. }
  521. .home_user_say{
  522. padding-top: 40px;
  523. h3{
  524. font-size: 36px;
  525. color: rgb(51,51,51);
  526. height: 50px;
  527. line-height: 50px;
  528. text-align: center;
  529. margin: 0;
  530. }
  531. .user_say_carousel{
  532. width: 100%;
  533. .item{
  534. ul{
  535. padding-top: 40px;
  536. width: 100%;
  537. min-width: 1240px;
  538. height: 100%;
  539. text-align: center;
  540. font-size: 0;
  541. li + li {
  542. margin-left: 107px;
  543. }
  544. li{
  545. position: relative;
  546. list-style: none;
  547. width: 298px;
  548. height: 160px;
  549. display: inline-block;
  550. border-radius:4px;
  551. box-shadow:1px 1px 6px 0px rgba(153,153,153,0.3);
  552. background: #fff;
  553. padding: 23px 14px 0px;
  554. text-align: left;
  555. vertical-align: top;
  556. img{
  557. margin-right: 12px;
  558. width: 42px;
  559. height: 42px;
  560. display: inline;
  561. border-radius: 20px;
  562. }
  563. span{
  564. font-size: 14px;
  565. color: rgb(51,51,51);
  566. }
  567. p{
  568. padding: 8px 0px 12px;
  569. font-size: 16px;
  570. line-height: 26px;
  571. color: rgb(51,51,51);
  572. text-align: left;
  573. }
  574. div{
  575. position: absolute;
  576. right: 14px;
  577. bottom: 23px;
  578. font-size: 14px;
  579. color: rgb(102,102,102);
  580. text-align: right;
  581. }
  582. }
  583. }
  584. }
  585. .el-carousel__indicators {
  586. display: none;
  587. }
  588. }
  589. }
  590. .free_signup{
  591. width: 100%;
  592. height: 359px;
  593. background: url(http://cn-file.17pdf.com/website/home/pic_home_bg.png) no-repeat;
  594. background-size: 100% 100%;
  595. color: #fff;
  596. text-align: center;
  597. margin-bottom: -2px;
  598. p{
  599. font-size: 36px;
  600. padding:96px 0px 10px;
  601. }
  602. span{
  603. display: block;
  604. margin-bottom: 30px;
  605. font-size: 22px;
  606. opacity:0.7;
  607. }
  608. a{
  609. width: 200px;
  610. height: 48px;
  611. background: rgb(255,79,79);
  612. color: #fff;
  613. display: inline-block;
  614. border-radius: 8px;
  615. line-height: 48px;
  616. font-size: 18px;
  617. outline: none;
  618. &:hover{
  619. background: rgb(243,69,69);
  620. }
  621. }
  622. }
  623. }
  624. </style>