1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-924751b4"],{"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",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.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",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.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",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.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",{},[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"),c=s("fd03"),o=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")],2)])])},l=[],r={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/2,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=r,m=(s("8302"),s("2877")),d=Object(m["a"])(u,o,l,!1,null,"0b9261c1",null),v=d.exports,f=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("319a"),Object(m["a"])(p,f,h,!1,null,"382efc84",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(c["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(c["c"])({},18).then((function(i){var s=i.data;t.partakeList=s,t.$store.commit("setPartakeList",s)}))},getWallList:function(){var t=this;Object(c["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(c["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(c["b"])({page:1,limit:10},27).then((function(i){var s=i.data;t.cityNewsList=s.list,t.$store.commit("setCityNewsList",s.list)})),Object(c["b"])({page:1,limit:10},28).then((function(i){var s=i.data;t.countyNewsList=s.list,t.$store.commit("setCountyNewsList",s.list)})),Object(c["b"])({page:1,limit:10},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)},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:_,slideUpd:v}},L=w,b=(s("a680"),Object(m["a"])(L,e,a,!1,null,"0eff99fc",null));i["default"]=b.exports},"1ff8":function(t,i,s){},"26cc":function(t,i,s){},"2aaf":function(t,i,s){t.exports=s.p+"img/yq5.26b6ac8b.png"},"319a":function(t,i,s){"use strict";s("26cc")},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"},8302:function(t,i,s){"use strict";s("1ff8")},"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"},a596:function(t,i,s){t.exports=s.p+"img/qrcode.688ca556.png"},a680:function(t,i,s){"use strict";s("ed7c")},dff6:function(t,i,s){t.exports=s.p+"img/yq3.87474fe9.png"},ed7c:function(t,i,s){}}]);
|