From a1ac20d9cbe90b566bffe3ed39a6e07700c3248f Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期一, 19 六月 2023 10:30:06 +0800 Subject: [PATCH] Merge branch 'wjc' --- app/src/main/assets/apps/__UNI__A2E7300/www/app-config-service.js | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/app/src/main/assets/apps/__UNI__A2E7300/www/app-config-service.js b/app/src/main/assets/apps/__UNI__A2E7300/www/app-config-service.js new file mode 100644 index 0000000..9472f99 --- /dev/null +++ b/app/src/main/assets/apps/__UNI__A2E7300/www/app-config-service.js @@ -0,0 +1,11 @@ + + ;(function(){ + let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[]; + const __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#F8F8F8","navigationBar":{"backgroundColor":"#F8F8F8","titleText":"uni-app","type":"default","titleColor":"#000000"},"isNVue":false},"nvue":{"compiler":"uni-app","styleCompiler":"uni-app","flex-direction":"column"},"renderer":"auto","appname":"缁胯壊鑳芥簮App","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"3.8.4","entryPagePath":"pages/operationService/operationAndMaintenance","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"locales":{},"darkmode":false,"themeConfig":{}}; + const __uniRoutes = [{"path":"pages/operationService/operationAndMaintenance","meta":{"isQuit":true,"isEntry":true,"navigationBar":{"style":"custom","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/powerStationDetail/index","meta":{"navigationBar":{"style":"custom","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/powerStation/powerStationCreate","meta":{"navigationBar":{"style":"custom","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/powerStation/powerStationEdit","meta":{"navigationBar":{"style":"custom","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/operationService/operationAndMaintenanceDetail","meta":{"navigationBar":{"style":"custom","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/powerStation/powerStationParamsChoose","meta":{"navigationBar":{"style":"custom","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/powerStation/powerStationCreateSuccess","meta":{"navigationBar":{"style":"custom","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/deviceAdd/index","meta":{"navigationBar":{"style":"custom","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/deviceAdd/deviceAddHelp","meta":{"navigationBar":{"style":"custom","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/operationService/wifiSetting","meta":{"navigationBar":{"style":"custom","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/operationService/etherlinkSetting","meta":{"navigationBar":{"style":"custom","type":"default","titleColor":"#ffffff"},"isNVue":false}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute)); + __uniConfig.styles=[];//styles + __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:16})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:u,window:u,document:u,frames:u,self:u,location:u,navigator:u,localStorage:u,history:u,Caches:u,screen:u,alert:u,confirm:u,prompt:u,fetch:u,XMLHttpRequest:u,WebSocket:u,webkit:u,print:u}}}}); + })(); + \ No newline at end of file -- Gitblit v1.8.0