app-config-service.js 4.3 KB

1234567891011
  1. ;(function(){
  2. let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[];
  3. const __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#648EB8","backgroundColorBottom":"#648EB8","navigationBar":{"backgroundColor":"#648EB8","titleText":"心脑检测","type":"default","titleColor":"#ffffff"},"isNVue":false},"nvue":{"compiler":"uni-app","styleCompiler":"uni-app","flex-direction":"column"},"renderer":"auto","appname":"NDAid","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"4.01","entryPagePath":"pages/index/show","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"locales":{},"darkmode":false,"themeConfig":{}};
  4. const __uniRoutes = [{"path":"pages/index/show","meta":{"isQuit":true,"isEntry":true,"enablePullDownRefresh":false,"disableScroll":false,"bounce":"none","navigationBar":{"titleText":"show","type":"default"},"isNVue":false}},{"path":"pages/index/index","meta":{"enablePullDownRefresh":true,"backgroundColor":"#648EB8","bounce":true,"popGesture":"none","pullToRefresh":{"support":true,"style":"circle","color":"#648EB8","contentdown":{"caption":""},"contentover":{"caption":""},"contentrefresh":{"caption":""}},"navigationBar":{"titleText":"心脑检测","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/login/login","meta":{"enablePullDownRefresh":false,"disableScroll":false,"bounce":"none","navigationBar":{"titleText":"登录","type":"default"},"isNVue":false}},{"path":"pages/register/register","meta":{"enablePullDownRefresh":false,"bounce":"none","navigationBar":{"titleText":"","type":"default"},"isNVue":false}},{"path":"pages/member/member","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"","type":"default"},"isNVue":false}},{"path":"pages/member/add","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"","type":"default"},"isNVue":false}},{"path":"pages/report/report","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"","type":"default"},"isNVue":false}},{"path":"pages/topic/common","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"","type":"default"},"isNVue":false}},{"path":"pages/topic/selectage","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"","type":"default"},"isNVue":false}},{"path":"pages/topic/selectsex","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"","type":"default"},"isNVue":false}},{"path":"pages/topic/selectcanvas","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"","type":"default"},"isNVue":false}},{"path":"pages/topic/selectsbp","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"","type":"default"},"isNVue":false}},{"path":"pages/topic/selectwaistline","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"","type":"default"},"isNVue":false}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute));
  5. __uniConfig.styles=[];//styles
  6. __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()})}});
  7. __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()})}});
  8. 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}}}});
  9. })();