1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-24e4cf6c"],{"058c":function(t,s,e){"use strict";var i=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"contact"},[t.isShownav?e("div",{directives:[{name:"show",rawName:"v-show",value:t.navList,expression:"navList"}],staticClass:"navlist"},t._l(t.navList.list,(function(s,i){return e("div",{staticClass:"nav",class:{navC:i==t.navChoose},on:{click:function(e){return t.navC(i,s)}}},[e("div",{staticClass:"title",attrs:{title:s.title}},[t._v(" "+t._s(s.title)+" ")]),e("div",{staticClass:"you"},[t._v(" > ")])])})),0):t._e(),e("div",{staticClass:"right"},[t.isShowHeader?e("div",{staticClass:"head nawarp"},[t._v(" 当前位置: "),e("div",{on:{click:function(s){return t.urlTo("index")}}},[t._v("首页")]),t._v(" > "),e("div",{on:{click:t.listBack}},[t._v(" "+t._s(t.navList.title)+" > "+t._s(t.navList.list[t.navChoose].title))]),e("span",{directives:[{name:"show",rawName:"v-show",value:!!t.content&&this.navList.listinlist,expression:"!(!content) && this.navList.listinlist"}]},[t._v(" > 信息详情")])]):e("div",{staticClass:"head"},[t._v(" 当前位置:"),e("div",{on:{click:function(s){return t.urlTo("index")}}},[t._v("首页")]),t._v(" > "),e("div",{on:{click:t.listBack}},[t._v(t._s(t.navList.title))]),e("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"),e("div",{staticClass:"contentbox"},[e("div",{staticClass:"content"},[e("div",{directives:[{name:"show",rawName:"v-show",value:"loadmore"==t.loadingType,expression:"loadingType == 'loadmore'"}],staticClass:"load"},[t._v(" ----- 加载中 ----- ")]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSon,expression:"isShowSon"}],staticClass:"text",domProps:{innerHTML:t._s(t.content)}}),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.isShowSon,expression:"!isShowSon"}],staticClass:"contentList chooseitem"},[t._l(t.contentList,(function(s){return e("div",{staticClass:"item",attrs:{title:s.title},on:{click:function(e){return t.listChoose(s)}}},[e("span",{staticClass:"title-icon"}),e("div",{staticClass:"title nawarp"},[e("div",{}),e("div",{},[t._v(" "+t._s(s.title)+" ")])]),e("div",{staticClass:"time"},[t._v(" "+t._s(t.getTime(s.releasetime))+" ")])])})),t.totalPage>1?e("div",{staticClass:"pagec"},[e("div",{staticClass:"fristPage",on:{click:function(s){t.page=1}}},[t._v(" 第一页 ")]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.totalPage>10,expression:"totalPage>10"}],staticClass:"pagetoomuch"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.page-4>0,expression:"page-4>0"}],staticClass:"nextPage"},[t._v(" ... ")]),t._l(t.totalPage,(function(s){return s>t.page-5&&s<t.page+4&&s!=t.totalPage?e("div",{staticClass:"pageNum",class:{isChoose:s==t.page},on:{click:function(e){return t.pageChoose(s)}}},[t._v(" "+t._s(s)+" ")]):t._e()})),e("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(s){return s==t.totalPage?e("div",{directives:[{name:"show",rawName:"v-show",value:t.totalPage>2,expression:"totalPage>2"}],staticClass:"pageNum",class:{isChoose:s==t.page},on:{click:function(e){return t.pageChoose(s)}}},[t._v(" "+t._s(s)+" ")]):t._e()}))],2),t._l(t.totalPage,(function(s){return e("div",{directives:[{name:"show",rawName:"v-show",value:t.totalPage<=10,expression:"totalPage<=10"}],staticClass:"pageNum",class:{isChoose:s==t.page},on:{click:function(e){return t.pageChoose(s)}}},[t._v(" "+t._s(s)+" ")])})),e("div",{staticClass:"nextPage",on:{click:t.nextPage}},[t._v(" 下一页 ")])],2):t._e()],2)])])],2)])},a=[],n=e("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,s){var e="/introduce"==this.path&&2==t;e?(this.isShowSon=!1,this.content="",this.loadingType,this.contentList=[]):(this.loadingType="loadmore",this.page=1,this.isShowSon=!0,this.content="",this.contentList=[],this.pageId=s.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(s){var e=s.data;""==e.url?(t.content=e.content,t.contentId=0):(t.originalText(e.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(s){t.sum=s.data.count,s.data.count>0?(1==s.data.count?(t.isShowSon=!0,t.contentId=s.data.list[0].id,t.getData()):0!=t.contentId?(t.isShowSon=!0,t.getData()):s.data.count>1&&(t.isShowSon=!1,t.loadingType="nomore"),t.contentList=s.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,s){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=(e("14b4"),e("2877")),h=Object(l["a"])(c,i,a,!1,null,"b9a836f8",null);s["a"]=h.exports},"14b4":function(t,s,e){"use strict";e("b610")},"5c7e":function(t,s,e){"use strict";e("6e56")},"698b":function(t,s,e){"use strict";e.r(s);var i=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"searchList"},[e("div",{staticClass:"boxtitle"},[t._v(" 当前位置:首页 > 搜索 ")]),e("div",{staticClass:"jmbox"},[e("div",{staticClass:"list chooseitem"},t._l(t.list,(function(s){return e("div",{staticClass:"item",on:{click:function(e){return t.navto(s.id)}}},[e("span",{staticClass:"title-icon"}),e("div",{staticClass:"title nowarp",attrs:{title:s.title}},[t._v(" "+t._s(s.title)+" ")]),e("div",{staticClass:"time"},[t._v(" "+t._s(t.getTime(s.releasetime))+" ")])])})),0),e("div",{directives:[{name:"show",rawName:"v-show",value:0==t.sum,expression:"sum == 0"}],staticClass:"nodata"},[t._v(" ---暂无更多数据--- ")]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.totalPage>1,expression:"totalPage>1"}],staticClass:"pagec"},[e("div",{staticClass:"fristPage",on:{click:function(s){t.page=1}}},[t._v(" 第一页 ")]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.totalPage>10,expression:"totalPage>10"}],staticClass:"pagetoomuch"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.page-4>0,expression:"page-4>0"}],staticClass:"nextPage"},[t._v(" ... ")]),t._l(t.totalPage,(function(s){return s>t.page-5&&s<t.page+4&&s!=t.totalPage?e("div",{staticClass:"pageNum",class:{isChoose:s==t.page},on:{click:function(e){return t.pageChoose(s)}}},[t._v(" "+t._s(s)+" ")]):t._e()})),e("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(s){return s==t.totalPage?e("div",{directives:[{name:"show",rawName:"v-show",value:t.totalPage>2,expression:"totalPage>2"}],staticClass:"pageNum",class:{isChoose:s==t.page},on:{click:function(e){return t.pageChoose(s)}}},[t._v(" "+t._s(s)+" ")]):t._e()}))],2),t._l(t.totalPage,(function(s){return e("div",{directives:[{name:"show",rawName:"v-show",value:t.totalPage<=10,expression:"totalPage<=10"}],staticClass:"pageNum",class:{isChoose:s==t.page},on:{click:function(e){return t.pageChoose(s)}}},[t._v(" "+t._s(s)+" ")])})),e("div",{staticClass:"nextPage",on:{click:t.nextPage}},[t._v(" 下一页 ")])],2)])])},a=[],n=e("fd03"),o=e("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,s=this.$route.query.value,e={page:this.page,limit:this.limit};Object(n["h"])(e,s).then((function(s){t.sum=s.data.count,t.list=s.data.list}))},navto:function(t){this.$router.push({name:"volunteer",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=(e("5c7e"),e("2877")),r=Object(h["a"])(l,i,a,!1,null,"094ab414",null);s["default"]=r.exports},"6e56":function(t,s,e){},b610:function(t,s,e){}}]);
|