(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index"],{"07df":function(e,n,t){"use strict";(function(e,n){var a=t("4ea4");t("d716");a(t("66fd"));var i=a(t("1b72"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(i.default)}).call(this,t("bc2e")["default"],t("543d")["createPage"])},"1b72":function(e,n,t){"use strict";t.r(n);var a=t("c0ae"),i=t("31e8");for(var r in i)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(r);t("b77c");var o=t("f0c5"),s=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"1928e803",null,!1,a["a"],void 0);n["default"]=s.exports},2094:function(e,n,t){},"31e8":function(e,n,t){"use strict";t.r(n);var a=t("c5f9"),i=t.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(r);n["default"]=i.a},b77c:function(e,n,t){"use strict";var a=t("2094"),i=t.n(a);i.a},c0ae:function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){return a}));var a={uSwiper:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-swiper/u-swiper")]).then(t.bind(null,"b273"))},uLoadmore:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(t.bind(null,"c6fd2"))}},i=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){return e.currentNum1=n.current})},r=[]},c5f9:function(e,n,t){"use strict";(function(e){var a=t("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=a(t("2eee")),r=a(t("c973")),o=t("057b"),s=t("9ca2"),u={data:function(){return{picUrl:this.$picUrl,picBase:this.$picBase,leadList:[],bannerList11:[],bannerList22:[],bannerList33:[],bannerList44:[],bannerList55:[],bannerList66:[],bannerList1:[],currentNum:0,currentNum1:0,tabList:["无主灯","主灯","吸顶灯"],currTabIndex:0,navImg:t("def6"),list:[]}},onLoad:function(n){var t=this;return(0,r.default)(i.default.mark((function a(){var r,u,c,d,l;return i.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,(0,o.getBannerDataReq)();case 2:if(r=a.sent,0==r.code?(console.log("首页全局配置数据:",r),t.bannerList11=[r.data.find((function(e,n){return"无主灯"==e.title}))],t.bannerList22=[r.data.find((function(e,n){return"主灯"==e.title}))],t.bannerList33=[r.data.find((function(e,n){return"吸顶灯"==e.title}))],t.bannerList44=[r.data.find((function(e,n){return"智能控制系统"==e.title}))],t.bannerList55=[r.data.find((function(e,n){return"网络规划-全屋WiFi"==e.title}))],console.log("全局静态资源数据",t.bannerList11,t.bannerList22,t.bannerList33,t.bannerList44,t.bannerList55)):t.$toast(r.message),n.inviteId&&(e.setStorageSync("inviteId",n.inviteId),console.log("接收到的o.inviteId",n.inviteId)),n.scene&&(e.setStorageSync("afterSaleId",n.scene),console.log("接收到的o.afterSaleId",n.scene)),!e.getStorageSync("token")||!n.scene){a.next=11;break}return a.next=9,(0,s.getAfterSaleCon)({id:n.scene});case 9:u=a.sent,0==u.code?console.log("测试邀请:",u):t.$toast(u.message);case 11:if(!e.getStorageSync("token")||!n.inviteId){a.next=16;break}return a.next=14,(0,s.addInviteReq)({inviteId:n.inviteId});case 14:c=a.sent,0==c.code?console.log("测试邀请登录态-----o.inviteId:",c):t.$toast(c.message);case 16:return console.log("首页收到的o:",JSON.stringify(n)),a.next=19,(0,o.getAddressDataReq)();case 19:return d=a.sent,0==d.code?(t.bannerList1=d.data,console.log("地址轮播图数据",t.bannerList1)):t.$toast(d.message),a.next=23,(0,o.getGuideDataReq)();case 23:l=a.sent,0==l.code?(t.leadList=l.data,console.log("首页产品指南列表返回值：",t.leadList)):e.showToast({title:l.message,icon:"none"});case 25:case"end":return a.stop()}}),a)})))()},methods:{bindChange:function(e){this.currTabIndex=e.detail.current,console.log("e-----------",e.detail.current)},tabChange:function(e,n){this.currTabIndex=n},toAddrList:function(){e.navigateTo({url:"/pages/index/addrList/index"})},toLeadDetail:function(n){getApp().Litem=n,e.navigateTo({url:"/pages/index/productLeadDetail/index"})},toList:function(){0==this.currTabIndex?(getApp().noMainImg=this.bannerList11[0],e.navigateTo({url:"/pages/index/customNoMian_step1/index"})):1==this.currTabIndex?(getApp().noMainImg=this.bannerList22[0],e.navigateTo({url:"/pages/index/customMian_step1/index"})):(getApp().noMainImg=this.bannerList33[0],e.navigateTo({url:"/pages/index/customMian_step1/index?type=5"}))},toPage:function(n){2==n?(getApp().noMainImg=this.bannerList55[0],e.navigateTo({url:"/pages/index/fullHouseWifi/index"})):1==n?(getApp().noMainImg=this.bannerList44[0],e.navigateTo({url:"/pages/index/aiControlSys/index"})):e.navigateTo({url:"/pages/index/productLead/index"})},testReq:function(){var e=this;return(0,r.default)(i.default.mark((function n(){var t;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,(0,o.getBannerDataReq)();case 2:t=n.sent,e.$toast(t.msg),console.log("返回值",t);case 5:case"end":return n.stop()}}),n)})))()}}};n.default=u}).call(this,t("543d")["default"])}},[["07df","common/runtime","common/vendor"]]]);