chunk-4e73fd9f.039bd2d2.js 5.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4e73fd9f"],{"058c":function(t,i,n){"use strict";var s=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"contact"},[t.isShownav?n("div",{directives:[{name:"show",rawName:"v-show",value:t.navList,expression:"navList"}],staticClass:"navlist"},t._l(t.navList.list,(function(i,s){return n("div",{staticClass:"nav",class:{navC:s==t.navChoose},on:{click:function(n){return t.navC(s,i)}}},[n("div",{staticClass:"title",attrs:{title:i.title}},[t._v(" "+t._s(i.title)+" ")]),n("div",{},[t._v(" > ")])])})),0):t._e(),n("div",{staticClass:"right"},[t.isShowHeader?n("div",{staticClass:"head nawarp"},[t._v(" 当前位置: "),n("div",{on:{click:function(i){return t.urlTo("index")}}},[t._v("首页")]),t._v(" > "),n("div",{on:{click:t.listBack}},[t._v(" "+t._s(t.navList.title)+" > "+t._s(t.navList.list[t.navChoose].title))]),n("span",{directives:[{name:"show",rawName:"v-show",value:!!t.content&&this.navList.listinlist,expression:"!(!content) && this.navList.listinlist"}]},[t._v(" > 信息详情")])]):n("div",{staticClass:"head"},[t._v(" 当前位置:"),n("div",{on:{click:function(i){return t.urlTo("index")}}},[t._v("首页")]),t._v(" > "),n("div",{on:{click:t.listBack}},[t._v(t._s(t.navList.title))]),n("span",{directives:[{name:"show",rawName:"v-show",value:!!t.content&&this.navList.listinlist,expression:"!(!content) && this.navList.listinlist"}]},[t._v(" > 信息详情")])]),0!=t.navChoose||t.isShowSon?t._e():t._t("default"),n("div",{staticClass:"content"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSon,expression:"isShowSon"}],domProps:{innerHTML:t._s(t.content)}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.isShowSon,expression:"!isShowSon"}],staticClass:"contentList"},[t._l(t.contentList,(function(i){return n("div",{staticClass:"item",on:{click:function(n){return t.listChoose(i)}}},[n("div",{staticClass:"title nawarp"},[t._v(" "+t._s(i.title)+" ")]),n("div",{staticClass:"time"},[t._v(" "+t._s(t.getTime(i.createtime))+" ")])])})),n("div",{directives:[{name:"show",rawName:"v-show",value:0!=t.sum,expression:"sum != 0"}],staticClass:"pagec"},[n("div",{staticClass:"fristPage",on:{click:function(i){t.page=1}}},[t._v(" 第一页 ")]),t._l(t.totalPage,(function(i){return n("div",{staticClass:"pageNum",class:{isChoose:i==t.page},on:{click:function(n){return t.pageChoose(i)}}},[t._v(" "+t._s(i)+" ")])})),n("div",{staticClass:"nextPage",on:{click:t.nextPage}},[t._v(" 下一页 ")])],2)],2)])],2)])},e=[],a=n("fa7d"),o=n("fd03"),c={props:["navList"],data:function(){return{page:1,limit:10,sum:0,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:!1}},mounted:function(){this.isShowContent&&this.init()},methods:{init:function(){this.navC(this.navChoose,this.navList.list[this.navChoose])},navC:function(t,i){this.isShowSon=!1,this.content="",this.contentList=[],this.getlistslist(i),this.navChoose=t,this.$emit("navListC",t)},listChoose:function(t){this.isShowSon=!0,console.log(t.id),this.contentId=t.id,this.getData()},getData:function(){var t=this;Object(o["a"])({},this.contentId).then((function(i){var n=i.data;t.content=n.content,t.contentId=0}))},getlistslist:function(t){var i=this,n={page:this.page,limit:this.limit};Object(o["b"])(n,t.id).then((function(t){i.sum=t.data.count,t.data.count>0&&(1==t.data.count?(i.isShowSon=!0,i.contentId=t.data.list[0].id,i.getData()):0!=i.contentId&&(i.isShowSon=!0,i.getData()),i.contentList=t.data.list)}))},pageChoose:function(t){this.page=t},listBack:function(){this.isShowSon=!1,console.log(this.isShowSon)},nextPage:function(){this.page++,this.page>this.totalPage&&(this.page=this.totalPage)},urlTo:function(t,i){this.$router.push({name:t})},getTime:function(t){return Object(a["a"])(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(){}}},h=c,r=(n("b702"),n("2877")),u=Object(r["a"])(h,s,e,!1,null,"e0f679b6",null);i["a"]=u.exports},"1efa":function(t,i,n){"use strict";n.r(i);var s=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"law"},[n("jm-box",{attrs:{navList:t.navList},on:{navListC:t.navListC}},[n("div",{staticClass:"center"})])],1)},e=[],a=(n("b0c0"),n("fd03")),o=n("058c"),c={components:{jmBox:o["a"]},data:function(){return{data:this.$route.params.data,navChoose:this.$route.params.navChoose||this.$route.query.navChoose||0,navList:{name:"",list:[]}}},mounted:function(){this.init()},methods:{init:function(){var t=this.$route.params.data;console.log(this.data),this.navList.name=t.intr,this.getList(t.id)},getList:function(t){var i=this;Object(a["b"])({},t).then((function(t){var n=t.data;console.log(n),i.navList.list=n}))},navListC:function(t){this.navChoose=t}}},h=c,r=n("2877"),u=Object(r["a"])(h,s,e,!1,null,null,null);i["default"]=u.exports},"37db":function(t,i,n){},b0c0:function(t,i,n){var s=n("83ab"),e=n("5e77").EXISTS,a=n("e330"),o=n("9bf2").f,c=Function.prototype,h=a(c.toString),r=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=a(r.exec),l="name";s&&!e&&o(c,l,{configurable:!0,get:function(){try{return u(r,h(this))[1]}catch(t){return""}}})},b702:function(t,i,n){"use strict";n("37db")},fa7d:function(t,i,n){"use strict";function s(t){for(var i=13-(t+"").length,n=1,s=0;s<i;s++)n+="0";n=parseInt(n);var e=new Date(parseInt(t)*n),a=e.getFullYear(),o=e.getMonth()+1,c=e.getDate();e.getHours(),e.getMinutes(),e.getSeconds();return a+"-"+o+"-"+c}n.d(i,"a",(function(){return s}))}}]);