app-config-service.js 7.0 KB

12345678
  1. var isReady=false;var onReadyCallbacks=[];
  2. var isServiceReady=false;var onServiceReadyCallbacks=[];
  3. var __uniConfig = {"pages":["pages/index/index","pages/mine/index","pages/login/login","pages/agree/user","pages/agree/privacy","pages/index/about","pages/index/help","pages/order/buy","pages/order/index","pages/goods/index","pages/goods/select","pages/mine/setting","pages/order/detail","pages/mine/customer","pages/mine/info","pages/mine/performance","pages/login/stock","pages/stocks/order","pages/stocks/setting","pages/stocks/mine","pages/login/admin","pages/admin/order","pages/admin/mine","pages/admin/setting","pages/ranks/index","pages/promotion/index","pages/sales/index"],"window":{"navigationBarTitleText":"","navigationBarTextStyle":"white","navigationBarBackgroundColor":"#248dd3","backgroundColor":"#F8F8F8","backgroundColorTop":"#F4F5F6","backgroundColorBottom":"#F4F5F6"},"tabBar":{"color":"#7A7E83","selectedColor":"#248dd3","borderStyle":"black","backgroundColor":"#F8F8F8","list":[{"pagePath":"pages/index/index","text":"首页","iconPath":"/static/icons/home.png","selectedIconPath":"/static/icons/home-active.png"},{"pagePath":"pages/order/buy","text":"订购","iconPath":"/static/icons/order.png","selectedIconPath":"/static/icons/order-active.png"},{"pagePath":"pages/mine/index","text":"我的","iconPath":"/static/icons/mine.png","selectedIconPath":"/static/icons/mine-active.png"}]},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"ydmapp","compilerVersion":"4.64","entryPagePath":"pages/index/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
  4. var __uniRoutes = [{"path":"/pages/index/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"首页","navigationStyle":"custom","enablePullDownRefresh":true}},{"path":"/pages/mine/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"我的","navigationStyle":"custom","enablePullDownRefresh":true}},{"path":"/pages/login/login","meta":{},"window":{"navigationBarTitleText":"登录","navigationStyle":"custom","enablePullDownRefresh":false}},{"path":"/pages/agree/user","meta":{},"window":{"navigationBarTitleText":"用户注册协议","navigationStyle":"custom","enablePullDownRefresh":false}},{"path":"/pages/agree/privacy","meta":{},"window":{"navigationBarTitleText":"隐私政策","navigationStyle":"custom","enablePullDownRefresh":false}},{"path":"/pages/index/about","meta":{},"window":{"navigationBarTitleText":"关于我们","navigationStyle":"custom","enablePullDownRefresh":false}},{"path":"/pages/index/help","meta":{},"window":{"navigationBarTitleText":"使用教程","navigationStyle":"custom","enablePullDownRefresh":false}},{"path":"/pages/order/buy","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"下单","navigationStyle":"custom","enablePullDownRefresh":true}},{"path":"/pages/order/index","meta":{},"window":{"navigationBarTitleText":"客户订单","navigationStyle":"custom","enablePullDownRefresh":true}},{"path":"/pages/goods/index","meta":{},"window":{"navigationBarTitleText":"商品列表","navigationStyle":"custom","enablePullDownRefresh":true}},{"path":"/pages/goods/select","meta":{},"window":{"navigationBarTitleText":"选择商品","navigationStyle":"custom","enablePullDownRefresh":true}},{"path":"/pages/mine/setting","meta":{},"window":{"navigationBarTitleText":"资料设置","navigationStyle":"custom","enablePullDownRefresh":false}},{"path":"/pages/order/detail","meta":{},"window":{"navigationBarTitleText":"订单详情","navigationStyle":"custom","enablePullDownRefresh":true}},{"path":"/pages/mine/customer","meta":{},"window":{"navigationBarTitleText":"我的客户","navigationStyle":"custom","enablePullDownRefresh":true}},{"path":"/pages/mine/info","meta":{},"window":{"navigationBarTitleText":"收货地址","navigationStyle":"custom","enablePullDownRefresh":false}},{"path":"/pages/mine/performance","meta":{},"window":{"navigationBarTitleText":"我的业绩","enablePullDownRefresh":true}},{"path":"/pages/login/stock","meta":{},"window":{"navigationBarTitleText":"仓管登录","navigationStyle":"custom","enablePullDownRefresh":false}},{"path":"/pages/stocks/order","meta":{},"window":{"navigationBarTitleText":"订单记录","navigationStyle":"custom","enablePullDownRefresh":true}},{"path":"/pages/stocks/setting","meta":{},"window":{"navigationBarTitleText":"设置","navigationStyle":"custom","enablePullDownRefresh":true}},{"path":"/pages/stocks/mine","meta":{},"window":{"navigationBarTitleText":"我的","navigationStyle":"custom","enablePullDownRefresh":true}},{"path":"/pages/login/admin","meta":{},"window":{"navigationBarTitleText":"管理登录","navigationStyle":"custom","enablePullDownRefresh":false}},{"path":"/pages/admin/order","meta":{},"window":{"navigationBarTitleText":"客户订单","navigationStyle":"custom","enablePullDownRefresh":true}},{"path":"/pages/admin/mine","meta":{},"window":{"navigationBarTitleText":"我的","navigationStyle":"custom","enablePullDownRefresh":true}},{"path":"/pages/admin/setting","meta":{},"window":{"navigationBarTitleText":"设置","navigationStyle":"custom","enablePullDownRefresh":true}},{"path":"/pages/ranks/index","meta":{},"window":{"navigationBarTitleText":"排行榜","navigationStyle":"custom","enablePullDownRefresh":true}},{"path":"/pages/promotion/index","meta":{},"window":{"navigationBarTitleText":"促销活动","navigationStyle":"custom","enablePullDownRefresh":true}},{"path":"/pages/sales/index","meta":{},"window":{"navigationBarTitleText":"商品销售统计","navigationStyle":"custom","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}}}});