chunk-b0b83628.c208f1c9.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b0b83628"],{"0a0d":function(t,i,s){},"12e3":function(t,i,s){t.exports=s.p+"img/yq4.d557f8b1.png"},"1e4b":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:"index"},[e("div",{staticClass:"headerGrid"},[e("div",{staticClass:"swiper"},[e("el-carousel",{staticClass:"swiper-box",attrs:{interval:5e3,type:"card",height:"200px"}},t._l(t.rotation,(function(i,s){return e("el-carousel-item",{key:s,staticClass:"swiper-box-item"},[e("img",{staticClass:"swiper-img",attrs:{src:t.image(i.image)},on:{click:function(s){return t.newsTo(0,i)}}}),e("div",{staticClass:"title"},[t._v(" "+t._s(i.title)+" ")])])})),1)],1),e("div",{staticClass:"participate"},[e("div",{staticClass:"title1"},[t._v(" 我要参与 ")]),e("div",{staticClass:"list"},t._l(t.partakeList,(function(i,s){return e("div",{staticClass:"item",on:{click:function(i){return t.navTo(s)}}},[e("img",{staticClass:"iNimg",attrs:{src:t.image(i.image)}}),e("div",{staticClass:"name"},[t._v(" "+t._s(i.title)+" ")])])})),0)]),e("div",{staticClass:"cityNews"},[e("div",{staticClass:"title title2"},[t._v(" 市红十字会新闻 "),e("div",{staticClass:"more",on:{click:function(i){return t.urlTo("news")}}},[t._v("【查看更多】")])]),e("div",{staticClass:"list chooseitem"},t._l(t.cityNewsList,(function(i){return e("div",{staticClass:"item",attrs:{title:i.title},on:{click:function(s){return t.newsTo(0,i)}}},[e("div",{staticClass:"title"},[e("div",{staticClass:"spot"}),e("div",{staticClass:"nowarp"},[t._v(" "+t._s(i.title)+" ")])]),e("div",{staticClass:"time"},[t._v(" "+t._s(t.getDataTime(i))+" ")])])})),0)]),e("div",{staticClass:"ranking"},[e("div",{staticClass:"title title1"},[t._v(" 爱心滚动榜 "),e("div",{staticClass:"more",on:{click:function(i){return t.urlTo("contribution")}}},[t._v("【查看更多】")])]),t._m(0),e("slideUpd",[e("div",{staticClass:"list"},[e("div",{staticClass:"listTime"},t._l(t.rankingList,(function(i){return e("div",{staticClass:"item"},[t._v(" "+t._s(t.getPaytime(i))+" ")])})),0),e("div",{staticClass:"listName"},t._l(t.rankingList,(function(i){return e("div",{staticClass:"item nowarp",attrs:{title:i.contact}},[t._v(" "+t._s(i.contact||"空")+" ")])})),0),e("div",{staticClass:"listPrice"},t._l(t.rankingList,(function(i){return e("div",{staticClass:"item"},[t._v(" "+t._s(i.amount||"")+" ")])})),0)])])],1)]),e("div",{staticClass:"boxFlex"},[e("div",{staticClass:"box"},[e("div",{staticClass:"title title2"},[t._v(" 县市区红十字新闻 "),e("div",{staticClass:"more",on:{click:function(i){return t.urlTo("news",1)}}},[t._v("【查看更多】")])]),e("div",{staticClass:"list chooseitem"},t._l(t.countyNewsList,(function(i){return e("div",{staticClass:"item",attrs:{title:i.title},on:{click:function(s){return t.newsTo(1,i)}}},[e("div",{staticClass:"title"},[e("div",{staticClass:"spot"}),e("div",{staticClass:"nowarp"},[t._v(" "+t._s(i.title)+" ")])]),e("div",{staticClass:"time"},[t._v(" "+t._s(t.getDataTime(i))+" ")])])})),0)]),e("div",{staticClass:"box"},[e("div",{staticClass:"title title2"},[t._v(" 公示/公告 "),e("div",{staticClass:"more",on:{click:function(i){return t.urlTo("news",2)}}},[t._v("【查看更多】")])]),e("div",{staticClass:"list chooseitem"},t._l(t.publicityList,(function(i){return e("div",{staticClass:"item",attrs:{title:i.title},on:{click:function(s){return t.newsTo(3,i)}}},[e("div",{staticClass:"title"},[e("div",{staticClass:"spot"}),e("div",{staticClass:"nowarp"},[t._v(" "+t._s(i.title)+" ")])]),e("div",{staticClass:"time"},[t._v(" "+t._s(t.getDataTime(i))+" ")])])})),0)])]),t._m(1),e("div",{staticClass:"wallAwechat"},[e("div",{staticClass:"wall"},[e("div",{staticClass:"title"},[t._v(" 优秀志愿者风采墙 ")]),e("div",{staticClass:"walllist"},[e("div",{staticClass:"wallInput"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchV,expression:"searchV"}],attrs:{type:"text",placeholder:"输入姓名搜索志愿者"},domProps:{value:t.searchV},on:{input:function(i){i.target.composing||(t.searchV=i.target.value)}}}),e("img",{staticClass:"wallImg",attrs:{src:s("1e5e")},on:{click:t.searchbu}})]),e("slideLaR",{staticClass:"slideLaR"},t._l(t.wallList,(function(i,s){return e("div",{staticClass:"item",on:{click:function(s){return t.volunteerTo(i.id)}}},[e("img",{attrs:{src:t.image(i.image)}})])})),0)],1)]),t._m(2)]),e("div",{staticClass:"links"},[e("div",{staticClass:"title title2"},[t._v(" 友情链接 ")]),e("div",{staticClass:"links-list"},t._l(t.linksList,(function(i){return e("div",{staticClass:"links-item",on:{click:function(s){return t.toRescue(i.url)}}},[e("img",{attrs:{src:i.img}})])})),0)])])},a=[function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"listHeader"},[s("div",{},[t._v(" 捐赠时间 ")]),s("div",{},[t._v(" 捐赠者 ")]),s("div",{},[t._v(" 捐赠金额 ")])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"index-img"},[e("img",{attrs:{src:s("6176")}})])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"wechat"},[e("div",{staticClass:"title"},[t._v(" 微信公众号 ")]),e("div",{staticClass:"qrcode"},[e("div",{staticClass:"header"},[e("img",{staticClass:"scanning",attrs:{src:s("f7df")}}),e("div",[t._v(" 请扫码关注"),e("br"),t._v("荆门市红十字会"),e("br"),t._v("官方微信公众号 ")])]),e("div",{staticClass:"qrcodeImg"},[e("img",{attrs:{src:s("a596")}})])])])}],n=(s("99af"),s("4e82"),s("fa7d")),o=s("fd03"),r=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{ref:"boxH",staticClass:"slideUpd"},[s("div",{staticClass:"list",style:{"margin-top":-t.marginTop+"px"},on:{mouseover:t.mouseOver,mouseleave:t.mouseLeave}},[s("div",{staticClass:"listBox",attrs:{id:"listBoxH"}},[t._t("default"),t._t("default"),t._t("default"),t._t("default")],2)])])},c=[],l={data:function(){return{marginTop:0,listHeight:0,timeOut:"",boxHeight:0}},mounted:function(){this.init()},methods:{init:function(){this.automatic()},getslot:function(){this.listHeight=document.getElementById("listBoxH").clientHeight/4,this.boxHeight=this.$refs.boxH.clientHeight},automatic:function(){var t=this;this.timeOut=setInterval((function(){0==t.listHeight?t.getslot():t.marginTop++}),60)},mouseOver:function(){clearTimeout(this.timeOut)},mouseLeave:function(){this.init()}},watch:{marginTop:function(){this.listHeight-this.marginTop<=0&&(this.marginTop=0)}}},u=l,d=(s("2381"),s("2877")),v=Object(d["a"])(u,r,c,!1,null,"012b0123",null),f=v.exports,m=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{ref:"box",staticClass:"slideLaR"},[s("div",{staticClass:"list",style:{"margin-left":-t.marginLeft+"px"},on:{mouseover:t.mouseOver,mouseleave:t.mouseLeave}},[s("span",{staticClass:"listBox",attrs:{id:"detial"}},[t._t("default"),t._t("default")],2)])])},h=[],p={data:function(){return{marginLeft:0,listWidth:0,timeOut:"",boxWidth:0}},mounted:function(){this.init()},methods:{init:function(){this.automatic()},getslot:function(){this.listWidth=document.getElementById("detial").offsetWidth/2,this.boxWidth=this.$refs.box.offsetWidth},automatic:function(){var t=this;this.timeOut=setInterval((function(){0==t.listWidth?t.getslot():t.marginLeft++}),30)},mouseOver:function(){clearTimeout(this.timeOut)},mouseLeave:function(){this.init()}},computed:{isEnough:function(){return this.listWidth>this.boxWidth}},watch:{marginLeft:function(){this.listWidth-this.marginLeft<=0&&(this.marginLeft=0)}}},g=p,C=(s("c429"),Object(d["a"])(g,m,h,!1,null,"5fe33152",null)),w=C.exports,b={data:function(){return{searchV:"",path:this.$route.path,partakeList:this.$store.state.partakeList||[],rankingList:this.$store.state.rankingList||[],cityNewsList:this.$store.state.cityNewsList||[],countyNewsList:this.$store.state.countyNewsList||[],publicityList:this.$store.state.publicityList||[],wallList:this.$store.state.wallList||[],rotation:this.$store.state.rotation||[],linksList:[{img:s("8b45"),url:"https://www.redcross.org.cn/"},{img:s("6f3a"),url:"http://www.hbsredcross.org.cn/"},{img:s("dff6"),url:"https://www.codac.org.cn/"},{img:s("12e3"),url:"http://www.hbqgjx.com/"},{img:s("2aaf"),url:"http://www.hbmdp.org.cn/"}]}},mounted:function(){this.getPartakeList(),this.getWallList(),this.getlave(),this.getNewsList(),this.getRotation()},methods:{getRotation:function(){var t=this;Object(o["b"])({page:1,limit:3},27).then((function(i){var s=i.data;t.rotation=s.list,t.$store.commit("setRotation",s.list)}))},getPartakeList:function(){var t=this;Object(o["c"])({},18).then((function(i){var s=i.data;t.partakeList=s,t.$store.commit("setPartakeList",s)}))},getWallList:function(){var t=this;Object(o["b"])({page:1,limit:15},21).then((function(i){var s=i.data;t.wallList=s.list,t.$store.commit("setWallList",s.list)}))},getlave:function(){this.getlaveListson()},getlaveListson:function(){var t=this;Object(o["f"])({page:1,limit:10}).then((function(i){t.rankingList=i.data.data,t.$store.commit("setRankingList",i.data.data)}))},getNewsList:function(){var t=this;Object(o["b"])({page:1,limit:10},27).then((function(i){var s=i.data;t.cityNewsList=s.list,t.$store.commit("setCityNewsList",s.list)})),Object(o["b"])({page:1,limit:5},28).then((function(i){var s=i.data;t.countyNewsList=s.list,t.$store.commit("setCountyNewsList",s.list)})),Object(o["b"])({page:1,limit:10},30,29).then((function(i){var s=i.data.list;Object(o["b"])({page:1,limit:10},29).then((function(i){var e=s.concat(i.data.list);t.publicityList=e.sort(t.compare("releasetime")),t.$store.commit("setPublicityList",t.publicityList)}))})),this.toTop()},compare:function(t){return function(i,s){var e=i[t],a=s[t];return a>e?1:a<e?-1:0}},urlTo:function(t,i){this.$router.push({name:t,params:{navChoose:i||0}}),this.toTop()},toRescue:function(t){window.open(t)},volunteerTo:function(t){this.$router.push({name:"volunteer",query:{id:t||0}}),this.toTop()},navTo:function(t){this.$router.push({name:"partake",params:{navChoose:t||0}}),this.toTop()},newsTo:function(t,i){this.$router.push({name:"news",params:{navChoose:t||0,contentId:i.id||0}}),this.toTop()},toTop:function(){document.documentElement.scrollTop=0,document.body.scrollTop=0},image:function(t){var i="http://red.liuniu946.com";return i+t},getTime:function(t){return Object(n["a"])(t)},getDataTime:function(t){return""!=t.releasetime?t.releasetime.substr(0,10):this.getTime(t.createtime)},getPaytime:function(t){return this.getTime(t.paytime)},searchbu:function(){this.$router.push({name:"vList",query:{value:this.searchV}}),this.toTop()}},components:{slideLaR:w,slideUpd:f}},L=b,A=(s("ddd0"),Object(d["a"])(L,e,a,!1,null,"174c7910",null));i["default"]=A.exports},2381:function(t,i,s){"use strict";s("0a0d")},"2aaf":function(t,i,s){t.exports=s.p+"img/yq5.26b6ac8b.png"},"4e82":function(t,i,s){"use strict";var e=s("23e7"),a=s("e330"),n=s("59ed"),o=s("7b0b"),r=s("07fa"),c=s("577e"),l=s("d039"),u=s("addb"),d=s("a640"),v=s("04d1"),f=s("d998"),m=s("2d00"),h=s("512ce"),p=[],g=a(p.sort),C=a(p.push),w=l((function(){p.sort(void 0)})),b=l((function(){p.sort(null)})),L=d("sort"),A=!l((function(){if(m)return m<70;if(!(v&&v>3)){if(f)return!0;if(h)return h<603;var t,i,s,e,a="";for(t=65;t<76;t++){switch(i=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:s=3;break;case 68:case 71:s=4;break;default:s=2}for(e=0;e<47;e++)p.push({k:i+e,v:s})}for(p.sort((function(t,i){return i.v-t.v})),e=0;e<p.length;e++)i=p[e].k.charAt(0),a.charAt(a.length-1)!==i&&(a+=i);return"DGBEFHACIJK"!==a}})),k=w||!b||!L||!A,T=function(t){return function(i,s){return void 0===s?-1:void 0===i?1:void 0!==t?+t(i,s)||0:c(i)>c(s)?1:-1}};e({target:"Array",proto:!0,forced:k},{sort:function(t){void 0!==t&&n(t);var i=o(this);if(A)return void 0===t?g(i):g(i,t);var s,e,a=[],c=r(i);for(e=0;e<c;e++)e in i&&C(a,i[e]);u(a,T(t)),s=a.length,e=0;while(e<s)i[e]=a[e++];while(e<c)delete i[e++];return i}})},6176:function(t,i,s){t.exports=s.p+"img/index-h.82064b00.png"},"6f3a":function(t,i,s){t.exports=s.p+"img/yq2.a474f51a.png"},"787b":function(t,i,s){},"8b45":function(t,i,s){t.exports=s.p+"img/yq1.6010ce72.png"},"99af":function(t,i,s){"use strict";var e=s("23e7"),a=s("da84"),n=s("d039"),o=s("e8b5"),r=s("861d"),c=s("7b0b"),l=s("07fa"),u=s("8418"),d=s("65f0"),v=s("1dde"),f=s("b622"),m=s("2d00"),h=f("isConcatSpreadable"),p=9007199254740991,g="Maximum allowed index exceeded",C=a.TypeError,w=m>=51||!n((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),b=v("concat"),L=function(t){if(!r(t))return!1;var i=t[h];return void 0!==i?!!i:o(t)},A=!w||!b;e({target:"Array",proto:!0,forced:A},{concat:function(t){var i,s,e,a,n,o=c(this),r=d(o,0),v=0;for(i=-1,e=arguments.length;i<e;i++)if(n=-1===i?o:arguments[i],L(n)){if(a=l(n),v+a>p)throw C(g);for(s=0;s<a;s++,v++)s in n&&u(r,v,n[s])}else{if(v>=p)throw C(g);u(r,v++,n)}return r.length=v,r}})},a596:function(t,i,s){t.exports=s.p+"img/qrcode.688ca556.png"},c429:function(t,i,s){"use strict";s("fa49")},ddd0:function(t,i,s){"use strict";s("787b")},dff6:function(t,i,s){t.exports=s.p+"img/yq3.87474fe9.png"},f7df:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF0AAABdCAYAAADHcWrDAAAF3UlEQVR4nO2cQU8bRxSAZ5Z1Fgo24FBRKxGlpECDeixSKyGQkHrJiRNCiiLTiy+59Opf4KhVLrnhU7hyjORYyiHIJkpUxZccIhFiFJU0lWhKFLMGxzHeidbYaGXvrr3jnX0Gv0+ybK93dma+HT/PzsyaIAiCIAjCD2WMNSSOx+PGt407uAONRCKgpy4ejwurm/FNfT2l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