converter.vue 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254
  1. <template>
  2. <div class="page-converter">
  3. <div class="date-tips flex content-center justify-center py-6px">
  4. <img src="http://cn-file.17pdf.com/website/common/ic_notice.svg" class="align-middle">
  5. <div class="text-container">
  6. <span class="text">
  7. 转档后的文件支持在云端保留24小时<span v-if="userInfo.name">,<span v-if="userInfo?.subscriberType === 1">会员尊享5G容量,</span>请在24小时内下载文件至本地永久保存</span>
  8. </span>
  9. <span v-if="userInfo?.subscriberType === 1" class="vip tip">
  10. <img src="http://cn-file.17pdf.com/website/common/ic_info.svg" alt="">
  11. <div class="tip-text">
  12. 若已有文件大小超出5G,将按转档时间计算(从最近一次转档往过去推算),即保留最近的5G容量文件,超出部分文件将不再保留
  13. </div>
  14. </span>
  15. </div>
  16. </div>
  17. <h1 class="text-48px text-opacity-100 font-500 text-[#3333] mt-48px mb-10px text-center">文件转换器</h1>
  18. <h2 class="text-20px text-center text-[#666] mt-20px font-normal">PDF文件格式转换器,一键转档,支持批量转换,精准快速。</h2>
  19. <div class="text-center mb-80px">
  20. <a
  21. class="mt-20px text-[#4D4D4D] text-16px font-600 inline-flex items-center leading-22px hover:text-$btn-color-primary hover:underline"
  22. href="https://www.compdf.com/pdf-conversion-sdk?utm_source=anroidapp&utm_medium=17pdfweb&utm_campaign=pdfsdk" target="_blank">由 ComPDFKit Conversion SDK 提供技术支持
  23. <svg class="ml-8px" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
  24. <path d="M6 12.9567L10.714 8.24261L6 3.52856" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
  25. </svg>
  26. </a>
  27. </div>
  28. <div class="transfer-container-wrap">
  29. <div class="index-converter w-[80%] h-700px relative top-0 left-[50%] -ml-[40%]">
  30. <div class="transfer-container absolute w-full h-auto my-0 -mx-15px bg-white pb-60px">
  31. <button type="button" class="close hidden" data-dismiss="modal" aria-label="Close">
  32. <span aria-hidden="true">×</span>
  33. </button>
  34. <div class="recharge py-0 px-[10%] h-48px mx-0 mt-24px mb-14px absolute right-0 -top-70px z-2">
  35. <span @click="handlSubmit($event, 'buy')" class="recharge-btn float-right bg-white border border-[#ff4f4f] boder-solid text-16px py-7px px-18px rounded-4px mt-4px cursor-pointer hover:bg-[#ff4f4f]">
  36. <a class="text-[#ff4f4f] no-underline leading-normal">充值</a>
  37. </span>
  38. <div class="need-volume float-right right-48px text-16px text-[#666] leading-48px mr-20px">
  39. 所需券:
  40. <span class="text-[#0dd299] text-16px" :class="{'text-red-500': requiredCoupon > userInfo?.points}">
  41. {{ requiredCoupon }}券
  42. </span>
  43. / 剩余券:
  44. <span class="text-[#0dd299] text-16px">
  45. {{ Object.keys(this.userInfo).length === 0 ? 0 : userInfo.points }}券
  46. </span>
  47. </div>
  48. </div>
  49. <div class="transfer-panel">
  50. <div>
  51. <form enctype="multipart/form-data">
  52. <input type="hidden" name="folder" value="converter/input"/>
  53. <!-- 转档框 -->
  54. <div class="file-input theme-explorer file-input-ajax-new h-380px mt-17px py-0 px-[10%]">
  55. <div class="file-preview rounded-5px w-[100%] h-[100%]">
  56. <div ref="drag" @drop="handleEvent" @dragleave="handleEvent" @dragenter="handleEvent" @dragover="handleEvent"
  57. class="file-drop-zone border border-dashed border-[#d1d1d1] rounded-4px h-[100%] text-center align-middle overflow-y-auto">
  58. <div v-show="fileList.length <= 0" class="file-drop-zone-title text-[#999] text-16px leading-[1.428571429] pt-222px cursor-default">
  59. <div></div>
  60. 点击从电脑上传文件或把文件拖到这里
  61. <p class="text-14px leading-[1.428571429]">(支持PDF to Word、PPT、Excel、TXT、JPG/PNG无限次数转换)</p>
  62. </div>
  63. <table id="table-fileinput" class="table table-hover w-[100%] max-w-[100%]">
  64. <thead v-show="fileList.length > 0">
  65. <tr class="h-40px bg-[#eee]">
  66. <th class="!w-[5.5%]"></th>
  67. <th class="!text-left w-[40.5%]">文档名</th>
  68. <th class="!w-[13%]">大小</th>
  69. <th class="!w-[13%]">所需券</th>
  70. <th class="!w-[9.5%]">转为</th>
  71. <th class="!w-[13%]">状态</th>
  72. <th class="!w-[4.5%]"></th>
  73. </tr>
  74. </thead>
  75. <tbody v-show="fileList.length > 0" class="file-preview-thumbnails cursor-default">
  76. <tr v-for="(item, index) in fileList" id="preview-1668340925733-0" :key="index" class="file-preview-frame explorer-frame kv-preview-thumb w-100px h-38px hover:bg-[#f5f5f5]" data-fileindex="0" data-template="pdf" :title="item.name">
  77. <td class="file-details-cell">{{ index+1 }}</td>
  78. <td class="file-details-cell !text-left">
  79. <div class="explorer-caption max-w-260px truncate block text-[#777]" :title="item.name">{{ item.name }}</div>
  80. </td>
  81. <td class="file-details-cell text-[#999]">{{ getfilesize(item.size) }}</td>
  82. <td class="file-details-cell points">{{ userInfo?.subscriberType === 1 ? 0 : item.price }}</td>
  83. <td class="file-details-cell select w-106px">
  84. <select v-show="item.status !== 6" v-model="item.output" class="transfer-select appearance-none text-center min-w-90px" @change="changeOutput(item, index)" :disabled =" !changeFileFlag">
  85. <option value="docx" class="text-center">DOCX</option>
  86. <option value="pptx" class="text-center">PPTX</option>
  87. <option value="xlsx" class="text-center">XLSX</option>
  88. <option value="txt" class="text-center">TXT</option>
  89. <option value="jpg" class="text-center">JPG</option>
  90. <option value="png" class="text-center">PNG</option>
  91. </select>
  92. <span v-show="item.status == 6">{{ item.output.toUpperCase() }}</span>
  93. </td>
  94. <td class="file-details-cell state text-14px text-[#878787]" v-html="fileStatus(item, index)"></td>
  95. <!-- <td v-else class="file-details-cell state text-14px text-red-500">转换失败<img src="/converter/menu_ic_pdfconvert.png" @click="rechangeFile" /></td> -->
  96. <td class="file-actions-cell w-50px p-0">
  97. <div class="file-actions text-center">
  98. <div class="file-footer-buttons" @click="deleteFile(index,item)" v-if="changeFileFlag">
  99. <button type="button" class="kv-file-remove btn btn-xs btn-default bg-inherit !border-none pr-7px py-1px pl-5px text-12px leading-normal rounded-3px" title="删除文件"><i class="pdf-removeicon"></i></button>
  100. </div>
  101. </div>
  102. </td>
  103. </tr>
  104. </tbody>
  105. </table>
  106. <div class="clearfix"></div>
  107. <div class="file-preview-status text-success text-center text-[#3c763d]"></div>
  108. </div>
  109. </div>
  110. <div class="kv-upload-progress hide">
  111. <div class="progress overflow-hidden h-20px mb-20px bg-[#f5f5f5] rounded-4px ring-inset-2 ring-[rgba(0,0,0/10%)]">
  112. <div class="progress-bar progress-bar-success progress-bar-striped active w-0 bg-[#5cb85c]" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
  113. 0%
  114. </div>
  115. </div>
  116. </div>
  117. <div class="input-group file-caption-main w-[100%] -top-450px relative table border-separate">
  118. <div v-show="changeFileFlag" class="input-group-btn relative text-0px whitespace-nowrap !flex">
  119. <div tabindex="500" class="btn btn-file" :class="{'btn-file-left' : fileList.length > 0}" v-if="changeFileFlag">
  120. <div class="add-file" :class="{'add-file-left':(fileList.length > 0)}">
  121. {{ fileList.length > 0 ? '添加文件' : '' }}
  122. </div>
  123. <!-- 未登录时 -->
  124. <input id="fileinput-explorer" ref="file" name="file" accept=".pdf" title="上传文件" type="file" multiple=""
  125. class="absolute top-0 right-0 p-0 m-0 min-w-[100%] h-[100%] w-90px text-right opacity-0 bg-none bg-repeat bg-scroll block outline-none border-0 cursor-not-allowed"
  126. :disabled='true' v-if = " showInputDisable "/>
  127. <!-- 登录 -->
  128. <input id="fileinput-explorer" ref="file" name="file" accept=".pdf" title="上传文件" type="file" multiple=""
  129. class="absolute top-0 right-0 p-0 m-0 min-w-[100%] h-[100%] w-90px text-right opacity-0 bg-none bg-repeat bg-scroll block outline-none border-0 cursor-pointer"
  130. @change="addFile($event)" @click="handlSubmit($event, '')" v-if = " !showInputDisable "/>
  131. </div>
  132. <div v-show="fileList.length > 0 && changeFileFlag" class="inline-block ml-30px bg-white border border-[#ff4f4f] boder-solid text-16px py-7px px-18px rounded-4px mt-4px cursor-pointer text-[#ff4f4f] leading-normal hover:bg-[#ff4f4f] hover:text-white"
  133. @click="deleteAllFile">清空</div>
  134. </div>
  135. </div>
  136. </div>
  137. </form>
  138. </div>
  139. <div class="transfer-btn mt-30px h-64px text-center">
  140. <div class="cursor-not-allowed inline-block">
  141. <span :class="{'disabledBtn' : !checkbox || !changeFileFlag||fileList.length === 0 }" class="btn transfer-start-btn bg-[#ff524f] text-20px py-0 px-150px rounded-4px h-60px w-386px text-white hover:bg-[#f34545]"
  142. @click="handlSubmit($event, 'change')">
  143. <a class="text-white leading-60px">{{ !changeFileFlag ? '转换中...' : '开始转换' }}</a>
  144. <span v-show="!changeFileFlag" class="loading"></span>
  145. </span>
  146. </div>
  147. <span class="hide btn btn-down small w-240px h-60px bg-[#0dd299] rounded-4px text-20px ml-15px hover:bg-[#0fc993]"><a class="leading-60px text-white">下载全部</a></span>
  148. </div>
  149. </div>
  150. <div class="transfer-remember mt-23px text-center">
  151. <div class="checkbox checkbox-danger relative block mt-10px mb-10px">
  152. <label for="remember" class="text-12px font-normal text-[#999] min-h-20px pl-20px mb-0 inline-block max-w-[100%]">
  153. <input v-model="checkbox" type="checkbox" name="remember" class="remember_pass cursor-pointer" :disabled="!changeFileFlag" :class="{'cursor-not-allowed' : !changeFileFlag }" />确保上传的文档不涉及版权问题及违法内容
  154. </label>
  155. </div>
  156. </div>
  157. </div>
  158. <div class="modal verifi-modal top-[20%!important]" d="verifiPayModal" tabindex="-1" role="dialog" aria-labelledby="verifiPayModal">
  159. <div class="modal-dialog verifi-dialog w-480px h-426px my-50px" role="document">
  160. <div class="modal-content relative bg-white rounded-6px border border-solid border-[rgba(0,0,0,0.2)] outline-0 bg-clip-padding ring-[rgba(0,0,0/50%)] ring-offseet-3px ring-9px md:ring-offset-5 md:ring-15px">
  161. <div class="">
  162. <button id="verifi-close" type="button" class="close pompt_close py-5px px-10px outline-none" data-dismiss="modal" aria-label="Close">
  163. <span aria-hidden="true">×</span>
  164. </button>
  165. </div>
  166. <div class="verifi-content text-center pt-60px px-0 pb-35px">
  167. <img src="http://cn-file.17pdf.com/website/converter/pic_trans_diomands.png"/>
  168. <p>该功能为付费套餐专属</p>
  169. <p>订阅解锁更多特权</p>
  170. <a href="javascript:;" class="now_pricing" value="0"
  171. >立即订阅</a
  172. >
  173. </div>
  174. </div>
  175. </div>
  176. </div>
  177. </div>
  178. <div class="file_num w-[100%] h-120px text-center text-white leading-120px text-30px mb-76px">
  179. 17PDF Reader,当前已转换了<span class="text-32px"> 1,859,726 </span> 个文件
  180. </div>
  181. <div id="more_type" class="pdf_converter clear w-[80%] my-0 mx-auto">
  182. <div class="package_type">
  183. <h3 class="text-24px text-[#333] font-normal mx-0 mt-0 mb-49px h-30px leading-30px">会员专享格式</h3>
  184. <ul class="flex justify-center w-[100%] min-w-340px p-0 mt-0 mb-10">
  185. <li>
  186. <a href=' /converter?type=docx'>
  187. <img src="/converter/ic_pdf_word.png" />
  188. <span>PDF To Word</span>
  189. </a>
  190. </li>
  191. <li>
  192. <a href=' /converter?type=pptx'>
  193. <img src="/converter/ic_pdf_ppt.png"/>
  194. <span>PDF to PowerPoint</span>
  195. </a>
  196. </li>
  197. <li>
  198. <a href=' /converter?type=xlsx'>
  199. <img src="/converter/ic_pdf_execl.png"/>
  200. <span>PDF to EXCEL</span>
  201. </a>
  202. </li>
  203. <li>
  204. <a href=' /converter?type=txt'>
  205. <img src="/converter/ic_pdf_txt.png" />
  206. <span>PDF to TXT</span>
  207. </a>
  208. </li>
  209. <li>
  210. <a href=' /converter?type=jpg'>
  211. <img src="/converter/imagePDFtoJPG.png" />
  212. <span>PDF to JPG</span>
  213. </a>
  214. </li>
  215. <li>
  216. <a href=' /converter?type=png'>
  217. <img src="/converter/pngPDFtoPNG.png" />
  218. <span>PDF to PNG</span>
  219. </a>
  220. </li>
  221. </ul>
  222. </div>
  223. </div>
  224. <div class="about_converter w-[100%] bg-[#fafafa] py-60px px-[10%] mt-102px">
  225. <h3 class="name text-24px text-[#333] font-normal mx-0 mt-0 mb-49px h-30px leading-30px">关于转档</h3>
  226. <ul class="clear p-0">
  227. <li>
  228. <img src="http://cn-file.17pdf.com/website/converter/ic_way.png" />
  229. <div class="content">
  230. <h3>如何转档</h3>
  231. <p>
  232. 进入“文件转换器”区域。点击下方“添加文件”选择添加本地目标文件,然后在“转为”栏选择转换目标格式,最后点击“开始转换”即可。
  233. </p>
  234. </div>
  235. </li>
  236. <li>
  237. <img
  238. src="http://cn-file.17pdf.com/website/converter/ic_quality.png"
  239. />
  240. <div class="content">
  241. <h3>领先品质</h3>
  242. <p>
  243. 行业领先的转换品质,经过转换的文件版面清晰、保持格式的一致,支持一键转档,批量转换,精准快速的文件格式转换,稳定的转换品质,是您处理转格式转换的首选。
  244. </p>
  245. </div>
  246. </li>
  247. <li>
  248. <img src="http://cn-file.17pdf.com/website/converter/ic_safe.png" />
  249. <div class="content">
  250. <h3>文件安全</h3>
  251. <p>
  252. 我们尊重每位用户的隐私信息和文件安全。转档后的文件仅在云端保留24小时,让您免去后顾之忧。
  253. </p>
  254. </div>
  255. </li>
  256. <li>
  257. <img src="http://cn-file.17pdf.com/website/converter/ic_more.png" />
  258. <div class="content">
  259. <h3>多平台支持</h3>
  260. <p>
  261. 文件格式转换器可以在所有计算机(Mac、Windows及Linux)上使用,也可下载App
  262. 17PDF Reader在移动端使用,让您在手机上也能轻松转档文件。
  263. </p>
  264. </div>
  265. </li>
  266. </ul>
  267. </div>
  268. <div class="converter_question px-[10%] pt-76px pb-60px text-center">
  269. <h3 class="name text-24px text-[#333] font-normal m-0 h-30px leading-30px text-left">常见问题</h3>
  270. <table class="w-[100%] p-0 bg-transparent">
  271. <tbody>
  272. <tr>
  273. <td>
  274. <h3>1. 支持哪些格式转换?</h3>
  275. <p>
  276. <span></span>支持PDF to
  277. Word、PPT、Excel、TXT、JPG/PNG无限次数转换
  278. </p>
  279. </td>
  280. <td>
  281. <h3>2. 为什么图片格式的文件转档效果不好?</h3>
  282. <p>
  283. 如原文件为图片格式或者通过扫描文档保存为PDF文件的,转档后的文件可能无法选取文字进行高亮等编辑。
  284. </p>
  285. </td>
  286. </tr>
  287. <tr>
  288. <td>
  289. <h3>3. 文件转档后出现乱码?</h3>
  290. <p>
  291. 如果是原文件就有乱码问题,先处理好文件再提交转档;如果原文件正常而转档后目标文件乱码,请联系我们处理。
  292. </p>
  293. </td>
  294. </tr>
  295. </tbody>
  296. </table>
  297. <a class="more w-auto h-30px leading-30px text-[#666] inline-block text-center mx-auto mt-48px mb-0 link:no-underline hover:(!border-[#ff4f4f] text-[#ff4f4f])" href="/question#convert">更多问题请查看帮助</a>
  298. </div>
  299. <div class="download_code fixed right-14px bottom-50px bg-white w-134px py-12px px-0 rounded-6px text-center ">
  300. <span class="large text-16px inline-block w-[100%] my-6px mx-0">下载APP</span>
  301. <img src="http://cn-file.17pdf.com/website/download/android_code.png" class="w-110px border-0 align-middle inline-block" />
  302. <span class="inline-block w-[100%] text-14px my-6px mx-0">使用更便捷</span>
  303. </div>
  304. </div>
  305. <client-only>
  306. <el-dialog :visible.sync="visiable" :close-on-click-modal="true" :close-on-press-escape="false" width="480px" append-to-body center top="25vh">
  307. <div class="changepwd-tittle">
  308. <p class="text-20px text-center text-$btn-color-primary">提示</p>
  309. </div>
  310. <div class="text-16px text-[#707070] text-center my-30px">
  311. 您还未登录或注册,请先
  312. <span class="text-$btn-color-primary cursor-pointer" @click="login">登录</span>
  313. <span class="text-$btn-color-primary cursor-pointer" @click="register">注册</span>
  314. </div>
  315. </el-dialog>
  316. <el-dialog :visible.sync="noMia" width="480px" append-to-body center top = "25vh" >
  317. <div class="modal-content">
  318. <div class="less-tittle w-full h-64px leading-64px text-[20px] text-[#ff4f4f] text-center mt-[-50px] mb-30px">劵不足</div>
  319. <div class="less-content text-center mb-30px">
  320. <img src="http://cn-file.17pdf.com/website/converter/kongjianbuzu_ic.png" class="mb-26px mx-auto">
  321. <p class="text-[14px] text-[#00000099]">您的劵不足,我们背不住了</p>
  322. </div>
  323. <div class="flex justify-center">
  324. <button class="block w-128px h-40px text-[16px] text-[#FF4F4F] leading-20px ml-0px mt-10px text-center border border-[#FF4F4F] border-solid rounded-4px" @click="changeNoMia">返回</button>
  325. <button class="block w-128px h-40px text-[16px] text-[#fff] bg-[#FF4F4F] leading-20px ml-50px mt-10px text-center border border-[#FF4F4F] border-solid rounded-4px" @click="handlSubmit($event, 'buy')">立即充值</button>
  326. </div>
  327. </div>
  328. </el-dialog>
  329. </client-only>
  330. </div>
  331. </template>
  332. <script>
  333. import { mapState } from 'vuex'
  334. export default {
  335. data() {
  336. return {
  337. fileList: [],
  338. uniqFileArr: [],
  339. checkbox: true,
  340. // 转档中,默认没在
  341. changeFileFlag: true,
  342. uploadNum: 0,
  343. uploadErrNum: 0,
  344. uploadSuccessNum: 0,
  345. getFileStatusTimer: null,
  346. changeSucesssNumTotal: 0,
  347. changeSucesssFileList: [],
  348. visiable: false,
  349. noMia:false,
  350. showInputDisable:false,
  351. };
  352. },
  353. middleware: "user",
  354. head() {
  355. return {
  356. title: "PDF转换器免费在线转档",
  357. meta: [
  358. {
  359. hid: "description",
  360. content: "17PDF Reader免费提供在线PDF格式转换文件转档服务,支持PDF转word,PDF转doc,PDF转PPT,PDF转png,PDF转html,PDF转epub,PDF转xls,psd转ai等。轻松拖曳,一键转档,批量转换,支持多种常用格式相互转档。先进的转换引擎,极速转换,精准度高达99.99%。",
  361. },
  362. {
  363. name: "keywords",
  364. content: "格式转换,文件转档,pdf convert,converter, word to pdf"
  365. }
  366. ]
  367. };
  368. },
  369. computed: {
  370. ...mapState([
  371. 'token',
  372. "userInfo"
  373. ]),
  374. // 所需券数
  375. requiredCoupon() {
  376. let total = 0;
  377. for (let i = 0; i < this.fileList.length; i++) {
  378. total += this.fileList[i].price;
  379. }
  380. for (const file of this.fileList) {
  381. if (file.status === 6) {
  382. total -= file.price;
  383. }
  384. }
  385. if (this.userInfo && this.userInfo.subscriberType === 1) {
  386. total = 0;
  387. }
  388. return total;
  389. }
  390. },
  391. mounted() {
  392. if (localStorage.getItem("file") !== null) {
  393. this.fileList = JSON.parse(localStorage.getItem("file"));
  394. this.changeSucesssFileList = JSON.parse(localStorage.getItem("file"));
  395. }
  396. },
  397. methods: {
  398. getUserInfo() {
  399. this.$axios.get('members/getMemberInfo').then((res)=> {
  400. if(res.code === 200) {
  401. this.$store.commit('setUser',res.result.memberInfo)
  402. }
  403. })
  404. },
  405. handlSubmit(event, type) {
  406. if (!this.$store.state.token) {
  407. event.preventDefault();
  408. this.visiable = true;
  409. this.showInputDisable = true
  410. return;
  411. }
  412. if (type === "buy") {
  413. this.noMia = false
  414. this.handlerBuy("ticket");
  415. }
  416. else if (type === "change") {
  417. this.createFileMission();
  418. }
  419. // this.$store.commit('OPEN_LOGIN', true)
  420. // this.$store.commit('SET_INTERFACE', 'vip')
  421. },
  422. login() {
  423. this.visiable = false;
  424. this.showInputDisable = false;
  425. this.$store.commit("OPEN_LOGIN", true);
  426. this.$store.commit("SET_INTERFACE", "login");
  427. },
  428. register() {
  429. this.visiable = false;
  430. this.showInputDisable = false;
  431. this.$store.commit("OPEN_LOGIN", true);
  432. this.$store.commit("SET_INTERFACE", "register");
  433. },
  434. // 充值弹框
  435. handlerBuy(type) {
  436. this.$store.commit("OPEN_LOGIN", true);
  437. this.$store.commit("SET_INTERFACE", type);
  438. },
  439. //拖拽事件
  440. handleEvent(event) {
  441. // 阻止事件的默认行为
  442. event.preventDefault();
  443. if (event.type === 'drop') {
  444. // 文件进入并松开鼠标,文件边框恢复正常
  445. this.$refs.drag.style.background = '#fff'
  446. this.$refs.drag.style.border = "thin dashed #d1d1d1"
  447. if (!this.$store.state.token) {
  448. event.preventDefault();
  449. this.visiable = true;
  450. return;
  451. }
  452. if( !this.changeFileFlag ){
  453. return;
  454. }
  455. //传递拖拽的文件,限制只能传pdf文件
  456. let dropFile = event.dataTransfer.files
  457. let newArr= [];
  458. for(var item of dropFile){
  459. if(item.type.indexOf('pdf') !== -1){
  460. newArr.push(item);
  461. }
  462. }
  463. dropFile = newArr
  464. this.addFile(dropFile)
  465. } else if (event.type === 'dragleave') {
  466. // 离开时
  467. this.$refs.drag.style.background = '#fff'
  468. this.$refs.drag.style.border = "thin dashed #d1d1d1"
  469. } else {
  470. // 进入时
  471. this.$refs.drag.style.background = '#f0f0f0'
  472. this.$refs.drag.style.border = "3px dashed #d1d1d1"
  473. }
  474. },
  475. // 添加文件
  476. async addFile(event) {
  477. let array = {}
  478. if(event.target){
  479. array = event.target.files
  480. }else{
  481. array = event
  482. }
  483. //获取用户选择要转的格式
  484. const urlObj = new URL(document.URL);
  485. let [a] = urlObj.searchParams.values();
  486. if(a != "docx" && a != "pptx" && a != "xlsx" && a != "txt" && a != "jpg" && a != "png"){
  487. a = "docx"
  488. }
  489. const defaultPrice = await this.getFilePrice("pdf", a);
  490. for (let i = 0; i < array.length; i++) {
  491. const id = Date.now() + Math.random().toString(36).slice(-8)
  492. const fileObj = {
  493. name: array[i].name,
  494. size: array[i].size,
  495. price: defaultPrice,
  496. input: "pdf",
  497. output: a,
  498. status: 0,
  499. id: id
  500. };
  501. array[i].output = a
  502. array[i].id = id
  503. this.fileList.push(fileObj);
  504. this.uniqFileArr.push(array[i]);
  505. }
  506. // this.fileList,this.uniqFileArr数组去重
  507. // {let newArr= [];
  508. // let arrName = [];
  509. // // let arrStatus = []
  510. // for(var item of this.fileList){
  511. // // if(arrName.indexOf(item['name']) == -1 || arrStatus.indexOf(item['status']) == -1){
  512. // if(arrName.indexOf(item['name']) == -1){
  513. // arrName.push(item['name']);
  514. // // arrStatus.push(item['status'])
  515. // newArr.push(item);
  516. // }
  517. // }
  518. // this.fileList=newArr
  519. // newArr=[]
  520. // arrName=[]
  521. // for(var item of this.uniqFileArr){
  522. // if(arrName.indexOf(item['name']) == -1 ){
  523. // arrName.push(item['name']);
  524. // newArr.push(item);
  525. // }
  526. // }
  527. // this.uniqFileArr=newArr}
  528. if(event.target){
  529. event.target.value=''
  530. }
  531. },
  532. // 查询文件所需券数
  533. async getFilePrice(input, output) {
  534. let price = 0;
  535. await this.$axios.get(`/convertType/getConvertTypeList?input=${input}&output=${output}`).then((res) => {
  536. if (res.code === 200) {
  537. price = res.result[0].price;
  538. }
  539. });
  540. return price;
  541. },
  542. // 改变要转换的格式
  543. async changeOutput(item, index) {
  544. const price = await this.getFilePrice(item.input, item.output);
  545. this.$set(this.fileList[index], "price", price);
  546. this.$set(this.fileList[index], "output", item.output);
  547. for(let i=0;i<this.uniqFileArr.length;i++){
  548. if(item.id === this.uniqFileArr[i].id){
  549. this.$set(this.uniqFileArr[i], "output", item.output);
  550. }
  551. }
  552. },
  553. // 计算文件大小函数(保留两位小数),Size为字节大小
  554. getfilesize(size) {
  555. if (!size)
  556. return "";
  557. const num = 1024; // byte
  558. if (size < num) {
  559. return size + "B";
  560. }
  561. if (size < Math.pow(num, 2)) {
  562. return (size / num).toFixed(2) + "K";
  563. }
  564. if (size < Math.pow(num, 3)) {
  565. return (size / Math.pow(num, 2)).toFixed(2) + "M";
  566. }
  567. if (size < Math.pow(num, 4)) {
  568. return (size / Math.pow(num, 3)).toFixed(2) + "G";
  569. }
  570. else {
  571. return (size / Math.pow(num, 4)).toFixed(2) + "T";
  572. }
  573. },
  574. // 删除文件
  575. deleteFile(index, item) {
  576. for(let i=0;i<this.uniqFileArr.length;i++){
  577. if(item.id === this.uniqFileArr[i].id){
  578. this.uniqFileArr.splice(i,1)
  579. }
  580. }
  581. this.fileList.splice(index, 1);
  582. this.changeSucesssFileList = [];
  583. localStorage.removeItem("file");
  584. this.fileList.forEach(item => {
  585. if (item.status === 6) {
  586. this.changeSucesssFileList.push(item);
  587. }
  588. });
  589. localStorage.setItem("file", JSON.stringify(this.changeSucesssFileList));
  590. },
  591. // 清空
  592. deleteAllFile() {
  593. this.fileList = [];
  594. this.uniqFileArr = [];
  595. this.changeFileStatus("all", 5);
  596. this.changeSucesssFileList = [];
  597. localStorage.removeItem("file");
  598. this.showFileBig = false
  599. },
  600. // 修改文件状态
  601. changeFileStatus(fileName, status,outputType) {
  602. if (fileName === "all") {
  603. this.fileList.forEach(item => {
  604. if (item.status !== 6) {
  605. this.$set(item, "status", status);
  606. }
  607. });
  608. } else {
  609. this.fileList.forEach(item => {
  610. if (item.name === fileName && item.output === outputType && item.status !=6) {
  611. this.$set(item, "status", status);
  612. }
  613. });
  614. }
  615. },
  616. // 文件状态: 0未转换,1上传中,2上传完成,3转换中,4转换成功,5转换失败,6已转档
  617. fileStatus(item, index) {
  618. switch (item.status) {
  619. case 0:
  620. this.$set(this.fileList[index], "status", 0);
  621. return "未转换";
  622. case 1:
  623. this.$set(this.fileList[index], "status", 1);
  624. return "上传中...";
  625. case 2:
  626. this.$set(this.fileList[index], "status", 2);
  627. return "<span style=\"color: #666666\">上传完成</span>";
  628. case 3:
  629. this.$set(this.fileList[index], "status", 3);
  630. return "<span style=\"color: #FEA92D\">转换中</span>";
  631. case 4:
  632. this.$set(this.fileList[index], "status", 4);
  633. return "<span style=\"color: orange\">转换成功</span>";
  634. case 5:
  635. this.$set(this.fileList[index], "status", 5);
  636. return "<span style=\"color: red\">转换失败</span>";
  637. case 6:
  638. this.$set(this.fileList[index], "status", 6);
  639. return `<a href="${item.path}" style="color: #0dd299">下载</a>`;
  640. }
  641. },
  642. // 转档第一步,根据文件列表创建任务和插入文件信息
  643. createFileMission() {
  644. // if (this.fileList.length === 0) return
  645. const points = this.userInfo.points;
  646. if (this.requiredCoupon > points) {
  647. // alert("券数不足,请充值");
  648. this.noMia = true
  649. return;
  650. }
  651. const filterFileList = this.fileList.filter(function (item) {
  652. return item.status !== 6;
  653. });
  654. let fileArr = [];
  655. for (let i = 0; i < filterFileList.length; i++) {
  656. const file = {};
  657. file.sourceType = 0;
  658. file.size = filterFileList[i].size;
  659. file.input = "pdf";
  660. file.output = filterFileList[i].output;
  661. file.filename = filterFileList[i].name;
  662. fileArr[i] = file;
  663. }
  664. if(fileArr.length === 0){
  665. return;
  666. }
  667. fileArr = JSON.stringify(fileArr);
  668. this.changeFileFlag = false;
  669. this.changeFileStatus("all", 1);
  670. const config = {
  671. method: "post",
  672. url: "/mission/create",
  673. headers: {
  674. "Accept": "*/*",
  675. "Content-Type": "application/json"
  676. },
  677. data: fileArr
  678. };
  679. this.$axios("/mission/create", config).then((res) => {
  680. if (res.code === 200) {
  681. const missionFiles = res.result.missionFilePoJos;
  682. for (let i = 0; i < missionFiles.length; i++) {
  683. this.changeFileStatus(missionFiles[i].fileName, 1, missionFiles[i].outputType);
  684. this.uploadFile(this.uniqFileArr[i], missionFiles[i].id, res.result.id);
  685. }
  686. }
  687. else {
  688. this.changeFileFlag = true;
  689. this.changeFileStatus("all", 5);
  690. }
  691. });
  692. },
  693. // 转档第二步,上传文件download="${item.name}"
  694. uploadFile(file, id, missionId) {
  695. this.uploadNum = 0;
  696. this.uploadSuccessNum = 0
  697. this.uploadErrNum = 0
  698. const formData = new FormData();
  699. formData.append("file", file);
  700. formData.append("missionFileId", id);
  701. const config = {
  702. headers: {
  703. "Content-Type": "multipart/form-data;boundary = " + new Date().getTime()
  704. }
  705. };
  706. this.$axios.post("/missionFile/upload", formData, config).then((res) => {
  707. if (res.code === 200) {
  708. this.changeFileStatus(file.name, 2,file.output);
  709. this.uploadNum++;
  710. this.uploadSuccessNum++;
  711. if (this.uploadNum === this.uniqFileArr.length) {
  712. this.convertFile(file.name, missionId);
  713. }
  714. let uploadAllNum = this.uploadErrNum + this.uploadSuccessNum
  715. if(uploadAllNum === this.uniqFileArr.length && this.uploadErrNum > 0){
  716. this.changeFileFlag = true;
  717. this.changeFileStatus("all", 5);
  718. }
  719. }
  720. else {
  721. this.uploadErrNum++;
  722. let uploadAllNum = this.uploadErrNum + this.uploadSuccessNum
  723. if(uploadAllNum === this.uniqFileArr.length){
  724. this.changeFileFlag = true;
  725. this.changeFileStatus("all", 5);
  726. }
  727. }
  728. });
  729. },
  730. // 转档第三步,开始转档
  731. convertFile(file, missionId) {
  732. const formData = new FormData();
  733. formData.append("missionId", missionId);
  734. const config = {
  735. headers: {
  736. "Content-Type": "multipart/form-data;boundary = " + new Date().getTime()
  737. }
  738. };
  739. this.$axios.post("/mission/convertFile", formData, config).then((res) => {
  740. if (res.code === 200) {
  741. this.changeFileStatus("all", 3);
  742. this.getFileStatusTimer = window.setInterval(() => {
  743. setTimeout(this.getFileStatus(formData, config), 0);
  744. }, 5000);
  745. }
  746. else {
  747. this.uploadNum = 0;
  748. this.changeFileStatus("all", 5);
  749. this.changeFileFlag = true;
  750. }
  751. });
  752. },
  753. // 转档最后一步,轮询文件状态和下载链接
  754. getFileStatus(formData, config) {
  755. this.$axios.post("/mission/queryFileStatus", formData, config).then((res) => {
  756. if (res.code === 200) {
  757. // 转档文件列表
  758. const getFileList = res.result[0].missionFilePoJos;
  759. // 转档成功与失败的数量
  760. let changeSucesssNum = 0;
  761. let changeErrNum = 0;
  762. for (let i = 0; i < getFileList.length; i++) {
  763. if (getFileList[i].status === 2) {
  764. this.changeFileStatus(getFileList[i].fileName, 4, getFileList[i].targetType);
  765. this.fileList.forEach(item => {
  766. if (item.name === getFileList[i].fileName) {
  767. this.changeFileStatus(getFileList[i].fileName, 6, getFileList[i].targetType);
  768. this.$set(item, "path", getFileList[i].path);
  769. // 对相同文件名与相同转换后文件进行去重
  770. this.changeSucesssFileList.forEach((iten,index)=>{
  771. if(iten.name.indexOf(item.name) !== -1 && iten.output.indexOf(item.output) !== -1){
  772. this.changeSucesssFileList.splice(index,1)
  773. }
  774. })
  775. this.changeSucesssFileList.push(item);
  776. }
  777. });
  778. changeSucesssNum++;
  779. }
  780. else if (getFileList[i].status === 3) {
  781. this.changeFileStatus(getFileList[i].fileName, 5, getFileList[i].targetType);
  782. changeErrNum++;
  783. }
  784. }
  785. let changeAllNum = changeSucesssNum + changeErrNum
  786. if (changeAllNum === getFileList.length) {
  787. clearInterval(this.getFileStatusTimer);
  788. this.getFileStatusTimer = null;
  789. this.changeSucesssNumTotal += changeSucesssNum;
  790. let failedFileList = getFileList.filter((val) => val.status === 3);
  791. let failedFileNameArr = failedFileList.map(val => val.fileName);
  792. let result = [];
  793. for (let i = 0; i < failedFileNameArr.length; i++) {
  794. this.uniqFileArr.forEach(item => {
  795. if (item.name === failedFileNameArr[i]) {
  796. result.unshift(item);
  797. }
  798. });
  799. }
  800. this.uniqFileArr = result;
  801. this.getUserInfo()
  802. this.uploadNum = 0;
  803. this.changeFileFlag = true;
  804. }
  805. localStorage.setItem("file", JSON.stringify(this.changeSucesssFileList));
  806. }
  807. else {
  808. this.changeFileStatus("all", 5);
  809. // 多失败就关闭查询
  810. clearInterval(this.getFileStatusTimer);
  811. this.uploadNum = 0;
  812. this.changeFileFlag = true;
  813. }
  814. });
  815. },
  816. //改变劵不足弹出框
  817. changeNoMia(){
  818. this.noMia = false
  819. }
  820. },
  821. watch: {
  822. token(newValue){
  823. if(newValue){
  824. this.showInputDisable = false;
  825. }
  826. }
  827. }
  828. }
  829. </script>
  830. <style lang="scss" scoped>
  831. ::v-deep body {
  832. min-width: 1200px !important;
  833. }
  834. ::v-deep .el-dialog {
  835. border-radius: 10px;
  836. box-shadow: 0 5px 15px rgb(0, 0 ,0 ,.5)
  837. }
  838. .page-converter {
  839. .date-tips {
  840. background: linear-gradient(0deg, #fff2f6, #fff2f6),
  841. linear-gradient(90deg, snow 10.37%, rgba(255, 243, 243, 0) 91.75%),
  842. linear-gradient(90deg, #fff2f6 2.26%, rgba(255, 242, 246, 0.21) 101.41%);
  843. .text-container {
  844. display: flex;
  845. align-items: center;
  846. margin-left: 16px;
  847. img {
  848. margin-left: 8px;
  849. }
  850. }
  851. span {
  852. font-size: 14px;
  853. line-height: 24px;
  854. vertical-align: middle;
  855. }
  856. .text {
  857. display: inline-flex;
  858. align-items: center;
  859. }
  860. .tip {
  861. position: relative;
  862. font-size: 0;
  863. .tip-text {
  864. display: none;
  865. position: absolute;
  866. left: -3px;
  867. width: 258px;
  868. padding: 15px 14px 10px 10px;
  869. background: url('http://cn-file.17pdf.com/website/members/ic_tip.svg')
  870. left top no-repeat;
  871. background-size: auto 100%;
  872. font-size: 12px;
  873. line-height: 18px;
  874. color: #fff;
  875. border-radius: 4px;
  876. }
  877. &:hover .tip-text {
  878. display: block;
  879. }
  880. }
  881. }
  882. .transfer-container {
  883. .hide {
  884. display: none !important;
  885. }
  886. button {
  887. padding-right: 7px;
  888. }
  889. .close {
  890. float: right;
  891. font-size: 21px;
  892. font-weight: bold;
  893. line-height: 1;
  894. color: #000;
  895. text-shadow: 0 1px 0 #fff;
  896. opacity: 0.2;
  897. filter: alpha(opacity=20);
  898. }
  899. button.close {
  900. padding: 0;
  901. cursor: pointer;
  902. background: transparent;
  903. border: 0;
  904. -webkit-appearance: none;
  905. }
  906. button:focus {
  907. outline: none;
  908. }
  909. .close:hover,
  910. .close:focus {
  911. color: #000;
  912. text-decoration: none;
  913. cursor: pointer;
  914. opacity: 0.5;
  915. filter: alpha(opacity=50);
  916. }
  917. .recharge .recharge-btn:hover a {
  918. color: #fff;
  919. }
  920. .transfer-btn .loading {
  921. display: inline-block;
  922. border: 3px solid #fff;
  923. border-bottom: 3px solid #cccccc;
  924. height: 35px;
  925. width: 35px;
  926. border-radius: 50%;
  927. position: relative;
  928. top: 10px;
  929. left: 100px;
  930. -webkit-animation: loading 1s infinite linear;
  931. -moz-animation: loading 1s infinite linear;
  932. -o-animation: loading 1s infinite linear;
  933. animation: loading 1s infinite linear;
  934. }
  935. }
  936. .table>caption+thead>tr:first-child>th, .table>caption+thead>tr:first-child>td, .table>colgroup+thead>tr:first-child>th, .table>colgroup+thead>tr:first-child>td, .table>thead:first-child>tr:first-child>th, .table>thead:first-child>tr:first-child>td {
  937. border-top: 0;
  938. }
  939. .file-drop-zone .table thead tr th {
  940. color: #666666;
  941. text-align: center;
  942. }
  943. .table>thead>tr>th {
  944. vertical-align: bottom;
  945. border-bottom: 2px solid #ddd;
  946. }
  947. .table>thead>tr>th, .table>thead>tr>td, .table>tbody>tr>th, .table>tbody>tr>td, .table>tfoot>tr>th, .table>tfoot>tr>td {
  948. padding: 8px;
  949. line-height: 1.428571429;
  950. vertical-align: top;
  951. border-top: 1px solid #ddd;
  952. }
  953. .table th, .table td {
  954. vertical-align: middle;
  955. box-sizing: border-box;
  956. }
  957. th {
  958. text-align: left;
  959. }
  960. td, th {
  961. padding: 0;
  962. }
  963. .input-group-btn {
  964. position: relative;
  965. font-size: 0;
  966. white-space: nowrap;
  967. }
  968. .input-group-addon, .input-group-btn {
  969. white-space: nowrap;
  970. vertical-align: middle;
  971. }
  972. .input-group-addon, .input-group-btn, .input-group .form-control {
  973. display: table-cell;
  974. }
  975. .clearfix:before, .clearfix:after {
  976. content: " ";
  977. display: table;
  978. }
  979. .input-group-btn:last-child>.btn, .input-group-btn:last-child>.btn-group {
  980. z-index: 2;
  981. margin-left: -1px;
  982. }
  983. .input-group-btn:first-child>.btn, .input-group-btn:first-child>.btn-group {
  984. margin-right: -1px;
  985. }
  986. .input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child>.btn, .input-group-btn:last-child>.btn-group>.btn, .input-group-btn:last-child>.dropdown-toggle, .input-group-btn:first-child>.btn:not(:first-child), .input-group-btn:first-child>.btn-group:not(:first-child)>.btn {
  987. border-bottom-left-radius: 0;
  988. border-top-left-radius: 0;
  989. }
  990. .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child>.btn, .input-group-btn:first-child>.btn-group>.btn, .input-group-btn:first-child>.dropdown-toggle, .input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle), .input-group-btn:last-child>.btn-group:not(:last-child)>.btn {
  991. border-bottom-right-radius: 0;
  992. border-top-right-radius: 0;
  993. }
  994. .input-group-btn>.btn {
  995. position: relative;
  996. }
  997. .btn.disabled, .btn[disabled], fieldset[disabled] .btn {
  998. cursor: not-allowed;
  999. opacity: 0.65;
  1000. filter: alpha(opacity=65);
  1001. -webkit-box-shadow: none;
  1002. box-shadow: none;
  1003. }
  1004. .btn-file {
  1005. position: relative;
  1006. overflow: hidden;
  1007. margin: 0;
  1008. top: 170px;
  1009. left: 50%;
  1010. margin-left: -45px !important;
  1011. outline: none;
  1012. cursor: pointer;
  1013. }
  1014. .btn {
  1015. display: inline-block;
  1016. margin-bottom: 0;
  1017. font-weight: normal;
  1018. text-align: center;
  1019. vertical-align: middle;
  1020. touch-action: manipulation;
  1021. cursor: pointer;
  1022. background-image: none;
  1023. border: 1px solid transparent;
  1024. white-space: nowrap;
  1025. border-radius: 4px;
  1026. -webkit-user-select: none;
  1027. -moz-user-select: none;
  1028. -ms-user-select: none;
  1029. user-select: none;
  1030. }
  1031. .btn-file .add-file {
  1032. background: url(http://cn-file.17pdf.com/website/fileinput/ic_file_add.png) no-repeat;
  1033. width: 90px;
  1034. height: 100px;
  1035. }
  1036. .btn-file .add-file-left {
  1037. background: url(http://cn-file.17pdf.com/website/fileinput/ic_add.png) no-repeat;
  1038. width: 120px;
  1039. height: 30px;
  1040. margin-top: 10px;
  1041. margin-left: 10px;
  1042. padding-left: 38px;
  1043. font-size: 16px;
  1044. line-height: 30px;
  1045. color: #666666;
  1046. }
  1047. .btn-file-left {
  1048. position: relative;
  1049. top: 0px;
  1050. left: 20px;
  1051. }
  1052. .transfer-container .transfer-remember .checkbox input[type="checkbox"] {
  1053. top: 3px;
  1054. }
  1055. .radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] {
  1056. position: absolute;
  1057. margin-left: -20px;
  1058. }
  1059. input[type="radio"], input[type="checkbox"] {
  1060. margin: 4px 0 0;
  1061. line-height: normal;
  1062. }
  1063. .modal {
  1064. display: none;
  1065. overflow: hidden;
  1066. position: fixed;
  1067. top: 0;
  1068. right: 0;
  1069. bottom: 0;
  1070. left: 0;
  1071. z-index: 1050;
  1072. -webkit-overflow-scrolling: touch;
  1073. outline: 0;
  1074. }
  1075. .file-drop-zone .table tbody tr:hover td {
  1076. background: #dfdfdf;
  1077. }
  1078. .file-drop-zone .table tbody tr td {
  1079. border-top: 0px;
  1080. }
  1081. .theme-explorer .explorer-frame td {
  1082. vertical-align: middle;
  1083. text-align: center;
  1084. }
  1085. .file-drop-zone .table tbody tr:hover td .transfer-select {
  1086. border-color: #ff4f4f;
  1087. background: url(http://cn-file.17pdf.com/website/converter/ic_trans_xiala_hover.png) no-repeat 72px 6px;
  1088. }
  1089. .file-drop-zone .table tbody tr .transfer-select {
  1090. width: 100%;
  1091. height: 22px;
  1092. border: 1px solid #dadada;
  1093. padding: 0px;
  1094. outline: none;
  1095. font-size: 14px;
  1096. color: #ff4f4f;
  1097. line-height: 22px;
  1098. // padding-left: 30px;
  1099. border-radius: 2px;
  1100. background: url(http://cn-file.17pdf.com/website/converter/ic_trans_xiala_nor.png) no-repeat 72px 6px;
  1101. }
  1102. .theme-explorer .file-actions-cell .file-actions .file-footer-buttons .pdf-removeicon:before {
  1103. content: url(https://cn-file.17pdf.com/website/converter/ic_delet_red.png) !important;
  1104. display: none;
  1105. }
  1106. .file-drop-zone .table tbody tr:hover td .file-actions .file-footer-buttons .pdf-removeicon:before {
  1107. display: block;
  1108. }
  1109. .btn.disabledBtn {
  1110. background-color: rgb(204, 204, 204);
  1111. pointer-events: none;
  1112. }
  1113. .file_num {
  1114. background: url(http://cn-file.17pdf.com/website/converter/pic_account_bg.png) repeat -10px 0px;
  1115. }
  1116. .clear {
  1117. zoom: 1;
  1118. }
  1119. .clear:after {
  1120. visibility: hidden;
  1121. display: block;
  1122. font-size: 0;
  1123. content: " ";
  1124. clear: both;
  1125. height: 0;
  1126. }
  1127. .pdf_converter .package_type h3:before,
  1128. .about_converter .name:before,
  1129. .converter_question .name:before {
  1130. content: '';
  1131. display: inline-block;
  1132. width: 5px;
  1133. height: 22px;
  1134. background: #ff4f4f;
  1135. margin-right: 10px;
  1136. margin-top: 4px;
  1137. vertical-align: top;
  1138. }
  1139. .pdf_converter .package_type ul li {
  1140. width: 120px;
  1141. list-style: none;
  1142. text-align: center;
  1143. margin-right: 30px;
  1144. cursor: pointer;
  1145. a {
  1146. display: block;
  1147. font-size: 14px;
  1148. color: #333333;
  1149. img {
  1150. display: inline-block;
  1151. width: 80px;
  1152. height: 80px;
  1153. margin-bottom: 20px;
  1154. vertical-align: middle;
  1155. }
  1156. span {
  1157. display: block;
  1158. white-space: nowrap;
  1159. transition: all .5s;
  1160. }
  1161. &:hover{
  1162. img {
  1163. box-shadow: 0px 0px 6px rgb(255 79 79 / 25%);
  1164. }
  1165. span {
  1166. color: #ff4f4f;
  1167. }
  1168. }
  1169. }
  1170. }
  1171. .about_converter ul li {
  1172. width: 50%;
  1173. float: left;
  1174. list-style: none;
  1175. margin-bottom: 85px;
  1176. img {
  1177. width: 70px;
  1178. height: 70px;
  1179. float: left;
  1180. margin: 10px 36px 0px 0px;
  1181. }
  1182. .content {
  1183. width: 330px;
  1184. float: left;
  1185. h3 {
  1186. font-size: 20px;
  1187. color: #333333;
  1188. margin: 0px 0px 10px;
  1189. font-weight: normal;
  1190. }
  1191. p {
  1192. font-size: 16px;
  1193. color: #4c4c4c;
  1194. margin: 0px !important;
  1195. }
  1196. }
  1197. }
  1198. table {
  1199. border-collapse: collapse;
  1200. border-spacing: 0;
  1201. }
  1202. .converter_question table td {
  1203. width: 50%;
  1204. vertical-align: top;
  1205. h3 {
  1206. font-size: 18px;
  1207. color: #333333;
  1208. margin: 54px 0px 14px;
  1209. font-weight: normal;
  1210. text-align: left;
  1211. }
  1212. p {
  1213. width: 75%;
  1214. font-size: 16px;
  1215. color: #4c4c4c;
  1216. text-align: left;
  1217. span {
  1218. width: 8px;
  1219. height: 8px;
  1220. display: inline-block;
  1221. border-radius: 100%;
  1222. background: #333333;
  1223. margin-right: 12px;
  1224. margin-left: 4px;
  1225. }
  1226. }
  1227. }
  1228. .converter_question .more {
  1229. border-bottom: 1px solid #999999;
  1230. }
  1231. .download_code {
  1232. box-shadow: 0px 1px 5px rgb(0 0 0 / 12%);
  1233. }
  1234. .file-details-cell.state img {
  1235. display: inline-block;
  1236. cursor: pointer;
  1237. }
  1238. }
  1239. </style>