|
|
var e=Object.defineProperty,o=Object.prototype.hasOwnProperty,t=Object.getOwnPropertySymbols,i=Object.prototype.propertyIsEnumerable,A=(o,t,i)=>t in o?e(o,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[t]=i,l=(e,l)=>{for(var c in l||(l={}))o.call(l,c)&&A(e,c,l[c]);if(t)for(var c of t(l))i.call(l,c)&&A(e,c,l[c]);return e};import{B as c,x as s,v as I,K as a,T as n,G as d,p as m,m as b,c as g,t as k,u as r,y as u,z as N,s as p,F as R,q as h,w as E,r as B,o as C}from"./vendor.269b2875.js";import{_ as G}from"./secComment.4e4ef805.js";import{_ as U}from"./returnBar.35b6215f.js";import{c as M,a as S}from"./tool.8db46c9c.js";import"./dushu-yizan@2x.b53044a0.js";import"./kongzhuangtai-xiaoxi@2x.a1460c5e.js";import"./pinlun@2x.628190cf.js";import"./paixu@2x.fd1743af.js";const v={components:{ReturnBar:U,SecComment:G},setup(){const{proxy:e}=c(),o=s({typeBar:2,ifup:!1,zijie:"",ebookId:"",ebookSetInfo:{},numCheck:"",isCreatedate:"",isCollect:"",bookType:"0",ResourceId:"",readCommentAddShow:!0,commentListAddShow:!1,directorylength:0,mayLikeList:[],flag:!1,cmtPath:""});I((()=>{o.ebookId=e.$route.query.id,t(),i(),localStorage.getItem("toCommentList")&&e.$nextTick((()=>{setTimeout((()=>{let e=document.getElementById("commentTo").offsetTop;window.scrollTo({top:e,behavior:"smooth"}),localStorage.removeItem("toCommentList")}),500)}))})),a((()=>e.$route),((o,t)=>{const i=e;o.query.id!=t.query.id&&null!=o.query.id&&(i.ebookId=o.query.id,e.$router.go(0))}));let t=()=>{const o=e;o.$http.get(e.$API.GETBOOKBASE,{params:{BaseId:o.ebookId}}).then((e=>{200==e.type?(o.ebookSetInfo=e.data,o.numCheck=e.data.numCheck,o.isCollect=e.data.isCollect,o.cmtPath=e.data.classCode):n(e.content)})).catch((e=>{}))},i=()=>{const o=e;o.$http.get(e.$API.GETBASEANDDETAILSID,{params:{BaseId:o.ebookId}}).then((e=>{if(200==e.type){let t=e.data;A(),o.ebookSetInfo=t.tDetails,o.ResourceId=t.tResource.id,o.flag=!0;let i=JSON.parse(t.tResource.navigation).MenuData,l=o.ebookSetInfo.description;o.zijie=l.replace(/[\u4e00-\u9fa5]/g,"aa"),o.directorylength=i.length,o.bookType=t.tResource.bookType}else n(e.content)})).catch((e=>{}))},A=()=>{const o=e;o.$http.get(e.$API.GETEBOOKSMORE,{params:{ClassId:o.ebookSetInfo.classId,nNum:3}}).then((e=>{if(200==e.type){let t=e.data;o.mayLikeList=t}})).catch((e=>{}))};return l(l({},d(o)),{toBack:()=>{e.$router.go(-1)},GetBookBase:t,GetbookDetails:i,SetCollects:()=>{const o=e;S(e,e.$dialog);let t={model:{ClassId:o.ebookSetInfo.classId,CollectPath:"ebook",Title:o.ebookSetInfo.title,TitlePy:o.ebookSetInfo.titlePy,Subtitle:o.ebookSetInfo.subtitle,Creator:o.ebookSetInfo.creator,BelongId:o.ebookSetInfo.belongId,Description:o.ebookSetInfo.description,Cover:o.ebookSetInfo.cover,Subject:o.ebookSetInfo.subject,IsMemo:"来自app"},BelongId:""};o.$http.post(e.$API.SETCOLLECTS,t,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((e=>{200==e.type?(o.isCollect,o.isCollect=!o.isCollect,n(e.content)):n(e.content)})).catch((e=>{}))},ToReading:()=>{const o=e;1==o.bookType?e.$router.push({path:"/epubReading",query:{ebookId:o.ebookId,ResourceId:o.ResourceId}}):e.$router.push({path:"/readingSetting",query:{ebookId:o.ebookId,ResourceId:o.ResourceId}})},Totitle:()=>{const o=e;e.$router.push({path:"/readCatalogue",query:{id:o.ebookId,bookType:o.bookType}})},ToComment:()=>{const o=e;S(e,e.$dialog),e.$router.push({path:"/resourceComment",query:{commentId:o.ebookId,resourceId:o.ResourceId,cmtPath:"ebook"}})},GetMorered:A,DetailsLink:o=>{e.$router.replace({path:"/readDetails",query:{id:o}})},cutTime:M})}},D=E("data-v-55836d3f");m("data-v-55836d3f");const T={class:"main"},w={class:"ReadTop"},Z={class:"bookInfo"},Y={class:"titaut"},j={class:"bookTitle"},Q={class:"bookAutor"},y={class:"numCheckstyle"},O={class:"booknum"},J=k("span",null,"人阅读",-1),F={class:"bookContent"},L={class:"bookContent mtop10"},z={class:"bookContent mtop10"},P={class:"BottomNav"},W=k("span",null,"立即阅读",-1),V={class:"QuestionContent"},x={src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAANCAYAAABGkiVgAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZ
|