1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"01b1":function(e,t,n){},"0891":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n("5a62");var a=n("2f62");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(){n.e("components/page-component/index/app-index").then(function(){return resolve(n("6cf8"))}.bind(null,n)).catch(n.oe)},s=function(){n.e("components/page-component/index/app-diy-page").then(function(){return resolve(n("b78c"))}.bind(null,n)).catch(n.oe)},u=function(){n.e("components/page-component/app-buy-prompt/app-buy-prompt").then(function(){return resolve(n("a928"))}.bind(null,n)).catch(n.oe)},p=function(){n.e("components/page-component/app-my-app/app-my-app").then(function(){return resolve(n("410b"))}.bind(null,n)).catch(n.oe)},l=0,d={name:"index",components:{"app-index":c,"app-diy-page":s,appBuyPrompt:u,appMyApp:p},data:function(){return{scrollTop:0,homePages:[],type:"",is_storage:!1,haveBackground:!0,destroy:!0,pageHide:!1,courseListData:[{img:"../../static/image/course/img1.png",title:"4-6岁幼儿兴趣班",content:"适合4岁至6岁的小朋友学习开发运动潜力"},{img:"../../static/image/course/img2.png",title:"7-9岁幼儿兴趣班",content:"适合4岁至6岁的小朋友学习开发运动潜力"},{img:"../../static/image/course/img3.png",title:"9-12岁幼儿兴趣班",content:"适合4岁至6岁的小朋友学习开发运动潜力"},{img:"../../static/image/course/img4.png",title:"12-15岁幼儿兴趣班",content:"适合4岁至6岁的小朋友学习开发运动潜力"}],bannerImg:[{img:"../../static/image/course/banner.png"}]}},onShow:function(t){console.log("page onShow---\x3e"),console.log(t),console.log("<---page onShow"),e.hideNavigationBarLoading(),this.pageHide=!1},onHide:function(){this.pageHide=!0},onLoad:function(e){console.log("page onLoad---\x3e"),console.log(e),console.log("<---page onLoad"),"undefined"!==typeof e.scene?"share"===e.scene?this.share(e):this.qrcode(e):this.$showLoading(),"undefined"!==typeof e.user_id&&this.$store.dispatch("user/setTempParentId",e.user_id),l="undefined"!==typeof e.page_id?e.page_id:0,this.loadData()},onPageScroll:function(e){this.$store.dispatch("page/actionSetScrollTop",e.scrollTop)},methods:{navTo:function(){e.navigateTo({url:"/pages/goods/goods"})},loadData:function(){var t=this,n=this;e.showNavigationBarLoading(),n.$request({url:n.$api.index.index,method:"get",data:{page_id:l,longitude:"",latitude:""}}).then((function(a){e.hideNavigationBarLoading(),t.$hideLoading();var o=a.code,i=a.data;0===o&&(n.is_storage=!1,n.$popupAd.show=null,n.homePages=i.home_pages,n.homePages.navs&&n.homePages.navs.length>0&&n.homePages.navs.forEach((function(e,t){e.template.data.forEach((function(e,t){if("background"==e.id)return n.haveBackground=!1,!1}))})),n.type=i.type)}))},share:function(e){if("undefined"!==typeof e.params){var t=JSON.parse(e.params);this.$jump({url:t.path+"?"+this.$utils.objectToUrlParams(t),open_type:"navigate"})}},qrcode:function(e){var t=this;this.$request({url:this.$api.default.qrcode_parameter,data:{token:e.scene}}).then((function(e){if(0===e.code){t.$store.dispatch("page/actionSetQeury",null);var n=e.data.detail,a=n.data,o=n.path,i="/".concat(o);a&&(i+="?"+t.$utils.objectToUrlParams(a),"undefined"!==typeof a.user_id&&t.$store.dispatch("user/setTempParentId",a.user_id)),"/pages/index/index"!="/".concat(o)&&t.$jump({url:i,open_type:"navigate"})}})).catch((function(){}))}},onShareAppMessage:function(){var e={path:"/pages/index/index",params:{}};return 0==l?(e.title=this.mall.setting.share_title?this.mall.setting.share_title:this.mall.name,e.imageUrl=this.mall.setting.share_pic):(e.title=this.homePages.title,e.params.page_id=l),this.$shareAppMessage(e)},computed:i(i(i({},(0,a.mapGetters)("mallConfig",{tabBarNavs:"getNavBar"})),(0,a.mapState)("mallConfig",{config:function(e){return e.mall.setting},mall:function(e){return e.mall}})),{},{getStausBarHeight:function(){try{var t=e.getSystemInfoSync();return t.statusBarHeight+"px"}catch(n){console.log(n)}},headerBgHeight:function(){try{var t=e.getSystemInfoSync();return 164+t.statusBarHeight+"px"}catch(n){console.log(n)}}})};t.default=d}).call(this,n("543d")["default"])},3056:function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var o=function(){var e=this,t=e.$createElement;e._self._c},i=[]},7077:function(e,t,n){"use strict";(function(e){n("ecb4");a(n("66fd"));var t=a(n("9dc9"));function a(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"9dc9":function(e,t,n){"use strict";n.r(t);var a=n("3056"),o=n("ac82");for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("b695");var r,c=n("f0c5"),s=Object(c["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],r);t["default"]=s.exports},ac82:function(e,t,n){"use strict";n.r(t);var a=n("0891"),o=n.n(a);for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=o.a},b695:function(e,t,n){"use strict";var a=n("01b1"),o=n.n(a);o.a}},[["7077","common/runtime","common/vendor"]]]);
|