chunk-b09bdfec.a72b3d79.js 9.3 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b09bdfec"],{"03e8":function(t,e,s){},"058c":function(t,e,s){"use strict";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"contact"},[t.isShownav?s("div",{directives:[{name:"show",rawName:"v-show",value:t.navList,expression:"navList"}],staticClass:"navlist"},t._l(t.navList.list,(function(e,i){return s("div",{staticClass:"nav",class:{navC:i==t.navChoose},on:{click:function(s){return t.navC(i,e)}}},[s("div",{staticClass:"title",attrs:{title:e.title}},[t._v(" "+t._s(e.title)+" ")]),s("div",{staticClass:"you"},[t._v(" > ")])])})),0):t._e(),s("div",{staticClass:"right"},[t.isShowHeader?s("div",{staticClass:"head nawarp"},[t._v(" 当前位置: "),s("div",{on:{click:function(e){return t.urlTo("index")}}},[t._v("首页")]),t._v(" > "),s("div",{on:{click:t.listBack}},[t._v(" "+t._s(t.navList.title)+" > "+t._s(t.navList.list[t.navChoose].title))]),s("span",{directives:[{name:"show",rawName:"v-show",value:!!t.content&&this.navList.listinlist,expression:"!(!content) && this.navList.listinlist"}]},[t._v(" > 信息详情")])]):s("div",{staticClass:"head"},[t._v(" 当前位置:"),s("div",{on:{click:function(e){return t.urlTo("index")}}},[t._v("首页")]),t._v(" > "),s("div",{on:{click:t.listBack}},[t._v(t._s(t.navList.title))]),s("span",{directives:[{name:"show",rawName:"v-show",value:!!t.content&&this.navList.listinlist,expression:"!(!content) && this.navList.listinlist"}]},[t._v(" > 信息详情")])]),t.isShowSon?t._e():t._t("default"),s("div",{staticClass:"contentbox"},[s("div",{staticClass:"content"},[s("div",{directives:[{name:"show",rawName:"v-show",value:"loadmore"==t.loadingType,expression:"loadingType == 'loadmore'"}],staticClass:"load"},[t._v(" ----- 加载中 ----- ")]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSon,expression:"isShowSon"}],staticClass:"text",domProps:{innerHTML:t._s(t.content)}}),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.isShowSon,expression:"!isShowSon"}],staticClass:"contentList chooseitem"},[t._l(t.contentList,(function(e){return s("div",{staticClass:"item",attrs:{title:e.title},on:{click:function(s){return t.listChoose(e)}}},[s("span",{staticClass:"title-icon"}),s("div",{staticClass:"title nawarp"},[s("div",{}),s("div",{},[t._v(" "+t._s(e.title)+" ")])]),s("div",{staticClass:"time"},[t._v(" "+t._s(t.getTime(e.releasetime))+" ")])])})),t.totalPage>1?s("div",{staticClass:"pagec"},[s("div",{staticClass:"fristPage",on:{click:function(e){t.page=1}}},[t._v(" 第一页 ")]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.totalPage>10,expression:"totalPage>10"}],staticClass:"pagetoomuch"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.page+4>t.totalPage,expression:"page+4>totalPage"}],staticClass:"nextPage"},[t._v(" ... ")]),t._l(t.totalPage,(function(e){return e>t.page-5&&e<t.page+4&&e!=t.totalPage?s("div",{staticClass:"pageNum",class:{isChoose:e==t.page},on:{click:function(s){return t.pageChoose(e)}}},[t._v(" "+t._s(e)+" ")]):t._e()})),s("div",{directives:[{name:"show",rawName:"v-show",value:t.page+4<t.totalPage,expression:"page+4<totalPage"}],staticClass:"nextPage"},[t._v(" ... ")]),t._l(t.totalPage,(function(e){return e==t.totalPage?s("div",{directives:[{name:"show",rawName:"v-show",value:t.totalPage>2,expression:"totalPage>2"}],staticClass:"pageNum",class:{isChoose:e==t.page},on:{click:function(s){return t.pageChoose(e)}}},[t._v(" "+t._s(e)+" ")]):t._e()}))],2),t._l(t.totalPage,(function(e){return s("div",{directives:[{name:"show",rawName:"v-show",value:t.totalPage<=10,expression:"totalPage<=10"}],staticClass:"pageNum",class:{isChoose:e==t.page},on:{click:function(s){return t.pageChoose(e)}}},[t._v(" "+t._s(e)+" ")])})),s("div",{staticClass:"nextPage",on:{click:t.nextPage}},[t._v(" 下一页 ")])],2):t._e()],2)])])],2)])},a=[],n=s("fd03"),o={props:["navList"],data:function(){return{page:1,limit:10,sum:0,loadingType:"loadmore",path:this.$route.path,navChoose:this.$route.params.navChoose||this.$route.query.navChoose||0,timeOut:"",content:"",contentList:[],contentId:this.$route.params.contentId||this.$route.query.contentId||0,isShowSon:!0,pageId:0}},mounted:function(){this.isShowContent&&this.init()},methods:{init:function(){this.navC(this.navChoose,this.navList.list[this.navChoose])},navC:function(t,e){var s="/introduce"==this.path&&2==t;s?(this.isShowSon=!1,this.content="",this.loadingType,this.contentList=[]):(this.loadingType="loadmore",this.page=1,this.isShowSon=!0,this.content="",this.contentList=[],this.pageId=e.id,this.getlistslist()),this.navChoose=t,this.$emit("navListC",t)},listChoose:function(t){this.loadingType="loadmore",this.isShowSon=!0,this.contentId=t.id,this.getData()},getData:function(){var t=this;Object(n["a"])({},this.contentId).then((function(e){var s=e.data;""==s.url?(t.content=s.content,t.contentId=0):(t.originalText(s.url),t.contentId=0,t.isShowSon=!1),t.loadingType="nomore"}))},getlistslist:function(){var t=this;Object(n["b"])({page:this.page,limit:this.limit},this.pageId).then((function(e){t.sum=e.data.count,e.data.count>0?(1==e.data.count?(t.isShowSon=!0,t.contentId=e.data.list[0].id,t.getData()):0!=t.contentId?(t.isShowSon=!0,t.getData()):e.data.count>1&&(t.isShowSon=!1,t.loadingType="nomore"),t.contentList=e.data.list):t.loadingType="nomore"}))},pageChoose:function(t){this.page=t},listBack:function(){"/introduce"==this.path&&2==this.navChoose||(this.loadingType="nomore",this.content="",this.isShowSon=!1)},nextPage:function(){this.page++,this.page>this.totalPage&&(this.page=this.totalPage)},urlTo:function(t,e){this.$router.push({name:t})},getTime:function(t){return t.substring(0,10)},originalText:function(t){window.open(t)}},computed:{totalPage:function(){return Math.ceil(this.sum/this.limit)},isShownav:function(){return!!this.navList.list},isShowHeader:function(){if(this.isShownav)return this.navList.list.length>1},isShowContent:function(){return!!this.navList.list&&this.navList.list.length>0}},watch:{isShowContent:function(){this.isShowContent&&this.init()},page:function(){this.getlistslist()}}},c=o,l=(s("5d5f"),s("2877")),h=Object(l["a"])(c,i,a,!1,null,"ab1c7eee",null);e["a"]=h.exports},"4ba6":function(t,e,s){},"5d5f":function(t,e,s){"use strict";s("4ba6")},ca1c:function(t,e,s){"use strict";s("03e8")},e124:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"searchList"},[s("div",{staticClass:"boxtitle"},[t._v(" 当前位置:首页 > 搜索 ")]),s("div",{staticClass:"jmbox"},[s("div",{staticClass:"list chooseitem"},t._l(t.list,(function(e){return s("div",{staticClass:"item",on:{click:function(s){return t.navto(e.id)}}},[s("span",{staticClass:"title-icon"}),s("div",{staticClass:"title nowarp",attrs:{title:e.title}},[t._v(" "+t._s(e.title)+" ")]),s("div",{staticClass:"time"},[t._v(" "+t._s(t.getTime(e.releasetime))+" ")])])})),0),s("div",{directives:[{name:"show",rawName:"v-show",value:0==t.sum,expression:"sum == 0"}],staticClass:"nodata"},[t._v(" ---暂无更多数据--- ")]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.totalPage>1,expression:"totalPage>1"}],staticClass:"pagec"},[s("div",{staticClass:"fristPage",on:{click:function(e){t.page=1}}},[t._v(" 第一页 ")]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.totalPage>10,expression:"totalPage>10"}],staticClass:"pagetoomuch"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.page+4>t.totalPage,expression:"page+4>totalPage"}],staticClass:"nextPage"},[t._v(" ... ")]),t._l(t.totalPage,(function(e){return e>t.page-5&&e<t.page+4&&e!=t.totalPage?s("div",{staticClass:"pageNum",class:{isChoose:e==t.page},on:{click:function(s){return t.pageChoose(e)}}},[t._v(" "+t._s(e)+" ")]):t._e()})),s("div",{directives:[{name:"show",rawName:"v-show",value:t.page+4<t.totalPage,expression:"page+4<totalPage"}],staticClass:"nextPage"},[t._v(" ... ")]),t._l(t.totalPage,(function(e){return e==t.totalPage?s("div",{directives:[{name:"show",rawName:"v-show",value:t.totalPage>2,expression:"totalPage>2"}],staticClass:"pageNum",class:{isChoose:e==t.page},on:{click:function(s){return t.pageChoose(e)}}},[t._v(" "+t._s(e)+" ")]):t._e()}))],2),t._l(t.totalPage,(function(e){return s("div",{directives:[{name:"show",rawName:"v-show",value:t.totalPage<=10,expression:"totalPage<=10"}],staticClass:"pageNum",class:{isChoose:e==t.page},on:{click:function(s){return t.pageChoose(e)}}},[t._v(" "+t._s(e)+" ")])})),s("div",{staticClass:"nextPage",on:{click:t.nextPage}},[t._v(" 下一页 ")])],2)])])},a=[],n=s("fd03"),o=s("058c"),c={components:{jmBox:o["a"]},data:function(){return{page:1,limit:15,sum:1,list:[],value:this.$route.params.value||this.$route.query.value||0}},mounted:function(){this.getData()},methods:{pageChoose:function(t){this.page=t},nextPage:function(){this.page++,this.page>this.totalPage&&(this.page=this.totalPage)},getData:function(){var t=this,e=this.$route.query.value,s={page:this.page,limit:this.limit};Object(n["d"])(s,e).then((function(e){console.log(e.data),t.sum=e.data.count,t.list=e.data.list}))},navto:function(t){this.$router.push({name:"details",query:{id:t}})},getTime:function(t){return t.substring(0,10)}},computed:{totalPage:function(){return Math.ceil(this.sum/this.limit)}},watch:{$route:function(){this.getData()},page:function(){this.getData()}}},l=c,h=(s("ca1c"),s("2877")),r=Object(h["a"])(l,i,a,!1,null,"c86caf86",null);e["default"]=r.exports}}]);