(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cfc9daa6"],{"5af5":function(t,e,n){},6933:function(t,e,n){"use strict";n("c40f")},"8a78":function(t,e,n){"use strict";var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ids-homepage-action"},[e("div",{staticClass:"icons"},[e("section",[e("swiper",{staticClass:"ids-swiper-blue",attrs:{options:t.swiperOption}},[t._l(t.pages,(function(n,o){return e("swiper-slide",{key:o,style:{height:t.pageHeight}},[e("ul",{staticClass:"icons-ul"},t._l(n,(function(n){return e("li",{key:n.id,staticClass:"icons-li"},[e("div",{staticClass:"icons-link",on:{click:function(e){return t.Go(n,n.click.params,n.click.pageName)}}},[e("img",{staticClass:"icons-img",attrs:{src:n.icon,alt:""}}),e("span",[t._v(t._s(n.title))])])])})),0)])})),t.pages.length>1?e("div",{staticClass:"swiper-pagination",attrs:{slot:"pagination"},slot:"pagination"},t._l(t.pages.length,(function(t){return e("span",{key:t})})),0):t._e()],2)],1)])])},i=[],r=(n("dfa4"),n("7212")),a=n("4532"),c=n("7e35"),s={name:"iDS-HomePageAction",components:{swiper:r["swiper"],swiperSlide:r["swiperSlide"]},props:{title:{type:String,default:"首页功能页面按钮"},pageActionCount:{type:Number,default:8}},data:function(){return{swiperOption:{pagination:{el:".swiper-pagination"}}}},computed:{pages:function(){var t=this,e=[];return console.log(a["a"].vm.getUserRoleGroup().homepage_contents.length),a["a"].vm.getUserRoleGroup().homepage_contents.forEach((function(n,o){var i=Math.floor(o/t.pageActionCount);e[i]||(e[i]=[]),e[i].push(n)})),e},pageHeight:function(){return"calc(".concat(80*(Math.floor((parseInt(this.pageActionCount)-1)/4)+1),"px")}},methods:{Go:function(t,e,n){c["a"].set("pageName",n),this.$router.push({name:e,params:{pageName:n}})}},created:function(){console.log("调试代码")},mounted:function(){}},u=s,l=(n("ebe6"),n("2877")),p=Object(l["a"])(u,o,i,!1,null,null,null);e["a"]=p.exports},c40f:function(t,e,n){},c93a:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t._self._c;return e("pull-to",{staticClass:"ccn-home-page-site",style:{height:t.height},attrs:{"top-config":t.TOP_DEFAULT_CONFIG,"bottom-config":t.BOTTOM_DEFAULT_CONFIG}},[e("iDSHomePageAction",{attrs:{pageActionCount:8}})],1)},i=[],r=n("2f62"),a=n("3cc5"),c=n("897d"),s=n.n(c),u=n("4532"),l=(n("aed0"),n("8a78"));function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){return e=h(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=b(t,"string");return"symbol"===p(e)?e:String(e)}function b(t,e){if("object"!==p(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var d={name:"ccn-homePage",components:{PullTo:s.a,iDSHomePageAction:l["a"]},data:function(){return{TOP_DEFAULT_CONFIG:a["a"].TOP_DEFAULT_CONFIG,BOTTOM_DEFAULT_CONFIG:a["a"].BOTTOM_DEFAULT_CONFIG}},computed:{height:function(){return"calc(".concat(window.innerHeight,"px - 48px - 36px ")+")"},title:function(){return this.getCurProjectInfoCCN()?this.getCurProjectInfoCCN().projectName:"工地端首页"}},methods:g({changeView:function(){u["a"].vm.setTitle(this.title),u["a"].vm.setBackDisabled(!0),u["a"].vm.setBackIcon(""),u["a"].vm.setBottomNavVisible(!0),u["a"].vm.setBottomBtnVisible(!1),u["a"].vm.setContentHeight({value:"calc(".concat(window.innerHeight,"px - 48px - ").concat(u["a"].vm.getContentBottomHeight()," ")+")"}),u["a"].vm.setMenuDisabled(!0)}},Object(r["c"])("ccnproject",["getCurProjectInfoCCN"])),created:function(){console.log("调试代码"),null!=u["a"].vm.getUserToken()&&null!=u["a"].vm.getUserId()?this.changeView():window.location.href="/"},mounted:function(){},beforeDestroy:function(){u["a"].vm.setMenuDisabled(!0),u["a"].vm.setMenuItems([]),u["a"].vm.setMenuIcon("")}},v=d,O=(n("6933"),n("2877")),y=Object(O["a"])(v,o,i,!1,null,null,null);e["default"]=y.exports},dfa4:function(t,e,n){},ebe6:function(t,e,n){"use strict";n("5af5")}}]);