9 lines
3.0 KiB
JavaScript
9 lines
3.0 KiB
JavaScript
|
|
||
|
var isReady=false;var onReadyCallbacks=[];
|
||
|
var isServiceReady=false;var onServiceReadyCallbacks=[];
|
||
|
var __uniConfig = {"pages":["pages/home/index","pages/customizate/index","pages/almanac/index","pages/personalCenter/index"],"window":{"navigationBarTextStyle":"white","navigationBarTitleText":"老黄历","navigationBarBackgroundColor":"#C13636","backgroundColor":"#ffffff"},"tabBar":{"custom":true,"color":"#B1B1B1","selectedColor":"#C13636","borderStyle":"white","backgroundColor":"#ffffff","list":[{"pagePath":"pages/home/index","iconPath":"static/tabBar5.png","selectedIconPath":"static/tabBar5_on.png","text":"黄历"},{"pagePath":"pages/customizate/index","iconPath":"static/tabBar6.png","selectedIconPath":"static/tabBar6_on.png","text":"专属黄历"},{"pagePath":"pages/personalCenter/index","iconPath":"static/tabBar7.png","selectedIconPath":"static/tabBar7_on.png","text":"个人中心"}]},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"黄历吉凶","compilerVersion":"4.15","entryPagePath":"pages/home/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
|
||
|
var __uniRoutes = [{"path":"/pages/home/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"老黄历"}},{"path":"/pages/customizate/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"专属黄历"}},{"path":"/pages/almanac/index","meta":{},"window":{"navigationBarTitleText":""}},{"path":"/pages/personalCenter/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"个人中心"}}];
|
||
|
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
|
||
|
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
|
||
|
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});
|