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

优化

上级 1ce08991
......@@ -72,9 +72,14 @@
},
"h5" : {
"title" : "中国政协杂志社",
"domain" : "http://dzzz.zgzx.com.cn",
"domain" : "http://192.168.2.249",
"router" : {
"base" : "/wap/"
"base" : "./",
"mode" : "hash"
},
"devServer" : {
"port" : 8708,
"https" : false
}
}
}
......@@ -41,14 +41,14 @@
isLast: null,
}
},
onLoad() {
onShow() {
this.listQuery.pageNum = 1
this.getList()
},
onReachBottom() {
if (!this.isLast) {//判断是否有下一页
this.listQuery.pageNum += 1
this.getSpecialList()
this.getList()
}
},
methods: {
......@@ -62,7 +62,11 @@
if(res.data.code == 0){
try{
if(res.data.data.list.length>0){
this.list.push(...res.data.data.list)
if(this.listQuery.pageNum == 1){
this.list = res.data.data.list
}else{
this.list.push(...res.data.data.list)
}
this.isNull = res.data.data.total == 0 ? true : false
this.isLast = !res.data.data.hasNextPage
}else{
......
......@@ -170,7 +170,7 @@
orderNum:ordernum
}
this.getBookArticle(obj)
this.getBookArticle(obj,3)
},
nextChapter(){ //下一章节
......@@ -202,9 +202,18 @@
uni.stopPullDownRefresh()
getBookArticleApi({...obj}).then(res => {
if(res.data.code == 0){
let details = res.data.data.text.replace(/src="/g,'src="http://192.168.2.249:8708').replace(/\..\//g,'')
var texts='';//待拼接的内容
if(res.data.data.text == null){
this.contentFlag = false
}else{
this.contentFlag = true
}
let details = ''
try{
details = res.data.data.text.replace(/src="/g,'src="http://192.168.2.249:8708').replace(/\..\//g,'')
}catch(e){
//TODO handle the exception
}
var texts='';//待拼接的内容
while(details.indexOf('<img')!=-1){//寻找img 循环
texts+=details.substring('0',details.indexOf('<img')+4);//截取到<img前面的内容
details = details.substring(details.indexOf('<img')+4);//<img 后面的内容
......@@ -240,6 +249,8 @@
}else if(num == 2 && !this.lastChapter){
this.nextChapter()
return false
}else if(num == 3){
}
}
this.bookContent = texts
......@@ -320,6 +331,10 @@
<style lang="less" scoped>
page{
background-color: #F8F8FA;
height: 100%;
}
body,html,uni-page-body{
min-height: 100%;
}
.searchHeader{
padding: 16upx 30upx 10upx 24upx;
......
......@@ -83,7 +83,7 @@
year:''
}
},
onLoad() {
onShow() {
this.getSubject()
},
methods: {
......
......@@ -27,7 +27,9 @@
<block v-for="(item,index) in newMagazine" :key="item.id">
<dl @tap="goDetails(item.id)">
<dt>
<image :src="fileUrl(item.bookCover)" mode=""></image>
<image v-if="item.bookCover" :src="fileUrl(item.bookCover)" mode=""></image>
<image v-else src="../../static/cover.png" mode=""></image>
<!-- <image v-else src="../../static/news.png" mode=""></image> -->
</dt>
<!-- <span>{{item.bookCover}}</span> -->
<dd>{{item.name}}</dd>
......@@ -112,7 +114,7 @@
articList:[]
}
},
onLoad() {
onShow() {
this.getIndexLb()
this.getEbookNew()
this.getSpecial()
......
......@@ -4,10 +4,11 @@
<image :src="fileUrl(topImg)" mode=""></image>
</view>
<view class="toppicList">
<block v-for="(item,index) in list">
<block v-for="(item,index) in list" :key="index">
<dl class="itemCon" @tap="goTopicDetail(item.id)">
<dt>
<image :src="fileUrl(item.cover)"></image>
<image v-if="item.cover" :src="fileUrl(item.cover)"></image>
<image v-else src="../../static/cover.png" mode=""></image>
</dt>
<dd class="list_name">{{item.name}}</dd>
</dl>
......@@ -38,7 +39,7 @@
list:[]
}
},
onLoad() {
onShow() {
this.getTopImg()
this.listQuery.pageNum = 1
this.getSpecialList()
......@@ -57,7 +58,11 @@
if(res.data.code == 0){
try{
if(res.data.data.list.length>0){
this.list.push(...res.data.data.list)
if(this.listQuery.pageNum == 1){
this.list = res.data.data.list
}else{
this.list.push(...res.data.data.list)
}
this.isNull = res.data.data.total == 0 ? true : false
this.isLast = !res.data.data.hasNextPage
}else{
......
......@@ -121,6 +121,7 @@
.searchHeader{
padding: 16upx 30upx 10upx 24upx;
position: fixed;
z-index: 999;
top: 0;
width: 100%;
left: 0;
......
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>中国政协杂志社</title><script>document.addEventListener('DOMContentLoaded', function() {
document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
})
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=/wap/static/index.439536fb.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/wap/static/js/chunk-vendors.152864ef.js></script><script src=/wap/static/js/index.cf713365.js></script></body></html>
\ No newline at end of file
<!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.358c9d57.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-details-article"],{"382c":function(t,e,a){t.exports=a.p+"static/img/banner.f92e01db.png"},"406b":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a("8d7c"),n={data:function(){return{id:"",articleData:{}}},onLoad:function(t){this.id=t.id,this.getDetail()},methods:{goBack:function(){uni.navigateBack({delta:1})},getDetail:function(){var t=this;console.log(777),(0,i.getArticleAPI)(this.id).then(function(e){0==e.data.code&&(t.articleData=e.data.data)})}}};e.default=n},7435:function(t,e,a){"use strict";a.r(e);var i=a("406b"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,function(){return i[t]})}(r);e["default"]=n.a},"7e4d":function(t,e,a){"use strict";a.r(e);var i=a("8064"),n=a("7435");for(var r in n)"default"!==r&&function(t){a.d(e,t,function(){return n[t]})}(r);a("7f7b");var c,o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"73a217d5",null,!1,i["a"],c);e["default"]=s.exports},"7f7b":function(t,e,a){"use strict";var i=a("89cc"),n=a.n(i);n.a},8064:function(t,e,a){"use strict";var i,n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"article_page"},[a("v-uni-view",{staticClass:"searchHeader"},[a("v-uni-view",{staticClass:"backImgBox",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goBack()}}},[a("v-uni-image",{staticClass:"back",attrs:{src:"../../static/back.png",mode:""}})],1),a("v-uni-view",{staticClass:"ipt"},[t._v("阅读")])],1),a("v-uni-view",{staticClass:"title"},[a("h6",[t._v(t._s(t.articleData.name))]),a("v-uni-view",{staticClass:"readNum"},[a("v-uni-text",{staticClass:"time"},[t._v("2019-07-24 21:04:47")]),a("v-uni-text",{staticClass:"source"},[t._v("来源:"+t._s(t.articleData.source))]),a("v-uni-text",{staticClass:"read"},[t._v("阅读量:"+t._s(t.articleData.browseNum))])],1)],1),a("v-uni-view",{staticClass:"articleCon",domProps:{innerHTML:t._s(t.articleData.text)}})],1)},r=[];a.d(e,"b",function(){return n}),a.d(e,"c",function(){return r}),a.d(e,"a",function(){return i})},"89cc":function(t,e,a){var i=a("8b15");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("3b0c39b4",i,!0,{sourceMap:!1,shadowMode:!1})},"8b15":function(t,e,a){var i=a("b041");e=t.exports=a("2350")(!1),e.push([t.i,".article_page .searchHeader[data-v-73a217d5]{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("+i(a("382c"))+") no-repeat;background-size:100%}.article_page .searchHeader .backImgBox[data-v-73a217d5]{height:100%}.article_page .searchHeader .back[data-v-73a217d5]{height:%?38?%;width:%?21?%;margin-right:%?27?%;vertical-align:middle;margin-top:%?6?%}.article_page .searchHeader .ipt[data-v-73a217d5]{height:%?68?%;width:%?574?%;color:#fff;text-align:center;line-height:%?68?%;font-size:18px;margin-right:%?18?%}.article_page .searchHeader .search[data-v-73a217d5]{height:%?38?%;width:%?38?%}.article_page .title[data-v-73a217d5]{margin:%?58?% %?32?% 0;border-bottom:1px solid #e6e6e6}.article_page .title h6[data-v-73a217d5]{font-size:20px}.article_page .title .readNum[data-v-73a217d5]{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-73a217d5]{color:#f55827}.article_page .articleCon[data-v-73a217d5]{padding:%?48?% %?34?%;color:#333;text-indent:%?32?%;font-size:16px}",""])},"8d7c":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSubjectAPI=n,e.getNewsAPI=r,e.getYearAPI=c,e.getListAPI=o,e.getEbookAPI=s,e.gethotsAPI=u,e.getArticleAPI=l;var i=a("deff");function n(t){return(0,i.ajax)({url:"".concat(i.requestPath.resource,"/ebookMainBody/list"),method:"get"})}function r(t){return(0,i.ajax)({url:"".concat(i.requestPath.resource,"/ebook/index?oid=").concat(t),method:"get"})}function c(t){return(0,i.ajax)({url:"".concat(i.requestPath.resource,"/ebookMainBody/year?oid=").concat(t),method:"get"})}function o(t){return(0,i.ajax)({url:"".concat(i.requestPath.resource,"/ebook/page-book"),method:"get",data:t})}function s(t){return(0,i.ajax)({url:"".concat(i.requestPath.resource,"/ebook/get?id=").concat(t),method:"get"})}function u(t){return(0,i.ajax)({url:"".concat(i.requestPath.sysuser,"/hotsw/list?num=10"),method:"get"})}function l(t){return(0,i.ajax)({url:"".concat(i.requestPath.resource,"/article-library/get/").concat(t),method:"get"})}},b041:function(t,e){t.exports=function(t){return"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':t)}},deff:function(t,e,a){"use strict";var i=a("288e");Object.defineProperty(e,"__esModule",{value:!0}),e.upload=e.requestPath=e.ajax=void 0;var n=i(a("795b")),r=a("e74f"),c={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"};e.requestPath=c;var o=function(t){return t=t||{},t.url=t.url||"",t.method=t.method||"GET",t.header=t.header||{"Content-Type":"application/json"},t.success=t.success||function(){},new n.default(function(e,a){console.log(r.ApiUrl+t.url,"0000"),uni.request({url:r.ApiUrl+t.url,data:t.data,method:t.method,header:t.header,dataType:"json",success:function(t){e(t)},fail:function(t){a()}})})};e.ajax=o;var s=function(t){return t=t||{},t.url=t.url||"",t.filePath=t.filePath||null,t.name=t.name||null,t.success=t.success||function(){},new n.default(function(e,a){uni.uploadFile({url:r.ApiUrl+t.url,filePath:t.filePath,name:t.name,formData:t.formData,success:function(t){e(t)},fail:function(t){a(uni.showToast({title:"请稍后重试",icon:"none",duration:12e3}))}})})};e.upload=s}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-details-article"],{"0ce5":function(e,t,a){var r=a("810d");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=a("4f06").default;i("6b8b3c40",r,!0,{sourceMap:!1,shadowMode:!1})},"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 o=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=o;var n=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=n},"1db6":function(e,t,a){"use strict";a.r(t);var r=a("b5d2"),i=a("6add");for(var o in i)"default"!==o&&function(e){a.d(t,e,(function(){return i[e]}))}(o);a("2fab");var n,c=a("f0c5"),u=Object(c["a"])(i["default"],r["b"],r["c"],!1,null,"4f0b55c7",null,!1,r["a"],n);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)}},"2fab":function(e,t,a){"use strict";var r=a("0ce5"),i=a.n(r);i.a},"6add":function(e,t,a){"use strict";a.r(t);var r=a("b1f9"),i=a.n(r);for(var o in r)"default"!==o&&function(e){a.d(t,e,(function(){return r[e]}))}(o);t["default"]=i.a},"810d":function(e,t,a){var r=a("24fb"),i=a("1de5"),o=a("efb9");t=r(!1);var n=i(o);t.push([e.i,".article_page .searchHeader[data-v-4f0b55c7]{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("+n+") no-repeat;background-size:100%}.article_page .searchHeader .backImgBox[data-v-4f0b55c7]{height:100%}.article_page .searchHeader .back[data-v-4f0b55c7]{height:%?38?%;width:%?21?%;margin-right:%?27?%;vertical-align:middle;margin-top:%?6?%}.article_page .searchHeader .ipt[data-v-4f0b55c7]{height:%?68?%;width:%?574?%;color:#fff;text-align:center;line-height:%?68?%;font-size:18px;margin-right:%?18?%}.article_page .searchHeader .search[data-v-4f0b55c7]{height:%?38?%;width:%?38?%}.article_page .title[data-v-4f0b55c7]{margin:%?58?% %?32?% 0;border-bottom:1px solid #e6e6e6}.article_page .title h6[data-v-4f0b55c7]{font-size:20px}.article_page .title .readNum[data-v-4f0b55c7]{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-4f0b55c7]{color:#f55827}.article_page .articleCon[data-v-4f0b55c7]{padding:%?48?% %?34?%;color:#333;text-indent:%?32?%;font-size:16px}",""]),e.exports=t},"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";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(){uni.navigateBack({delta:1})},getDetail:function(){var e=this;(0,r.getArticleAPI)(this.id).then((function(t){0==t.data.code&&(e.articleData=t.data.data)}))}}};t.default=i},b5d2:function(e,t,a){"use strict";var r;a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return o})),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)},o=[]},c9d6:function(e,t,a){"use strict";a("99af"),Object.defineProperty(t,"__esModule",{value:!0}),t.getSubjectAPI=i,t.getNewsAPI=o,t.getYearAPI=n,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=A,t.getFileAPI=P,t.getBookCatalogApi=w,t.getBookArticleApi=x,t.updateVideoPlayNumApi=k,t.updateAudioPlayNumApi=j;var r=a("0de4");function i(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/ebookMainBody/list"),method:"get"})}function o(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/ebook/index?oid=").concat(e),method:"get"})}function n(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 A(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/video-library/getwap/").concat(e),method:"get"})}function P(e){return(0,r.ajax)({url:"".concat(r.requestPath.file,"/getFilePath"),method:"get",data:e})}function w(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/article-library/directory"),method:"get",data:e})}function x(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/article-library/get"),method:"get",data:e})}function k(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/video-library/update/video-library"),method:"post",data:e})}function j(e){return(0,r.ajax)({url:"".concat(r.requestPath.resource,"/audio-library/update/video-library"),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-search-index"],{"1c49":function(e,t,a){var n=a("b041");t=e.exports=a("2350")(!1),t.push([e.i,".search_page .searchHeader[data-v-39375611]{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("+n(a("382c"))+") no-repeat;background-size:100%}.search_page .searchHeader .backImgBox[data-v-39375611]{height:100%}.search_page .searchHeader .back[data-v-39375611]{height:%?38?%;width:%?21?%;margin-right:%?27?%;vertical-align:middle;margin-top:%?6?%}.search_page .searchHeader .ipt[data-v-39375611]{height:%?68?%;width:%?574?%;position:relative;margin-right:%?18?%}.search_page .searchHeader .ipt .inpImg[data-v-39375611]{height:%?26?%;width:%?26?%;position:absolute;top:%?21?%;left:%?21?%;z-index:100}.search_page .searchHeader .ipt .delete[data-v-39375611]{height:%?28?%;width:%?28?%;position:absolute;top:%?21?%;right:%?21?%;z-index:100}.search_page .searchHeader .ipt[data-v-39375611] .input-placeholder{color:#bbbec3}.search_page .searchHeader .ipt uni-input[data-v-39375611]{background:#fff;border-radius:%?34?%;color:#333;padding:0 %?60?%;height:100%}.search_page .searchHeader uni-text[data-v-39375611]{color:#fff;font-size:14px}.search_page .hotsBox[data-v-39375611]{padding:%?49?% %?24?%}.search_page .hotsBox h6[data-v-39375611]{color:#3d3d3d;margin-bottom:%?35?%;font-size:14px}.search_page .hotsBox .olist[data-v-39375611]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.search_page .hotsBox .hot[data-v-39375611]{padding:%?20?% %?28?%;background:#f9f5ed;margin:0 %?20?% %?20?% 0;font-size:14px;color:#555}",""])},"382c":function(e,t,a){e.exports=a.p+"static/img/banner.f92e01db.png"},"5b91":function(e,t,a){"use strict";var n=a("807e"),o=a.n(n);o.a},"807e":function(e,t,a){var n=a("1c49");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=a("4f06").default;o("6038e3ae",n,!0,{sourceMap:!1,shadowMode:!1})},"8d7c":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSubjectAPI=o,t.getNewsAPI=r,t.getYearAPI=i,t.getListAPI=s,t.getEbookAPI=c,t.gethotsAPI=u,t.getArticleAPI=d;var n=a("deff");function o(e){return(0,n.ajax)({url:"".concat(n.requestPath.resource,"/ebookMainBody/list"),method:"get"})}function r(e){return(0,n.ajax)({url:"".concat(n.requestPath.resource,"/ebook/index?oid=").concat(e),method:"get"})}function i(e){return(0,n.ajax)({url:"".concat(n.requestPath.resource,"/ebookMainBody/year?oid=").concat(e),method:"get"})}function s(e){return(0,n.ajax)({url:"".concat(n.requestPath.resource,"/ebook/page-book"),method:"get",data:e})}function c(e){return(0,n.ajax)({url:"".concat(n.requestPath.resource,"/ebook/get?id=").concat(e),method:"get"})}function u(e){return(0,n.ajax)({url:"".concat(n.requestPath.sysuser,"/hotsw/list?num=10"),method:"get"})}function d(e){return(0,n.ajax)({url:"".concat(n.requestPath.resource,"/article-library/get/").concat(e),method:"get"})}},b041:function(e,t){e.exports=function(e){return"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},b8fb:function(e,t,a){"use strict";a.r(t);var n=a("cbe3"),o=a.n(n);for(var r in n)"default"!==r&&function(e){a.d(t,e,function(){return n[e]})}(r);t["default"]=o.a},cbe3:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a("8d7c"),o={data:function(){return{hotList:[],keywords:""}},onLoad:function(){this.gethots()},methods:{goBack:function(){uni.navigateBack({delta:1})},deletes:function(){this.keywords=""},toList:function(e){uni.navigateTo({url:"list?keywords="+e})},gethots:function(){var e=this;(0,n.gethotsAPI)().then(function(t){0==t.data.code&&(e.hotList=t.data.data)})}}};t.default=o},deff:function(e,t,a){"use strict";var n=a("288e");Object.defineProperty(t,"__esModule",{value:!0}),t.upload=t.requestPath=t.ajax=void 0;var o=n(a("795b")),r=a("e74f"),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 s=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 o.default(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=s;var c=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 o.default(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=c},f0a5:function(e,t,a){"use strict";var n,o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"search_page"},[a("v-uni-view",{staticClass:"searchHeader"},[a("v-uni-view",{staticClass:"backImgBox",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goBack()}}},[a("v-uni-image",{staticClass:"back",attrs:{src:"../../static/back.png",mode:""}})],1),a("v-uni-view",{staticClass:"ipt"},[a("v-uni-image",{staticClass:"inpImg",attrs:{src:"../../static/searchIdx.png",mode:""}}),a("v-uni-input",{attrs:{type:"text",placeholder:"请输入搜索内容"},model:{value:e.keywords,callback:function(t){e.keywords=t},expression:"keywords"}}),e.keywords?a("v-uni-image",{staticClass:"delete",attrs:{src:"../../static/delete.png",mode:""},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.deletes.apply(void 0,arguments)}}}):e._e()],1),a("v-uni-text",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toList(e.keywords)}}},[e._v("搜索")])],1),a("v-uni-view",{staticClass:"hotsBox"},[a("h6",[e._v("热门搜索")]),a("v-uni-view",{staticClass:"olist"},e._l(e.hotList,function(t,n){return a("v-uni-view",{key:n,staticClass:"hot",on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.toList(t.hotSearchWord)}}},[e._v(e._s(t.hotSearchWord))])}),1)],1)],1)},r=[];a.d(t,"b",function(){return o}),a.d(t,"c",function(){return r}),a.d(t,"a",function(){return n})},ff85:function(e,t,a){"use strict";a.r(t);var n=a("f0a5"),o=a("b8fb");for(var r in o)"default"!==r&&function(e){a.d(t,e,function(){return o[e]})}(r);a("5b91");var i,s=a("f0c5"),c=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"39375611",null,!1,n["a"],i);t["default"]=c.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-search-list"],{"2fa3":function(t,e,i){"use strict";var a=i("288e");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a481"),i("ac6a");var s=i("8d7c"),o=a(i("7fb4")),n=a(i("eb5f")),c=i("e74f"),l={components:{MescrollUni:o.default,uniLoadMore:n.default},data:function(){return{tabList:[{name:"杂志",id:"managizeAc"},{name:"文章",id:"article"}],tabIndex:0,booklist:[],isShowLoad:!1,showLoading:!1,mescroll:null,downOption:{use:!1,auto:!1},listQuery:{type:1,keywords:"",pageNum:1,pageSize:20}}},onReachBottom:function(){this.mescroll&&this.mescroll.onReachBottom()},onPageScroll:function(t){this.mescroll&&this.mescroll.onPageScroll(t)},onLoad:function(t){this.listQuery.keywords=t.keywords},methods:{goBack:function(){uni.navigateBack({delta:1})},deletes:function(){this.listQuery.keywords=""},tabs:function(t,e){var i=this;this.isShowLoad=!0,this.tabList.forEach(function(t,a){i.tabList[a].id=i.tabList[a].id.replace(/Ac/g,""),e==a&&(i.tabList[e].id=i.tabList[e].id+"Ac")}),this.tabIndex=e,this.listQuery.type=e+1,this.getList()},getList:function(){var t=this;(0,s.getListAPI)(this.listQuery).then(function(e){t.isShowLoad=!1,0==e.data.code?t.booklist=e.data.data.list:t.booklist=[]})},searchFor:function(){this.getList()},mescrollInit:function(t){this.mescroll=t},downCallback:function(t){t.resetUpScroll()},upCallback:function(t){var e=this;this.listQuery.pageNum=t.num,this.getListDataFromNet(this.listQuery,function(i){t.endSuccess(i.length),1==t.num&&(e.booklist=[]),e.booklist=e.booklist.concat(i)},function(){t.endErr()})},getListDataFromNet:function(t,e,i){uni.request({url:c.ApiUrl+"/resource/wap/ebook/page-book",data:t,method:"get",success:function(t){var i=[];0==t.data.code&&(i=t.data.data.list),e&&e(i)},fail:function(){i&&i()}})},toDetails:function(t){1==t.resourceType?uni.navigateTo({url:"../details/index?id="+t.id}):2==t.resourceType&&uni.navigateTo({url:"../details/article?id="+t.id})}}};e.default=l},5256:function(t,e,i){var a=i("b041");e=t.exports=i("2350")(!1),e.push([t.i,".searchlist_page .searchHeader[data-v-3bb5b1c8]{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("+a(i("382c"))+") no-repeat;background-size:100%}.searchlist_page .searchHeader .backImgBox[data-v-3bb5b1c8]{height:100%}.searchlist_page .searchHeader .back[data-v-3bb5b1c8]{height:%?38?%;width:%?21?%;margin-right:%?27?%;vertical-align:middle;margin-top:%?6?%}.searchlist_page .searchHeader .ipt[data-v-3bb5b1c8]{height:%?68?%;width:%?574?%;position:relative;margin-right:%?18?%}.searchlist_page .searchHeader .ipt .inpImg[data-v-3bb5b1c8]{height:%?26?%;width:%?26?%;position:absolute;top:%?21?%;left:%?18?%;z-index:100}.searchlist_page .searchHeader .ipt .delete[data-v-3bb5b1c8]{height:%?28?%;width:%?28?%;position:absolute;top:%?21?%;right:%?21?%;z-index:100}.searchlist_page .searchHeader .ipt uni-input[data-v-3bb5b1c8]{background:#fff;border-radius:%?34?%;color:#333;padding:0 %?60?%;height:100%}.searchlist_page .searchHeader .ipt[data-v-3bb5b1c8] .input-placeholder{color:#bbbec3}.searchlist_page .searchHeader uni-text[data-v-3bb5b1c8]{color:#fff;font-size:14px}.searchlist_page .fixedBox[data-v-3bb5b1c8]{position:fixed;top:0;z-index:9999}.searchlist_page .listBox[data-v-3bb5b1c8]{margin-top:%?184?%}.searchlist_page .tabBox[data-v-3bb5b1c8]{display:-webkit-box;display:-webkit-flex;display:flex;height:%?90?%;width:100%;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.searchlist_page .tabBox .tabs[data-v-3bb5b1c8]{width:50%;text-align:center;font-size:16px;font-weight:700;color:#333;border-bottom:1px solid #e9dbc1;background:#fdfaf4;height:100%;line-height:%?90?%}.searchlist_page .tabBox .tabs uni-image[data-v-3bb5b1c8]{width:%?40?%;height:%?42?%;margin-right:%?12?%;vertical-align:middle}.searchlist_page .tabBox .active[data-v-3bb5b1c8]{color:#eb0208}.searchlist_page .tabBox .cutLine[data-v-3bb5b1c8]{height:%?80?%;width:1px;background:#fdfaf4;border-left:1px solid #e9dbc1;position:absolute}.searchlist_page .olist[data-v-3bb5b1c8]{padding:%?41?% %?24?%}.searchlist_page .olist .list[data-v-3bb5b1c8]{border-bottom:1px solid #ededed;margin-bottom:40px;font-size:14px}.searchlist_page .olist .list .tit[data-v-3bb5b1c8]{color:#202020;font-size:16px;margin-bottom:%?25?%;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.searchlist_page .olist .list .intro[data-v-3bb5b1c8]{margin-bottom:%?35?%;color:#555;display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;text-overflow:ellipsis;-webkit-line-clamp:2}.searchlist_page .olist .list .stageBox[data-v-3bb5b1c8]{margin-bottom:%?25?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;color:#bbb}.searchlist_page .olist .list .stageBox .stage[data-v-3bb5b1c8]{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.searchlist_page .olist .list .stageBox .date[data-v-3bb5b1c8]{width:%?260?%;font-size:12px;margin-left:%?20?%}",""])},5941:function(t,e,i){"use strict";var a=i("f414"),s=i.n(a);s.a},da45:function(t,e,i){"use strict";i.r(e);var a=i("2fa3"),s=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,function(){return a[t]})}(o);e["default"]=s.a},dbc5:function(t,e,i){"use strict";i.r(e);var a=i("e95b"),s=i("da45");for(var o in s)"default"!==o&&function(t){i.d(e,t,function(){return s[t]})}(o);i("5941");var n,c=i("f0c5"),l=Object(c["a"])(s["default"],a["b"],a["c"],!1,null,"3bb5b1c8",null,!1,a["a"],n);e["default"]=l.exports},e95b:function(t,e,i){"use strict";var a,s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"searchlist_page"},[i("v-uni-view",{staticClass:"fixedBox"},[i("v-uni-view",{staticClass:"searchHeader"},[i("v-uni-view",{staticClass:"backImgBox",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goBack.apply(void 0,arguments)}}},[i("v-uni-image",{staticClass:"back",attrs:{src:"../../static/back.png",mode:""}})],1),i("v-uni-view",{staticClass:"ipt"},[i("v-uni-image",{staticClass:"inpImg",attrs:{src:"../../static/searchIdx.png",mode:""}}),i("v-uni-input",{attrs:{type:"text",placeholder:"请输入搜索内容"},model:{value:t.listQuery.keywords,callback:function(e){t.$set(t.listQuery,"keywords",e)},expression:"listQuery.keywords"}}),t.listQuery.keywords?i("v-uni-image",{staticClass:"delete",attrs:{src:"../../static/delete.png",mode:""},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.deletes.apply(void 0,arguments)}}}):t._e()],1),i("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.searchFor.apply(void 0,arguments)}}},[t._v("搜索")])],1),i("v-uni-view",{staticClass:"tabBox"},[t._l(t.tabList,function(e,a){return i("v-uni-view",{key:a,class:["tabs",t.tabIndex==a?"active":""],on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.tabs(e,a)}}},[i("v-uni-image",{attrs:{src:"../../static/"+e.id+".png",mode:""}}),i("span",[t._v(t._s(e.name))])],1)}),i("v-uni-view",{staticClass:"cutLine"})],2)],1),i("v-uni-view",{staticClass:"listBox"},[t.isShowLoad?i("uni-load-more",{attrs:{status:"loading"}}):i("mescroll-uni",{on:{down:function(e){arguments[0]=e=t.$handleEvent(e),t.downCallback.apply(void 0,arguments)},up:function(e){arguments[0]=e=t.$handleEvent(e),t.upCallback.apply(void 0,arguments)},init:function(e){arguments[0]=e=t.$handleEvent(e),t.mescrollInit.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"olist"},t._l(t.booklist,function(e,a){return i("v-uni-view",{key:a,staticClass:"list",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.toDetails(e)}}},[i("v-uni-view",{staticClass:"tit"},[t._v(t._s(e.name))]),i("v-uni-view",{staticClass:"intro",domProps:{innerHTML:t._s(e.synopsis)}}),i("v-uni-view",{staticClass:"stageBox"},[e.mainBody?i("v-uni-view",{staticClass:"stage"},[t._v(t._s(e.mainBody))]):t._e(),e.source?i("v-uni-view",{staticClass:"stage"},[t._v("来源: "+t._s(e.source))]):t._e(),i("v-uni-view",{staticClass:"date"},[t._v(t._s(e.uploadTime))])],1)],1)}),1)],1)],1)],1)},o=[];i.d(e,"b",function(){return s}),i.d(e,"c",function(){return o}),i.d(e,"a",function(){return a})},f414:function(t,e,i){var a=i("5256");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("4f06").default;s("2b040172",a,!0,{sourceMap:!1,shadowMode:!1})}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-search-yearList"],{"1d3a":function(t,a,i){"use strict";var e=i("468d"),n=i.n(e);n.a},"2d45":function(t,a,i){"use strict";i.r(a);var e=i("b7c0"),n=i("843d");for(var s in n)"default"!==s&&function(t){i.d(a,t,function(){return n[t]})}(s);i("1d3a");var o,r=i("f0c5"),l=Object(r["a"])(n["default"],e["b"],e["c"],!1,null,"30397400",null,!1,e["a"],o);a["default"]=l.exports},"468d":function(t,a,i){var e=i("8577");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var n=i("4f06").default;n("1b6c679c",e,!0,{sourceMap:!1,shadowMode:!1})},"843d":function(t,a,i){"use strict";i.r(a);var e=i("aae39"),n=i.n(e);for(var s in e)"default"!==s&&function(t){i.d(a,t,function(){return e[t]})}(s);a["default"]=n.a},8577:function(t,a,i){var e=i("b041");a=t.exports=i("2350")(!1),a.push([t.i,".yearlist_page .searchHeader[data-v-30397400]{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("+e(i("382c"))+") no-repeat;background-size:100%}.yearlist_page .searchHeader .backImgBox[data-v-30397400]{height:100%}.yearlist_page .searchHeader .back[data-v-30397400]{height:%?38?%;width:%?21?%;margin-right:%?27?%;vertical-align:middle;margin-top:%?6?%}.yearlist_page .searchHeader .ipt[data-v-30397400]{height:%?68?%;width:%?574?%;color:#fff;text-align:center;line-height:%?68?%;font-size:18px;margin-right:%?18?%}.yearlist_page .searchHeader .search[data-v-30397400]{height:%?38?%;width:%?38?%}.yearlist_page .uni-tab-bar11[data-v-30397400]{height:%?100?%;overflow:hidden;background:#fff;border-bottom:1px solid #eee}.yearlist_page .uni-tab-bar11 .uni-swiper-tab[data-v-30397400]{line-height:%?100?%;height:%?100?%}.yearlist_page .uni-tab-bar11 .uni-swiper-tab .swiper-tab-list[data-v-30397400]{width:auto!important;padding:0 %?40?%;color:#666;font-size:%?28?%}.yearlist_page .uni-tab-bar11 .uni-swiper-tab .swiper-tab-list .wordCont[data-v-30397400]{margin-bottom:%?4?%}.yearlist_page .uni-tab-bar11 .uni-swiper-tab .active[data-v-30397400]{width:auto!important;padding:0 %?20?%;color:#db1115!important;font-size:%?36?%;opacity:1;font-weight:700}.yearlist_page .uni-tab-bar11 .uni-swiper-tab .borderBtm[data-v-30397400]{height:%?8?%;width:%?50?%;background:#db1115;border-radius:%?10?%;margin-top:%?12?%;margin:%?10?% auto}.yearlist_page .managizeList[data-v-30397400]{padding:%?40?% %?24?% %?50?%}.yearlist_page .managizeList .olist[data-v-30397400]{width:%?196?%;height:%?350?%;margin-bottom:%?50?%;float:left}.yearlist_page .managizeList .marginR[data-v-30397400]{margin-right:%?52?%}.yearlist_page .managizeList uni-image[data-v-30397400]{height:%?264?%;width:%?196?%;margin-bottom:%?30?%}.yearlist_page .managizeList .txt[data-v-30397400]{text-align:center;color:#202021;font-size:12px}",""])},aae39:function(t,a,i){"use strict";var e=i("288e");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n=i("8d7c"),s=e(i("7fb4")),o=e(i("eb5f")),r=i("e74f"),l={components:{MescrollUni:s.default,uniLoadMore:o.default},data:function(){return{siteCode:0,scrollLeft:0,subjectId:"",subjectList:[],list:[],isShowLoad:!1,showLoading:!1,mescroll:null,downOption:{use:!1,auto:!1},listQuery:{type:1,year:null,mainBody:null,pageNum:1,pageSize:10}}},onReachBottom:function(){this.mescroll&&this.mescroll.onReachBottom()},onPageScroll:function(t){this.mescroll&&this.mescroll.onPageScroll(t)},onLoad:function(t){this.subjectId=t.subjectId,this.listQuery.mainBody=t.subjectId,this.listQuery.year=t.year,this.getYear(),this.siteCode=t.index},methods:{tapTab:function(t,a){this.siteCode=a,this.isShowLoad=!0,this.listQuery.year=t.yearId,this.getList()},goBack:function(){uni.navigateBack({delta:1})},toSearch:function(){uni.navigateTo({url:"../search/index"})},getYear:function(){var t=this;(0,n.getYearAPI)(this.subjectId).then(function(a){0==a.data.code&&(a.data.data.length>0?t.subjectList=a.data.data:t.subjectList=[])})},getList:function(){var t=this;(0,n.getListAPI)(this.listQuery).then(function(a){t.isShowLoad=!1,0==a.data.code?t.list=a.data.data.list:t.list=[]})},toDetails:function(t){uni.navigateTo({url:"../details/index?id="+t})},mescrollInit:function(t){this.mescroll=t},downCallback:function(t){t.resetUpScroll()},upCallback:function(t){var a=this;console.log(9),this.listQuery.pageNum=t.num,this.getListDataFromNet(this.listQuery,function(i){t.endSuccess(i.length),1==t.num&&(a.list=[]),a.list=a.list.concat(i)},function(){t.endErr()})},getListDataFromNet:function(t,a,i){uni.request({url:r.ApiUrl+"/resource/wap/ebook/page-book",data:t,method:"get",success:function(t){var i=[];0==t.data.code&&(i=t.data.data.list),a&&a(i)},fail:function(){i&&i()}})}}};a.default=l},b7c0:function(t,a,i){"use strict";var e,n=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("v-uni-view",{staticClass:"yearlist_page"},[i("v-uni-view",{staticClass:"searchHeader"},[i("v-uni-view",{staticClass:"backImgBox",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.goBack()}}},[i("v-uni-image",{staticClass:"back",attrs:{src:"../../static/back.png",mode:""}})],1),i("v-uni-view",{staticClass:"ipt"},[t._v("全部")]),i("v-uni-image",{staticClass:"search",attrs:{src:"../../static/search.png",mode:""},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.toSearch()}}})],1),i("v-uni-view",{staticClass:"uni-tab-bar11"},[i("v-uni-scroll-view",{staticClass:"uni-swiper-tab",attrs:{id:"tab-bar","scroll-x":!0,"scroll-left":t.scrollLeft}},t._l(t.subjectList,function(a,e){return i("v-uni-view",{key:e,class:["swiper-tab-list",t.siteCode==e?"active":""],attrs:{id:e,"data-current":e},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.tapTab(a,e)}}},[i("v-uni-view",{staticClass:"wordCont"},[t._v(t._s(a.name)+"年")]),i("v-uni-view",{class:[t.siteCode==e?"borderBtm":""]})],1)}),1)],1),i("v-uni-view",{staticClass:"managizeList"},[t.isShowLoad?i("uni-load-more",{attrs:{status:"loading"}}):i("mescroll-uni",{on:{down:function(a){arguments[0]=a=t.$handleEvent(a),t.downCallback.apply(void 0,arguments)},up:function(a){arguments[0]=a=t.$handleEvent(a),t.upCallback.apply(void 0,arguments)},init:function(a){arguments[0]=a=t.$handleEvent(a),t.mescrollInit.apply(void 0,arguments)}}},[t._l(t.list,function(a,e){return i("v-uni-view",{key:e,class:["olist",e%3!=2?"marginR":""],on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.toDetails(a.id)}}},[i("v-uni-view",{staticClass:"imgs"},[a.bookCover?i("v-uni-image",{attrs:{src:t.fileUrl(a.bookCover),mode:""}}):i("v-uni-image",{attrs:{src:"../../static/list.png",mode:""}})],1),i("v-uni-view",{staticClass:"txt"},[t._v(t._s(a.mainBody))])],1)}),t.showLoading?i("v-uni-view",{}):t._e()],2)],1)],1)},s=[];i.d(a,"b",function(){return n}),i.d(a,"c",function(){return s}),i.d(a,"a",function(){return e})}}]);
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论