app-config-service.js 5.1 KB

123456789
  1. var isReady=false;var onReadyCallbacks=[];
  2. var isServiceReady=false;var onServiceReadyCallbacks=[];
  3. var __uniConfig = {"pages":["pages/login/login","pages/storageInfoAnalysis/storageInfoAnalysis","pages/index/index","pages/grainInfo/grainInfo","pages/storageInfoAnalysis/granaryInfo","pages/storageInfoAnalysis/details","pages/storageInfoAnalysis/list","pages/safeStorageInspect/safeStorageInspect","pages/safeStorageInspect/safeStorageInspectEdit","pages/safePruductInspect/safePruductInspect","pages/safePruductInspect/safePruductInspectEdit","pages/storageAcceptanceInspect/storageAcceptanceInspect","pages/storageAcceptanceInspect/storageAcceptanceInspectEdit","pages/fireWaterSource/index","pages/fireFighting/index","pages/fireFighting/details","pages/smartSecurity/index","pages/smartSecurity/details","pages/queryStatistics/index","pages/queryStatistics/storageDistrbution/index","pages/queryStatistics/storageDistrbution/details","pages/queryStatistics/purchaseDetails/index","pages/queryStatistics/purchaseDetails/details","pages/queryStatistics/emergencyInfo/index","pages/queryStatistics/emergencyInfo/details","pages/queryStatistics/todayInfo/index","pages/queryStatistics/todayInfo/details","pages/safetyPlan/safetyPlan","pages/safetyPlan/details"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"province-uniapp-qinghai-ipad","compilerVersion":"4.23","entryPagePath":"pages/login/login","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
  4. var __uniRoutes = [{"path":"/pages/login/login","meta":{"isQuit":true},"window":{}},{"path":"/pages/storageInfoAnalysis/storageInfoAnalysis","meta":{},"window":{}},{"path":"/pages/index/index","meta":{},"window":{}},{"path":"/pages/grainInfo/grainInfo","meta":{},"window":{}},{"path":"/pages/storageInfoAnalysis/granaryInfo","meta":{},"window":{}},{"path":"/pages/storageInfoAnalysis/details","meta":{},"window":{}},{"path":"/pages/storageInfoAnalysis/list","meta":{},"window":{}},{"path":"/pages/safeStorageInspect/safeStorageInspect","meta":{},"window":{}},{"path":"/pages/safeStorageInspect/safeStorageInspectEdit","meta":{},"window":{}},{"path":"/pages/safePruductInspect/safePruductInspect","meta":{},"window":{}},{"path":"/pages/safePruductInspect/safePruductInspectEdit","meta":{},"window":{}},{"path":"/pages/storageAcceptanceInspect/storageAcceptanceInspect","meta":{},"window":{}},{"path":"/pages/storageAcceptanceInspect/storageAcceptanceInspectEdit","meta":{},"window":{}},{"path":"/pages/fireWaterSource/index","meta":{},"window":{}},{"path":"/pages/fireFighting/index","meta":{},"window":{}},{"path":"/pages/fireFighting/details","meta":{},"window":{}},{"path":"/pages/smartSecurity/index","meta":{},"window":{}},{"path":"/pages/smartSecurity/details","meta":{},"window":{}},{"path":"/pages/queryStatistics/index","meta":{},"window":{}},{"path":"/pages/queryStatistics/storageDistrbution/index","meta":{},"window":{}},{"path":"/pages/queryStatistics/storageDistrbution/details","meta":{},"window":{}},{"path":"/pages/queryStatistics/purchaseDetails/index","meta":{},"window":{}},{"path":"/pages/queryStatistics/purchaseDetails/details","meta":{},"window":{}},{"path":"/pages/queryStatistics/emergencyInfo/index","meta":{},"window":{}},{"path":"/pages/queryStatistics/emergencyInfo/details","meta":{},"window":{}},{"path":"/pages/queryStatistics/todayInfo/index","meta":{},"window":{}},{"path":"/pages/queryStatistics/todayInfo/details","meta":{},"window":{}},{"path":"/pages/safetyPlan/safetyPlan","meta":{},"window":{"navigationBarTitleText":""}},{"path":"/pages/safetyPlan/details","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}}}});