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