You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
12 KiB

1 year ago
  1. var t=Object.defineProperty,e=Object.prototype.hasOwnProperty,i=Object.getOwnPropertySymbols,a=Object.prototype.propertyIsEnumerable,c=(e,i,a)=>i in e?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[i]=a,o=(t,o)=>{for(var l in o||(o={}))e.call(o,l)&&c(t,l,o[l]);if(i)for(var l of i(o))a.call(o,l)&&c(t,l,o[l]);return t};import{B as l,x as s,v as n,T as d,G as A,p,m as I,c as m,t as r,s as b,u as h,O as g,F as M,q as w,w as T,r as N,o as y}from"./vendor.269b2875.js";import{a as u}from"./tool.8db46c9c.js";import{_ as G}from"./taskCountDown.b49821a8.js";import{_ as D}from"./pinlun@2x.628190cf.js";import{_ as E}from"./paixu@2x.fd1743af.js";const C={components:{taskCountDown:G},setup(){const{proxy:t}=l(),e=s({typeBar:3,topshow:!0,iftap:"",scshow:!1,popupShow:!1,dryGoodsID:"",detailData:{},detailTime:"",chapterId:"",chapterContent:"",directoryList:[],currentIndex:0,configTaskTime:300,configTaskType:"daily_doc",isTryOutLogin:!0});n((()=>{e.isTryOutLogin=!localStorage.getItem("isTryout");const c=t;document.addEventListener("scroll",(()=>{c.iftap?c.iftap--:c.topshow=!1}),!0),c.dryGoodsID=t.$route.query.id,c.startTime=(new Date).getTime(),i(),a()}));let i=()=>{const e=t;let i={id:e.dryGoodsID};e.$http.get(e.$API.GETCONTENT,{params:i}).then((t=>{if(200==t.type){let i=t.data;if(e.scshow=i[0].collectId,0==i.length)return d("获取数据出错,请与管理员联系"),!1;e.detailData=i[0],e.detailTime=i[0].isUpdatedate.substring(0,10)}else d(t.content)})).catch((t=>{}))},a=()=>{const e=t;let i={docid:e.dryGoodsID};e.$http.get(e.$API.CATALOG,{params:i}).then((t=>{if(200==t.type){let i=t.data;e.directoryList=i[0],e.schedule=i[1],0==i[1].length?e.chapterId=i[0][0].id:e.chapterId=i[1][0].detailsId,i.forEach(((t,i)=>{t.id==e.chapterId&&(e.currentIndex=i)})),e.getDocDetails()}else d(t.content)})).catch((t=>{}))},c=()=>{const e=t;let i={docid:e.chapterId};e.$http.get(t.$API.DOCDETAILS,{params:i}).then((t=>{if(200==t.type){let i=t.data||"";const a=new RegExp("<img","gi");i=i.replace(a,'<img style="max-width: 100%;"'),e.chapterContent=i}else d(t.content)})).catch((t=>{}))};return o(o({},A(e)),{data:e,toBack:()=>{const e=t;e.endTime=(new Date).getTime();let i=e.endTime-e.startTime,a=Math.floor(i/1e3);Math.floor(a/60%60);t.$router.go(-1)},tshow:()=>{const e=t;e.topshow=!e.topshow,e.iftap=2},GetContent:i,getCatalog:a,getDocDetails:c,SetCollects:()=>{const e=t;u(t,t.$dialog);let i={model:{ClassId:e.detailData.classId,CollectPath:"doc",Title:e.detailData.title,TitlePy:e.detailData.titlePy,Subtitle:e.detailData.subtitle,Creator:e.detailData.creator,BelongId:e.detailData.id,Description:e.detailData.description,Cover:e.detailData.cover,Subject:e.detailData.subject,IsMemo:"来自pc"},BelongId:""};e.$http.post(t.$API.SETCOLLECTS,i,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((t=>{if(200==t.type){let t=e.detailData.collectId?"已移除":"已加入书架";e.scshow=!e.detailData.collectId,e.detailData.collectId=!e.detailData.collectId,e.iftshow++,e.toastmassage=t}else d(t.content)})).catch((t=>{}))},showPopup:()=>{e.popupShow=!0},directoryChange:e=>{const i=t;i.currentIndex=e,i.chapterContent="",i.popupShow=!1,c()},paixu:()=>{const e=t;let i=e.directoryList;e.directoryList=[];for(let t=i.length-1;t>=0;t--)e.directoryList.push(i[t])},shareBtn:()=>{const e=t;u(t,t.$dialog),t.$router.push({path:"/ResourceComment",query:{commentId:e.chapterId,resourceId:e.dryGoodsID,cmtPath:"doc"}})}})}},B=T("data-v-1e7a05c8");p("data-v-1e7a05c8");const Y={class:"main"},k={key:0,class:"status"},v={class:"page_top"},R=r("div",{class:"backtrack icon iconfont"},"",-1),Z={class:"TopIcon"},j={key:1,class:"ditop"},S={class:"expertList"},L={class:"expertItem1"},U={class:"expertItem"},W={key:2,class:"BottomNav"},Q=r("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAdCAYAAADGgB7AAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5L