11 lines
3.5 KiB
JavaScript
11 lines
3.5 KiB
JavaScript
|
|
;(function(){
|
|
let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[];
|
|
const __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#F8F8F8","onReachBottomDistance":50,"navigationBar":{"titleText":"神领物流","titleColor":"#000000"}},"nvue":{"compiler":"uni-app","styleCompiler":"uni-app","flex-direction":"column"},"renderer":"auto","appname":"sl-kdy","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"3.4.7","entryPagePath":"pages/start/index","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"locales":{}};
|
|
const __uniRoutes = [{"path":"pages/start/index","meta":{"isQuit":true,"isEntry":true,"navigationBar":{"style":"custom"}}},{"path":"pages/login/user","meta":{"navigationBar":{"titleText":"登录","style":"custom"}}},{"path":"pages/login/index","meta":{"navigationBar":{"titleText":"登录","style":"custom"}}},{"path":"pages/index/index","meta":{"navigationBar":{"titleText":"神领物流","style":"custom"}}},{"path":"pages/search/index","meta":{"navigationBar":{"titleText":"神领物流","style":"custom"}}},{"path":"pages/history/index","meta":{"enablePullDownRefresh":false,"navigationBar":{"backgroundColor":"#333333","titleText":"历史派送","style":"custom"}}},{"path":"pages/news/index","meta":{"enablePullDownRefresh":false,"navigationBar":{"backgroundColor":"#333333","titleText":"消息","style":"custom"}}},{"path":"pages/news/detail","meta":{"enablePullDownRefresh":false,"navigationBar":{"backgroundColor":"#333333","titleText":"详情","style":"custom"}}},{"path":"pages/news/system","meta":{"enablePullDownRefresh":false,"navigationBar":{"backgroundColor":"#333333","titleText":"系统通知","style":"custom"}}},{"path":"pages/freight/index","meta":{"enablePullDownRefresh":false,"navigationBar":{"backgroundColor":"#333333","titleText":"运费查询","style":"custom"}}},{"path":"pages/delivery/index","meta":{"enablePullDownRefresh":false,"navigationBar":{"backgroundColor":"#333333","titleText":"取件","style":"custom"}}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute));
|
|
__uniConfig.styles=[];//styles
|
|
__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()})}});
|
|
__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()})}});
|
|
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}}}});
|
|
})();
|
|
|