app-config-service.js 5.7 KB

1234567891011
  1. ;(function(){
  2. let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[];
  3. const __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#f7f8fa","navigationBar":{"backgroundColor":"#f5f5f5","titleText":"【S直播】","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.75","entryPagePath":"pages/home/index","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"tabBar":{"position":"bottom","color":"#AEAEAE","selectedColor":"#000000","borderStyle":"black","blurEffect":"none","fontSize":"12px","iconWidth":"24px","spacing":"3px","height":"50px","list":[{"pagePath":"pages/list/index","iconPath":"/static/tabBar/query.png","selectedIconPath":"/static/tabBar/query_active.png","text":"列表"},{"pagePath":"pages/games/index","iconPath":"/static/tabBar/pulverize.png","selectedIconPath":"/static/tabBar/pulverize_active.png","text":"合同粉碎"},{"pagePath":"pages/user/index","iconPath":"/static/tabBar/user.png","selectedIconPath":"/static/tabBar/user_active.png","text":"我的"}],"backgroundColor":"#fff","selectedIndex":0,"shown":true},"locales":{},"darkmode":false,"themeConfig":{}};
  4. const __uniRoutes = [{"path":"pages/home/index","meta":{"isQuit":true,"isEntry":true,"enablePullDownRefresh":false,"navigationBar":{"titleText":"","type":"default"},"isNVue":false}},{"path":"pages/home/living","meta":{"enablePullDownRefresh":false,"bounce":"none","navigationBar":{"titleText":"","style":"custom","type":"default","titleColor":"#000000"},"isNVue":false}},{"path":"pages/user/index","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":2,"enablePullDownRefresh":false,"bounce":"none","navigationBar":{"titleText":"","style":"custom","type":"default","titleColor":"#000000"},"isNVue":false}},{"path":"pages/list/index","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":0,"bounce":"none","navigationBar":{"titleText":"直播列表","type":"default","titleColor":"#000000"},"isNVue":false}},{"path":"pages/home/live","meta":{"enablePullDownRefresh":false,"bounce":"none","navigationBar":{"titleText":"","style":"custom","type":"default","titleColor":"#000000"},"isNVue":false}},{"path":"pages/games/index","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":1,"enablePullDownRefresh":false,"bounce":"none","navigationBar":{"titleText":"","style":"custom","type":"default","titleColor":"#000000"},"isNVue":false}},{"path":"pages/login/login","meta":{"enablePullDownRefresh":false,"bounce":"none","navigationBar":{"titleText":"","style":"custom","type":"default","titleColor":"#000000"},"isNVue":false}},{"path":"pages_shop/cart","meta":{"titleNView":false,"navigationBar":{"titleText":"药膳食疗","type":"default","style":"custom"},"isNVue":false}},{"path":"pages_shop/goods","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"商品详情","type":"default"},"isNVue":false}},{"path":"pages_shop/store","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"店铺详情","type":"default"},"isNVue":false}},{"path":"pages_shop/order","meta":{"bounce":"none","navigationBar":{"titleText":"我的订单","type":"default","titleColor":"#000000"},"isNVue":false}},{"path":"pages_shop/confirmCreateOrder","meta":{"bounce":"none","navigationBar":{"titleText":"确认订单","type":"default","titleColor":"#000000"},"isNVue":false}},{"path":"pages_shop/paymentOrder","meta":{"bounce":"none","navigationBar":{"titleText":"支付订单","type":"default","titleColor":"#000000"},"isNVue":false}},{"path":"pages_shop/confirmPackageOrder","meta":{"bounce":"none","navigationBar":{"titleText":"确认支付","type":"default","titleColor":"#000000"},"isNVue":false}},{"path":"pages_shop/success","meta":{"bounce":"none","navigationBar":{"titleText":"支付成功","type":"default","titleColor":"#000000"},"isNVue":false}},{"path":"pages_user/address","meta":{"titleNView":false,"navigationBar":{"titleText":"收货地址","type":"default","style":"custom"},"isNVue":false}},{"path":"pages_user/addAddress","meta":{"bounce":"none","navigationBar":{"titleText":"新建收货地址","type":"default","titleColor":"#000000"},"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. })();