converter.vue 50 KB

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