app-config-service.js 3.7 KB

12345678
  1. var isReady=false;var onReadyCallbacks=[];
  2. var isServiceReady=false;var onServiceReadyCallbacks=[];
  3. var __uniConfig = {"pages":["pages/index/index","pages/center/index","pages/login/login","pages/login/forget","pages/center/setting","pages/order/index","pages/account/index","pages/account/withdraw","pages/account/withdraw_log","pages/center/password","pages/order/detail"],"window":{"navigationBarTextStyle":"white","navigationBarTitleText":"人人车","navigationBarBackgroundColor":"#e46008","backgroundColor":"#FFFFFF"},"tabBar":{"color":"#bb955e","selectedColor":"#bb955e","borderStyle":"black","backgroundColor":"#ffffff"},"nvueCompiler":"uni-app","nvueStyleCompiler":"weex","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"人人车","compilerVersion":"3.4.18","entryPagePath":"pages/index/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
  4. var __uniRoutes = [{"path":"/pages/index/index","meta":{"isQuit":true},"window":{"navigationBarTitleText":"人人车","enablePullDownRefresh":true,"navigationStyle":"custom"}},{"path":"/pages/center/index","meta":{},"window":{"navigationBarTitleText":"我的","enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/login/login","meta":{},"window":{"navigationBarTitleText":"登录","enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/login/forget","meta":{},"window":{"navigationBarTitleText":"忘记密码","enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/center/setting","meta":{},"window":{"navigationBarTitleText":"设置","enablePullDownRefresh":false}},{"path":"/pages/order/index","meta":{},"window":{"navigationBarTitleText":"我的订单","enablePullDownRefresh":true}},{"path":"/pages/account/index","meta":{},"window":{"navigationBarTitleText":"资金明细","enablePullDownRefresh":true}},{"path":"/pages/account/withdraw","meta":{},"window":{"navigationBarTitleText":"账户提现","enablePullDownRefresh":false}},{"path":"/pages/account/withdraw_log","meta":{},"window":{"navigationBarTitleText":"提现明细","enablePullDownRefresh":true}},{"path":"/pages/center/password","meta":{},"window":{"navigationBarTitleText":"修改密码","enablePullDownRefresh":false}},{"path":"/pages/order/detail","meta":{},"window":{"navigationBarTitleText":"接单详情","enablePullDownRefresh":false}}];
  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}}}});