converter.vue 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247
  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. const formData = new FormData();
  697. formData.append("file", file);
  698. formData.append("missionFileId", id);
  699. const config = {
  700. headers: {
  701. "Content-Type": "multipart/form-data;boundary = " + new Date().getTime()
  702. }
  703. };
  704. this.$axios.post("/missionFile/upload", formData, config).then((res) => {
  705. if (res.code === 200) {
  706. this.changeFileStatus(file.name, 2,file.output);
  707. this.uploadNum++;
  708. this.uploadSuccessNum++;
  709. if (this.uploadNum === this.uniqFileArr.length) {
  710. this.convertFile(file.name, missionId);
  711. }
  712. }
  713. else {
  714. this.uploadErrNum++;
  715. let uploadAllNum = this.uploadErrNum + this.uploadSuccessNum
  716. if(uploadAllNum === this.uniqFileArr.length){
  717. this.changeFileFlag = true;
  718. this.changeFileStatus("all", 5);
  719. }
  720. }
  721. });
  722. },
  723. // 转档第三步,开始转档
  724. convertFile(file, missionId) {
  725. const formData = new FormData();
  726. formData.append("missionId", missionId);
  727. const config = {
  728. headers: {
  729. "Content-Type": "multipart/form-data;boundary = " + new Date().getTime()
  730. }
  731. };
  732. this.$axios.post("/mission/convertFile", formData, config).then((res) => {
  733. if (res.code === 200) {
  734. this.changeFileStatus("all", 3);
  735. this.getFileStatusTimer = window.setInterval(() => {
  736. setTimeout(this.getFileStatus(formData, config), 0);
  737. }, 5000);
  738. }
  739. else {
  740. this.uploadNum = 0;
  741. this.changeFileStatus("all", 5);
  742. this.changeFileFlag = true;
  743. }
  744. });
  745. },
  746. // 转档最后一步,轮询文件状态和下载链接
  747. getFileStatus(formData, config) {
  748. this.$axios.post("/mission/queryFileStatus", formData, config).then((res) => {
  749. if (res.code === 200) {
  750. // 转档文件列表
  751. const getFileList = res.result[0].missionFilePoJos;
  752. // 转档成功与失败的数量
  753. let changeSucesssNum = 0;
  754. let changeErrNum = 0;
  755. for (let i = 0; i < getFileList.length; i++) {
  756. if (getFileList[i].status === 2) {
  757. this.changeFileStatus(getFileList[i].fileName, 4, getFileList[i].targetType);
  758. this.fileList.forEach(item => {
  759. if (item.name === getFileList[i].fileName) {
  760. this.changeFileStatus(getFileList[i].fileName, 6, getFileList[i].targetType);
  761. this.$set(item, "path", getFileList[i].path);
  762. // 对相同文件名与相同转换后文件进行去重
  763. this.changeSucesssFileList.forEach((iten,index)=>{
  764. if(iten.name.indexOf(item.name) !== -1 && iten.output.indexOf(item.output) !== -1){
  765. this.changeSucesssFileList.splice(index,1)
  766. }
  767. })
  768. this.changeSucesssFileList.push(item);
  769. }
  770. });
  771. changeSucesssNum++;
  772. }
  773. else if (getFileList[i].status === 3) {
  774. this.changeFileStatus(getFileList[i].fileName, 5, getFileList[i].targetType);
  775. changeErrNum++;
  776. }
  777. }
  778. let changeAllNum = changeSucesssNum + changeErrNum
  779. if (changeAllNum === getFileList.length) {
  780. clearInterval(this.getFileStatusTimer);
  781. this.getFileStatusTimer = null;
  782. this.changeSucesssNumTotal += changeSucesssNum;
  783. let failedFileList = getFileList.filter((val) => val.status === 3);
  784. let failedFileNameArr = failedFileList.map(val => val.fileName);
  785. let result = [];
  786. for (let i = 0; i < failedFileNameArr.length; i++) {
  787. this.uniqFileArr.forEach(item => {
  788. if (item.name === failedFileNameArr[i]) {
  789. result.unshift(item);
  790. }
  791. });
  792. }
  793. this.uniqFileArr = result;
  794. this.getUserInfo()
  795. this.uploadNum = 0;
  796. this.changeFileFlag = true;
  797. }
  798. localStorage.setItem("file", JSON.stringify(this.changeSucesssFileList));
  799. }
  800. else {
  801. this.changeFileStatus("all", 5);
  802. // 多失败就关闭查询
  803. clearInterval(this.getFileStatusTimer);
  804. this.uploadNum = 0;
  805. this.changeFileFlag = true;
  806. }
  807. });
  808. },
  809. //改变劵不足弹出框
  810. changeNoMia(){
  811. this.noMia = false
  812. }
  813. },
  814. watch: {
  815. token(newValue){
  816. if(newValue){
  817. this.showInputDisable = false;
  818. }
  819. }
  820. }
  821. }
  822. </script>
  823. <style lang="scss" scoped>
  824. ::v-deep body {
  825. min-width: 1200px !important;
  826. }
  827. ::v-deep .el-dialog {
  828. border-radius: 10px;
  829. box-shadow: 0 5px 15px rgb(0, 0 ,0 ,.5)
  830. }
  831. .page-converter {
  832. .date-tips {
  833. background: linear-gradient(0deg, #fff2f6, #fff2f6),
  834. linear-gradient(90deg, snow 10.37%, rgba(255, 243, 243, 0) 91.75%),
  835. linear-gradient(90deg, #fff2f6 2.26%, rgba(255, 242, 246, 0.21) 101.41%);
  836. .text-container {
  837. display: flex;
  838. align-items: center;
  839. margin-left: 16px;
  840. img {
  841. margin-left: 8px;
  842. }
  843. }
  844. span {
  845. font-size: 14px;
  846. line-height: 24px;
  847. vertical-align: middle;
  848. }
  849. .text {
  850. display: inline-flex;
  851. align-items: center;
  852. }
  853. .tip {
  854. position: relative;
  855. font-size: 0;
  856. .tip-text {
  857. display: none;
  858. position: absolute;
  859. left: -3px;
  860. width: 258px;
  861. padding: 15px 14px 10px 10px;
  862. background: url('http://cn-file.17pdf.com/website/members/ic_tip.svg')
  863. left top no-repeat;
  864. background-size: auto 100%;
  865. font-size: 12px;
  866. line-height: 18px;
  867. color: #fff;
  868. border-radius: 4px;
  869. }
  870. &:hover .tip-text {
  871. display: block;
  872. }
  873. }
  874. }
  875. .transfer-container {
  876. .hide {
  877. display: none !important;
  878. }
  879. button {
  880. padding-right: 7px;
  881. }
  882. .close {
  883. float: right;
  884. font-size: 21px;
  885. font-weight: bold;
  886. line-height: 1;
  887. color: #000;
  888. text-shadow: 0 1px 0 #fff;
  889. opacity: 0.2;
  890. filter: alpha(opacity=20);
  891. }
  892. button.close {
  893. padding: 0;
  894. cursor: pointer;
  895. background: transparent;
  896. border: 0;
  897. -webkit-appearance: none;
  898. }
  899. button:focus {
  900. outline: none;
  901. }
  902. .close:hover,
  903. .close:focus {
  904. color: #000;
  905. text-decoration: none;
  906. cursor: pointer;
  907. opacity: 0.5;
  908. filter: alpha(opacity=50);
  909. }
  910. .recharge .recharge-btn:hover a {
  911. color: #fff;
  912. }
  913. .transfer-btn .loading {
  914. display: inline-block;
  915. border: 3px solid #fff;
  916. border-bottom: 3px solid #cccccc;
  917. height: 35px;
  918. width: 35px;
  919. border-radius: 50%;
  920. position: relative;
  921. top: 10px;
  922. left: 100px;
  923. -webkit-animation: loading 1s infinite linear;
  924. -moz-animation: loading 1s infinite linear;
  925. -o-animation: loading 1s infinite linear;
  926. animation: loading 1s infinite linear;
  927. }
  928. }
  929. .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 {
  930. border-top: 0;
  931. }
  932. .file-drop-zone .table thead tr th {
  933. color: #666666;
  934. text-align: center;
  935. }
  936. .table>thead>tr>th {
  937. vertical-align: bottom;
  938. border-bottom: 2px solid #ddd;
  939. }
  940. .table>thead>tr>th, .table>thead>tr>td, .table>tbody>tr>th, .table>tbody>tr>td, .table>tfoot>tr>th, .table>tfoot>tr>td {
  941. padding: 8px;
  942. line-height: 1.428571429;
  943. vertical-align: top;
  944. border-top: 1px solid #ddd;
  945. }
  946. .table th, .table td {
  947. vertical-align: middle;
  948. box-sizing: border-box;
  949. }
  950. th {
  951. text-align: left;
  952. }
  953. td, th {
  954. padding: 0;
  955. }
  956. .input-group-btn {
  957. position: relative;
  958. font-size: 0;
  959. white-space: nowrap;
  960. }
  961. .input-group-addon, .input-group-btn {
  962. white-space: nowrap;
  963. vertical-align: middle;
  964. }
  965. .input-group-addon, .input-group-btn, .input-group .form-control {
  966. display: table-cell;
  967. }
  968. .clearfix:before, .clearfix:after {
  969. content: " ";
  970. display: table;
  971. }
  972. .input-group-btn:last-child>.btn, .input-group-btn:last-child>.btn-group {
  973. z-index: 2;
  974. margin-left: -1px;
  975. }
  976. .input-group-btn:first-child>.btn, .input-group-btn:first-child>.btn-group {
  977. margin-right: -1px;
  978. }
  979. .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 {
  980. border-bottom-left-radius: 0;
  981. border-top-left-radius: 0;
  982. }
  983. .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 {
  984. border-bottom-right-radius: 0;
  985. border-top-right-radius: 0;
  986. }
  987. .input-group-btn>.btn {
  988. position: relative;
  989. }
  990. .btn.disabled, .btn[disabled], fieldset[disabled] .btn {
  991. cursor: not-allowed;
  992. opacity: 0.65;
  993. filter: alpha(opacity=65);
  994. -webkit-box-shadow: none;
  995. box-shadow: none;
  996. }
  997. .btn-file {
  998. position: relative;
  999. overflow: hidden;
  1000. margin: 0;
  1001. top: 170px;
  1002. left: 50%;
  1003. margin-left: -45px !important;
  1004. outline: none;
  1005. cursor: pointer;
  1006. }
  1007. .btn {
  1008. display: inline-block;
  1009. margin-bottom: 0;
  1010. font-weight: normal;
  1011. text-align: center;
  1012. vertical-align: middle;
  1013. touch-action: manipulation;
  1014. cursor: pointer;
  1015. background-image: none;
  1016. border: 1px solid transparent;
  1017. white-space: nowrap;
  1018. border-radius: 4px;
  1019. -webkit-user-select: none;
  1020. -moz-user-select: none;
  1021. -ms-user-select: none;
  1022. user-select: none;
  1023. }
  1024. .btn-file .add-file {
  1025. background: url(http://cn-file.17pdf.com/website/fileinput/ic_file_add.png) no-repeat;
  1026. width: 90px;
  1027. height: 100px;
  1028. }
  1029. .btn-file .add-file-left {
  1030. background: url(http://cn-file.17pdf.com/website/fileinput/ic_add.png) no-repeat;
  1031. width: 120px;
  1032. height: 30px;
  1033. margin-top: 10px;
  1034. margin-left: 10px;
  1035. padding-left: 38px;
  1036. font-size: 16px;
  1037. line-height: 30px;
  1038. color: #666666;
  1039. }
  1040. .btn-file-left {
  1041. position: relative;
  1042. top: 0px;
  1043. left: 20px;
  1044. }
  1045. .transfer-container .transfer-remember .checkbox input[type="checkbox"] {
  1046. top: 3px;
  1047. }
  1048. .radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] {
  1049. position: absolute;
  1050. margin-left: -20px;
  1051. }
  1052. input[type="radio"], input[type="checkbox"] {
  1053. margin: 4px 0 0;
  1054. line-height: normal;
  1055. }
  1056. .modal {
  1057. display: none;
  1058. overflow: hidden;
  1059. position: fixed;
  1060. top: 0;
  1061. right: 0;
  1062. bottom: 0;
  1063. left: 0;
  1064. z-index: 1050;
  1065. -webkit-overflow-scrolling: touch;
  1066. outline: 0;
  1067. }
  1068. .file-drop-zone .table tbody tr:hover td {
  1069. background: #dfdfdf;
  1070. }
  1071. .file-drop-zone .table tbody tr td {
  1072. border-top: 0px;
  1073. }
  1074. .theme-explorer .explorer-frame td {
  1075. vertical-align: middle;
  1076. text-align: center;
  1077. }
  1078. .file-drop-zone .table tbody tr:hover td .transfer-select {
  1079. border-color: #ff4f4f;
  1080. background: url(http://cn-file.17pdf.com/website/converter/ic_trans_xiala_hover.png) no-repeat 72px 6px;
  1081. }
  1082. .file-drop-zone .table tbody tr .transfer-select {
  1083. width: 100%;
  1084. height: 22px;
  1085. border: 1px solid #dadada;
  1086. padding: 0px;
  1087. outline: none;
  1088. font-size: 14px;
  1089. color: #ff4f4f;
  1090. line-height: 22px;
  1091. // padding-left: 30px;
  1092. border-radius: 2px;
  1093. background: url(http://cn-file.17pdf.com/website/converter/ic_trans_xiala_nor.png) no-repeat 72px 6px;
  1094. }
  1095. .theme-explorer .file-actions-cell .file-actions .file-footer-buttons .pdf-removeicon:before {
  1096. content: url(https://cn-file.17pdf.com/website/converter/ic_delet_red.png) !important;
  1097. display: none;
  1098. }
  1099. .file-drop-zone .table tbody tr:hover td .file-actions .file-footer-buttons .pdf-removeicon:before {
  1100. display: block;
  1101. }
  1102. .btn.disabledBtn {
  1103. background-color: rgb(204, 204, 204);
  1104. pointer-events: none;
  1105. }
  1106. .file_num {
  1107. background: url(http://cn-file.17pdf.com/website/converter/pic_account_bg.png) repeat -10px 0px;
  1108. }
  1109. .clear {
  1110. zoom: 1;
  1111. }
  1112. .clear:after {
  1113. visibility: hidden;
  1114. display: block;
  1115. font-size: 0;
  1116. content: " ";
  1117. clear: both;
  1118. height: 0;
  1119. }
  1120. .pdf_converter .package_type h3:before,
  1121. .about_converter .name:before,
  1122. .converter_question .name:before {
  1123. content: '';
  1124. display: inline-block;
  1125. width: 5px;
  1126. height: 22px;
  1127. background: #ff4f4f;
  1128. margin-right: 10px;
  1129. margin-top: 4px;
  1130. vertical-align: top;
  1131. }
  1132. .pdf_converter .package_type ul li {
  1133. width: 120px;
  1134. list-style: none;
  1135. text-align: center;
  1136. margin-right: 30px;
  1137. cursor: pointer;
  1138. a {
  1139. display: block;
  1140. font-size: 14px;
  1141. color: #333333;
  1142. img {
  1143. display: inline-block;
  1144. width: 80px;
  1145. height: 80px;
  1146. margin-bottom: 20px;
  1147. vertical-align: middle;
  1148. }
  1149. span {
  1150. display: block;
  1151. white-space: nowrap;
  1152. transition: all .5s;
  1153. }
  1154. &:hover{
  1155. img {
  1156. box-shadow: 0px 0px 6px rgb(255 79 79 / 25%);
  1157. }
  1158. span {
  1159. color: #ff4f4f;
  1160. }
  1161. }
  1162. }
  1163. }
  1164. .about_converter ul li {
  1165. width: 50%;
  1166. float: left;
  1167. list-style: none;
  1168. margin-bottom: 85px;
  1169. img {
  1170. width: 70px;
  1171. height: 70px;
  1172. float: left;
  1173. margin: 10px 36px 0px 0px;
  1174. }
  1175. .content {
  1176. width: 330px;
  1177. float: left;
  1178. h3 {
  1179. font-size: 20px;
  1180. color: #333333;
  1181. margin: 0px 0px 10px;
  1182. font-weight: normal;
  1183. }
  1184. p {
  1185. font-size: 16px;
  1186. color: #4c4c4c;
  1187. margin: 0px !important;
  1188. }
  1189. }
  1190. }
  1191. table {
  1192. border-collapse: collapse;
  1193. border-spacing: 0;
  1194. }
  1195. .converter_question table td {
  1196. width: 50%;
  1197. vertical-align: top;
  1198. h3 {
  1199. font-size: 18px;
  1200. color: #333333;
  1201. margin: 54px 0px 14px;
  1202. font-weight: normal;
  1203. text-align: left;
  1204. }
  1205. p {
  1206. width: 75%;
  1207. font-size: 16px;
  1208. color: #4c4c4c;
  1209. text-align: left;
  1210. span {
  1211. width: 8px;
  1212. height: 8px;
  1213. display: inline-block;
  1214. border-radius: 100%;
  1215. background: #333333;
  1216. margin-right: 12px;
  1217. margin-left: 4px;
  1218. }
  1219. }
  1220. }
  1221. .converter_question .more {
  1222. border-bottom: 1px solid #999999;
  1223. }
  1224. .download_code {
  1225. box-shadow: 0px 1px 5px rgb(0 0 0 / 12%);
  1226. }
  1227. .file-details-cell.state img {
  1228. display: inline-block;
  1229. cursor: pointer;
  1230. }
  1231. }
  1232. </style>