app-config-service.js 4.2 KB

12345678
  1. var isReady=false;var onReadyCallbacks=[];
  2. var isServiceReady=false;var onServiceReadyCallbacks=[];
  3. var __uniConfig = {"pages":["pages/login/index","pages/index/index","pages/news/index","pages/index/search","pages/index/searchData","pages/index/projectInfo","pages/index/projectInfoPoint","pages/index/projectInfoPointOrder","pages/index/projectEnd","pages/user/index","pages/user/updatePassword","pages/user/version","pages/user/aboutUs","pagesMain/aboutUs"],"window":{"navigationStyle":"default","navigationBarTextStyle":"black","navigationBarTitleText":"阜新业扩","navigationBarBackgroundColor":"#42349A","background":"#42349A"},"tabBar":{"height":"58px","borderStyle":"black","backgroundColor":"#544AA6","color":"#FDFDFD","selectedColor":"#FDFDFD","list":[{"pagePath":"pages/index/index","iconPath":"static/images/icon_index.png","selectedIconPath":"static/images/icon_index_active.png","text":"首页"},{"pagePath":"pages/news/index","iconPath":"static/images/new.png","selectedIconPath":"static/images/new_active.png","text":"消息"},{"pagePath":"pages/user/index","iconPath":"static/images/min.png","selectedIconPath":"static/images/min_active.png","text":"我的"}]},"nvueCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"阜新业扩领导端","compilerVersion":"2.8.3","entryPagePath":"pages/login/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
  4. var __uniRoutes = [{"path":"/pages/login/index","meta":{"isQuit":true},"window":{"titleNView":false}},{"path":"/pages/index/index","meta":{"isQuit":true,"isTabBar":true},"window":{"background":"#42349A","titleNView":{"backgroundColor":"#42349A","titleText":""}}},{"path":"/pages/news/index","meta":{"isQuit":true,"isTabBar":true},"window":{"titleNView":{"backgroundColor":"#42349A","titleText":"消息","titleColor":"#fff","titleSize":"40rpx"}}},{"path":"/pages/index/search","meta":{},"window":{"titleNView":false}},{"path":"/pages/index/searchData","meta":{},"window":{"titleNView":false}},{"path":"/pages/index/projectInfo","meta":{},"window":{"titleNView":false,"background":"#F7FBFF"}},{"path":"/pages/index/projectInfoPoint","meta":{},"window":{"titleNView":false}},{"path":"/pages/index/projectInfoPointOrder","meta":{},"window":{"titleNView":false}},{"path":"/pages/index/projectEnd","meta":{},"window":{"titleNView":false}},{"path":"/pages/user/index","meta":{"isQuit":true,"isTabBar":true},"window":{"titleNView":{"backgroundColor":"#42349A","titleText":"我的","titleColor":"#fff","titleSize":"40rpx"}}},{"path":"/pages/user/updatePassword","meta":{},"window":{"titleNView":false}},{"path":"/pages/user/version","meta":{},"window":{"titleNView":false}},{"path":"/pages/user/aboutUs","meta":{},"window":{"titleNView":false}},{"path":"/pagesMain/aboutUs","meta":{},"window":{"navigationBarTitleText":"关于我们"}}];
  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}}}});