Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/www.85520057.com/func.php:230) in /www/wwwroot/www.85520057.com/js.php on line 27
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{264:function(t,e,n){t.exports={list:"list_2K_dq",qq:"qq_3ATg1",tel:"tel_3uW3q",email:"email_Kkidj"}},265:function(t,e,n){t.exports={item:"item_EfDFo",title:"title_3QE6C",content:"content_2K74q",intro:"intro_1fLwN",contact:"contact_8QLBl",contact_list:"contact_list_3zwaB"}},266:function(t,e,n){t.exports={nav:"nav_3p1dp"}},267:function(t,e,n){t.exports={business:"business_3a5Sj",nav:"nav_e74xy"}},323:function(t,e,n){"use strict";var c=n(264),r=n.n(c);e.default=r.a},324:function(t,e,n){"use strict";var c=n(265),r=n.n(c);e.default=r.a},325:function(t,e,n){"use strict";var c=n(266),r=n.n(c);e.default=r.a},326:function(t,e,n){"use strict";var c=n(267),r=n.n(c);e.default=r.a},376:function(t,e,n){"use strict";n.r(e);n(35);var c=n(3),r=(n(42),n(150),{props:{data:{type:Object,default:function(){return{}}}}}),l=n(323),o=n(8);var d={components:{TheBusinessItemContact:Object(o.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{class:t.$style.list},[n("li",[t._v("联系人:"+t._s(t.data.name))]),t._v(" "),t.data.qq?n("li",[n("span",{class:t.$style.qq},[t._v("联系qq:")]),t._v(t._s(t.data.qq)+"\n ")]):t._e(),t._v(" "),t.data.tel?n("li",[n("span",{class:t.$style.tel},[t._v("联系电话:")]),t._v(t._s(t.data.tel)+"\n ")]):t._e(),t._v(" "),t.data.email?n("li",[n("span",{class:t.$style.email},[t._v("联系邮箱:")]),t._v(t._s(t.data.email)+"\n ")]):t._e()])}),[],!1,(function(t){this.$style=l.default.locals||l.default}),null,null).exports},props:{data:{type:Object,default:function(){return{}}}}},f=n(324);var v=Object(o.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.$style.item},[n("div",{class:t.$style.title},[n("h2",t._l(t.data.title,(function(title,e){return n("span",{key:e},[t._v("\n "+t._s(title)+"\n ")])})),0)]),t._v(" "),n("div",{class:t.$style.content},[t._l(t.data.direction,(function(e,c){return n("div",{key:c,class:t.$style.intro},[e.title?n("h3",[t._v(t._s(e.title)+":")]):t._e(),t._v(" "),n("p",[t._v(t._s(e.info))])])})),t._v(" "),n("div",{class:t.$style.contact},t._l(t.data.contact,(function(e,c){return n("the-business-item-contact",{key:c,class:t.$style.contact_list,attrs:{data:e}})})),1)],2)])}),[],!1,(function(t){this.$style=f.default.locals||f.default}),null,null).exports,h={props:{data:{type:Array,default:function(){return[]}}}},_=n(325);var m={components:{TheBusinessItem:v,TheBusinessNav:Object(o.a)(h,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{class:t.$style.nav},t._l(t.data,(function(e,c){return n("li",{key:c,attrs:{id:"js-business-menu-"+c},on:{click:function(e){return t.$emit("click",c)}}},[t._v("\n "+t._s(e.title.join("、"))+"\n ")])})),0)}),[],!1,(function(t){this.$style=_.default.locals||_.default}),null,null).exports},props:{data:{type:Array,default:function(){return[]}}},data:function(){return{activeIndex:0,listScenes:[],pinScene:null}},mounted:function(){var t=this;this.$nextTick((function(){t.listScenes=t.data.map((function(e,n){var c=t.$scrollmagic.scene({triggerElement:0===n?"#js-app":"#js-business-item-".concat(n),triggerHook:.5,duration:t.getItemDuration(n)}).setClassToggle("#js-business-menu-".concat(n),"active").on("enter",t.handleEnter);return t.$scrollmagic.addScene(c),c})),t.pinScene=t.$scrollmagic.scene({triggerElement:"#js-business",triggerHook:0,duration:t.getPinDuration()}).setPin("#js-business-nav",{pushFollowers:!1}),t.$scrollmagic.addScene(t.pinScene),window.addEventListener("resize",t.resetScene)}))},destroyed:function(){this.listScenes.length>0&&this.listScenes.forEach((function(t){t.destroy(!0)})),this.pinScene&&this.pinScene.destroy(!0),window.removeEventListener("resize",this.resetScene)},methods:{handleEnter:function(t){var e=t.target.triggerElement().id;this.activeIndex=Number(e.split("-")[3])||0},scrollTo:function(t){if(t!==this.activeIndex){var e=document.getElementById("js-business-item-".concat(t)),n=window.screen.availHeight;this.$scrollmagic.scrollTo(this.getOffsetTop(e)-(n-e.clientHeight)/2)}},getOffsetTop:function(t){return t.offsetParent?t.offsetTop+this.getOffsetTop(t.offsetParent):t.offsetTop},getItemDuration:function(t){var e=document.getElementById("js-business-item-".concat(t)),n=e.clientHeight;return 0===t?n+this.getOffsetTop(e):t===this.data.length-1?0:n},getPinDuration:function(){return document.getElementById("js-business").clientHeight-document.getElementById("js-business-nav").clientHeight-150},resetScene:function(){var t=this;this.listScenes.length>0&&this.listScenes.forEach((function(e,n){e.duration(t.getItemDuration(n))})),this.pinScene&&(this.pinScene.removePin(!0),this.pinScene.duration(this.getPinDuration()),this.pinScene.setPin("#js-business-nav",{pushFollowers:!1}))}}},y=n(326);var $={components:{TheBusiness:Object(o.a)(m,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.$style.business,attrs:{id:"js-business"}},[t._l(t.data,(function(e,c){return n("the-business-item",{key:c,class:t.activeIndex===c&&"active",attrs:{id:"js-business-item-"+c,data:e}})})),t._v(" "),n("the-business-nav",{class:t.$style.nav,attrs:{id:"js-business-nav",data:t.data},on:{click:t.scrollTo}})],2)}),[],!1,(function(t){this.$style=y.default.locals||y.default}),null,null).exports},asyncData:function(t){return Object(c.a)(regeneratorRuntime.mark((function e(){var n,c,r,l,o,d,f,v;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.app,c=t.$winstonLog,e.prev=1,e.next=4,n.$axioses.get("/wbhome/business");case 4:return r=e.sent,e.abrupt("return",{business:r.data&&r.data.data||[]});case 8:return e.prev=8,e.t0=e.catch(1),l=e.t0.response,d=(o=l||{}).status,f=o.statusText,v=o.config,c.error("".concat(new Date," ").concat(v.url," ").concat(d," ").concat(f)),e.abrupt("return",{business:[]});case 14:case"end":return e.stop()}}),e,null,[[1,8]])})))()}},j=Object(o.a)($,(function(){var t=this.$createElement;return(this._self._c||t)("the-business",{attrs:{data:this.business}})}),[],!1,null,null,null);e.default=j.exports}}]);
//# sourceMappingURL=business.9897f11.js.map