converter.vue 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262
  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="~/assets/images/converter/pic.svg" 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. }else if(item['status'] === 6){
  517. newArr.push(item);
  518. }
  519. }
  520. this.fileList=newArr
  521. newArr=[]
  522. arrName=[]
  523. arrStatus = []
  524. for(var item of this.uniqFileArr){
  525. if(arrName.indexOf(item['name']) == -1 || arrStatus.indexOf(item['status']) == -1){
  526. arrName.push(item['name']);
  527. arrStatus.push(item['status'])
  528. newArr.push(item);
  529. }
  530. }
  531. this.uniqFileArr=newArr
  532. if(event.target){
  533. event.target.value=''
  534. }
  535. },
  536. // 查询文件所需券数
  537. async getFilePrice(input, output) {
  538. let price = 0;
  539. await this.$axios.get(`/convertType/getConvertTypeList?input=${input}&output=${output}`).then((res) => {
  540. if (res.code === 200) {
  541. price = res.result[0].price;
  542. }
  543. });
  544. return price;
  545. },
  546. // 改变要转换的格式
  547. async changeOutput(item, index) {
  548. const price = await this.getFilePrice(item.input, item.output);
  549. this.$set(this.fileList[index], "price", price);
  550. this.$set(this.fileList[index], "output", item.output);
  551. for(let i=0;i<this.uniqFileArr.length;i++){
  552. if(item.id === this.uniqFileArr[i].id){
  553. this.$set(this.uniqFileArr[i], "output", item.output);
  554. }
  555. }
  556. },
  557. // 计算文件大小函数(保留两位小数),Size为字节大小
  558. getfilesize(size) {
  559. if (!size)
  560. return "";
  561. const num = 1024; // byte
  562. if (size < num) {
  563. return size + "B";
  564. }
  565. if (size < Math.pow(num, 2)) {
  566. return (size / num).toFixed(2) + "K";
  567. }
  568. if (size < Math.pow(num, 3)) {
  569. return (size / Math.pow(num, 2)).toFixed(2) + "M";
  570. }
  571. if (size < Math.pow(num, 4)) {
  572. return (size / Math.pow(num, 3)).toFixed(2) + "G";
  573. }
  574. else {
  575. return (size / Math.pow(num, 4)).toFixed(2) + "T";
  576. }
  577. },
  578. // 删除文件
  579. deleteFile(index, item) {
  580. for(let i=0;i<this.uniqFileArr.length;i++){
  581. if(item.id === this.uniqFileArr[i].id){
  582. this.uniqFileArr.splice(i,1)
  583. }
  584. }
  585. this.fileList.splice(index, 1);
  586. this.changeSucesssFileList = [];
  587. localStorage.removeItem("file");
  588. this.fileList.forEach(item => {
  589. if (item.status === 6) {
  590. this.changeSucesssFileList.push(item);
  591. }
  592. });
  593. localStorage.setItem("file", JSON.stringify(this.changeSucesssFileList));
  594. },
  595. // 清空
  596. deleteAllFile() {
  597. this.fileList = [];
  598. this.uniqFileArr = [];
  599. this.changeFileStatus("all", 5);
  600. this.changeSucesssFileList = [];
  601. localStorage.removeItem("file");
  602. this.showFileBig = false
  603. },
  604. // 修改文件状态
  605. changeFileStatus(fileName, status,outputType) {
  606. if (fileName === "all") {
  607. this.fileList.forEach(item => {
  608. if (item.status !== 6) {
  609. this.$set(item, "status", status);
  610. }
  611. });
  612. } else {
  613. this.fileList.forEach(item => {
  614. if (item.name === fileName && item.output === outputType && item.status !=6) {
  615. this.$set(item, "status", status);
  616. }
  617. });
  618. }
  619. },
  620. // 文件状态: 0未转换,1上传中,2上传完成,3转换中,4转换成功,5转换失败,6已转档
  621. fileStatus(item, index) {
  622. switch (item.status) {
  623. case 0:
  624. this.$set(this.fileList[index], "status", 0);
  625. return "未转换";
  626. case 1:
  627. this.$set(this.fileList[index], "status", 1);
  628. return "上传中...";
  629. case 2:
  630. this.$set(this.fileList[index], "status", 2);
  631. return "<span style=\"color: #666666\">上传完成</span>";
  632. case 3:
  633. this.$set(this.fileList[index], "status", 3);
  634. return "<span style=\"color: #FEA92D\">转换中</span>";
  635. case 4:
  636. this.$set(this.fileList[index], "status", 4);
  637. return "<span style=\"color: orange\">转换成功</span>";
  638. case 5:
  639. this.$set(this.fileList[index], "status", 5);
  640. return "<span style=\"color: red\">转换失败</span>";
  641. case 6:
  642. this.$set(this.fileList[index], "status", 6);
  643. return `<a href="${item.path}" style="color: #0dd299">下载</a>`;
  644. }
  645. },
  646. // 转档第一步,根据文件列表创建任务和插入文件信息
  647. createFileMission() {
  648. // if (this.fileList.length === 0) return
  649. const points = this.userInfo.points;
  650. if (this.requiredCoupon > points) {
  651. // alert("券数不足,请充值");
  652. this.noMia = true
  653. return;
  654. }
  655. const filterFileList = this.fileList.filter(function (item) {
  656. return item.status !== 6;
  657. });
  658. let fileArr = [];
  659. for (let i = 0; i < filterFileList.length; i++) {
  660. const file = {};
  661. file.sourceType = 0;
  662. file.size = filterFileList[i].size;
  663. file.input = "pdf";
  664. file.output = filterFileList[i].output;
  665. file.filename = filterFileList[i].name;
  666. fileArr[i] = file;
  667. }
  668. if(fileArr.length === 0){
  669. return;
  670. }
  671. fileArr = JSON.stringify(fileArr);
  672. this.changeFileFlag = false;
  673. this.changeFileStatus("all", 1);
  674. const config = {
  675. method: "post",
  676. url: "/mission/create",
  677. headers: {
  678. "Accept": "*/*",
  679. "Content-Type": "application/json"
  680. },
  681. data: fileArr
  682. };
  683. this.$axios("/mission/create", config).then((res) => {
  684. if (res.code === 200) {
  685. const missionFiles = res.result.missionFilePoJos;
  686. for (let i = 0; i < missionFiles.length; i++) {
  687. this.changeFileStatus(missionFiles[i].fileName, 1, missionFiles[i].outputType);
  688. this.uploadFile(this.uniqFileArr[i], missionFiles[i].id, res.result.id);
  689. }
  690. }
  691. else {
  692. this.changeFileFlag = true;
  693. this.changeFileStatus("all", 5);
  694. }
  695. });
  696. },
  697. // 转档第二步,上传文件download="${item.name}"
  698. uploadFile(file, id, missionId) {
  699. this.uploadNum = 0;
  700. this.uploadSuccessNum = 0
  701. this.uploadErrNum = 0
  702. const formData = new FormData();
  703. formData.append("file", file);
  704. formData.append("missionFileId", id);
  705. const config = {
  706. headers: {
  707. "Content-Type": "multipart/form-data;boundary = " + new Date().getTime()
  708. }
  709. };
  710. this.$axios.post("/missionFile/upload", formData, config).then((res) => {
  711. if (res.code === 200) {
  712. this.changeFileStatus(file.name, 2,file.output);
  713. this.uploadNum++;
  714. this.uploadSuccessNum++;
  715. if (this.uploadNum === this.uniqFileArr.length) {
  716. this.convertFile(file.name, missionId);
  717. }
  718. let uploadAllNum = this.uploadErrNum + this.uploadSuccessNum
  719. if(uploadAllNum === this.uniqFileArr.length && this.uploadErrNum > 0){
  720. this.changeFileFlag = true;
  721. this.changeFileStatus("all", 5);
  722. }
  723. }
  724. else {
  725. this.uploadErrNum++;
  726. let uploadAllNum = this.uploadErrNum + this.uploadSuccessNum
  727. if(uploadAllNum === this.uniqFileArr.length){
  728. this.changeFileFlag = true;
  729. this.changeFileStatus("all", 5);
  730. }
  731. }
  732. });
  733. },
  734. // 转档第三步,开始转档
  735. convertFile(file, missionId) {
  736. const formData = new FormData();
  737. formData.append("missionId", missionId);
  738. const config = {
  739. headers: {
  740. "Content-Type": "multipart/form-data;boundary = " + new Date().getTime()
  741. }
  742. };
  743. this.$axios.post("/mission/convertFile", formData, config).then((res) => {
  744. if (res.code === 200) {
  745. this.changeFileStatus("all", 3);
  746. this.getFileStatusTimer = window.setInterval(() => {
  747. setTimeout(this.getFileStatus(formData, config), 0);
  748. }, 5000);
  749. }
  750. else {
  751. this.uploadNum = 0;
  752. this.changeFileStatus("all", 5);
  753. this.changeFileFlag = true;
  754. }
  755. });
  756. },
  757. // 转档最后一步,轮询文件状态和下载链接
  758. getFileStatus(formData, config) {
  759. this.$axios.post("/mission/queryFileStatus", formData, config).then((res) => {
  760. if (res.code === 200) {
  761. // 转档文件列表
  762. const getFileList = res.result[0].missionFilePoJos;
  763. // 转档成功与失败的数量
  764. let changeSucesssNum = 0;
  765. let changeErrNum = 0;
  766. for (let i = 0; i < getFileList.length; i++) {
  767. if (getFileList[i].status === 2) {
  768. this.changeFileStatus(getFileList[i].fileName, 4, getFileList[i].targetType);
  769. this.fileList.forEach(item => {
  770. //获取输出的目标文件名
  771. let name = item.name
  772. let num= name.lastIndexOf("pdf")
  773. const outFilename = name.slice(0,num)+item.output
  774. if (outFilename === getFileList[i].outFilename) {
  775. this.changeFileStatus(getFileList[i].fileName, 6, getFileList[i].targetType);
  776. this.$set(item, "path", getFileList[i].path);
  777. // 对相同文件名与相同转换后文件进行去重
  778. this.changeSucesssFileList.forEach((iten,index)=>{
  779. if(iten.id.indexOf(item.id) !== -1){
  780. this.changeSucesssFileList.splice(index,1)
  781. }
  782. })
  783. this.changeSucesssFileList.push(item);
  784. }
  785. });
  786. changeSucesssNum++;
  787. }
  788. else if (getFileList[i].status === 3) {
  789. this.changeFileStatus(getFileList[i].fileName, 5, getFileList[i].targetType);
  790. changeErrNum++;
  791. }
  792. }
  793. let changeAllNum = changeSucesssNum + changeErrNum
  794. if (changeAllNum === getFileList.length) {
  795. clearInterval(this.getFileStatusTimer);
  796. this.getFileStatusTimer = null;
  797. this.changeSucesssNumTotal += changeSucesssNum;
  798. let failedFileList = getFileList.filter((val) => val.status === 3);
  799. let failedFileNameArr = failedFileList.map(val => val.fileName);
  800. let result = [];
  801. for (let i = 0; i < failedFileNameArr.length; i++) {
  802. this.uniqFileArr.forEach(item => {
  803. if (item.name === failedFileNameArr[i]) {
  804. result.unshift(item);
  805. }
  806. });
  807. }
  808. this.uniqFileArr = result;
  809. this.getUserInfo()
  810. this.uploadNum = 0;
  811. this.changeFileFlag = true;
  812. }
  813. localStorage.setItem("file", JSON.stringify(this.changeSucesssFileList));
  814. }
  815. else {
  816. this.changeFileStatus("all", 5);
  817. // 多失败就关闭查询
  818. clearInterval(this.getFileStatusTimer);
  819. this.uploadNum = 0;
  820. this.changeFileFlag = true;
  821. }
  822. });
  823. },
  824. //改变劵不足弹出框
  825. changeNoMia(){
  826. this.noMia = false
  827. }
  828. },
  829. watch: {
  830. token(newValue){
  831. if(newValue){
  832. this.showInputDisable = false;
  833. }
  834. }
  835. }
  836. }
  837. </script>
  838. <style lang="scss" scoped>
  839. ::v-deep body {
  840. min-width: 1200px !important;
  841. }
  842. ::v-deep .el-dialog {
  843. border-radius: 10px;
  844. box-shadow: 0 5px 15px rgb(0, 0 ,0 ,.5)
  845. }
  846. .page-converter {
  847. .date-tips {
  848. background: linear-gradient(0deg, #fff2f6, #fff2f6),
  849. linear-gradient(90deg, snow 10.37%, rgba(255, 243, 243, 0) 91.75%),
  850. linear-gradient(90deg, #fff2f6 2.26%, rgba(255, 242, 246, 0.21) 101.41%);
  851. .text-container {
  852. display: flex;
  853. align-items: center;
  854. margin-left: 16px;
  855. img {
  856. margin-left: 8px;
  857. }
  858. }
  859. span {
  860. font-size: 14px;
  861. line-height: 24px;
  862. vertical-align: middle;
  863. }
  864. .text {
  865. display: inline-flex;
  866. align-items: center;
  867. }
  868. .tip {
  869. position: relative;
  870. font-size: 0;
  871. .tip-text {
  872. display: none;
  873. position: absolute;
  874. left: -3px;
  875. width: 258px;
  876. padding: 15px 14px 10px 10px;
  877. background: url('http://cn-file.17pdf.com/website/members/ic_tip.svg')
  878. left top no-repeat;
  879. background-size: auto 100%;
  880. font-size: 12px;
  881. line-height: 18px;
  882. color: #fff;
  883. border-radius: 4px;
  884. }
  885. &:hover .tip-text {
  886. display: block;
  887. }
  888. }
  889. }
  890. .transfer-container {
  891. .hide {
  892. display: none !important;
  893. }
  894. button {
  895. padding-right: 7px;
  896. }
  897. .close {
  898. float: right;
  899. font-size: 21px;
  900. font-weight: bold;
  901. line-height: 1;
  902. color: #000;
  903. text-shadow: 0 1px 0 #fff;
  904. opacity: 0.2;
  905. filter: alpha(opacity=20);
  906. }
  907. button.close {
  908. padding: 0;
  909. cursor: pointer;
  910. background: transparent;
  911. border: 0;
  912. -webkit-appearance: none;
  913. }
  914. button:focus {
  915. outline: none;
  916. }
  917. .close:hover,
  918. .close:focus {
  919. color: #000;
  920. text-decoration: none;
  921. cursor: pointer;
  922. opacity: 0.5;
  923. filter: alpha(opacity=50);
  924. }
  925. .recharge .recharge-btn:hover a {
  926. color: #fff;
  927. }
  928. .transfer-btn .loading {
  929. display: inline-block;
  930. border: 3px solid #fff;
  931. border-bottom: 3px solid #cccccc;
  932. height: 35px;
  933. width: 35px;
  934. border-radius: 50%;
  935. position: relative;
  936. top: 10px;
  937. left: 100px;
  938. -webkit-animation: loading 1s infinite linear;
  939. -moz-animation: loading 1s infinite linear;
  940. -o-animation: loading 1s infinite linear;
  941. animation: loading 1s infinite linear;
  942. }
  943. }
  944. .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 {
  945. border-top: 0;
  946. }
  947. .file-drop-zone .table thead tr th {
  948. color: #666666;
  949. text-align: center;
  950. }
  951. .table>thead>tr>th {
  952. vertical-align: bottom;
  953. border-bottom: 2px solid #ddd;
  954. }
  955. .table>thead>tr>th, .table>thead>tr>td, .table>tbody>tr>th, .table>tbody>tr>td, .table>tfoot>tr>th, .table>tfoot>tr>td {
  956. padding: 8px;
  957. line-height: 1.428571429;
  958. vertical-align: top;
  959. border-top: 1px solid #ddd;
  960. }
  961. .table th, .table td {
  962. vertical-align: middle;
  963. box-sizing: border-box;
  964. }
  965. th {
  966. text-align: left;
  967. }
  968. td, th {
  969. padding: 0;
  970. }
  971. .input-group-btn {
  972. position: relative;
  973. font-size: 0;
  974. white-space: nowrap;
  975. }
  976. .input-group-addon, .input-group-btn {
  977. white-space: nowrap;
  978. vertical-align: middle;
  979. }
  980. .input-group-addon, .input-group-btn, .input-group .form-control {
  981. display: table-cell;
  982. }
  983. .clearfix:before, .clearfix:after {
  984. content: " ";
  985. display: table;
  986. }
  987. .input-group-btn:last-child>.btn, .input-group-btn:last-child>.btn-group {
  988. z-index: 2;
  989. margin-left: -1px;
  990. }
  991. .input-group-btn:first-child>.btn, .input-group-btn:first-child>.btn-group {
  992. margin-right: -1px;
  993. }
  994. .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 {
  995. border-bottom-left-radius: 0;
  996. border-top-left-radius: 0;
  997. }
  998. .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 {
  999. border-bottom-right-radius: 0;
  1000. border-top-right-radius: 0;
  1001. }
  1002. .input-group-btn>.btn {
  1003. position: relative;
  1004. }
  1005. .btn.disabled, .btn[disabled], fieldset[disabled] .btn {
  1006. cursor: not-allowed;
  1007. opacity: 0.65;
  1008. filter: alpha(opacity=65);
  1009. -webkit-box-shadow: none;
  1010. box-shadow: none;
  1011. }
  1012. .btn-file {
  1013. position: relative;
  1014. overflow: hidden;
  1015. margin: 0;
  1016. top: 170px;
  1017. left: 50%;
  1018. margin-left: -45px !important;
  1019. outline: none;
  1020. cursor: pointer;
  1021. }
  1022. .btn {
  1023. display: inline-block;
  1024. margin-bottom: 0;
  1025. font-weight: normal;
  1026. text-align: center;
  1027. vertical-align: middle;
  1028. touch-action: manipulation;
  1029. cursor: pointer;
  1030. background-image: none;
  1031. border: 1px solid transparent;
  1032. white-space: nowrap;
  1033. border-radius: 4px;
  1034. -webkit-user-select: none;
  1035. -moz-user-select: none;
  1036. -ms-user-select: none;
  1037. user-select: none;
  1038. }
  1039. .btn-file .add-file {
  1040. background: url(http://cn-file.17pdf.com/website/fileinput/ic_file_add.png) no-repeat;
  1041. width: 90px;
  1042. height: 100px;
  1043. }
  1044. .btn-file .add-file-left {
  1045. background: url(http://cn-file.17pdf.com/website/fileinput/ic_add.png) no-repeat;
  1046. width: 120px;
  1047. height: 30px;
  1048. margin-top: 10px;
  1049. margin-left: 10px;
  1050. padding-left: 38px;
  1051. font-size: 16px;
  1052. line-height: 30px;
  1053. color: #666666;
  1054. }
  1055. .btn-file-left {
  1056. position: relative;
  1057. top: 0px;
  1058. left: 20px;
  1059. }
  1060. .transfer-container .transfer-remember .checkbox input[type="checkbox"] {
  1061. top: 3px;
  1062. }
  1063. .radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] {
  1064. position: absolute;
  1065. margin-left: -20px;
  1066. }
  1067. input[type="radio"], input[type="checkbox"] {
  1068. margin: 4px 0 0;
  1069. line-height: normal;
  1070. }
  1071. .modal {
  1072. display: none;
  1073. overflow: hidden;
  1074. position: fixed;
  1075. top: 0;
  1076. right: 0;
  1077. bottom: 0;
  1078. left: 0;
  1079. z-index: 1050;
  1080. -webkit-overflow-scrolling: touch;
  1081. outline: 0;
  1082. }
  1083. .file-drop-zone .table tbody tr:hover td {
  1084. background: #dfdfdf;
  1085. }
  1086. .file-drop-zone .table tbody tr td {
  1087. border-top: 0px;
  1088. }
  1089. .theme-explorer .explorer-frame td {
  1090. vertical-align: middle;
  1091. text-align: center;
  1092. }
  1093. .file-drop-zone .table tbody tr:hover td .transfer-select {
  1094. border-color: #ff4f4f;
  1095. background: url(http://cn-file.17pdf.com/website/converter/ic_trans_xiala_hover.png) no-repeat 72px 6px;
  1096. }
  1097. .file-drop-zone .table tbody tr .transfer-select {
  1098. width: 100%;
  1099. height: 22px;
  1100. border: 1px solid #dadada;
  1101. padding: 0px;
  1102. outline: none;
  1103. font-size: 14px;
  1104. color: #ff4f4f;
  1105. line-height: 22px;
  1106. // padding-left: 30px;
  1107. border-radius: 2px;
  1108. background: url(http://cn-file.17pdf.com/website/converter/ic_trans_xiala_nor.png) no-repeat 72px 6px;
  1109. }
  1110. .theme-explorer .file-actions-cell .file-actions .file-footer-buttons .pdf-removeicon:before {
  1111. content: url(https://cn-file.17pdf.com/website/converter/ic_delet_red.png) !important;
  1112. display: none;
  1113. }
  1114. .file-drop-zone .table tbody tr:hover td .file-actions .file-footer-buttons .pdf-removeicon:before {
  1115. display: block;
  1116. }
  1117. .btn.disabledBtn {
  1118. background-color: rgb(204, 204, 204);
  1119. pointer-events: none;
  1120. }
  1121. .file_num {
  1122. background: url(http://cn-file.17pdf.com/website/converter/pic_account_bg.png) repeat -10px 0px;
  1123. }
  1124. .clear {
  1125. zoom: 1;
  1126. }
  1127. .clear:after {
  1128. visibility: hidden;
  1129. display: block;
  1130. font-size: 0;
  1131. content: " ";
  1132. clear: both;
  1133. height: 0;
  1134. }
  1135. .pdf_converter .package_type h3:before,
  1136. .about_converter .name:before,
  1137. .converter_question .name:before {
  1138. content: '';
  1139. display: inline-block;
  1140. width: 5px;
  1141. height: 22px;
  1142. background: #ff4f4f;
  1143. margin-right: 10px;
  1144. margin-top: 4px;
  1145. vertical-align: top;
  1146. }
  1147. .pdf_converter .package_type ul li {
  1148. width: 120px;
  1149. list-style: none;
  1150. text-align: center;
  1151. margin-right: 30px;
  1152. cursor: pointer;
  1153. a {
  1154. display: block;
  1155. font-size: 14px;
  1156. color: #333333;
  1157. img {
  1158. display: inline-block;
  1159. width: 80px;
  1160. height: 80px;
  1161. margin-bottom: 20px;
  1162. vertical-align: middle;
  1163. }
  1164. span {
  1165. display: block;
  1166. white-space: nowrap;
  1167. transition: all .5s;
  1168. }
  1169. &:hover{
  1170. img {
  1171. box-shadow: 0px 0px 6px rgb(255 79 79 / 25%);
  1172. }
  1173. span {
  1174. color: #ff4f4f;
  1175. }
  1176. }
  1177. }
  1178. }
  1179. .about_converter ul li {
  1180. width: 50%;
  1181. float: left;
  1182. list-style: none;
  1183. margin-bottom: 85px;
  1184. img {
  1185. width: 70px;
  1186. height: 70px;
  1187. float: left;
  1188. margin: 10px 36px 0px 0px;
  1189. }
  1190. .content {
  1191. width: 330px;
  1192. float: left;
  1193. h3 {
  1194. font-size: 20px;
  1195. color: #333333;
  1196. margin: 0px 0px 10px;
  1197. font-weight: normal;
  1198. }
  1199. p {
  1200. font-size: 16px;
  1201. color: #4c4c4c;
  1202. margin: 0px !important;
  1203. }
  1204. }
  1205. }
  1206. table {
  1207. border-collapse: collapse;
  1208. border-spacing: 0;
  1209. }
  1210. .converter_question table td {
  1211. width: 50%;
  1212. vertical-align: top;
  1213. h3 {
  1214. font-size: 18px;
  1215. color: #333333;
  1216. margin: 54px 0px 14px;
  1217. font-weight: normal;
  1218. text-align: left;
  1219. }
  1220. p {
  1221. width: 75%;
  1222. font-size: 16px;
  1223. color: #4c4c4c;
  1224. text-align: left;
  1225. span {
  1226. width: 8px;
  1227. height: 8px;
  1228. display: inline-block;
  1229. border-radius: 100%;
  1230. background: #333333;
  1231. margin-right: 12px;
  1232. margin-left: 4px;
  1233. }
  1234. }
  1235. }
  1236. .converter_question .more {
  1237. border-bottom: 1px solid #999999;
  1238. }
  1239. .download_code {
  1240. box-shadow: 0px 1px 5px rgb(0 0 0 / 12%);
  1241. }
  1242. .file-details-cell.state img {
  1243. display: inline-block;
  1244. cursor: pointer;
  1245. }
  1246. }
  1247. </style>