chunk-11ed41b0.3e6ab495.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-11ed41b0"],{"0870":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)}}),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",on:{click:function(s){return t.newsTo(0,i)}}},[e("div",{staticClass:"title",attrs:{title:i.title}},[e("div",{staticClass:"spot"}),e("div",{staticClass:"nowarp"},[t._v(" "+t._s(i.title)+" ")])]),e("div",{staticClass:"time"},[t._v(" "+t._s(t.getTime(i.createtime))+" ")])])})),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.getTime(i.createtime))+" ")])})),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",on:{click:function(s){return t.newsTo(1,i)}}},[e("div",{staticClass:"title",attrs:{title:i.title}},[e("div",{staticClass:"spot"}),e("div",{staticClass:"nowarp"},[t._v(" "+t._s(i.title)+" ")])]),e("div",{staticClass:"time"},[t._v(" "+t._s(t.getTime(i.createtime))+" ")])])})),0)]),e("div",{staticClass:"box"},[e("div",{staticClass:"title title2"},[t._v(" 公示/公告 "),e("div",{staticClass:"more",on:{click:function(i){return t.urlTo("news",3)}}},[t._v("【查看更多】")])]),e("div",{staticClass:"list chooseitem"},t._l(t.publicityList,(function(i){return e("div",{staticClass:"item",on:{click:function(s){return t.newsTo(3,i)}}},[e("div",{staticClass:"title",attrs:{title:i.title}},[e("div",{staticClass:"spot"}),e("div",{staticClass:"nowarp"},[t._v(" "+t._s(i.title)+" ")])]),e("div",{staticClass:"time"},[t._v(" "+t._s(t.getTime(i.createtime))+" ")])])})),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",{},[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("fa7d"),o=s("fd03"),c=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}},[t.isEnough?s("div",{staticClass:"listBox",attrs:{id:"listBoxH"}},[t._t("default"),t._t("default")],2):s("span",{staticClass:"listBox",attrs:{id:"listBoxH"}},[t._t("default")],2)])])},l=[],r={data:function(){return{marginTop:0,listHeight:0,timeOut:"",boxHeight:0}},mounted:function(){this.init()},methods:{init:function(){this.isEnough&&this.automatic()},getslot:function(){this.listHeight=document.getElementById("listBoxH").clientHeight/2,this.boxHeight=this.$refs.boxH.clientHeight,console.log(this.listHeight),console.log(this.$refs),console.log(this.boxHeight)},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()}},computed:{isEnough:function(){return this.listHeight>this.boxHeight}},watch:{marginTop:function(){this.listHeight-this.marginTop<=0&&(this.marginTop=0)}}},u=r,d=(s("ed91"),s("2877")),m=Object(d["a"])(u,c,l,!1,null,"210bf79b",null),v=m.exports,h=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}},[t.isEnough?s("span",{staticClass:"listBox",attrs:{id:"detial"}},[t._t("default"),t._t("default")],2):s("span",{staticClass:"listBox",attrs:{id:"detial"}},[t._t("default")],2)])])},f=[],g={data:function(){return{marginLeft:0,listWidth:0,timeOut:"",boxWidth:0}},mounted:function(){this.init()},methods:{init:function(){this.isEnough&&this.automatic()},getslot:function(){this.listWidth=document.getElementById("detial").offsetWidth/2,this.boxWidth=this.$refs.box.offsetWidth,console.log(this.listWidth)},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("3a2c"),Object(d["a"])(p,h,f,!1,null,"0b649f16",null)),_=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.hbmdp.org.cn/"},{img:s("2aaf"),url:"http://www.hbqgjx.com/"}]}},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,console.log(t.rotation),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["e"])({},1,10).then((function(i){console.log(i.data),t.rankingList=i.data.data,t.$store.commit("setRankingList",i.data.data)}))},getNewsList:function(){var t=this;Object(o["b"])({page:1,limit:20},27).then((function(i){var s=i.data;t.cityNewsList=s.list,t.$store.commit("setCityNewsList",s.list)})),Object(o["b"])({page:1,limit:20},28).then((function(i){var s=i.data;t.countyNewsList=s.list,t.$store.commit("setCountyNewsList",s.list)})),Object(o["b"])({page:1,limit:20},30).then((function(i){var s=i.data;t.publicityList=s.list,t.$store.commit("setPublicityList",s.list)})),this.toTop()},urlTo:function(t,i){this.$router.push({name:t,params:{navChoose:i||0}}),this.toTop()},toRescue:function(t){window.location.href=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)},searchbu:function(){this.$router.push({name:"vList",query:{value:this.searchV}}),this.toTop()}},components:{slideLaR:_,slideUpd:v}},b=w,L=(s("df55"),Object(d["a"])(b,e,a,!1,null,"7cae033e",null));i["default"]=L.exports},"2aaf":function(t,i,s){t.exports=s.p+"img/yq5.26b6ac8b.png"},"36e6":function(t,i,s){},"3a2c":function(t,i,s){"use strict";s("36e6")},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"},a0a2:function(t,i,s){},a596:function(t,i,s){t.exports=s.p+"img/qrcode.688ca556.png"},df55:function(t,i,s){"use strict";s("a0a2")},dff6:function(t,i,s){t.exports=s.p+"img/yq3.87474fe9.png"},ed91:function(t,i,s){"use strict";s("0870")},fa7d:function(t,i,s){"use strict";function e(t){for(var i=13-(t+"").length,s=1,e=0;e<i;e++)s+="0";s=parseInt(s);var a=new Date(parseInt(t)*s),n=a.getFullYear(),o=a.getMonth()+1,c=a.getDate();a.getHours(),a.getMinutes(),a.getSeconds();return n+"-"+o+"-"+c}s.d(i,"a",(function(){return e}))}}]);