features.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. <template>
  2. <div class="choose-tools">
  3. <h2>解锁PDF Reader Pro无限潜力</h2>
  4. <div ref="myElement" class="tools container" @mouseenter="stopChange" @mouseleave="changeIndex">
  5. <div class="tool" v-for="(item, index) in toolsHeader" :key="index" :class="tool === index ? 'active' : ''" @click="tool = index">
  6. <component :is="item.src" />
  7. {{ item.title }}
  8. </div>
  9. </div>
  10. <div class="detail container" @mouseenter="stopChange" @mouseleave="changeIndex">
  11. <div class="img-container">
  12. <img :src="toolDetails[tool].src" :alt="toolDetails[tool].title">
  13. </div>
  14. <div class="text-container">
  15. <div class="title">{{ toolDetails[tool].title }}</div>
  16. <ul class="des">
  17. <li v-for="(items, index) in toolDetails[tool].des" :key="index">{{ items }}</li>
  18. </ul>
  19. <div class="link">
  20. <a :href="platform.isWindows ? $config.PDFReaderPro + '/zh-cn/windows/download' : $config.PDFReaderPro + '/zh-cn/downloading'" target="_blank" class="free">
  21. <WinWhite v-if="platform.isWindows" />
  22. <MacWhite v-else />
  23. 免费下载
  24. </a>
  25. <a :href="platform.isWindows ? $config.PDFReaderPro + '/zh-cn/windows/store' : $config.PDFReaderPro + '/zh-cn/store'" target="_blank" class="buy">立即购买</a>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </template>
  31. <script>
  32. import Edit from '~/assets/images/PDFReaderPro/tools/edit.svg?inline'
  33. import Converter from '~/assets/images/PDFReaderPro/tools/converter.svg?inline'
  34. import Batch from '~/assets/images/PDFReaderPro/tools/batch.svg?inline'
  35. import Page from '~/assets/images/PDFReaderPro/tools/page.svg?inline'
  36. import Annotation from '~/assets/images/PDFReaderPro/tools/annotation.svg?inline'
  37. import Reader from '~/assets/images/PDFReaderPro/tools/reader.svg?inline'
  38. import Ocr from '~/assets/images/PDFReaderPro/tools/ocr.svg?inline'
  39. import Compare from '~/assets/images/PDFReaderPro/tools/compare.svg?inline'
  40. import Form from '~/assets/images/PDFReaderPro/tools/form.svg?inline'
  41. import MacWhite from '~/assets/images/PDFReaderPro/macWhite.svg?inline'
  42. import WinWhite from '~/assets/images/PDFReaderPro/winWhite.svg?inline'
  43. export default {
  44. components: {
  45. Edit,
  46. Converter,
  47. Batch,
  48. Page,
  49. Annotation,
  50. Reader,
  51. Ocr,
  52. Compare,
  53. Form,
  54. MacWhite,
  55. WinWhite
  56. },
  57. props: {
  58. platform: {
  59. default: {}
  60. },
  61. showBanner: {
  62. default: false
  63. }
  64. },
  65. data() {
  66. return {
  67. tool: 0,
  68. time: null,
  69. scrollLeft: 0,
  70. toolsHeader: [
  71. {
  72. src: 'Edit',
  73. title: '编辑'
  74. },
  75. {
  76. src: 'Converter',
  77. title: '转换'
  78. },
  79. {
  80. src: 'Batch',
  81. title: '批量'
  82. },
  83. {
  84. src: 'Page',
  85. title: '页面'
  86. },
  87. {
  88. src: 'Annotation',
  89. title: '注释'
  90. },
  91. {
  92. src: 'Reader',
  93. title: '阅读'
  94. },
  95. {
  96. src: 'Ocr',
  97. title: 'OCR'
  98. },
  99. {
  100. src: 'Compare',
  101. title: '对比'
  102. },
  103. {
  104. src: 'Form',
  105. title: '表单&签名'
  106. }
  107. ],
  108. toolDetails: [
  109. {
  110. src: '/images/PDFReaderPro/tool/edit.png',
  111. title: '像Word一样编辑PDF',
  112. des: [
  113. '轻松编辑PDF文档中的文本和图像。',
  114. '支持多功能编辑选项,可修改多种属性,创建定制文档。',
  115. '方便地添加、移除或修改PDF文件中的水印和背景。'
  116. ]
  117. },
  118. {
  119. src: '/images/PDFReaderPro/tool/converter.png',
  120. title: '无限制PDF转换',
  121. des: [
  122. '轻松将PDF文件转换为 Office 格式和图像文件。',
  123. '一次性同时转换多个PDF文件,省时省力。',
  124. '享受将PDF转换为各种格式(包括TXT、HTML、RTF 和 CSV)的灵活性。'
  125. ]
  126. },
  127. {
  128. src: '/images/PDFReaderPro/tool/batch.png',
  129. title: '加速工作流程',
  130. des: [
  131. '灵活地批量压缩、合并文档。',
  132. '一次为多个文件批量添加水印、背景、页眉、页脚等。',
  133. '通过设置密码增强安全性,利用批量加密功能有效保护文件。'
  134. ]
  135. },
  136. {
  137. src: '/images/PDFReaderPro/tool/page.png',
  138. title: '高效管理PDF页面 ',
  139. des: [
  140. '轻松合并、拆分或旋转PDF页面,以满足您的独特需求。',
  141. '最小化PDF文件大小,提高存储和共享效率。',
  142. '提取特定的PDF页面,实现精确的内容管理。'
  143. ]
  144. },
  145. {
  146. src: '/images/PDFReaderPro/tool/annotation.png',
  147. title: '多彩个性化注释',
  148. des: [
  149. '快速记笔记、突出显示和插入便签,同时获得最佳查看体验。',
  150. '使用自定义图章、高亮、删除线和下划线对注释进行个性化处理。',
  151. '通过无缝导出功能简化注释管理。'
  152. ]
  153. },
  154. {
  155. src: '/images/PDFReaderPro/tool/reader.png',
  156. title: '体验如临现场的PDF阅读',
  157. des: [
  158. '日间模式/黑暗模式自由切换,享受舒适的阅读体验。',
  159. '使用平滑滚动功能流畅浏览PDF文档。',
  160. '调整页面大小以提高可读性,让自己沉浸在无干扰的阅读中。'
  161. ]
  162. },
  163. {
  164. src: '/images/PDFReaderPro/tool/ocr.png',
  165. title: 'OCR文本识别',
  166. des: [
  167. '利用强大的OCR技术,将扫描的PDF转换成 90 多种语言的可搜索和可编辑文本。',
  168. '从图像中提取文本,轻松实现数据访问,准确率高达 99%。',
  169. '轻松将扫描文档转换为 Word、Excel 或其他可编辑格式。'
  170. ]
  171. },
  172. {
  173. src: '/images/PDFReaderPro/tool/compare.png',
  174. title: 'PDF文档智能对比',
  175. des: [
  176. '并排比较两个PDF文档,快速识别差异。',
  177. '对比多个PDF文档,突出不同并进行叠加显示。',
  178. '轻松突出显示和注释重要信息来修改和参考。'
  179. ]
  180. },
  181. {
  182. src: '/images/PDFReaderPro/tool/form.png',
  183. title: '轻松创建表格和签名',
  184. des: [
  185. '用文本域、复选框、下拉菜单等创建可填写的PDF。',
  186. '轻点几下即可使用个人电子签名签署合同。',
  187. '支持多种格式的签名输入(触控板、键盘、图像)。'
  188. ]
  189. }
  190. ],
  191. scrollLeft: 0
  192. }
  193. },
  194. mounted() {
  195. this.changeIndex()
  196. },
  197. watch: {
  198. showBanner (val) {
  199. if (val) {
  200. this.changeIndex()
  201. } else {
  202. this.stopChange()
  203. }
  204. }
  205. },
  206. methods: {
  207. changeIndex () {
  208. this.time = setInterval(() => {
  209. if (this.tool > 7) {
  210. this.tool = 0
  211. this.scrollLeft = 0
  212. this.$refs.myElement.scrollLeft = 0
  213. } else {
  214. this.tool++
  215. let containerWidth = this.$refs.myElement.clientWidth
  216. if ((this.tool + 1) * 115 > containerWidth) {
  217. this.scrollLeft = this.scrollLeft + 120
  218. }
  219. this.$refs.myElement.scrollLeft = this.scrollLeft
  220. }
  221. }, 5000)
  222. },
  223. stopChange () {
  224. clearInterval(this.time)
  225. }
  226. }
  227. }
  228. </script>
  229. <style lang="scss" scoped>
  230. .choose-tools {
  231. h2 {
  232. margin-top: 100px;
  233. margin-bottom: 40px;
  234. font-family: Source Han Sans CN;
  235. font-size: 36px;
  236. font-weight: 700;
  237. line-height: 56px;
  238. color: #192533;
  239. text-align: center;
  240. }
  241. .tools {
  242. display: flex;
  243. align-items: center;
  244. justify-content: space-between;
  245. padding: 12px 0;
  246. background: linear-gradient(90deg, rgba(245, 247, 250, 0) 0%, #F5F7FA 52.6%, rgba(245, 247, 250, 0) 100%);
  247. margin-bottom: 16px;
  248. overflow-x: auto;
  249. &::-webkit-scrollbar {
  250. scrollbar-width: none; /* Firefox */
  251. -ms-overflow-style: none; /* IE 10+ */
  252. display: none; /* Chrome Safari */
  253. }
  254. .tool {
  255. display: flex;
  256. align-items: center;
  257. justify-content: center;
  258. min-width: 120px;
  259. padding: 8px 20px;
  260. font-family: Source Han Sans CN;
  261. font-size: 18px;
  262. line-height: 28px;
  263. color: #404754;
  264. cursor: pointer;
  265. svg {
  266. margin-right: 4px;
  267. }
  268. &:hover {
  269. font-weight: 700;
  270. color: #0047D6;
  271. }
  272. &.active {
  273. background: #E0EAFF;
  274. font-weight: 700;
  275. color: #0047D6;
  276. border-radius: 8px;
  277. }
  278. }
  279. }
  280. .detail {
  281. display: flex;
  282. align-items: center;
  283. justify-content: space-between;
  284. min-height: 500px;
  285. .img-container {
  286. width: 62%;
  287. img {
  288. width: 100%;
  289. }
  290. }
  291. .text-container {
  292. width: 38%;
  293. .title {
  294. font-family: Source Han Sans CN;
  295. font-size: 28px;
  296. font-weight: 700;
  297. line-height: 44px;
  298. color: #192233;
  299. }
  300. .des {
  301. margin-top: 20px;
  302. li {
  303. font-family: Source Han Sans CN;
  304. font-size: 18px;
  305. line-height: 32px;
  306. color: #232F48;
  307. opacity: .8;
  308. }
  309. li + li {
  310. margin-top: 8px;
  311. }
  312. }
  313. .link {
  314. margin-top: 40px;
  315. display: flex;
  316. a {
  317. width: 148px;
  318. display: flex;
  319. align-items: center;
  320. justify-content: center;
  321. border-radius: 4px;
  322. font-family: Source Han Sans CN;
  323. font-size: 18px;
  324. font-weight: 700;
  325. }
  326. a + a {
  327. margin-left: 16px;
  328. }
  329. .free {
  330. line-height: 44px;
  331. background: #0061F2;
  332. color: #FFFFFF;
  333. &:hover {
  334. background: linear-gradient(0deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),linear-gradient(0deg, #0061F2, #0061F2);
  335. }
  336. svg {
  337. margin-right: 4px;
  338. }
  339. }
  340. .buy {
  341. line-height: 42px;
  342. border: 1px solid #D3D5DB;
  343. color: #192233;
  344. &:hover {
  345. background: linear-gradient(0deg, rgba(0, 97, 242, 0.1), rgba(0, 97, 242, 0.1));
  346. border: 1px solid #0061F266;
  347. color: #0061F2;
  348. }
  349. }
  350. }
  351. }
  352. }
  353. }
  354. @media screen and (max-width: 959px) {
  355. .choose-tools {
  356. h2 {
  357. margin-top: 48px;
  358. margin-bottom: 20px;
  359. font-size: 24px;
  360. line-height: 32px;
  361. }
  362. .tools {
  363. padding: 8px 0;
  364. .tool {
  365. min-width: 115px;
  366. padding: 4px;
  367. font-size: 14px;
  368. line-height: 20px;
  369. svg {
  370. width: 32px;
  371. height: 32px;
  372. }
  373. }
  374. }
  375. .detail {
  376. display: flex;
  377. flex-direction: column-reverse;
  378. min-height: none;
  379. .img-container {
  380. width: 100%;
  381. }
  382. .text-container {
  383. width: 100%;
  384. .title {
  385. font-size: 20px;
  386. line-height: 28px;
  387. text-align: center;
  388. }
  389. .des {
  390. text-align: center;
  391. margin-top: 20px;
  392. li {
  393. font-size: 14px;
  394. line-height: 20px;
  395. color: #232F48;
  396. opacity: .8;
  397. }
  398. li + li {
  399. margin-top: 8px;
  400. }
  401. }
  402. .link {
  403. margin-top: 20px;
  404. display: flex;
  405. justify-content: center;
  406. flex-direction: column;
  407. align-items: center;
  408. a + a {
  409. margin-left: 0px;
  410. margin-top: 16px;
  411. }
  412. }
  413. }
  414. }
  415. }
  416. }
  417. </style>