提交 d60a8dfd authored 作者: 周文彬's avatar 周文彬

优化

上级 d6942bbe
......@@ -266,7 +266,7 @@
}
let details = ''
try{
// details = res.data.data.text.replace(/src="/g,'src="http://192.168.2.249:8708').replace(/\..\//g,'')
// details = res.data.data.text.replace(/src="/g,'src="http://test16.zhongdianyun.com:8708').replace(/\..\//g,'').replace(/href/g,'data-href')
details = res.data.data.text.replace(/\..\//g,'').replace(/href/g,'data-href')
}catch(e){
//TODO handle the exception
......@@ -276,10 +276,10 @@
texts+=details.substring('0',details.indexOf('<img')+4);//截取到<img前面的内容
details = details.substring(details.indexOf('<img')+4);//<img 后面的内容
if(details.indexOf('style=')!=-1 && details.indexOf('style=')<details.indexOf('>')){
texts+=details.substring(0,details.indexOf('style="')+7)+"max-width:100% !important;height:auto !important;margin:0 auto;";//从 <img 后面的内容 截取到style= 加上自己要加的内容
texts+=details.substring(0,details.indexOf('style="')+7)+"max-width:100% !important;height:auto !important;display: block;margin:0 auto;";//从 <img 后面的内容 截取到style= 加上自己要加的内容
details=details.substring(details.indexOf('style="')+7); //style后面的内容拼接
}else{
texts+=' style="max-width:100% !important;height:auto !important;margin:0 auto;" ';
texts+=' style="max-width:100% !important;height:auto !important;display: block;margin:0 auto;" ';
}
}
texts+=details;//最后拼接的内容
......@@ -394,6 +394,14 @@
/deep/h1{
font-size: 1.2em;
}
/deep/p{
text-indent: 2em;
}
/deep/.content_center{
text-align: center;
text-indent: 0;
margin: 5px 0;
}
.book_content{
line-height: 1.8;
}
......
......@@ -63,7 +63,10 @@
}
</script>
<style lang="less" scoped>
<style lang="less" scoped>
/deep/h1{
line-height: 1.2;
}
.article_page{
.searchHeader{
padding: 16upx 30upx 10upx 24upx;
......
......@@ -34,8 +34,8 @@
</view>
<view class="word">
<view class="names">{{item.name}}</view>
<view class="desc">{{item.synopsis}}</view>
<view class="author">作者: {{item.author}}</view>
<view class="desc" v-if="item.synopsis">{{item.synopsis}}</view>
<!-- <view class="author">作者: {{item.author}}</view> -->
</view>
</view>
</view>
......@@ -55,10 +55,10 @@
</view>
</view>
<view class="intro">
<!-- <view class="intro">
<h6><image src="../../static/tit.png"></image>杂志简介</h6>
<view class="detailCon" v-html="bookData.summary"></view>
</view>
</view> -->
</view>
</view>
</view>
......@@ -285,7 +285,7 @@
color: #333333;
font-weight: bold;
line-height: 34upx;
height: 68upx;
// height: 68upx;
}
.desc{
color: #696969;
......
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>中国政协杂志社</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=./static/index.58d5e7ce.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=./static/js/chunk-vendors.cfb20cce.js></script><script src=./static/js/index.8bc569ae.js></script></body></html>
\ No newline at end of file
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=./static/index.58d5e7ce.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=./static/js/chunk-vendors.cfb20cce.js></script><script src=./static/js/index.c5f29f8a.js></script></body></html>
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-details-article"],{"0de4":function(e,t,a){"use strict";a("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.upload=t.requestPath=t.ajax=void 0;var r=a("93f2"),i={common:"/sysuser/wap",book:"/book/wap",content:"content/wap",stock:"/repertory/wap",marketing:"/marketing/wap",order:"/order/wap",resource:"/resource/wap",third:"/third",file:"/file/file/",works:"/works/wap",ftp:"/file/ftp",statistics:"/statistics/wap",sysuser:"/sysuser/fg",pdf:"/pdf/file"};t.requestPath=i;var n=function(e){return e=e||{},e.url=e.url||"",e.method=e.method||"GET",e.header=e.header||{"Content-Type":"application/json"},e.success=e.success||function(){},new Promise((function(t,a){console.log(r.ApiUrl+e.url,"0000"),uni.request({url:r.ApiUrl+e.url,data:e.data,method:e.method,header:e.header,dataType:"json",success:function(e){t(e)},fail:function(e){a()}})}))};t.ajax=n;var o=function(e){return e=e||{},e.url=e.url||"",e.filePath=e.filePath||null,e.name=e.name||null,e.success=e.success||function(){},new Promise((function(t,a){uni.uploadFile({url:r.ApiUrl+e.url,filePath:e.filePath,name:e.name,formData:e.formData,success:function(e){t(e)},fail:function(e){a(uni.showToast({title:"请稍后重试",icon:"none",duration:12e3}))}})}))};t.upload=o},"1db6":function(e,t,a){"use strict";a.r(t);var r=a("4486"),i=a("6add");for(var n in i)"default"!==n&&function(e){a.d(t,e,(function(){return i[e]}))}(n);a("33dc");var o,c=a("f0c5"),u=Object(c["a"])(i["default"],r["b"],r["c"],!1,null,"8de824bc",null,!1,r["a"],o);t["default"]=u.exports},"1de5":function(e,t,a){"use strict";e.exports=function(e,t){return t||(t={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},"33dc":function(e,t,a){"use strict";var r=a("7463"),i=a.n(r);i.a},4486:function(e,t,a){"use strict";var r;a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"article_page"},[r("v-uni-view",{staticClass:"searchHeader"},[r("v-uni-view",{staticClass:"backImgBox",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goBack()}}},[r("v-uni-image",{staticClass:"back",attrs:{src:a("8ad4").replace(/^\./,""),mode:""}})],1),r("v-uni-view",{staticClass:"ipt"},[e._v("阅读")])],1),r("v-uni-view",{staticClass:"title"},[r("h6",[e._v(e._s(e.articleData.name))]),r("v-uni-view",{staticClass:"readNum"},[r("v-uni-text",{staticClass:"time"},[e._v("2019-07-24 21:04:47")]),r("v-uni-text",{staticClass:"source"},[e._v("来源:"+e._s(e.articleData.source))]),r("v-uni-text",{staticClass:"read"},[e._v("阅读量:"+e._s(e.articleData.browseNum))])],1)],1),r("v-uni-view",{staticClass:"articleCon",domProps:{innerHTML:e._s(e.articleData.text)}})],1)},n=[]},"6add":function(e,t,a){"use strict";a.r(t);var r=a("b1f9"),i=a.n(r);for(var n in r)"default"!==n&&function(e){a.d(t,e,(function(){return r[e]}))}(n);t["default"]=i.a},7463:function(e,t,a){var r=a("b6df");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=a("4f06").default;i("d553d0d4",r,!0,{sourceMap:!1,shadowMode:!1})},"8ad4":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAABKCAYAAADNN8YBAAACE0lEQVRoQ9Xbu03EQBAG4H8kRCkExCByaAEK4CUiEjIaICUhIQAyqIIGoAACSkEwaE8+686Hz/uYFxfb8qeRd3Zmb0wI9GPmPQD7HemViN7mPIrgZOYNAPcATgaeBwAXRPTtDu2QLwAOR4J2RUS3rtAMZLJ/EtGWGzQTmaBfRLTpAi1AJugHEW2bQwuRCXpJRHem0ArkE4BTImIzaCXyPKWmFFYTaCvSBCqBVIdKIVWhkkg1qDRSBaqBFIdqIUWhmkgxqDZSBGqBbIZaIZuglshqqDWyCtohnwEcZTaGqVTrq6DMe1YuK6qevJBFEfVEZkO9kVnQCMhJaBTkWmgk5Ci0EnlGRD+16WfqvpX0FBG5EtGoyCVoZGQPjY5chKYD0+Eh6tj7nfZu1YXz14OJmXcB9EfQE6vPBTmLKDNfA7iZSg8A3JD/DroD4D0joukSt6jOEj4zPwI4joydQ9PfJ6VVu+nK77fQ6Ll0aa+PjP2fRcl8MUWM7GgXWoltbovHMs/adjkSdrKvj4KdhHYbQk2eFX0NsqARsNlQb2wR1BNbDF3ArptaGGaZ5hO9KqgHthpqjW2CWmKboVZYEagFVgyqjRWFamLFoVpYFagGVg0qjVWFSmLVoVJYE6gE1gzagLUdeRu04iUlov0QYSXWZyyzAus36FqI9R0dLsD6D2MPsLHH2xe7wO6DgYN0CA5g6YOBX9mRsVpaU9F1AAAAAElFTkSuQmCC"},b1f9:function(e,t,a){"use strict";a("c975"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a("c9d6"),i={data:function(){return{id:"",articleData:{}}},onLoad:function(e){this.id=e.id,this.getDetail()},methods:{goBack:function(){window.history.back(-1)},getDetail:function(){var e=this;(0,r.getArticleAPI)(this.id).then((function(t){if(0==t.data.code){e.articleData=t.data.data;var a=e.articleData.text,r="";while(-1!=a.indexOf("<img"))r+=a.substring("0",a.indexOf("<img")+4),a=a.substring(a.indexOf("<img")+4),-1!=a.indexOf("style=")&&a.indexOf("style=")<a.indexOf(">")?(r+=a.substring(0,a.indexOf('style="')+7)+"max-width:100% !important;height:auto !important;margin:0 auto;transform: translateX(-16px);",a=a.substring(a.indexOf('style="')+7)):r+=' style="max-width:100% !important;height:auto !important;margin:0 auto;transform: translateX(-16px);" ';r+=a,e.articleData.text=r}}))}}};t.default=i},b6df:function(e,t,a){var r=a("24fb"),i=a("1de5"),n=a("efb9");t=r(!1);var o=i(n);t.push([e.i,".article_page .searchHeader[data-v-8de824bc]{padding:%?16?% %?30?% %?10?% %?24?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?68?%;background:url("+o+") no-repeat;background-size:100%}.article_page .searchHeader .backImgBox[data-v-8de824bc]{height:100%}.article_page .searchHeader .back[data-v-8de824bc]{height:%?38?%;width:%?21?%;margin-right:%?27?%;vertical-align:middle;margin-top:%?6?%}.article_page .searchHeader .ipt[data-v-8de824bc]{height:%?68?%;width:%?574?%;color:#fff;text-align:center;line-height:%?68?%;font-size:18px;margin-right:%?18?%}.article_page .searchHeader .search[data-v-8de824bc]{height:%?38?%;width:%?38?%}.article_page .title[data-v-8de824bc]{margin:%?58?% %?32?% 0;border-bottom:1px solid #e6e6e6}.article_page .title h6[data-v-8de824bc]{font-size:20px}.article_page .title .readNum[data-v-8de824bc]{margin:%?46?% 0 %?32?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;font-size:12px;color:#c8cad2}.article_page .title .read[data-v-8de824bc]{color:#f55827}.article_page .articleCon[data-v-8de824bc]{padding:%?48?% %?34?%;color:#333;text-indent:%?32?%;font-size:16px}",""]),e.exports=t},c9d6:function(e,t,a){"use strict";a("99af"),Object.defineProperty(t,"__esModule",{value:!0}),t.getSubjectAPI=i,t.getNewsAPI=n,t.getYearAPI=o,t.getListAPI=c,t.getEbookAPI=u,t.gethotsAPI=s,t.getArticleAPI=d,t.getIndexLbAPI=l,t.getEbookNewAPI=f,t.getSpecialAPI=g,t.getRecommendAPI=h,t.getSpecialListAPI=p,t.getSpecialRelationAPI=m,t.getSpecialDetailAPI=b,t.getMusicDetailAPI=v,t.getVideoDetailAPI=x,t.getFileAPI=A,t.getBookCatalogApi=P,t.getBookArticleApi=w,t.updateVideoPlayNumApi=y,t.updateAudioPlayNumApi=k,t.errorCorrectionApi=j;var r=a("0de4");function i(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/ebookMainBody/list"),method:"get"})}function n(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/ebook/index?oid=").concat(e),method:"get"})}function o(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/ebookMainBody/year?oid=").concat(e),method:"get"})}function c(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/ebook/page-book"),method:"get",data:e})}function u(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/ebook/get?id=").concat(e),method:"get"})}function s(e){return(0,r.ajax)({url:"".concat(r.requestPath.sysuser,"/hotsw/list?num=10"),method:"get"})}function d(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/article-library/get/").concat(e),method:"get"})}function l(e){return(0,r.ajax)({url:"".concat(r.requestPath.sysuser,"/adspace/signvalue"),method:"get",data:e})}function f(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/ebook/new/index"),method:"get"})}function g(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/project-library/list"),method:"get"})}function h(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/recommend/content/list"),method:"get",data:e})}function p(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/project-library/page"),method:"get",data:e})}function m(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/project-library/page/resource"),method:"get",data:e})}function b(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/project-library/get/").concat(e),method:"get"})}function v(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/audio-library/getwap/").concat(e),method:"get"})}function x(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/video-library/getwap/").concat(e),method:"get"})}function A(e){return(0,r.ajax)({url:"".concat(r.requestPath.file,"/getFilePath"),method:"get",data:e})}function P(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/article-library/directory"),method:"get",data:e})}function w(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/article-library/get"),method:"get",data:e})}function y(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/video-library/update/video-library"),method:"post",data:e})}function k(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/audio-library/update/video-library"),method:"post",data:e})}function j(e){return(0,r.ajax)({url:"".concat(r.requestPath.sysuser,"/error-correct/save"),method:"post",data:e})}},efb9:function(e,t,a){e.exports=a.p+"static/img/banner.f92e01db.png"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-details-article"],{"006e":function(e,t,a){var r=a("24fb"),i=a("1de5"),n=a("efb9");t=r(!1);var o=i(n);t.push([e.i,"[data-v-763cc7be] h1{line-height:1.2}.article_page .searchHeader[data-v-763cc7be]{padding:%?16?% %?30?% %?10?% %?24?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?68?%;background:url("+o+") no-repeat;background-size:100%}.article_page .searchHeader .backImgBox[data-v-763cc7be]{height:100%}.article_page .searchHeader .back[data-v-763cc7be]{height:%?38?%;width:%?21?%;margin-right:%?27?%;vertical-align:middle;margin-top:%?6?%}.article_page .searchHeader .ipt[data-v-763cc7be]{height:%?68?%;width:%?574?%;color:#fff;text-align:center;line-height:%?68?%;font-size:18px;margin-right:%?18?%}.article_page .searchHeader .search[data-v-763cc7be]{height:%?38?%;width:%?38?%}.article_page .title[data-v-763cc7be]{margin:%?58?% %?32?% 0;border-bottom:1px solid #e6e6e6}.article_page .title h6[data-v-763cc7be]{font-size:20px}.article_page .title .readNum[data-v-763cc7be]{margin:%?46?% 0 %?32?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;font-size:12px;color:#c8cad2}.article_page .title .read[data-v-763cc7be]{color:#f55827}.article_page .articleCon[data-v-763cc7be]{padding:%?48?% %?34?%;color:#333;text-indent:%?32?%;font-size:16px}",""]),e.exports=t},"0de4":function(e,t,a){"use strict";a("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.upload=t.requestPath=t.ajax=void 0;var r=a("93f2"),i={common:"/sysuser/wap",book:"/book/wap",content:"content/wap",stock:"/repertory/wap",marketing:"/marketing/wap",order:"/order/wap",resource:"/resource/wap",third:"/third",file:"/file/file/",works:"/works/wap",ftp:"/file/ftp",statistics:"/statistics/wap",sysuser:"/sysuser/fg",pdf:"/pdf/file"};t.requestPath=i;var n=function(e){return e=e||{},e.url=e.url||"",e.method=e.method||"GET",e.header=e.header||{"Content-Type":"application/json"},e.success=e.success||function(){},new Promise((function(t,a){console.log(r.ApiUrl+e.url,"0000"),uni.request({url:r.ApiUrl+e.url,data:e.data,method:e.method,header:e.header,dataType:"json",success:function(e){t(e)},fail:function(e){a()}})}))};t.ajax=n;var o=function(e){return e=e||{},e.url=e.url||"",e.filePath=e.filePath||null,e.name=e.name||null,e.success=e.success||function(){},new Promise((function(t,a){uni.uploadFile({url:r.ApiUrl+e.url,filePath:e.filePath,name:e.name,formData:e.formData,success:function(e){t(e)},fail:function(e){a(uni.showToast({title:"请稍后重试",icon:"none",duration:12e3}))}})}))};t.upload=o},"1db6":function(e,t,a){"use strict";a.r(t);var r=a("632a"),i=a("6add");for(var n in i)"default"!==n&&function(e){a.d(t,e,(function(){return i[e]}))}(n);a("9b39");var o,c=a("f0c5"),u=Object(c["a"])(i["default"],r["b"],r["c"],!1,null,"763cc7be",null,!1,r["a"],o);t["default"]=u.exports},"1de5":function(e,t,a){"use strict";e.exports=function(e,t){return t||(t={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},"632a":function(e,t,a){"use strict";var r;a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"article_page"},[r("v-uni-view",{staticClass:"searchHeader"},[r("v-uni-view",{staticClass:"backImgBox",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goBack()}}},[r("v-uni-image",{staticClass:"back",attrs:{src:a("8ad4").replace(/^\./,""),mode:""}})],1),r("v-uni-view",{staticClass:"ipt"},[e._v("阅读")])],1),r("v-uni-view",{staticClass:"title"},[r("h6",[e._v(e._s(e.articleData.name))]),r("v-uni-view",{staticClass:"readNum"},[r("v-uni-text",{staticClass:"time"},[e._v("2019-07-24 21:04:47")]),r("v-uni-text",{staticClass:"source"},[e._v("来源:"+e._s(e.articleData.source))]),r("v-uni-text",{staticClass:"read"},[e._v("阅读量:"+e._s(e.articleData.browseNum))])],1)],1),r("v-uni-view",{staticClass:"articleCon",domProps:{innerHTML:e._s(e.articleData.text)}})],1)},n=[]},"6add":function(e,t,a){"use strict";a.r(t);var r=a("b1f9"),i=a.n(r);for(var n in r)"default"!==n&&function(e){a.d(t,e,(function(){return r[e]}))}(n);t["default"]=i.a},"8ad4":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAABKCAYAAADNN8YBAAACE0lEQVRoQ9Xbu03EQBAG4H8kRCkExCByaAEK4CUiEjIaICUhIQAyqIIGoAACSkEwaE8+686Hz/uYFxfb8qeRd3Zmb0wI9GPmPQD7HemViN7mPIrgZOYNAPcATgaeBwAXRPTtDu2QLwAOR4J2RUS3rtAMZLJ/EtGWGzQTmaBfRLTpAi1AJugHEW2bQwuRCXpJRHem0ArkE4BTImIzaCXyPKWmFFYTaCvSBCqBVIdKIVWhkkg1qDRSBaqBFIdqIUWhmkgxqDZSBGqBbIZaIZuglshqqDWyCtohnwEcZTaGqVTrq6DMe1YuK6qevJBFEfVEZkO9kVnQCMhJaBTkWmgk5Ci0EnlGRD+16WfqvpX0FBG5EtGoyCVoZGQPjY5chKYD0+Eh6tj7nfZu1YXz14OJmXcB9EfQE6vPBTmLKDNfA7iZSg8A3JD/DroD4D0joukSt6jOEj4zPwI4joydQ9PfJ6VVu+nK77fQ6Ll0aa+PjP2fRcl8MUWM7GgXWoltbovHMs/adjkSdrKvj4KdhHYbQk2eFX0NsqARsNlQb2wR1BNbDF3ArptaGGaZ5hO9KqgHthpqjW2CWmKboVZYEagFVgyqjRWFamLFoVpYFagGVg0qjVWFSmLVoVJYE6gE1gzagLUdeRu04iUlov0QYSXWZyyzAus36FqI9R0dLsD6D2MPsLHH2xe7wO6DgYN0CA5g6YOBX9mRsVpaU9F1AAAAAElFTkSuQmCC"},"9b39":function(e,t,a){"use strict";var r=a("bf0a"),i=a.n(r);i.a},b1f9:function(e,t,a){"use strict";a("c975"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a("c9d6"),i={data:function(){return{id:"",articleData:{}}},onLoad:function(e){this.id=e.id,this.getDetail()},methods:{goBack:function(){window.history.back(-1)},getDetail:function(){var e=this;(0,r.getArticleAPI)(this.id).then((function(t){if(0==t.data.code){e.articleData=t.data.data;var a=e.articleData.text,r="";while(-1!=a.indexOf("<img"))r+=a.substring("0",a.indexOf("<img")+4),a=a.substring(a.indexOf("<img")+4),-1!=a.indexOf("style=")&&a.indexOf("style=")<a.indexOf(">")?(r+=a.substring(0,a.indexOf('style="')+7)+"max-width:100% !important;height:auto !important;margin:0 auto;transform: translateX(-16px);",a=a.substring(a.indexOf('style="')+7)):r+=' style="max-width:100% !important;height:auto !important;margin:0 auto;transform: translateX(-16px);" ';r+=a,e.articleData.text=r}}))}}};t.default=i},bf0a:function(e,t,a){var r=a("006e");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=a("4f06").default;i("62337592",r,!0,{sourceMap:!1,shadowMode:!1})},c9d6:function(e,t,a){"use strict";a("99af"),Object.defineProperty(t,"__esModule",{value:!0}),t.getSubjectAPI=i,t.getNewsAPI=n,t.getYearAPI=o,t.getListAPI=c,t.getEbookAPI=u,t.gethotsAPI=s,t.getArticleAPI=l,t.getIndexLbAPI=d,t.getEbookNewAPI=f,t.getSpecialAPI=g,t.getRecommendAPI=h,t.getSpecialListAPI=p,t.getSpecialRelationAPI=b,t.getSpecialDetailAPI=m,t.getMusicDetailAPI=v,t.getVideoDetailAPI=x,t.getFileAPI=A,t.getBookCatalogApi=P,t.getBookArticleApi=w,t.updateVideoPlayNumApi=y,t.updateAudioPlayNumApi=k,t.errorCorrectionApi=j;var r=a("0de4");function i(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/ebookMainBody/list"),method:"get"})}function n(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/ebook/index?oid=").concat(e),method:"get"})}function o(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/ebookMainBody/year?oid=").concat(e),method:"get"})}function c(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/ebook/page-book"),method:"get",data:e})}function u(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/ebook/get?id=").concat(e),method:"get"})}function s(e){return(0,r.ajax)({url:"".concat(r.requestPath.sysuser,"/hotsw/list?num=10"),method:"get"})}function l(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/article-library/get/").concat(e),method:"get"})}function d(e){return(0,r.ajax)({url:"".concat(r.requestPath.sysuser,"/adspace/signvalue"),method:"get",data:e})}function f(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/ebook/new/index"),method:"get"})}function g(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/project-library/list"),method:"get"})}function h(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/recommend/content/list"),method:"get",data:e})}function p(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/project-library/page"),method:"get",data:e})}function b(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/project-library/page/resource"),method:"get",data:e})}function m(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/project-library/get/").concat(e),method:"get"})}function v(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/audio-library/getwap/").concat(e),method:"get"})}function x(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/video-library/getwap/").concat(e),method:"get"})}function A(e){return(0,r.ajax)({url:"".concat(r.requestPath.file,"/getFilePath"),method:"get",data:e})}function P(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/article-library/directory"),method:"get",data:e})}function w(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/article-library/get"),method:"get",data:e})}function y(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/video-library/update/video-library"),method:"post",data:e})}function k(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/audio-library/update/video-library"),method:"post",data:e})}function j(e){return(0,r.ajax)({url:"".concat(r.requestPath.sysuser,"/error-correct/save"),method:"post",data:e})}},efb9:function(e,t,a){e.exports=a.p+"static/img/banner.f92e01db.png"}}]);
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论