app-config-service.js 4.7 KB

12345678
  1. var isReady=false;var onReadyCallbacks=[];
  2. var isServiceReady=false;var onServiceReadyCallbacks=[];
  3. var __uniConfig = {"pages":["pages/index/index","pagesCommon/test/index","pagesHome/home/index","pagesHome/hot/index","pagesHome/app/index","pagesHome/find/index","pagesHome/account/index","pagesAccount/login/index","pagesAccount/register/index","pagesAccount/other/agree","pagesAccount/other/vipagree","pagesAccount/like/index","pagesAccount/collect/index","pagesAccount/basic/index","pagesAccount/vip/index","pagesVideo/video/index","pagesVideo/search/index","pagesVideo/more/index"],"window":{"navigationBarTextStyle":"white","navigationBarTitleText":"益智游戏","navigationBarBackgroundColor":"#111111","backgroundColor":"#000000"},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"自由天空","compilerVersion":"3.7.3","subPackages":[{"root":"pagesCommon"},{"root":"pagesHome"},{"root":"pagesAccount"},{"root":"pagesVideo"}],"entryPagePath":"pages/index/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
  4. var __uniRoutes = [{"path":"/pages/index/index","meta":{"isQuit":true},"window":{"navigationBarTitleText":"首页"}},{"path":"/pagesCommon/test/index","meta":{},"window":{"navigationBarTitleText":"测试一","enablePullDownRefresh":true}},{"path":"/pagesHome/home/index","meta":{},"window":{"navigationBarTitleText":"首页","enablePullDownRefresh":false}},{"path":"/pagesHome/hot/index","meta":{},"window":{"navigationBarTitleText":"热播","enablePullDownRefresh":false}},{"path":"/pagesHome/app/index","meta":{},"window":{"navigationBarTitleText":"应用","enablePullDownRefresh":false}},{"path":"/pagesHome/find/index","meta":{},"window":{"navigationBarTitleText":"发现","enablePullDownRefresh":false}},{"path":"/pagesHome/account/index","meta":{},"window":{"navigationBarTitleText":"账户","enablePullDownRefresh":false}},{"path":"/pagesAccount/login/index","meta":{},"window":{"navigationBarTitleText":"账号登录","enablePullDownRefresh":false}},{"path":"/pagesAccount/register/index","meta":{},"window":{"navigationBarTitleText":"账号注册","enablePullDownRefresh":false}},{"path":"/pagesAccount/other/agree","meta":{},"window":{"navigationBarTitleText":"用户协议","enablePullDownRefresh":false}},{"path":"/pagesAccount/other/vipagree","meta":{},"window":{"navigationBarTitleText":"会员服务协议","enablePullDownRefresh":false}},{"path":"/pagesAccount/like/index","meta":{},"window":{"navigationBarTitleText":"我的喜欢","enablePullDownRefresh":true}},{"path":"/pagesAccount/collect/index","meta":{},"window":{"navigationBarTitleText":"我的收藏","enablePullDownRefresh":true}},{"path":"/pagesAccount/basic/index","meta":{},"window":{"navigationBarTitleText":"账号信息","enablePullDownRefresh":false}},{"path":"/pagesAccount/vip/index","meta":{},"window":{"navigationBarTitleText":"vip","enablePullDownRefresh":false}},{"path":"/pagesVideo/video/index","meta":{},"window":{"navigationBarTitleText":"详细信息","enablePullDownRefresh":false}},{"path":"/pagesVideo/search/index","meta":{},"window":{"navigationBarTitleText":"视频筛选","enablePullDownRefresh":true}},{"path":"/pagesVideo/more/index","meta":{},"window":{"navigationBarTitleText":"更多","enablePullDownRefresh":true}}];
  5. __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()})}});
  6. __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()})}});
  7. 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}}}});