(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-eaeb7592"],{"058c":function(t,i,s){"use strict";var e=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,e){return s("div",{staticClass:"nav",class:{navC:e==t.navChoose},on:{click:function(s){return t.navC(e,i)}}},[s("div",{staticClass:"title",attrs:{title:i.title}},[t._v(" "+t._s(i.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(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(" > 信息详情")])]),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(i){return s("div",{staticClass:"item",attrs:{title:i.title},on:{click:function(s){return t.listChoose(i)}}},[s("span",{staticClass:"title-icon"}),s("div",{staticClass:"title nawarp"},[s("div",{}),s("div",{},[t._v(" "+t._s(i.title)+" ")])]),s("div",{staticClass:"time"},[t._v(" "+t._s(t.getTime(i.releasetime))+" ")])])})),t.qxs?s("div",{},[t.totalPage>1?s("div",{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):t._e()]):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,i){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=i.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(i){var s=i.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(i){t.sum=i.data.count,i.data.count>0?(1==i.data.count?(t.isShowSon=!0,t.contentId=i.data.list[0].id,t.getData()):0!=t.contentId?(t.isShowSon=!0,t.getData()):i.data.count>1&&(t.isShowSon=!1,t.loadingType="nomore"),t.contentList=i.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,i){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("50d5"),s("2877")),r=Object(l["a"])(c,e,a,!1,null,"a3c0be04",null);i["a"]=r.exports},3293:function(t,i,s){},"50d5":function(t,i,s){"use strict";s("7365")},7336:function(t,i,s){t.exports=s.p+"img/nsearch.1d2059e4.png"},7365:function(t,i,s){},"75aa":function(t,i,s){"use strict";s("3293")},d7c0:function(t,i,s){"use strict";s.r(i);var e=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"contribution"},[e("div",{staticClass:"boxtitle"},[t._v(" 当前位置:首页 > 爱心榜 ")]),e("div",{staticClass:"boxSearch"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchValue,expression:"searchValue"}],attrs:{type:"text",placeholder:"输入关键词搜索",required:""},domProps:{value:t.searchValue},on:{input:function(i){i.target.composing||(t.searchValue=i.target.value)}}}),e("img",{staticClass:"searchImg",attrs:{src:s("7336")},on:{click:t.search}})]),e("div",{staticClass:"jmbox"},[e("div",{staticClass:"center"},[t._m(0),e("div",{directives:[{name:"show",rawName:"v-show",value:0==t.sum,expression:"sum == 0"}],staticStyle:{padding:"10px",color:"#999999"}},[t._v(" ------暂无更多数据------ ")]),t._l(t.list,(function(i){return e("div",{staticClass:"list"},[e("div",{staticClass:"item"},[e("div",{staticClass:"time"},[t._v(" "+t._s(t.getTime(i.createtime))+" ")]),e("div",{staticClass:"name"},[t._v(" "+t._s(i.contact)+" ")]),e("div",{staticClass:"price"},[t._v(" "+t._s(i.amount)+" ")]),e("div",{staticClass:"intention"},[t._v(" "+t._s(t.getCategory(i.category_id))+" ")]),e("div",{staticClass:"remarks"},[t._v(" "+t._s(i.remarks)+" ")])])])}))],2),e("div",{staticClass:"pagec"},[e("div",{staticClass:"fristPage",on:{click:function(i){t.page=1}}},[t._v(" 第一页 ")]),t._l(t.totalPage,(function(i){return e("div",{staticClass:"pageNum",class:{isChoose:i==t.page},on:{click:function(s){return t.pageChoose(i)}}},[t._v(" "+t._s(i)+" ")])})),e("div",{staticClass:"nextPage",on:{click:t.nextPage}},[t._v(" 下一页 ")])],2)])])},a=[function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"title"},[s("div",{staticClass:"time"},[t._v(" 捐赠时间 ")]),s("div",{staticClass:"name"},[t._v(" 捐赠者 ")]),s("div",{staticClass:"price"},[t._v(" 捐赠金额 ")]),s("div",{staticClass:"intention"},[t._v(" 捐赠意向 ")]),s("div",{staticClass:"remarks"},[t._v(" 备注 ")])])}],n=s("fa7d"),o=s("fd03"),c=s("058c"),l={components:{jmBox:c["a"]},data:function(){return{loadingType:"loadmore",searchValue:"",navList:{title:"爱心榜"},page:1,limit:10,sum:0,list:[]}},computed:{totalPage:function(){return Math.ceil(this.sum/this.limit)}},mounted:function(){this.getlave()},methods:{search:function(){var t=this;Object(o["g"])({page:this.page,limit:this.limit},this.searchValue).then((function(i){t.list=i.data.data,t.sum=i.data.count}))},pageChoose:function(t){this.page=t},getTime:function(t){return Object(n["a"])(t)},nextPage:function(){this.page++,this.page>this.totalPage&&(this.page=this.totalPage)},getlave:function(){var t=this;Object(o["f"])({page:this.page,limit:this.limit}).then((function(i){t.list=i.data.data,t.sum=i.data.count}))},getCategory:function(t){return 20==t?"疫情防控":21==t?"AED救护及科普":22==t?"红十字会人道事业(非定向捐款)":void 0}},watch:{page:function(){this.getlave()}}},r=l,h=(s("75aa"),s("2877")),v=Object(h["a"])(r,e,a,!1,null,"52ccdf78",null);i["default"]=v.exports}}]);