(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/index"],{"058b":function(t,e,a){"use strict";var n=a("c7f4"),i=a.n(n);i.a},"3a75":function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement;t._self._c},o=[]},"4e14":function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("514b"));function i(t){return t&&t.__esModule?t:{default:t}}var o,c=getApp(),u=a("3d8c"),r=function(){a.e("tabbarComponent/tabbar").then(function(){return resolve(a("594c"))}.bind(null,a)).catch(a.oe)},s={data:function(){return{menuList:[{icon:"/static/images/home/menu1.png",text:"IT制作"},{icon:"/static/images/home/menu2.png",text:"logo设计"},{icon:"/static/images/home/menu3.png",text:"文案策划"},{icon:"/static/images/home/menu4.png",text:"app开发"},{icon:"/static/images/home/menu5.png",text:"装修服务"},{icon:"/static/images/home/menu6.png",text:"软件定制"},{icon:"/static/images/home/menu7.png",text:"法律服务"},{icon:"/static/images/home/menu8.png",text:"小程序"},{icon:"/static/images/home/menu9.png",text:"网络营销"},{icon:"/static/images/home/menu10.png",text:"全部分类"}],CustomBar:c.globalData.CustomBar,menuHeight:c.globalData.menuHeight,navHeight:c.globalData.navHeight,menuTop:c.globalData.menuTop,active:1,recommendActivity:[],demandList:[],resourcesList:[],province:"",city:"",cagetoryList:"",latitude:"",longitude:"",currentTabIndex:0}},components:{tabbar:r},props:{},onLoad:function(){t.hideTabBar(),this.pagePath="/pages/home/index",this.getCagetoryList(),o=new u({key:"UVEBZ-M3VRS-CO4OH-6F5QZ-X7FB7-SVFOX"}),this.getLocation()},onPullDownRefresh:function(){this.getCagetoryList()},methods:{tabBarClick:function(t){this.currentTabIndex=t},toGuidePage:function(){t.navigateTo({url:"/pages/guide/index"})},toActiveDetail:function(e){var a=e.currentTarget.dataset.id;t.navigateTo({url:"/pages/activity/detail/index?id="+a})},tabClick:function(t){this.setData({active:t.currentTarget.dataset.i})},toTab2:function(){t.switchTab({url:"/pages/demandHall/index"})},getCagetoryList:function(){var e=this;t.showNavigationBarLoading(),c.http("get","index").then((function(a){a.data.success&&(a.data.data.recommendActivity.content.forEach((function(t){t.activityStartTime=n.default.getWeek(t.activityStartTime)})),e.setData({demandList:a.data.data.demandList,resourcesList:a.data.data.resourcesDtos,cagetoryList:a.data.data.cagetoryDtos,recommendActivity:a.data.data.recommendActivity.content}),t.hideNavigationBarLoading(),t.stopPullDownRefresh())}))},toResourcesDetail:function(e){var a=e.currentTarget.dataset.id;t.navigateTo({url:"/pages/demandHall/resourcesDetail/index?id="+a})},toCompanyDetail:function(e){var a=e.currentTarget.dataset.id;t.navigateTo({url:"/pages/demandHall/companyDetail/index?id="+a})},toNeedDetail:function(e){var a=e.currentTarget.dataset.id;t.navigateTo({url:"/pages/demandHall/needsDetail/index?id="+a})},getLocation:function(){var e=this;t.getLocation({type:"wgs84",success:function(t){var a=t.latitude,n=t.longitude;t.speed,t.accuracy;e.getLocal(a,n)},fail:function(t){console.log("fail"+JSON.stringify(t))}})},getLocal:function(t,e){var a=this;o.reverseGeocoder({location:{latitude:t,longitude:e},success:function(n){var i=n.result.ad_info.province,o=n.result.ad_info.city;a.setData({province:i,city:o,latitude:t,longitude:e})},fail:function(t){console.log(t)},complete:function(t){}})}}};e.default=s}).call(this,a("543d")["default"])},"52bb":function(t,e,a){"use strict";a.r(e);var n=a("4e14"),i=a.n(n);for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"5ed5":function(t,e,a){"use strict";var n=function(t){t.options.wxsCallMethods||(t.options.wxsCallMethods=[])};e["a"]=n},"9dba":function(t,e,a){"use strict";(function(t){a("ef82");n(a("66fd"));var e=n(a("e969"));function n(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,a("543d")["createPage"])},c7f4:function(t,e,a){},e969:function(t,e,a){"use strict";a.r(e);var n=a("3a75"),i=a("52bb");for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("058b");var c,u=a("f0c5"),r=a("5ed5"),s=Object(u["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],c);"function"===typeof r["a"]&&Object(r["a"])(s),e["default"]=s.exports}},[["9dba","common/runtime","common/vendor"]]]);