chunk-1636a094.d6a161d3.js 8.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1636a094"],{"2ecc":function(t,e,a){"use strict";a("9e5d")},"2f21":function(t,e,a){"use strict";var n=a("79e5");t.exports=function(t,e){return!!t&&n((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},3200:function(t,e,a){"use strict";a("c29e")},"55dd":function(t,e,a){"use strict";var n=a("5ca1"),s=a("d8e8"),i=a("4bf8"),c=a("79e5"),r=[].sort,l=[1,2,3];n(n.P+n.F*(c((function(){l.sort(void 0)}))||!c((function(){l.sort(null)}))||!a("2f21")(r)),"Array",{sort:function(t){return void 0===t?r.call(i(this)):r.call(i(this),s(t))}})},"9e5d":function(t,e,a){},ac6a:function(t,e,a){for(var n=a("cadf"),s=a("0d58"),i=a("2aba"),c=a("7726"),r=a("32e9"),l=a("84f2"),o=a("2b4c"),u=o("iterator"),d=o("toStringTag"),k=l.Array,b={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=s(b),f=0;f<v.length;f++){var h,p=v[f],C=b[p],g=c[p],m=g&&g.prototype;if(m&&(m[u]||r(m,u,k),m[d]||r(m,d,p),l[p]=k,C))for(h in n)m[h]||i(m,h,n[h],!0)}},c29e:function(t,e,a){},ea4a:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wrapper"},[a("div",{staticClass:"left-nav",style:{height:t.navHeight}},[a("div",{staticClass:"nav-title"},[t._v(t._s(t.topTitle))]),t._l(t.navList,(function(e){return a("div",{key:e.id,staticClass:"nav-item",class:{action:-1!==t.currentUrl.indexOf(e.path)},on:{click:function(a){return t.navTo(e.path)}}},[a("div",{staticClass:"item-name"},[t._v("\n\t\t\t\t"+t._s(e.name)+"\n\t\t\t")]),a("div",{staticClass:"item-icon"},[t._v("\n\t\t\t\t>\n\t\t\t")])])}))],2),a("div",{staticClass:"right-content"},[t.isShow?a("div",{staticClass:"title moren"},[t._v("\n\t\t\t"+t._s(t.rightTitle)+"\n\t\t")]):[a("div",{staticClass:"title hand",class:{action:0!==t.currentIndex},staticStyle:{display:"inline-block"},on:{click:function(e){return t.changeClik(0)}}},[t._v("\n\t\t\t\t基础知识\n\t\t\t")]),a("div",{staticClass:"title hand",class:{action:1!==t.currentIndex},staticStyle:{display:"inline-block"},on:{click:function(e){return t.changeClik(1)}}},[t._v("\n\t\t\t\t如何报名\n\t\t\t")])],a("div",{staticClass:"line",staticStyle:{padding:"35px 50px 35px 50px"}},[t._t("default")],2)],2)])},s=[],i={props:{navList:{type:Array,default:[]},topTitle:{type:String,default:"公众参与"}},computed:{isShow:function(){return"/donation/Hpc"!==this.$route.path},navHeight:function(){return 51*this.navList.length+52+"px"},currentUrl:function(){return this.$route.path},rightTitle:function(){var t="";switch(this.currentUrl){case"/donation/contribution":t="爱心捐赠";break;case"/donation/organDonation":t="遗体及器官捐献";break;case"/join/rescue":t="救护员报名";break;case"/join/member":t="会员入会登记";break;case"/join/volunteer":t="志愿者报名";break;case"/join/train":t="普及培训报名";break;case"/about/chineseRedCross":t="关于中国红十字会";break;case"/about/matrix":t="微信矩阵";break;case"/about/redCrossLaw":t="中国红十字会法";break;case"/about/redCrossMovement":t="关于红十字运动";break;case"/concat":t="联系我们";break;case"/popularScience/list":t="红会科普";break;case"/popularScience/detail":t="红会科普";break;case"/news/list":t="红会新闻";break;case"/news/detail":t="红会新闻";break;case"/publicity/list":t="信息公示";break;case"/publicity/detail":t="信息公示";break;case"/regulations/detail":t="政策法规";break;case"/regulations/list":t="政策法规";break;case"/regulations":t="政策法规";break;case"/knowledge/rescue/list":t="救护培训";break;case"/knowledge/rescue/detail":t="救护培训";break;case"/knowledge/cells/detail":t="造血干细胞";break;case"/knowledge/cells/list":t="造血干细胞";break;case"/knowledge/bloodDonation/list":t="无偿献血";break;case"/knowledge/bloodDonation/detail":t="无偿献血";break;case"/knowledge/development/detail":t="红十字发展";break;case"/knowledge/development/list":t="红十字发展";break;case"/newContent/jlx/detail":t="江陵县红会";break;case"/newContent/jlx/list":t="江陵县红会";break;case"/newContent/jzq/list":t="荆州区红会";break;case"/newContent/jzq/detail":t="荆州区红会";break;case"/newContent/szs/list":t="松滋市红会";break;case"/newContent/szs/detail":t="松滋市红会";break;case"/newContent/sss/list":t="石首市红会";break;case"/newContent/sss/detail":t="石首市红会";break;case"/newContent/jls/list":t="监利县红会";break;case"/newContent/jls/detail":t="监利县红会";break;case"/newContent/ssq/list":t="沙市区红会";break;case"/newContent/ssq/detail":t="沙市区市红会";break;case"/newContent/hhs/list":t="洪湖市红会";break;case"/newContent/hhs/detail":t="洪湖市红会";break;case"/directories/list":t="造血干细胞捐献名录";break;case"/directories/detail":t="造血干细胞捐献名录";break;case"/organs/detail":t="器官/遗体捐献名录";break;case"/organs/list":t="器官/遗体捐献名录";break;case"/cause/cells/list":t="造血干细胞捐献";break;case"/cause/cells/detail":t="造血干细胞捐献";break;case"/cause/emergency/detail":t="应急救护";break;case"/cause/emergency/list":t="应急救护";break;case"/cause/free/detail":t="无偿献血";break;case"/cause/free/list":t="无偿献血";break;case"/cause/humanity/detail":t="人道救助";break;case"/cause/humanity/list":t="人道救助";break;case"/cause/remains/detail":t="遗体和人体器官捐献";break;case"/cause/remains/list":t="遗体和人体器官捐献";break;case"/cause/rescue/detail":t="应急救援";break;case"/cause/rescue/list":t="应急救援";break;case"/cause/service/detail":t="志愿服务";break;case"/cause/service/list":t="志愿服务";break;case"/cause/teenagers/detail":t="红十字青少年";break;case"/cause/teenagers/list":t="红十字青少年";break;default:t=""}return t}},data:function(){return{currentIndex:0}},methods:{navTo:function(t){var e=this.$route.path;e!==t&&this.$router.push(t)},changeClik:function(t){this.currentIndex=t,this.$router.push("/donation/Hpc?id="+t)}}},c=i,r=(a("3200"),a("2877")),l=Object(r["a"])(c,n,s,!1,null,"d81a2a9e",null);e["a"]=l.exports},fefd:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"about"},[a("div",{staticClass:"wrapper"},[a("div",{staticClass:"left-nav",style:{height:t.navHeight}},[a("div",{staticClass:"nav-title"},[t._v("组织介绍")]),t._l(t.navList,(function(e){return a("div",{key:e.uid,staticClass:"nav-item",class:{action:t.currentIndex==e.uid},on:{click:function(a){return t.navClick(e.uid)}}},[a("div",{staticClass:"item-name"},[t._v("\n\t\t\t\t\t"+t._s(e.name)+"\n\t\t\t\t")]),a("div",{staticClass:"item-icon"},[t._v("\n\t\t\t\t\t>\n\t\t\t\t")])])}))],2),a("div",{staticClass:"right-content"},[a("div",{staticClass:"line",staticStyle:{padding:"35px 50px 35px 50px"}},[a("div",{staticClass:"new-detail"},[a("div",{staticClass:"content",domProps:{innerHTML:t._s(t.content)}})])])])])])},s=[],i=(a("55dd"),a("ac6a"),a("ea4a")),c=a("fd03"),r={components:{LeftNav:i["a"]},data:function(){return{content:"",currentIndex:"",rightTitle:"",navList:[]}},computed:{navHeight:function(){return 51*this.navList.length+52+"px"}},mounted:function(){this.getList()},methods:{compare:function(t){return function(e,a){var n=e[t],s=a[t];return n>s?1:n<s?-1:0}},getList:function(){var t=this,e=this;Object(c["c"])({ifyid:26}).then((function(a){var n=a.data,s=n.list.reverse();s.forEach((function(t){var a={};a.name=t.title,a.uid=t.id,a.ps=t.synopsis,e.navList.push(a)})),e.navList=e.navList.sort(t.compare("ps")),t.navClick(e.navList[0].uid)})).catch((function(t){console.log(t)}))},navClick:function(t){var e=this;this.currentIndex=t,Object(c["a"])({},t).then((function(t){var a=t.data;e.content=a.content}))}}},l=r,o=(a("2ecc"),a("2877")),u=Object(o["a"])(l,n,s,!1,null,"b2eaecf2",null);e["default"]=u.exports}}]);