chunk-2f2d6350.ccea13cb.js 6.3 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2f2d6350"],{"058c":function(t,i,s){"use strict";var n=function(){var t=this,i=t.$createElement,s=t._self._c||i;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(i,n){return s("div",{staticClass:"nav",class:{navC:n==t.navChoose},on:{click:function(s){return t.navC(n,i)}}},[s("div",{staticClass:"title",attrs:{title:i.title}},[t._v(" "+t._s(i.title)+" ")]),s("div",{},[t._v(" > ")])])})),0):t._e(),s("div",{staticClass:"right"},[t.isShowHeader?s("div",{staticClass:"head nawarp"},[t._v(" 当前位置: "),s("div",{on:{click:function(i){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(i){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(" > 信息详情")])]),0!=t.navChoose||t.isShowSon?t._e():t._t("default"),s("div",{staticClass:"content"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSon,expression:"isShowSon"}],domProps:{innerHTML:t._s(t.content)}}),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.isShowSon,expression:"!isShowSon"}],staticClass:"contentList"},[t._l(t.contentList,(function(i){return s("div",{staticClass:"item",on:{click:function(s){return t.listChoose(i)}}},[s("div",{staticClass:"title nawarp"},[t._v(" "+t._s(i.title)+" ")]),s("div",{staticClass:"time"},[t._v(" "+t._s(t.getTime(i.createtime))+" ")])])})),s("div",{directives:[{name:"show",rawName:"v-show",value:0!=t.sum,expression:"sum != 0"}],staticClass:"pagec"},[s("div",{staticClass:"fristPage",on:{click:function(i){t.page=1}}},[t._v(" 第一页 ")]),t._l(t.totalPage,(function(i){return s("div",{staticClass:"pageNum",class:{isChoose:i==t.page},on:{click:function(s){return t.pageChoose(i)}}},[t._v(" "+t._s(i)+" ")])})),s("div",{staticClass:"nextPage",on:{click:t.nextPage}},[t._v(" 下一页 ")])],2)],2)])],2)])},e=[],a=s("fa7d"),o=s("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 s=i.data;t.content=s.content,t.contentId=0}))},getlistslist:function(t){var i=this,s={page:this.page,limit:this.limit};Object(o["b"])(s,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,v=(s("b702"),s("2877")),u=Object(v["a"])(h,n,e,!1,null,"e0f679b6",null);i["a"]=u.exports},"26b5":function(t,i,s){"use strict";s("edcd")},"37db":function(t,i,s){},b702:function(t,i,s){"use strict";s("37db")},edcd:function(t,i,s){},fa7d:function(t,i,s){"use strict";function n(t){for(var i=13-(t+"").length,s=1,n=0;n<i;n++)s+="0";s=parseInt(s);var e=new Date(parseInt(t)*s),a=e.getFullYear(),o=e.getMonth()+1,c=e.getDate();e.getHours(),e.getMinutes(),e.getSeconds();return a+"-"+o+"-"+c}s.d(i,"a",(function(){return n}))},fe52:function(t,i,s){"use strict";s.r(i);var n=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"business"},[s("jm-box",{attrs:{navList:t.navList},on:{navListC:t.navListC}},[s("div",{staticClass:"about"},[s("div",{staticClass:"title"},[t._v(" 应急救援 ")]),s("p",[t._v("备灾救灾是红十字会四大核心工作之一,是《中华人民共和国红十字会法》赋予红十字会的重要职责,是红十字会“人道、博爱、 奉献”精神的具体体现,是为社会扶危济困、行善积德的救助工程。")]),s("P",[t._v("在特大自然灾害和突发公共事件面前,人总显得非常脆弱,当鲜活的生命遭受摧残,当巨额的财产蒙受损失的时候,红十字一-个 神圣的标志就会成为人们的旗帜, 它将汇聚八方力量,为灾难中的人们提供人道主义援助,帮助其度过难关,重建物质和精神家园。")])],1)])],1)},e=[],a=s("ade3"),o=s("fd03"),c=s("058c"),h={components:{jmBox:c["a"]},data:function(){return{navChoose:0,navList:{title:"核心业务",url:"business",list:this.$store.state.business||[]}}},mounted:function(){this.init()},methods:Object(a["a"])({navListC:function(t){this.navChoose=t},init:function(){this.getdataList()},getdataList:function(){var t=this;Object(o["c"])({},16).then((function(i){var s=i.data;t.navList.list=s,t.$store.commit("setBusiness",s)}))}},"navListC",(function(t){this.navChoose=t}))},v=h,u=(s("26b5"),s("2877")),l=Object(u["a"])(v,n,e,!1,null,"2507c52c",null);i["default"]=l.exports}}]);