app-config-service.js 4.8 KB

1234567891011
  1. ;(function(){
  2. let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[];
  3. 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":"yta","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"4.23","entryPagePath":"pages/home/index","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"tabBar":{"position":"bottom","color":"#7A7E83","selectedColor":"#007AFF","borderStyle":"black","blurEffect":"none","fontSize":"10px","iconWidth":"24px","spacing":"3px","height":"50px","backgroundColor":"#F8F8F8","list":[{"pagePath":"pages/home/index","iconPath":"/static/home.png","selectedIconPath":"/static/home_fill.png","text":"首页"},{"pagePath":"pages/profile/index","iconPath":"/static/people.png","selectedIconPath":"/static/people_fill.png","text":"我的"}],"selectedIndex":0,"shown":true},"locales":{},"darkmode":false,"themeConfig":{}};
  4. const __uniRoutes = [{"path":"pages/home/index","meta":{"isQuit":true,"isEntry":true,"isTabBar":true,"tabBarIndex":0,"navigationBar":{"titleText":"英途仓库","type":"default"},"isNVue":false}},{"path":"pages/instock/index","meta":{"bounce":"none","navigationBar":{"titleText":"称重","type":"default","buttons":[{"fontSize":"16px","text":"历史"}],"backButton":{"background":"#00FF00"}},"isNVue":false}},{"path":"pages/instock/instockLog","meta":{"navigationBar":{"titleText":"录入历史","type":"default"},"isNVue":false}},{"path":"pages/profile/index","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":1,"navigationBar":{"titleText":"我的","type":"default"},"isNVue":false}},{"path":"pages/login/index","meta":{"navigationBar":{"titleText":"登录","type":"default"},"isNVue":false}},{"path":"pages/order/index","meta":{"navigationBar":{"titleText":"ORDER","type":"default"},"isNVue":false}},{"path":"pages/scanLotno/index","meta":{"bounce":"none","navigationBar":{"titleText":"托盘/批次","type":"default","buttons":[{"fontSize":"16px","text":"历史"}],"backButton":{"background":"#00FF00"}},"isNVue":false}},{"path":"pages/scanLotno/lotnoLog","meta":{"navigationBar":{"titleText":"录入历史","type":"default"},"isNVue":false}},{"path":"pages/scanLotno/waybillsList","meta":{"navigationBar":{"titleText":"运单列表","type":"default"},"isNVue":false}},{"path":"pages/warehouseScan/index","meta":{"bounce":"none","navigationBar":{"titleText":"仓库扫描","type":"default","buttons":[{"fontSize":"16px","text":"历史"}],"backButton":{"background":"#00FF00"}},"isNVue":false}},{"path":"pages/warehouseScan/warehouseLog","meta":{"navigationBar":{"titleText":"录入历史","type":"default"},"isNVue":false}},{"path":"pages/waybillDeliveryOrder/index","meta":{"navigationBar":{"titleText":"派送单","type":"default"},"isNVue":false}},{"path":"pages/waybillNo/index","meta":{"bounce":"none","navigationBar":{"titleText":"库位绑定","type":"default","buttons":[{"fontSize":"16px","text":"历史"}],"backButton":{"background":"#00FF00"}},"isNVue":false}},{"path":"pages/waybillNo/waybillNoLog","meta":{"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. })();