features.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  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-size: 36px;
  235. font-weight: 700;
  236. line-height: 56px;
  237. color: #192533;
  238. text-align: center;
  239. }
  240. .tools {
  241. display: flex;
  242. align-items: center;
  243. justify-content: space-between;
  244. padding: 12px 0;
  245. background: linear-gradient(90deg, rgba(245, 247, 250, 0) 0%, #F5F7FA 52.6%, rgba(245, 247, 250, 0) 100%);
  246. margin-bottom: 16px;
  247. overflow-x: auto;
  248. &::-webkit-scrollbar {
  249. scrollbar-width: none; /* Firefox */
  250. -ms-overflow-style: none; /* IE 10+ */
  251. display: none; /* Chrome Safari */
  252. }
  253. .tool {
  254. display: flex;
  255. flex-shrink: 0;
  256. align-items: center;
  257. justify-content: center;
  258. min-width: 120px;
  259. padding: 8px 20px;
  260. font-size: 18px;
  261. line-height: 28px;
  262. color: #404754;
  263. cursor: pointer;
  264. svg {
  265. margin-right: 4px;
  266. }
  267. &:hover {
  268. font-weight: 700;
  269. color: #0047D6;
  270. }
  271. &.active {
  272. background: #E0EAFF;
  273. font-weight: 700;
  274. color: #0047D6;
  275. border-radius: 8px;
  276. }
  277. }
  278. }
  279. .detail {
  280. display: flex;
  281. align-items: center;
  282. justify-content: space-between;
  283. min-height: 500px;
  284. .img-container {
  285. width: 62%;
  286. img {
  287. width: 100%;
  288. }
  289. }
  290. .text-container {
  291. width: 38%;
  292. .title {
  293. font-size: 28px;
  294. font-weight: 700;
  295. line-height: 44px;
  296. color: #192233;
  297. }
  298. .des {
  299. margin-top: 20px;
  300. li {
  301. font-size: 18px;
  302. line-height: 32px;
  303. color: #232F48;
  304. opacity: .8;
  305. }
  306. li + li {
  307. margin-top: 8px;
  308. }
  309. }
  310. .link {
  311. margin-top: 40px;
  312. display: flex;
  313. a {
  314. width: 148px;
  315. display: flex;
  316. align-items: center;
  317. justify-content: center;
  318. border-radius: 4px;
  319. font-size: 18px;
  320. font-weight: 700;
  321. }
  322. a + a {
  323. margin-left: 16px;
  324. }
  325. .free {
  326. line-height: 44px;
  327. background: #0061F2;
  328. color: #FFFFFF;
  329. &:hover {
  330. background: linear-gradient(0deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),linear-gradient(0deg, #0061F2, #0061F2);
  331. }
  332. svg {
  333. margin-right: 4px;
  334. }
  335. }
  336. .buy {
  337. line-height: 42px;
  338. border: 1px solid #D3D5DB;
  339. color: #192233;
  340. &:hover {
  341. background: linear-gradient(0deg, rgba(0, 97, 242, 0.1), rgba(0, 97, 242, 0.1));
  342. border: 1px solid #0061F266;
  343. color: #0061F2;
  344. }
  345. }
  346. }
  347. }
  348. }
  349. }
  350. @media screen and (max-width: 959px) {
  351. .choose-tools {
  352. h2 {
  353. margin-top: 48px;
  354. margin-bottom: 20px;
  355. font-size: 24px;
  356. line-height: 32px;
  357. }
  358. .tools {
  359. padding: 8px 0;
  360. .tool {
  361. min-width: 115px;
  362. padding: 4px;
  363. font-size: 14px;
  364. line-height: 20px;
  365. svg {
  366. width: 32px;
  367. height: 32px;
  368. }
  369. }
  370. }
  371. .detail {
  372. display: flex;
  373. flex-direction: column-reverse;
  374. min-height: none;
  375. .img-container {
  376. width: 100%;
  377. }
  378. .text-container {
  379. width: 100%;
  380. .title {
  381. font-size: 20px;
  382. line-height: 28px;
  383. text-align: center;
  384. }
  385. .des {
  386. text-align: center;
  387. margin-top: 20px;
  388. li {
  389. font-size: 14px;
  390. line-height: 20px;
  391. color: #232F48;
  392. opacity: .8;
  393. }
  394. li + li {
  395. margin-top: 8px;
  396. }
  397. }
  398. .link {
  399. margin-top: 20px;
  400. display: flex;
  401. justify-content: center;
  402. flex-direction: column;
  403. align-items: center;
  404. a + a {
  405. margin-left: 0px;
  406. margin-top: 16px;
  407. }
  408. }
  409. }
  410. }
  411. }
  412. }
  413. </style>