chunk-67dfbbfa.00043d05.js 10 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-67dfbbfa"],{"058c":function(t,s,i){"use strict";var e=function(){var t=this,s=t.$createElement,i=t._self._c||s;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(s,e){return i("div",{staticClass:"nav",class:{navC:e==t.navChoose},on:{click:function(i){return t.navC(e,s)}}},[i("div",{staticClass:"title",attrs:{title:s.title}},[t._v(" "+t._s(s.title)+" ")]),i("div",{staticClass:"you"},[t._v(" > ")])])})),0):t._e(),i("div",{staticClass:"right"},[t.isShowHeader?i("div",{staticClass:"head nawarp"},[t._v(" 当前位置: "),i("div",{on:{click:function(s){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(s){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(" > 信息详情")])]),t.isShowSon?t._e():t._t("default"),i("div",{staticClass:"contentbox"},[i("div",{staticClass:"content"},[i("div",{directives:[{name:"show",rawName:"v-show",value:"loadmore"==t.loadingType,expression:"loadingType == 'loadmore'"}],staticClass:"load"},[t._v(" ----- 加载中 ----- ")]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSon,expression:"isShowSon"}],staticClass:"text",domProps:{innerHTML:t._s(t.content)}}),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.isShowSon,expression:"!isShowSon"}],staticClass:"contentList chooseitem"},[t._l(t.contentList,(function(s){return i("div",{staticClass:"item",attrs:{title:s.title},on:{click:function(i){return t.listChoose(s)}}},[i("span",{staticClass:"title-icon"}),i("div",{staticClass:"title nawarp"},[i("div",{}),i("div",{},[t._v(" "+t._s(s.title)+" ")])]),i("div",{staticClass:"time"},[t._v(" "+t._s(t.getTime(s.releasetime))+" ")])])})),t.totalPage>1?i("div",{staticClass:"pagec"},[i("div",{staticClass:"fristPage",on:{click:function(s){t.page=1}}},[t._v(" 第一页 ")]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.totalPage>10,expression:"totalPage>10"}],staticClass:"pagetoomuch"},[i("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?i("div",{staticClass:"pageNum",class:{isChoose:s==t.page},on:{click:function(i){return t.pageChoose(s)}}},[t._v(" "+t._s(s)+" ")]):t._e()})),i("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?i("div",{directives:[{name:"show",rawName:"v-show",value:t.totalPage>2,expression:"totalPage>2"}],staticClass:"pageNum",class:{isChoose:s==t.page},on:{click:function(i){return t.pageChoose(s)}}},[t._v(" "+t._s(s)+" ")]):t._e()}))],2),t._l(t.totalPage,(function(s){return i("div",{directives:[{name:"show",rawName:"v-show",value:t.totalPage<=10,expression:"totalPage<=10"}],staticClass:"pageNum",class:{isChoose:s==t.page},on:{click:function(i){return t.pageChoose(s)}}},[t._v(" "+t._s(s)+" ")])})),i("div",{staticClass:"nextPage",on:{click:t.nextPage}},[t._v(" 下一页 ")])],2):t._e()],2)])])],2)])},a=[],n=i("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 i="/introduce"==this.path&&2==t;i?(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 i=s.data;""==i.url?(t.content=i.content,t.contentId=0):(t.originalText(i.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=(i("5d8a"),i("2877")),r=Object(l["a"])(c,e,a,!1,null,"9d4fd62e",null);s["a"]=r.exports},2104:function(t,s,i){},"27e2":function(t,s,i){"use strict";i("d7a0")},"5d8a":function(t,s,i){"use strict";i("2104")},7336:function(t,s,i){t.exports=i.p+"img/nsearch.1d2059e4.png"},d7a0:function(t,s,i){},d7c0:function(t,s,i){"use strict";i.r(s);var e=function(){var t=this,s=t.$createElement,e=t._self._c||s;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(s){s.target.composing||(t.searchValue=s.target.value)}}}),e("img",{staticClass:"searchImg",attrs:{src:i("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(s){return e("div",{staticClass:"list"},[e("div",{staticClass:"item"},[e("div",{staticClass:"time"},[t._v(" "+t._s(t.getTime(s.createtime))+" ")]),e("div",{staticClass:"name"},[t._v(" "+t._s(s.contact)+" ")]),e("div",{staticClass:"price"},[t._v(" "+t._s(s.amount)+" ")]),e("div",{staticClass:"intention"},[t._v(" "+t._s(t.getCategory(s.category_id))+" ")]),e("div",{staticClass:"remarks"},[t._v(" "+t._s(s.remarks)+" ")])])])}))],2),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(i){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",{staticClass:"pageNum",class:{isChoose:s==t.page},on:{click:function(i){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(i){return t.pageChoose(s)}}},[t._v(" "+t._s(s)+" ")])})),e("div",{staticClass:"nextPage",on:{click:t.nextPage}},[t._v(" 下一页 ")])],2)])])},a=[function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"title"},[i("div",{staticClass:"time"},[t._v(" 捐赠时间 ")]),i("div",{staticClass:"name"},[t._v(" 捐赠者 ")]),i("div",{staticClass:"price"},[t._v(" 捐赠金额 ")]),i("div",{staticClass:"intention"},[t._v(" 捐赠意向 ")]),i("div",{staticClass:"remarks"},[t._v(" 备注 ")])])}],n=i("fa7d"),o=i("fd03"),c=i("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(s){t.list=s.data.data,t.sum=s.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(s){t.list=s.data.data,t.sum=s.data.count}))},getCategory:function(t){return 20==t?"疫情防控":21==t?"AED救护及科普":22==t?"红十字会人道事业(非定向捐款)":void 0}},watch:{page:function(){this.getlave()}}},r=l,v=(i("27e2"),i("2877")),h=Object(v["a"])(r,e,a,!1,null,"30060c8c",null);s["default"]=h.exports}}]);