| 1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"333f":function(n,e,t){"use strict";var o=t("f853"),i=t.n(o);i.a},"7d37":function(n,e,t){"use strict";t.r(e);var o=t("99d9"),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(r);e["default"]=i.a},"99d9":function(n,e,t){"use strict";(function(n,o){var i=t("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(t("7ca3")),u=t("dc70"),c=t("49f8"),a=t("8f59"),s=t("e585"),l=i(t("4632"));function p(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function d(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?p(Object(t),!0).forEach((function(e){(0,r.default)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var f={components:{openAdvertisement:function(){t.e("components/open-advertisement/open-advertisement").then(function(){return resolve(t("23fe"))}.bind(null,t)).catch(t.oe)}},data:function(){return{isDischarge:!1,styles:{},pagesData:[],loading:!0,scrollTop:0,policyStorageKey:"had_read_privacy",showTabbar:!0,percent:0,offTip:!1,showPrivacyPopup:!1,showopenAd:!1,isReward:1}},methods:d(d({},(0,a.mapActions)(["getConfig","getDecorateConfig","getUser"])),{},{handleRetry:function(){this.getConfig(),this.getDecorateConfig(),this.getUser()},getPageInfo:function(){var e=this;(0,u.apiIndex)().then((function(t){var o=t.common.title,i=t.common,r=t.content;n.setNavigationBarTitle({title:o}),e.styles=i,e.tempData=r.map((function(n,e){return{index:e,value:n}})),e.splitSetData()})).finally((function(){n.stopPullDownRefresh(),e.loading=!1}))},splitSetData:function(){var n=this,e=this.tempData.shift();e&&(this.$set(this.pagesData,e.index,Object.freeze(e.value)),setTimeout((function(){n.splitSetData()}),100))},onPageScroll:function(e){var t=n.upx2px(100),o=e.scrollTop;this.percent=o/t>1?1:o/t},clearIntervalFunc:function(){this.offTip=!1},clearTipAuto:function(){var n=this,e=null;e&&clearTimeout(e),e=setTimeout((function(){n.clearIntervalFunc()}),5e3)},handleoPenAd:function(){this.showopenAd=!0}}),computed:d(d({},(0,a.mapGetters)(["userInfo","appConfig","shareConfig"])),{},{recordNumber:function(){return l.default.getters.appConfig.record_number},recordLink:function(){return l.default.getters.appConfig.record_system_link},pageStyle:function(){var n=this.styles,e=n.background_color,t=n.background_image,o=n.background_type;if(0!=o){var i=1==o?{"background-color":e}:{"background-image":"url(".concat(t,")")};return i}}}),onPullDownRefresh:function(){this.getPageInfo()},onPageScroll:function(n){var e=n.scrollTop;this.scrollTop=e},onLoad:function(){var e=this;n.hideTabBar(),o.getPrivacySetting({success:function(n){console.log(n,"------"),n.needAuthorization?e.showPrivacyPopup=!0:e.showopenAd=!0},fail:function(n){console.log(n)}}),this.getPageInfo(),(0,c.apiVisit)()},onHide:function(){this.isDischarge=!0},onShow:function(){var n=this;this.isDischarge=!1,o.getUpdateManager().onUpdateReady((function(){o.showModal({title:"更新提示",content:"新版本已经准备好,是否重启应用?",success:function(n){n.confirm&&o.getUpdateManager().applyUpdate()}})})),(0,s.apiUserCentre)().then((function(e){var t=e.is_register_award;n.isReward=t}))},watch:{},onShareAppMessage:function(){var n=this.shareConfig.find((function(n){return 1==n.type&&1==n.page})),e=this.appConfig.shop_name,t=this.userInfo.code,o=n.title.replace(/\{name\}/g,e),i={title:o,path:"/pages/index/index?invite_code=".concat(t),imageUrl:n.image};return i},onShareTimeline:function(){var n=this.shareConfig.find((function(n){return 1==n.type&&1==n.page})),e=this.appConfig.shop_name,t=n.title.replace(/\{name\}/g,e),o={title:t,imageUrl:n.image};return o},onReady:function(){var n=this;o.checkIsAddedToMyMiniProgram({success:function(e){e.added||(n.offTip=!0,n.clearTipAuto())}})}};e.default=f}).call(this,t("df3c")["default"],t("3223")["default"])},c506:function(n,e,t){"use strict";t.r(e);var o=t("d080"),i=t("7d37");for(var r in i)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(r);t("333f");var u=t("828b"),c=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=c.exports},d080:function(n,e,t){"use strict";t.d(e,"b",(function(){return i})),t.d(e,"c",(function(){return r})),t.d(e,"a",(function(){return o}));var o={uSticky:function(){return t.e("components/uview-ui/components/u-sticky/u-sticky").then(t.bind(null,"3420"))},uNavbar:function(){return t.e("components/uview-ui/components/u-navbar/u-navbar").then(t.bind(null,"6331"))},uIcon:function(){return t.e("components/uview-ui/components/u-icon/u-icon").then(t.bind(null,"1340"))},bubble:function(){return t.e("components/bubble/bubble").then(t.bind(null,"8899"))},lazyComponent:function(){return t.e("components/lazy-component/lazy-component").then(t.bind(null,"901d"))},wSearch:function(){return t.e("components/widgets/search/search").then(t.bind(null,"3068"))},wNavigation:function(){return t.e("components/widgets/navigation/navigation").then(t.bind(null,"7524"))},wBanner:function(){return t.e("components/widgets/banner/banner").then(t.bind(null,"04bd"))},wTitle:function(){return t.e("components/widgets/title/title").then(t.bind(null,"a1e3"))},wRubik:function(){return t.e("components/widgets/rubik/rubik").then(t.bind(null,"c94ca"))},wNotice:function(){return Promise.all([t.e("common/vendor"),t.e("components/widgets/notice/notice")]).then(t.bind(null,"d39e"))},wBlank:function(){return t.e("components/widgets/blank/blank").then(t.bind(null,"2474"))},wSeparate:function(){return t.e("components/widgets/separate/separate").then(t.bind(null,"ed0c"))},wGoodsgroup:function(){return t.e("components/widgets/goodsgroup/goodsgroup").then(t.bind(null,"0370"))},wTabs:function(){return t.e("components/widgets/tabs/tabs").then(t.bind(null,"e121"))},wCoupon:function(){return t.e("components/widgets/coupon/coupon").then(t.bind(null,"6d05"))},wSeckill:function(){return t.e("components/widgets/seckill/seckill").then(t.bind(null,"b048"))},wPresell:function(){return t.e("components/widgets/presell/presell").then(t.bind(null,"31d4"))},wSpellgroup:function(){return t.e("components/widgets/spellgroup/spellgroup").then(t.bind(null,"7f56"))},wVideo:function(){return t.e("components/widgets/video/video").then(t.bind(null,"b6de"))},wGraphic:function(){return t.e("components/widgets/graphic/graphic").then(t.bind(null,"f360"))},wHotarea:function(){return t.e("components/widgets/hotarea/hotarea").then(t.bind(null,"28d9"))},wEditor:function(){return t.e("components/widgets/editor/editor").then(t.bind(null,"c470"))},wMnplive:function(){return t.e("components/widgets/mnplive/mnplive").then(t.bind(null,"d365"))},tabbar:function(){return t.e("components/tabbar/tabbar").then(t.bind(null,"c5d1"))},indexSkeleton:function(){return t.e("components/index-skeleton/index-skeleton").then(t.bind(null,"264b"))},uBackTop:function(){return t.e("components/uview-ui/components/u-back-top/u-back-top").then(t.bind(null,"c97f"))},privacyPopup:function(){return t.e("components/privacy-popup/privacy-popup").then(t.bind(null,"706e"))},uNoNetwork:function(){return t.e("components/uview-ui/components/u-no-network/u-no-network").then(t.bind(null,"bb0c"))},openAdvertisement:function(){return t.e("components/open-advertisement/open-advertisement").then(t.bind(null,"23fe"))},openRegisterreward:function(){return t.e("components/open-registerreward/open-registerreward").then(t.bind(null,"6d90"))}},i=function(){var n=this.$createElement,e=(this._self._c,this.__get_style([this.pageStyle])),t={background:"rgba(256,256, 256,"+this.percent+")"};this.$mp.data=Object.assign({},{$root:{s0:e,a0:t}})},r=[]},df2a:function(n,e,t){"use strict";(function(n,e){var o=t("47a9");t("b46f");o(t("3240"));var i=o(t("c506"));n.__webpack_require_UNI_MP_PLUGIN__=t,e(i.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},f853:function(n,e,t){n.exports={red_theme:"#FF2C3C",orange_theme:"#f7971e",pink_theme:"#fa444d",gold_theme:"#e0a356",blue_theme:"#2f80ed",green_theme:"#2ec840"}}},[["df2a","common/runtime","common/vendor"]]]);
|