details.vue 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362
  1. <template>
  2. <div class="details-p" ref="sContent" @scroll="showMorePage">
  3. <div class="details-content">
  4. <div class="details-head">
  5. <div class="top-title-group flex-r-c">
  6. <van-icon :name="'diy-' + fileType(detailData.docFileType)"></van-icon>
  7. <div class="flex">
  8. <span class="docName">{{ detailData.docName}}</span>
  9. <span class="type-tag"
  10. :class="detailData.productType === 2 ? 'boutique' : 'free'">{{ detailData.productType === 2 ? '付费精品' : '会员免费' }}</span>
  11. </div>
  12. </div>
  13. <div class="details-tags">
  14. <div class="tag-item"><span>{{ detailData.viewTimes || 0 }}</span>次浏览</div>
  15. <div class="tag-item"><span>{{ detailData.downTimes || 0 }}</span>次下载</div>
  16. <div class="tag-item"><span>{{ detailData.docFileSize }}</span></div>
  17. <div class="tag-item"><span>{{ dateFormatter(detailData.uploadDate, 'yyyy-MM-dd') }}</span>上传</div>
  18. </div>
  19. </div>
  20. <div class="middles middles-summary" v-if=" buyed == 0 && detailData.source === 1 && !loginInfo">
  21. <h3>摘要</h3>
  22. <p>{{ detailData.docSummary }}</p>
  23. <div class="continue" v-show="buyed == 0">全文共{{ detailData.docPageSize }}页,<span @click="readAll">阅读全文<van-icon
  24. name="arrow-down" size="18" /></span></div>
  25. </div>
  26. <div class="middles preview-page" v-if="buyed === 0 && (loginInfo || (!loginInfo && detailData.source === 2))">
  27. <div>
  28. <!--剑鱼文档全为PDF-->
  29. <div class="pdf_" v-if="detailData.source === 1 && showfileType==='pdf'">
  30. <pdf v-for="i in getPageNum" :key="i" :src="pdfPage.url" :page="i" @error="pdfError($event)"></pdf>
  31. </div>
  32. <div class="file-content file-word-docx" v-if="detailData.source !== 1">
  33. <img v-for="(iUrl, ind) in previewConfig.docinImg" :key="'iUrl_' + ind" :src="iUrl" alt="预览">
  34. </div>
  35. </div>
  36. <div
  37. class="continue"
  38. v-if="unreadPage > 0 && detailData.docPageSize > 1 && guideText"
  39. >
  40. <div class="unread-num">
  41. <span class="line"></span>
  42. 剩余{{ unreadPage }}页未读
  43. <span class="line"></span>
  44. </div>
  45. <div class="handle-span" @click="readAll">{{ guideText }}
  46. <van-icon name="arrow-down" size="16" />
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. <van-sticky :offset-top="Offset" @scroll="stickyScroll" v-show="buyed == 1">
  52. <div class="head-tip" :class="{ 'is-fixed': fixed }">
  53. <h3 class="flex" v-show="fixed">
  54. <van-icon class="word01" :name="'diy-' + fileType(detailData.docFileType)" />
  55. <span class="flex">{{ detailData.docName }}</span>
  56. </h3>
  57. <!-- <span class="pages"><i id="page_num"></i> / <i>{{detailData.docPageSize}}</i></span>-->
  58. </div>
  59. </van-sticky>
  60. <!-- 已购买,但是加载失败-->
  61. <div class="bottoms-preview" v-if="docLoadError && buyed === 1">
  62. <div class="file-content">
  63. <img v-for="(iUrl, ind) in previewConfig.docinImg" :key="'iUrl_' + ind" :src="iUrl" alt="预览">
  64. </div>
  65. <div
  66. class="continue"
  67. v-if="unreadPage > 0 && detailData.docPageSize > 1 && showfileType !== 'pdf'"
  68. >
  69. <div class="unread-num">
  70. <span class="line"></span>
  71. 剩余{{ unreadPage }}页未读,
  72. <span class="line"></span>
  73. </div>
  74. <div class="handle-span" @click="readAll">{{ guideText }}
  75. <van-icon name="arrow-down" size="16" />
  76. </div>
  77. </div>
  78. </div>
  79. <div class="botts" v-if="buyed == 1 && !docLoadError">
  80. <!-- showfileType -->
  81. <div class="pdf_" v-if="showfileType==='pdf'">
  82. <pdf v-for="i in getPageNum" :key="i" :src="pdfPage.url" :page="i" @error="pdfError($event)"></pdf>
  83. </div>
  84. <div class="doc_" v-if="showfileType==='docx'">
  85. <vue-office-docx
  86. :src="buyShowUrl"
  87. style="height: 100%"
  88. @rendered="rendered"
  89. />
  90. </div>
  91. <div class="excel_" v-if="showfileType==='xlsx' || showfileType==='xls'">
  92. <vue-office-excel
  93. :options="setOptions"
  94. :src="buyShowUrl"
  95. style="height: 100%"
  96. @rendered="renderedHandler"
  97. @error="errorHandler"
  98. ></vue-office-excel>
  99. </div>
  100. <div class="ppt_" v-if="showfileType==='ppt'">
  101. </div>
  102. </div>
  103. <van-goods-action>
  104. <div class="foot-ad">
  105. <div class="warm_text" v-if="warmShow && isrenew">
  106. <van-icon :name="'diy-warmclose'" @click="warmShow = false"></van-icon>
  107. <div class="middle_text">您的文库会员将于{{Remainingtime}}到期,续费即享下载特权!</div>
  108. <div class="warm_btn" @click="bottomBtn('续费文库会员')">去续费</div>
  109. </div>
  110. <div class="ad-box" v-if="showAd && !isrenew">
  111. <van-icon class="Ad_close" name="cross" @click="showAd = false"></van-icon>
  112. <Ad :width="0" :loop="true" :code="$envs.inWX ? 'jy-wx-docmember-detail' : 'jy-app-docmember-detail'" @noData="showAd = false"></Ad>
  113. </div>
  114. </div>
  115. <div class="footbar">
  116. <div class="goods-action">
  117. <!-- <van-goods-action-icon class="no-icon" v-if="needBuy">
  118. <template #default>
  119. <p class="p1">剑鱼币</p>
  120. <p class="p2">{{ detailData.price }}</p>
  121. </template>
  122. </van-goods-action-icon> -->
  123. <van-goods-action-icon icon="diy-jubao" text="投诉举报" @click="jubaod" />
  124. <van-goods-action-icon :icon="collectd == 1 ? 'diy-guanzhu' : 'diy-weiguanzhu'" :text="collectd == 1 ? '已收藏' : '收藏'"
  125. @click="canged" v-if="!flag" />
  126. <van-goods-action-icon :icon="collectd == 1 ? 'diy-guanzhu' : 'diy-weiguanzhu'" :text="collectd == 1 ? '已收藏' : '收藏'"
  127. v-else />
  128. </div>
  129. <!-- <van-goods-action-button text="下载文档" @click="uploaded" /> -->
  130. <!-- 精品 未下载 不是会员 -->
  131. <div class="btnGroup" v-if="boutique && buyed === 0 && !isviper">
  132. <div class="foot_leftbtn" @click="bottomBtn('原价下载')">
  133. <div>
  134. <div class="flex-r-c">
  135. <van-icon :name="'diy-jymoney'"></van-icon>
  136. <span class="fs_large c_red">{{ detailData.price }}</span>
  137. </div>
  138. <p class="fs_small">原价下载</p>
  139. </div>
  140. </div>
  141. <div class="foot_rightbtn" @click="bottomBtn('开通文库会员')">
  142. <div>
  143. <p class="fs_middle">{{detailData.docMemberDiscount}}折下载</p>
  144. <p class="fs_small">开通文库会员</p>
  145. </div>
  146. </div>
  147. </div>
  148. <!-- 会员免费 未下载 不是会员 使用过免费下载次数 -->
  149. <div class="btnGroup" v-if="isvipFree && buyed === 0 && !isviper && power.freeDownload === 1">
  150. <div class="foot_leftbtn" :class="{visibility_hide: downloadStatus === 1}" @click="bottomBtn('原价下载')">
  151. <div>
  152. <div class="flex-r-c">
  153. <van-icon :name="'diy-jymoney'"></van-icon>
  154. <span class="fs_large c_red">{{ detailData.price }}</span>
  155. </div>
  156. <p class="fs_small">原价下载</p>
  157. </div>
  158. </div>
  159. <div class="foot_rightbtn" @click="bottomBtn('开通文库会员')">
  160. <div>
  161. <p class="fs_middle">免费下载</p>
  162. <p class="fs_small">开通文库会员</p>
  163. </div>
  164. </div>
  165. </div>
  166. <!-- 精品 未下载 是会员 -->
  167. <div class="btnGroup" v-if="boutique && buyed === 0 && isviper">
  168. <div class="price_box">
  169. <div>
  170. <div class="flex-end-center">
  171. <span class="vip_price fs_small">会员价:</span>
  172. <van-icon :name="'diy-jymoney'"></van-icon>
  173. <span class="fs_large c_red">{{detailData.docMemberPrice}}</span>
  174. </div>
  175. <div class="flex-end-center">
  176. <span class="c_hui fs_small s_line">原价:</span>
  177. <van-icon :name="'diy-jymoney'" class="opcity_n"></van-icon>
  178. <span class="fs_small c_hui s_line">{{detailData.price}}</span>
  179. </div>
  180. </div>
  181. </div>
  182. <div class="foot_rightbtn" @click="bottomBtn('会员获取文档')">
  183. <div>
  184. <p class="fs_middle">获取文档</p>
  185. </div>
  186. </div>
  187. </div>
  188. <!-- 会员免费 未下载 是会员 -->
  189. <div class="btnGroup" v-if="isvipFree && buyed === 0 && isviper">
  190. <div class="price_box">
  191. <div>
  192. <div class="flex-end-center">
  193. <span class="vip_price fs_small">会员价:</span>
  194. <van-icon :name="'diy-jymoney'"></van-icon>
  195. <span class="fs_middle c_red">免费</span>
  196. </div>
  197. <div class="flex-end-center">
  198. <span class="c_hui fs_small s_line">原价:</span>
  199. <van-icon :name="'diy-jymoney'" class="opcity_n"></van-icon>
  200. <span class="fs_small c_hui s_line">{{detailData.price}}</span>
  201. </div>
  202. </div>
  203. </div>
  204. <div class="foot_rightbtn" @click="getFile">
  205. <div>
  206. <p class="fs_middle" >获取文档</p>
  207. </div>
  208. </div>
  209. </div>
  210. <!-- 未留资或留资未使用免费下载次数 会员免费 未下载 不是会员 -->
  211. <div class="btnGroup" v-if="(power.freeDownload === 2 || power.freeDownload === 0) && isvipFree && buyed === 0 && !isviper">
  212. <div class="foot_leftbtn" :class="{ 'green_border_width_120': loginInfo }" @click="bottomBtn(loginInfo ? '使用免费下载特权' : '原价下载')">
  213. <div v-if="loginInfo">
  214. <div class="flex-r-c">
  215. <span class="fs_middle" >使用免费下载特权</span>
  216. </div>
  217. <p class="fs_small">(1次机会)</p>
  218. </div>
  219. <div v-else>
  220. <div class="flex-r-c">
  221. <van-icon :name="'diy-jymoney'"></van-icon>
  222. <span class="fs_large c_red">{{ detailData.price }}</span>
  223. </div>
  224. <p class="fs_small">原价下载</p>
  225. </div>
  226. </div>
  227. <div class="foot_rightbtn" @click="bottomBtn('开通文库会员')">
  228. <div>
  229. <p class="fs_middle">免费下载</p>
  230. <p class="fs_small">开通文库会员</p>
  231. </div>
  232. </div>
  233. </div>
  234. <!-- 下载过 -->
  235. <div class="btnGroup" v-if="buyed === 1">
  236. <div class="price_box">
  237. </div>
  238. <div class="foot_rightbtn" @click="uploaded('down')">
  239. <div>
  240. <p class="fs_middle">下载文档</p>
  241. </div>
  242. </div>
  243. </div>
  244. </div>
  245. </van-goods-action>
  246. <!-- 充值 -->
  247. <recharge ref="charge" :detailData="detailData" :coins="coins"></recharge>
  248. <!-- 分享 -->
  249. <share-pop ref="shares" :detailData="detailData" :links="links"></share-pop>
  250. <!-- 弹窗 -->
  251. <popupbox ref="popVIPdeplete" title="今日会员免费文档下载特权已用尽" text="建议您明日享受会员特权进行免费下载。" :leftbtnShow="false"
  252. rightbtn="我知道了"
  253. @rightBtn="popBtn({ type: 'popVIPdeplete', btn: '我知道了' }, $event)"></popupbox>
  254. <popupbox ref="popDown" title="文档获取成功" text="已添加到您的文库中,您可前往下载文档。" :leftbtnShow="false" rightbtn="下载文档"
  255. @rightBtn="downLoadFile('popDown', $event)"></popupbox>
  256. <popupbox ref="popJYcurrency" title="剑鱼币余额不足" leftbtn="我再想想" rightbtn="立即充值"
  257. @leftBtn="popBtn({ type: 'popJYcurrency', btn: '我再想想' }, $event)"
  258. @rightBtn="popBtn({ type: 'popJYcurrency', btn: '立即充值' }, $event)">
  259. <template #text>
  260. <span>现有 <span style="color:#2ABED1;">{{coins.balance}}</span> 剑鱼币,还需 <span style="color:#2ABED1;">{{ myprice - coins.balance }}</span> 剑鱼币,请先充值</span>
  261. </template>
  262. </popupbox>
  263. <popupbox ref="popDownVIP" :showFoot="false" type="download" title="文档获取成功" text="已添加到您的文库中,您可前往下载文档。"
  264. @downLoad="downLoadFile('popDownVIP', $event)">
  265. <template #btnUnder>
  266. <div class="fs_small">
  267. <div>- 会员免费文档下载特权 -</div>
  268. <div>消耗 <span style="color:#2ABED1;">1</span> 篇 | 今日还剩余 <span style="color:#2ABED1;">{{surplus}}</span> 篇</div>
  269. </div>
  270. </template>
  271. </popupbox>
  272. </div>
  273. </template>
  274. <script lang="ts">
  275. import { Component, Vue } from 'vue-property-decorator'
  276. import { mapActions, mapMutations, mapState } from 'vuex'
  277. import { Icon, Toast, GoodsAction, GoodsActionIcon, GoodsActionButton, Sticky } from 'vant'
  278. import Recharge from '@/components/Recharge.vue'
  279. import sharePop from '@/components/SharePopup.vue'
  280. import popupbox from '@/components/popupbox/index.vue'
  281. import Ad from '@/components/Ad.vue'
  282. import { MixinTop } from '@/utils/mixin-top'
  283. import { weChatShare } from '@/utils/wxShare'
  284. import { formatSize, dateFormatter } from '@/utils/globalFunctions'
  285. import { appCallOpenWindow } from '@/utils/globalFunctionsForApp'
  286. import { isAdd } from '@/api'
  287. import { getDocPay } from '@/api/main'
  288. import pdf from 'vue-pdf'
  289. // 引入VueofficeDocx组件
  290. import VueOfficeDocx from '@vue-office/docx'
  291. // 引入相关样式
  292. import '@vue-office/docx/lib/index.css'
  293. // 号入VueOfficeExcel组件
  294. import VueOfficeExcel from '@vue-office/excel'
  295. // 引入相关样式
  296. import '@vue-office/excel/lib/index.css'
  297. @Component({
  298. name: 'details-p',
  299. mixins: [MixinTop],
  300. components: {
  301. [Icon.name]: Icon,
  302. [Sticky.name]: Sticky,
  303. [GoodsAction.name]: GoodsAction,
  304. [GoodsActionIcon.name]: GoodsActionIcon,
  305. [GoodsActionButton.name]: GoodsActionButton,
  306. Recharge,
  307. sharePop,
  308. popupbox,
  309. Ad,
  310. pdf,
  311. VueOfficeDocx,
  312. VueOfficeExcel
  313. },
  314. computed: {
  315. ...mapState('main', {
  316. loginInfo: (state: any) => state.isLogin
  317. })
  318. },
  319. methods: {
  320. dateFormatter,
  321. ...mapActions({
  322. getDetails: 'main/getDetails',
  323. getShow: 'main/getShow',
  324. getCoin: 'main/getCoin',
  325. getDown: 'main/getDown',
  326. getShare: 'main/getShare',
  327. getAdd: 'main/getAdd',
  328. getRemove: 'main/getRemove'
  329. }),
  330. ...mapMutations({
  331. clearLibState: 'main/clearMyLibState'
  332. })
  333. }
  334. })
  335. export default class extends Vue {
  336. $envs: any
  337. clearLibState: any
  338. getDetails: any
  339. getCoin: any
  340. getDown: any
  341. getShow: any
  342. getShare: any
  343. loginInfo: any
  344. links = ''
  345. docIds = ''
  346. fixed = false
  347. coins: any = []
  348. Remainingtime = ''
  349. use = ''
  350. surplus = ''
  351. pdfPage = {
  352. pageNum: 0,
  353. url: ''
  354. }
  355. setOptions = {
  356. xls: true
  357. }
  358. buyShowUrl = ''
  359. downloadStatus = 0
  360. myprice = 0
  361. power: any = {}
  362. getAdd: any
  363. getRemove: any
  364. detailData: any = {}
  365. collectd = 0
  366. isrenew = false
  367. warmShow = true
  368. showAd = true
  369. buyed = 0
  370. flag = false
  371. pdfh5 = null
  372. pData: any = {
  373. heightList: []
  374. }
  375. TopConfig: any = {
  376. actionRightText: '',
  377. // actionRightText: this.loginInfo ? '<div style="display:flex;flex-direction: column;align-items: center;"><i class="j-icon icon-iconJianYu"></i><p style="color: #171826;font-size: 10px;line-height: 12px;margin-top:3px;">分享赚剑鱼币</p></div>' : '',
  378. actionRightCallback: this.shared,
  379. actionRightStyle: {
  380. color: '#5F5E64',
  381. fontSize: '20px',
  382. paddingLeft: '10px'
  383. }
  384. }
  385. showPageNum = 2
  386. showPageNumT: any = ''
  387. // 预览配置
  388. previewConfig: any = {
  389. pageNums: 1,
  390. docinImg: []
  391. }
  392. // 文档加载失败
  393. docLoadError = false
  394. created () {
  395. if (this.loginInfo) {
  396. this.TopConfig.actionRightText = '<div style="display:flex;flex-direction: column;align-items: center;"><i class="j-icon icon-iconJianYu"></i><p style="color: #171826;font-size: 10px;line-height: 12px;margin-top:3px;">分享赚剑鱼币</p></div>'
  397. }
  398. this.docIds = this.$route.params.id
  399. this.getPower()
  400. this.onList()
  401. }
  402. get isvipFree () { // 会员免费
  403. return this.detailData.productType === 1
  404. }
  405. get boutique () { // 精品
  406. return this.detailData.productType === 2
  407. }
  408. get isviper () {
  409. return this.power.docStatus > 0
  410. }
  411. get getPageNum () {
  412. return this.showPageNum
  413. }
  414. get Offset () {
  415. const tempN = document.querySelector('.j-header.jy-app-header') as HTMLDivElement
  416. if (tempN) {
  417. return tempN.offsetHeight - 1
  418. } else {
  419. return 0
  420. }
  421. }
  422. get needBuy () {
  423. return this.buyed === 0
  424. }
  425. get showfileType () {
  426. if (this.buyShowUrl.includes('.pdf') || this.detailData.docFileType === 2) {
  427. return 'pdf'
  428. } else if (this.buyShowUrl.includes('.docx')) {
  429. return 'docx'
  430. } else if (this.buyShowUrl.includes('.xlsx')) {
  431. this.setOptions.xls = false
  432. return 'xlsx'
  433. } else if (this.buyShowUrl.includes('.xls')) {
  434. this.setOptions.xls = true
  435. return 'xls'
  436. } else if (this.buyShowUrl.includes('.ppt') || this.detailData.docFileType === 4) {
  437. return 'ppt'
  438. } else if (this.detailData.docFileType === 5) {
  439. return 'txt'
  440. } else {
  441. return ''
  442. }
  443. }
  444. get guideText () {
  445. // P620需求:1、未购买预览时,引流文案
  446. // 或者,购买豆丁文件加载时错误后,最多预览5页,最后的引流文案
  447. let btnText = '下载文档阅读全文'
  448. if (!this.loginInfo) {
  449. return '开通文库会员免费阅读全文'
  450. }
  451. if (this.docLoadError) {
  452. return '下载文档阅读全文'
  453. }
  454. if (this.isvipFree && this.buyed === 0 && this.isviper) { // 会员免费 未下载 会员
  455. btnText = '下载文档阅读全文'
  456. } else if ((this.power.freeDownload === 2 || this.power.freeDownload === 0) && this.isvipFree && this.buyed === 0 && !this.isviper) {
  457. btnText = '使用免费下载特权阅读全文'
  458. } else if (this.isvipFree && this.buyed === 0 && !this.isviper && this.power.freeDownload === 1) { // 会员免费 未下载 不是会员 使用过免费下载次数
  459. btnText = '开通文库会员免费阅读全文'
  460. } else if (this.boutique && this.buyed === 0 && this.isviper) {
  461. btnText = '下载文档阅读全文'
  462. } else if (this.boutique && this.buyed === 0 && !this.isviper) {
  463. btnText = `开通文库会员${this.detailData.docMemberDiscount}折下载文档阅读全文`
  464. } else if (this.buyed === 1 && this.showfileType !== 'pdf') {
  465. btnText = '下载文档阅读全文'
  466. } if (this.buyed === 1 && this.showfileType === 'pdf') {
  467. btnText = ''
  468. }
  469. return btnText
  470. }
  471. // 未购买预览时,未读页码; 或者豆丁渲染错误,
  472. get unreadPage () {
  473. return this.detailData.docPageSize - this.previewConfig.pageNums
  474. }
  475. rendered (res: any) {
  476. console.log('完成', res)
  477. }
  478. renderedHandler () {
  479. console.log('完成')
  480. const inputs = document.getElementsByTagName('input')
  481. // 遍历所有input元素并设置readonly属性
  482. for (let i = 0; i < inputs.length; i++) {
  483. inputs[i].setAttribute('readonly', 'readonly')
  484. inputs[i].setAttribute('tabindex', '-1')
  485. }
  486. // 获取页面上的所有textarea元素
  487. const textareas = document.getElementsByTagName('textarea')
  488. // 遍历所有textarea元素并设置事件监听器
  489. for (let i = 0; i < textareas.length; i++) {
  490. textareas[i].setAttribute('tabindex', '-1')
  491. textareas[i].addEventListener('input', function (event) {
  492. event.preventDefault() // 阻止输入
  493. })
  494. }
  495. }
  496. errorHandler () {
  497. console.log('失败')
  498. this.ddErrorPreview()
  499. }
  500. popBtn (obj: any) {
  501. switch (obj.btn) {
  502. case '立即充值': {
  503. window.location.href = `/page_points_mobile/pay?id=${this.detailData.docId}`
  504. break
  505. }
  506. case '原价下载': {
  507. this.uploaded('Originalprice')
  508. break
  509. }
  510. default:
  511. break
  512. }
  513. (this.$refs[obj.type] as any).value = false
  514. }
  515. async bottomBtn (type: string) {
  516. // 未登录跳转登录
  517. if (!this.loginInfo) {
  518. window.location.href = '/jyapp/free/login?to=back'
  519. return
  520. }
  521. switch (type) {
  522. case '开通文库会员': {
  523. window.location.href = '/jy_mobile/order/create/docsvip/?type=buy'
  524. break
  525. }
  526. case '续费文库会员': {
  527. window.location.href = '/jy_mobile/order/create/docsvip/?type=renew'
  528. break
  529. }
  530. case '使用免费下载特权': {
  531. if (this.power.freeDownload === 0) { // 未留资
  532. let url = ''
  533. if (this.$envs.inWX) {
  534. url = '/weixin/frontPage/bigmember/free/perfect_info?source=wx_library_details_free'
  535. } else if (this.$envs.inApp) {
  536. url = '/jyapp/frontPage/bigmember/free/perfect_info?source=app_library_details_free'
  537. } else {
  538. url = '/jyapp/frontPage/bigmember/free/perfect_info?source=h5_library_details_free'
  539. }
  540. window.location.href = url
  541. } else {
  542. const { data } = await getDocPay({ docId: this.docIds, payType: 2 })
  543. if (data.data) {
  544. this.onList();
  545. (this.$refs.popDown as any).value = true
  546. }
  547. }
  548. break
  549. }
  550. case '原价下载': {
  551. this.uploaded('Originalprice')
  552. break
  553. }
  554. case '会员获取文档': {
  555. this.uploaded('vipget')
  556. break
  557. }
  558. default:
  559. break
  560. }
  561. }
  562. downLoadFile (type: string) {
  563. this.uploaded('down');
  564. (this.$refs[type] as any).value = false
  565. }
  566. getMorePage () {
  567. if (this.showPageNum < this.pdfPage.pageNum) {
  568. if (this.showPageNum + 2 <= this.pdfPage.pageNum) {
  569. this.showPageNum = this.showPageNum + 2
  570. } else {
  571. this.showPageNum = this.pdfPage.pageNum
  572. }
  573. }
  574. }
  575. showMorePage () {
  576. const tDom = this.$refs.sContent as HTMLDivElement
  577. const beBottom = tDom.scrollHeight - tDom.clientHeight - tDom.scrollTop
  578. if (beBottom <= 200) {
  579. clearTimeout(this.showPageNumT)
  580. this.showPageNumT = setTimeout(() => {
  581. this.getMorePage()
  582. }, 300)
  583. }
  584. }
  585. getNumPages (url: string, type: any) {
  586. try {
  587. const loadingTask = pdf.createLoadingTask(url)
  588. loadingTask.promise.then((pdf: any) => {
  589. const nums = type === 'preview' ? this.previewConfig.pageNums : pdf.numPages
  590. this.pdfPage.url = loadingTask
  591. this.pdfPage.pageNum = nums
  592. }).catch((err: any) => {
  593. this.ddErrorPreview()
  594. console.error('pdf加载失败', err)
  595. })
  596. } catch (e: any) {
  597. console.log(e)
  598. }
  599. }
  600. async getPower () {
  601. const { data } = await isAdd({})
  602. this.power = data.data.docsInfo
  603. const endTime = this.power?.endDate
  604. const date = parseInt(new Date().getTime() / 1000 as any)
  605. const sevenDay = 60 * 60 * 24 * 7
  606. const Remainingtime = endTime - date
  607. if (Remainingtime <= sevenDay && this.power.docStatus > 0) {
  608. this.isrenew = true
  609. }
  610. this.Remainingtime = this.timestampToDays(Remainingtime) as string
  611. }
  612. timestampToDays (timestamp: number) {
  613. const oneDay = 24 * 60 * 60 * 1 // 每天的秒数
  614. if ((timestamp / oneDay) < 1) {
  615. return '今天'
  616. } else {
  617. return (timestamp / oneDay).toFixed(0) + '天后'
  618. }
  619. }
  620. async getShareUrl () {
  621. const { data } = await this.getShare({ docId: this.docIds })
  622. this.links = data.url || location.href
  623. // 注册微信sdk
  624. weChatShare({
  625. config: {
  626. title: this.detailData.docName,
  627. desc: this.detailData.docSummary,
  628. link: this.links
  629. }
  630. })
  631. }
  632. shared () {
  633. (this.$refs.shares as any).show = true
  634. }
  635. updateText (data: any) {
  636. // console.log(data)
  637. switch (data.type) {
  638. case 'count': {
  639. (document.getElementById('page_count') as HTMLDivElement).textContent = data.value
  640. break
  641. }
  642. case 'num': {
  643. (document.getElementById('page_count') as HTMLDivElement).textContent = data.value
  644. break
  645. }
  646. }
  647. }
  648. stickyScroll (data: any) {
  649. if (data.isFixed) {
  650. this.fixed = true
  651. } else {
  652. this.fixed = false
  653. }
  654. }
  655. buyShow (type: any) {
  656. this.getShow({ docId: this.docIds }).then((res: any) => {
  657. this.buyShowUrl = res.data
  658. if (res.data.includes('.pdf') || this.detailData.docFileType === 2 || !this.showfileType) {
  659. this.getNumPages(res.data, type)
  660. } else if (res.data.includes('.docx') || res.data.includes('.ppt')) {
  661. this.ddErrorPreview()
  662. }
  663. })
  664. }
  665. onList () {
  666. this.getDetails({ docId: this.docIds, from: this.$route.query.from }).then((res: any) => {
  667. this.detailData = res.data.detail
  668. this.detailData.docFileSize = formatSize(this.detailData.docFileSize)
  669. this.detailData.docSummary = res.data.detail.docSummary.split('').length >= 500 ? res.data.detail.docSummary + '...' : res.data.detail.docSummary
  670. this.buyed = res.data.status
  671. this.downloadStatus = res.data.downloadStatus
  672. if (res.data.status === 1) {
  673. this.buyShow('all')
  674. } else {
  675. // 处理预览展示
  676. this.disposePreviewContent()
  677. }
  678. this.collectd = res.data.collect
  679. this.getShareUrl()
  680. })
  681. this.getCoin({ B: true }).then((res: any) => {
  682. // console.log(res.data.data)
  683. this.coins = res.data.points
  684. })
  685. }
  686. // 处理预览展示
  687. disposePreviewContent () {
  688. this.previewConfig.docinImg = []
  689. // P620需求 总页数≥3页:最多预览2页;总页数≤2页:最多预览1页。
  690. // 预览页数
  691. this.previewConfig.pageNums = this.detailData.docPageSize >= 3 ? 2 : 1
  692. // 豆丁预览图片
  693. // source 2豆丁 1 剑鱼
  694. if (this.detailData.source === 2) {
  695. for (let i = 1; i <= this.previewConfig.pageNums; i++) {
  696. const ddUrl = `https://docimg1.docin.com/docinviewpic.jsp?file=${this.detailData.imgId}&width=1000&pageno=${i}&sview=1&clogo=1`
  697. this.previewConfig.docinImg.push(ddUrl)
  698. }
  699. } else {
  700. // 剑鱼文档,返回的格式全部为pdf
  701. this.buyShow('preview')
  702. }
  703. }
  704. pdfError () {
  705. console.log('---pdf渲染失败--')
  706. if (this.detailData.source === 2) {
  707. this.ddErrorPreview()
  708. }
  709. }
  710. // 豆丁预览(如果购买后的全文加载失败,则走预览逻辑,PDF)
  711. ddErrorPreview () {
  712. this.docLoadError = true
  713. this.previewConfig.docinImg = []
  714. this.previewConfig.pageNums = this.detailData.docPageSize >= 5 ? 5 : this.detailData.docPageSize
  715. for (let i = 1; i <= this.previewConfig.pageNums; i++) {
  716. const ddUrl = `https://docimg1.docin.com/docinviewpic.jsp?file=${this.detailData.imgId}&width=1000&pageno=${i}&sview=1&clogo=1`
  717. this.previewConfig.docinImg.push(ddUrl)
  718. }
  719. }
  720. jubaod () {
  721. Toast({
  722. duration: 3500,
  723. message: '如果您发现此内容有侵权行为,请联系客服400-108-6670进行投诉'
  724. })
  725. }
  726. canged () {
  727. // 未登录跳转登录
  728. if (!this.loginInfo) {
  729. window.location.href = '/jyapp/free/login?to=back'
  730. return
  731. }
  732. if (this.collectd === 0) {
  733. this.getAdd({ docId: this.docIds }).then((res: any) => {
  734. if (res.error_code === 0) {
  735. this.clearLibState('clearCollections') // 清除我的收藏列表缓存数据
  736. this.collectd = 1
  737. Toast('收藏成功')
  738. }
  739. })
  740. this.flag = true
  741. } else {
  742. this.getRemove({ docId: this.docIds }).then((res: any) => {
  743. if (res.error_code === 0) {
  744. this.clearLibState('clearCollections') // 清除我的收藏列表缓存数据
  745. this.collectd = 0
  746. Toast('取消收藏')
  747. }
  748. })
  749. this.flag = true
  750. }
  751. setTimeout(() => {
  752. this.flag = false
  753. }, 1000)
  754. }
  755. async getFile () {
  756. const { data } = await getDocPay({ docId: this.docIds, payType: 0 })
  757. const getData = data.data
  758. if (getData) {
  759. if (getData.status === 0) {
  760. this.onList()
  761. this.surplus = getData.surplus
  762. this.use = getData.use;
  763. (this.$refs.popDownVIP as any).value = true
  764. } else if (getData.status === 1) {
  765. (this.$refs.popVIPdeplete as any).value = true
  766. }
  767. }
  768. }
  769. uploaded (type: string) {
  770. if (type === 'down') { // 下载
  771. this.getDown({ docId: this.docIds }).then((res: any) => {
  772. if (res.error_code === 0) {
  773. if (this.$env.platform === 'app' && this.$env.platform.platformOS === 'ios') {
  774. appCallOpenWindow(res.data)
  775. } else {
  776. window.location.href = res.data
  777. }
  778. }
  779. })
  780. } else if (type === 'vipget') { // 会员下载
  781. if (this.coins.balance < this.detailData.docMemberPrice) {
  782. this.myprice = this.detailData.docMemberPrice as number
  783. // (this.$refs.charge as any).show = true
  784. (this.$refs.popJYcurrency as any).value = true
  785. } else {
  786. this.$router.push({ path: '/purchase/' + this.detailData.docId, query: { payType: '0' } })
  787. }
  788. } else { // 原价下载
  789. if (this.coins.balance < this.detailData.price) {
  790. this.myprice = this.detailData.price as number
  791. // (this.$refs.charge as any).show = true
  792. (this.$refs.popJYcurrency as any).value = true
  793. } else {
  794. this.$router.push({ path: '/purchase/' + this.detailData.docId, query: { payType: '1' } })
  795. }
  796. }
  797. }
  798. readAll () {
  799. if (this.isvipFree && this.buyed === 0 && this.isviper) { // 会员免费 未下载 会员
  800. this.getFile()
  801. } else if ((this.power.freeDownload === 2 || this.power.freeDownload === 0) && this.isvipFree && this.buyed === 0 && !this.isviper) {
  802. this.bottomBtn('使用免费下载特权')
  803. } else if (this.isvipFree && this.buyed === 0 && !this.isviper && this.power.freeDownload === 1) { // 会员免费 未下载 不是会员 使用过免费下载次数
  804. this.bottomBtn('开通文库会员')
  805. } else if (this.boutique && this.buyed === 0 && this.isviper) {
  806. this.bottomBtn('会员获取文档')
  807. } else if (this.boutique && this.buyed === 0 && !this.isviper) {
  808. this.bottomBtn('开通文库会员')
  809. } else if (this.buyed === 1) {
  810. this.uploaded('down')
  811. }
  812. }
  813. fileType (val: any) {
  814. if (val === 1) {
  815. return 'word'
  816. } else if (val === 2) {
  817. return 'pdf'
  818. } else if (val === 3) {
  819. return 'excel'
  820. } else if (val === 4) {
  821. return 'ppt'
  822. } else if (val === 5) {
  823. return 'txt'
  824. } else {
  825. return ''
  826. }
  827. }
  828. }
  829. </script>
  830. <style lang="scss" scoped>
  831. @include diy-icon('pdf', 24, 24);
  832. @include diy-icon('word', 24, 24);
  833. @include diy-icon('excel', 24, 24);
  834. @include diy-icon('ppt', 24, 24);
  835. @include diy-icon('txt', 24, 24);
  836. @include diy-icon('jubao', 20, 20);
  837. @include diy-icon('weiguanzhu', 20, 20);
  838. @include diy-icon('guanzhu', 20, 20);
  839. @include diy-icon('iconJianYu', 24, 24);
  840. @include diy-icon('warmclose', 20, 20);
  841. @include diy-icon('jymoney', 20, 20);
  842. .details-p {
  843. height: 100%;
  844. padding-bottom: 142px;
  845. box-sizing: border-box;
  846. .fs_small {
  847. font-size: 13px;
  848. }
  849. .goods-action {
  850. display: flex;
  851. align-items: center;
  852. }
  853. .excel_{
  854. height: 500px;
  855. ::v-deep{
  856. .x-spreadsheet-overlayer{
  857. z-index: 0;
  858. }
  859. }
  860. }
  861. .doc_{
  862. ::v-deep{
  863. .docx-wrapper{
  864. background-color: #fff;
  865. padding: 0;
  866. section.docx {
  867. box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  868. z-index: 0;
  869. }
  870. img{
  871. max-width: 100vw;
  872. height: auto !important;
  873. }
  874. }
  875. }
  876. }
  877. .top-title-group {
  878. padding: 24px 12px 0 12px;
  879. box-sizing: border-box;
  880. background-color: #fff;
  881. color: #171826;
  882. font-size: 16px;
  883. line-height: 24px;
  884. letter-spacing: 0px;
  885. text-align: left;
  886. .van-icon {
  887. margin-right: 8px;
  888. }
  889. .docName {
  890. margin-right:5px;
  891. }
  892. .type-tag {
  893. box-sizing: border-box;
  894. border-radius: 2px;
  895. font-size: 10px;
  896. white-space: nowrap;
  897. padding: 4px 5px;
  898. margin-bottom: 2px;
  899. vertical-align: middle;
  900. &.free {
  901. background: linear-gradient(98deg, #FFA674 0%, #F01212 100%);
  902. color: #fff;
  903. }
  904. &.boutique{
  905. background: linear-gradient(270deg, #F1D090 0%, #FAE7CA 100%);
  906. color: #C26F33;
  907. }
  908. }
  909. }
  910. .details-tags {
  911. background-color: #fff;
  912. padding: 12px;
  913. box-sizing: border-box;
  914. display: flex;
  915. align-items: center;
  916. .tag-item {
  917. position: relative;
  918. margin-right: 16px;
  919. font-size: 12px;
  920. line-height: 18px;
  921. color: #9B9CA3;
  922. }
  923. .tag-item::after {
  924. content: "";
  925. position: absolute;
  926. top: 50%;
  927. right: -8px;
  928. margin-top: -6px;
  929. width: 1px;
  930. height: 12px;
  931. background-color: rgba(0, 0, 0, 0.05);
  932. }
  933. .tag-item:last-child::after {
  934. display: none;
  935. }
  936. }
  937. .de-tops {
  938. min-height: 70px;
  939. display: flex;
  940. background: #fff;
  941. padding: 0 16px;
  942. .word {
  943. display: flex;
  944. height: 24px;
  945. margin-right: 8px;
  946. padding-top: 24px;
  947. .word-imgs {
  948. display: flex;
  949. width: 24px;
  950. height: 24px;
  951. }
  952. }
  953. .sp-text {
  954. display: flex;
  955. flex-wrap: wrap;
  956. padding: 24px 0;
  957. color: #171826;
  958. font-size: 20px;
  959. line-height: 30px;
  960. }
  961. }
  962. .middles, .bottoms-preview {
  963. position: relative;
  964. padding: 16px 0;
  965. background: #fff;
  966. margin: 8px;
  967. border-radius: 12px;
  968. .file-content {
  969. img:not(:first-of-type){
  970. border-top: 3px solid #f2f2f2;
  971. }
  972. }
  973. h3 {
  974. font-size: 16px;
  975. line-height: 24px;
  976. font-weight: 500;
  977. color: #171826;
  978. }
  979. p {
  980. color: #5F5E64;
  981. font-size: 14px;
  982. line-height: 20px;
  983. margin-top: 8px;
  984. }
  985. .continue {
  986. width: 100%;
  987. position: absolute;
  988. box-sizing: border-box;
  989. color: #1B1A2A;
  990. font-size: 12px;
  991. line-height: 18px;
  992. text-align: center;
  993. height: 100px;
  994. padding-top:46px;
  995. bottom: 0;
  996. background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 50%);
  997. border-radius: 0 0 12px 12px;
  998. .unread-num {
  999. .line{
  1000. display: inline-block;
  1001. width: 20px;
  1002. height: 1px;
  1003. background: #1B1A2A;
  1004. margin-bottom: 3px;
  1005. }
  1006. }
  1007. .handle-span {
  1008. padding: 8px 0;
  1009. font-size:14px;
  1010. display: flex;
  1011. align-items: center;
  1012. justify-content: center;
  1013. color: #2ABED1;
  1014. cursor: pointer;
  1015. i {
  1016. margin-left: 4px;
  1017. }
  1018. }
  1019. }
  1020. }
  1021. .middles.middles-summary {
  1022. padding: 16px 8px;
  1023. .continue {
  1024. position: unset;
  1025. height:unset;
  1026. margin-top: 32px;
  1027. padding-top: 0;
  1028. }
  1029. }
  1030. .head-tip {
  1031. width: auto;
  1032. height: 0;
  1033. background: #fff;
  1034. display: flex;
  1035. justify-content: flex-end;
  1036. align-items: center;
  1037. padding: 0 16px;
  1038. border-bottom: 1px solid #F2F2F4;
  1039. h3 {
  1040. display: flex;
  1041. align-items: center;
  1042. span {
  1043. width: 260px;
  1044. color: #686868;
  1045. font-weight: 500;
  1046. font-size: 14px;
  1047. line-height: 24px;
  1048. overflow: hidden;
  1049. text-overflow: ellipsis;
  1050. white-space: nowrap;
  1051. }
  1052. i {
  1053. margin-right: 8px;
  1054. }
  1055. }
  1056. .pages {
  1057. color: #686868;
  1058. font-size: 14px;
  1059. i:first-child {
  1060. display: inline-block;
  1061. font-style: normal;
  1062. width: 16px;
  1063. height: 16px;
  1064. line-height: 18px;
  1065. text-align: center;
  1066. border-radius: 2px;
  1067. background: #FFFFFF;
  1068. border: 1px solid #ECECEC;
  1069. }
  1070. }
  1071. }
  1072. ::v-deep {
  1073. .pdf_ {
  1074. & > span:not(:first-of-type){
  1075. border-top: 3px solid #f2f2f2;
  1076. }
  1077. }
  1078. }
  1079. .is-fixed {
  1080. height: 40px;
  1081. justify-content: space-between;
  1082. }
  1083. .botts {
  1084. // padding: 16px 24px;
  1085. // width: 375px;
  1086. background: #fff;
  1087. .cont-page {
  1088. // width: 375px;
  1089. overflow-y: scroll;
  1090. background: #fff;
  1091. }
  1092. }
  1093. .van-goods-action {
  1094. height: auto;
  1095. display: block;
  1096. .foot-ad{
  1097. width: 100%;
  1098. // height: 64px;
  1099. .ad-box{
  1100. width: 100%;
  1101. height: 64px;
  1102. position: relative;
  1103. .Ad_close{
  1104. width: 14px;
  1105. height: 14px;
  1106. position: absolute;
  1107. font-size: 14px;
  1108. right: 14px;
  1109. top: 50%;
  1110. transform: translateY(-50%);
  1111. z-index: 100;
  1112. color: #fff;
  1113. opacity: 0.8;
  1114. }
  1115. }
  1116. .warm_text{
  1117. background-color: #FEE9E8;
  1118. width: 100%;
  1119. height: 54px;
  1120. display: flex;
  1121. align-items: center;
  1122. box-sizing: border-box;
  1123. padding-left: 16px;
  1124. .middle_text{
  1125. width: 240px;
  1126. line-height: 20px;
  1127. font-size: 13px;
  1128. color: #FB483D;
  1129. margin-left: 8px;
  1130. }
  1131. .warm_btn{
  1132. width: 72px;
  1133. height: 32px;
  1134. display: flex;
  1135. justify-content: center;
  1136. align-items: center;
  1137. border-radius: 8px;
  1138. border: 1px solid #FB483D;
  1139. color: #FB483D;
  1140. font-size: 13px;
  1141. margin-left: 8px;
  1142. }
  1143. }
  1144. }
  1145. .footbar {
  1146. width: 100%;
  1147. box-sizing: border-box;
  1148. padding: 8px 8px;
  1149. box-shadow: 0px -2px 8px 0px #eee;
  1150. display: flex;
  1151. justify-content: space-between;
  1152. }
  1153. .no-icon {
  1154. .p1 {
  1155. font-size: 12px;
  1156. line-height: 18px;
  1157. color: #5F5E64;
  1158. }
  1159. .p2 {
  1160. font-size: 18px;
  1161. line-height: 26px;
  1162. color: #FB483D;
  1163. }
  1164. .van-icon {
  1165. display: none !important;
  1166. }
  1167. }
  1168. .van-goods-action-icon:not(.no-icon) {
  1169. font-size: 10px;
  1170. color: #5F5E64;
  1171. }
  1172. .van-goods-action-button--first {
  1173. margin-left: 0;
  1174. }
  1175. .van-goods-action-button--last {
  1176. margin-right: 0;
  1177. }
  1178. .van-goods-action-button {
  1179. flex: none;
  1180. }
  1181. .van-button--large {
  1182. width: 165px;
  1183. height: 40px;
  1184. }
  1185. ::v-deep .van-button--default {
  1186. background-color: #2ABED1;
  1187. .van-button__content {
  1188. .van-button__text {
  1189. color: #fff;
  1190. // font-size: 16px;
  1191. }
  1192. }
  1193. }
  1194. .btnGroup{
  1195. display: flex;
  1196. }
  1197. .visibility_hide{
  1198. visibility: hidden;
  1199. }
  1200. .foot_leftbtn{
  1201. margin-right: 8px;
  1202. width: 108px;
  1203. height: 40px;
  1204. color: #5F5E64;
  1205. font-size: 14px;
  1206. border-radius: 4px;
  1207. display: flex;
  1208. justify-content: center;
  1209. align-items: center;
  1210. box-sizing: border-box;
  1211. border: 1px solid #0000001A;
  1212. }
  1213. .green_border_width_120{
  1214. color: #2ABED1;
  1215. border-color:#2ABED1;
  1216. width: 120px;
  1217. }
  1218. .foot_rightbtn{
  1219. width: 108px;
  1220. height: 40px;
  1221. background-color: #2ABED1;
  1222. color: #fff;
  1223. font-size: 14px;
  1224. border-radius: 4px;
  1225. display: flex;
  1226. justify-content: center;
  1227. align-items: center;
  1228. // line-height: 20px;
  1229. }
  1230. .flex-end-center{
  1231. display: flex;
  1232. justify-content: end;
  1233. align-items: center;
  1234. }
  1235. .s_line{
  1236. text-decoration: line-through;
  1237. }
  1238. .price_box{
  1239. box-sizing: border-box;
  1240. padding-right: 24px;
  1241. }
  1242. .vip_price{
  1243. color: #5F5E64;
  1244. }
  1245. .fs_small{
  1246. font-size: 12px;
  1247. line-height: 18px;
  1248. text-align: center;
  1249. }
  1250. .fs_large{
  1251. font-size: 16px;
  1252. line-height: 22px;
  1253. text-align: center;
  1254. }
  1255. .fs_middle{
  1256. font-size: 14px;
  1257. line-height: 20px;
  1258. text-align: center;
  1259. }
  1260. .opcity_n{
  1261. opacity: 0.9;
  1262. }
  1263. .c_hui{
  1264. color: #9B9CA3;
  1265. }
  1266. .c_red{
  1267. color:#FB483D;
  1268. }
  1269. }
  1270. }
  1271. </style>