You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
4.5 KiB

(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},"44f4":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:{},onShareAppMessage:function(t){return{title:"禅易云生态",path:"/pages/home/index"}},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.__esModul