mobile-workflow/unpackage/dist/build/app-plus/app-config-service.js

11 lines
4.1 KiB
JavaScript

;(function(){
let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[];
const __uniConfig = {"pages":[],"globalStyle":{"animationType":"slide-in-right","rpxCalcMaxDeviceWidth":768,"rpxCalcBaseDeviceWidth":375,"rpxCalcIncludeWidth":750,"titleView":false,"statusbar":{"immersed":false},"navigationBar":{"backgroundColor":"#4478F7","type":"default","titleColor":"#ffffff"},"isNVue":false},"nvue":{"compiler":"uni-app","styleCompiler":"uni-app","flex-direction":"column"},"renderer":"auto","appname":"wflow-pro工作流","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"4.57","entryPagePath":"pages/login/login","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"fallbackLocale":"zh-Hans","locales":{},"darkmode":false,"themeConfig":{}};
const __uniRoutes = [{"path":"pages/login/login","meta":{"isQuit":true,"isEntry":true,"backgroundColor":"#623FDC","titleView":false,"navigationBar":{"titleText":"","style":"custom","type":"default"},"isNVue":false}},{"path":"components/form/sub/ProcessSelect","meta":{"enablePullDownRefresh":true,"backgroundColor":"#623FDC","navigationBar":{"titleText":"选择流程","type":"default"},"isNVue":false}},{"path":"pages/workspace/workspace","meta":{"enablePullDownRefresh":true,"backgroundColor":"#623FDC","navigationBarHidden":false,"navigationBar":{"titleText":"工作区","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/submit/submit","meta":{"enablePullDownRefresh":true,"navigationBarHidden":false,"backgroundColor":"#623FDC","navigationBar":{"titleText":"发起流程","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/contacts/contacts","meta":{"enablePullDownRefresh":true,"backgroundColor":"#623FDC","navigationBar":{"titleText":"通讯录","type":"default"},"isNVue":false}},{"path":"pages/my/my","meta":{"backgroundColor":"#623FDC","titleView":false,"navigationBar":{"titleText":"我的","type":"default"},"isNVue":false}},{"path":"pages/instance/instancePreview","meta":{"backgroundColor":"#623FDC","navigationBarHidden":false,"navigationBar":{"titleText":"流程详情","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/submit/InitiateProcess","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"提交审批","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/my/UserAgent","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"用户代理人设置","type":"default"},"isNVue":false}},{"path":"pages/workspace/UnFinished","meta":{"navigationBar":{"titleText":"","type":"default"},"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}}}});
})();