app-config-service.js 4.4 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/myCenter/myCenter","pages/myCenter/personalData/personalData","pages/myCenter/updatePassword/updatePassword","pages/webview/webview","pages/history/history","pages/applicationCenter/applicationCenter","pages/message/message","pages/index/detail/detail"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"智慧创新","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"tabBar":{"color":"#7A7E83","selectedColor":"#1296db","borderStyle":"black","backgroundColor":"#ffffff","iconWidth":"24px","list":[{"pagePath":"pages/index/index","iconPath":"static/tabbar/index.png","selectedIconPath":"static/tabbar/indexEd.png","text":"首页"},{"pagePath":"pages/applicationCenter/applicationCenter","iconPath":"static/tabbar/app.png","selectedIconPath":"static/tabbar/appEd.png","text":"应用中心"},{"pagePath":"pages/history/history","iconPath":"static/tabbar/info.png","selectedIconPath":"static/tabbar/infoEd.png","text":"信息中心"},{"pagePath":"pages/myCenter/myCenter","iconPath":"static/tabbar/myCenter.png","selectedIconPath":"static/tabbar/myCenterEd.png","text":"我的"}]},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"六院联创","compilerVersion":"3.95","entryPagePath":"pages/login/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
  4. var __uniRoutes = [{"path":"/pages/login/index","meta":{"isQuit":true},"window":{"navigationBarTitleText":"登录"}},{"path":"/pages/index/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"首页","navigationStyle":"custom","enablePullDownRefresh":true}},{"path":"/pages/myCenter/myCenter","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"我的","navigationBarBackgroundColor":"#3D90F4","enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/myCenter/personalData/personalData","meta":{},"window":{"navigationBarTitleText":"个人资料","enablePullDownRefresh":false}},{"path":"/pages/myCenter/updatePassword/updatePassword","meta":{},"window":{"navigationBarTitleText":"修改密码","enablePullDownRefresh":false}},{"path":"/pages/webview/webview","meta":{},"window":{"navigationBarTitleText":"","enablePullDownRefresh":true}},{"path":"/pages/history/history","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"信息中心","enablePullDownRefresh":false}},{"path":"/pages/applicationCenter/applicationCenter","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"应用中心","enablePullDownRefresh":false}},{"path":"/pages/message/message","meta":{},"window":{"navigationBarTitleText":"消息","enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/index/detail/detail","meta":{},"window":{"navigationBarTitleText":"详情","enablePullDownRefresh":true}}];
  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}}}});