app-config-service.js 7.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":"履约者","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"4.87","entryPagePath":"pages/login/login","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"tabBar":{"position":"bottom","color":"#999999","selectedColor":"#FF5722","borderStyle":"black","blurEffect":"none","fontSize":"10px","iconWidth":"24px","spacing":"3px","height":"50px","list":[{"pagePath":"pages/home/index","text":"任务中心","iconPath":"/static/tabbar/home.svg","selectedIconPath":"/static/tabbar/home-active.svg"},{"pagePath":"pages/orders/index","text":"我的订单","iconPath":"/static/tabbar/order.svg","selectedIconPath":"/static/tabbar/order-active.svg"},{"pagePath":"pages/mine/index","text":"我的","iconPath":"/static/tabbar/mine.svg","selectedIconPath":"/static/tabbar/mine-active.svg"}],"backgroundColor":"#ffffff","selectedIndex":0,"shown":true},"locales":{},"darkmode":false,"themeConfig":{}};
  4. const __uniRoutes = [{"path":"pages/login/login","meta":{"isQuit":true,"isEntry":true,"navigationBar":{"titleText":"登录","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/recruit/landing","meta":{"navigationBar":{"backgroundColor":"#FF9800","titleText":"加入宠宝履约者","style":"custom","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/recruit/form","meta":{"navigationBar":{"titleText":"我要加入","type":"default"},"isNVue":false}},{"path":"pages/recruit/auth","meta":{"navigationBar":{"titleText":"实名认证","type":"default"},"isNVue":false}},{"path":"pages/recruit/qualifications","meta":{"navigationBar":{"titleText":"我的资质","type":"default"},"isNVue":false}},{"path":"pages/recruit/success","meta":{"navigationBar":{"titleText":"提交成功","type":"default"},"isNVue":false}},{"path":"pages/login/reset-pwd-verify","meta":{"navigationBar":{"titleText":"重置密码","type":"default"},"isNVue":false}},{"path":"pages/login/reset-pwd-set","meta":{"navigationBar":{"titleText":"设置新密码","type":"default"},"isNVue":false}},{"path":"pages/home/index","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":0,"enablePullDownRefresh":true,"navigationBar":{"titleText":"任务中心","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/home/work-status","meta":{"navigationBar":{"backgroundColor":"#ffffff","titleText":"工作状态","style":"default","type":"default","titleColor":"#000000"},"isNVue":false}},{"path":"pages/orders/index","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":1,"enablePullDownRefresh":true,"navigationBar":{"backgroundColor":"#ffffff","titleText":"我的订单","type":"default","titleColor":"#000000"},"isNVue":false}},{"path":"pages/orders/detail","meta":{"navigationBar":{"backgroundColor":"#ffffff","titleText":"订单详情","type":"default","titleColor":"#000000"},"isNVue":false}},{"path":"pages/orders/anomaly","meta":{"navigationBar":{"backgroundColor":"#ffffff","titleText":"异常上报","type":"default","titleColor":"#000000"},"isNVue":false}},{"path":"pages/mine/order-stats","meta":{"navigationBar":{"backgroundColor":"#ffffff","titleText":"订单统计","type":"default","titleColor":"#000000"},"isNVue":false}},{"path":"pages/mine/rewards","meta":{"navigationBar":{"backgroundColor":"#ffffff","titleText":"我的奖惩","type":"default","titleColor":"#000000"},"isNVue":false}},{"path":"pages/mine/rewards-all","meta":{"navigationBar":{"backgroundColor":"#ffffff","titleText":"收款记录","type":"default","titleColor":"#000000"},"isNVue":false}},{"path":"pages/mine/index","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":2,"navigationBar":{"titleText":"个人中心","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/settings/index","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/settings/profile/index","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/settings/auth/index","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/settings/auth/edit","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/settings/bank/index","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/settings/security/index","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/settings/profile/edit-name","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/settings/security/change-password","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/settings/security/change-phone","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/settings/notification/index","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/settings/about/index","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/wallet/index","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/wallet/bill","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/level/index","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/message/index","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/message/order","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/message/system","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/message/detail","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/points/index","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/mine/points/detail","meta":{"navigationBar":{"style":"custom","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. })();