chunk-eb04179a.3db5ab53.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-eb04179a"],{"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("9467")}}),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")),m=Object(d["a"])(u,r,c,!1,null,"012b0123",null),f=m.exports,v=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=[],g={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)}}},p=g,C=(s("c429"),Object(d["a"])(p,v,h,!1,null,"5fe33152",null)),b=C.exports,w={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:b,slideUpd:f}},_=w,L=(s("aba6"),Object(d["a"])(_,e,a,!1,null,"7a7cf39f",null));i["default"]=L.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"),m=s("04d1"),f=s("d998"),v=s("2d00"),h=s("512ce"),g=[],p=a(g.sort),C=a(g.push),b=l((function(){g.sort(void 0)})),w=l((function(){g.sort(null)})),_=d("sort"),L=!l((function(){if(v)return v<70;if(!(m&&m>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++)g.push({k:i+e,v:s})}for(g.sort((function(t,i){return i.v-t.v})),e=0;e<g.length;e++)i=g[e].k.charAt(0),a.charAt(a.length-1)!==i&&(a+=i);return"DGBEFHACIJK"!==a}})),x=b||!w||!_||!L,k=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:x},{sort:function(t){void 0!==t&&n(t);var i=o(this);if(L)return void 0===t?p(i):p(i,t);var s,e,a=[],c=r(i);for(e=0;e<c;e++)e in i&&C(a,i[e]);u(a,k(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"},"8b45":function(t,i,s){t.exports=s.p+"img/yq1.6010ce72.png"},9467:function(t,i,s){t.exports=s.p+"img/scanning.af173c75.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"),m=s("1dde"),f=s("b622"),v=s("2d00"),h=f("isConcatSpreadable"),g=9007199254740991,p="Maximum allowed index exceeded",C=a.TypeError,b=v>=51||!n((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),w=m("concat"),_=function(t){if(!r(t))return!1;var i=t[h];return void 0!==i?!!i:o(t)},L=!b||!w;e({target:"Array",proto:!0,forced:L},{concat:function(t){var i,s,e,a,n,o=c(this),r=d(o,0),m=0;for(i=-1,e=arguments.length;i<e;i++)if(n=-1===i?o:arguments[i],_(n)){if(a=l(n),m+a>g)throw C(p);for(s=0;s<a;s++,m++)s in n&&u(r,m,n[s])}else{if(m>=g)throw C(p);u(r,m++,n)}return r.length=m,r}})},a596:function(t,i,s){t.exports=s.p+"img/qrcode.688ca556.png"},aba6:function(t,i,s){"use strict";s("f2bb")},c429:function(t,i,s){"use strict";s("fa49")},dff6:function(t,i,s){t.exports=s.p+"img/yq3.87474fe9.png"},f2bb:function(t,i,s){},fa49:function(t,i,s){}}]);