Compare commits

...

2 Commits

Author SHA1 Message Date
Phoenix 69d16c85e3 first 3 months ago
Phoenix 520b80da65 first 3 months ago

@ -2,15 +2,15 @@ const env = 'dev';
const configs = { const configs = {
dev: { dev: {
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend', apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
h5Url:'http://192.168.88.35:8080/' h5Url:'http://192.168.88.37:8080/#/'
}, },
test: { test: {
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend', apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
h5Url:'http://172.16.100.93:8041/#/' h5Url:'http://172.16.100.93:8041/#/'
}, },
prod: { prod: {
apiBaseUrl: 'https://oa.szjixun.cn/api', apiBaseUrl: 'https://oa-a.szjixun.cn/api',
h5Url:'https://oa.szjixun.cn/#/' h5Url:'https://oa-a.szjixun.cn/#/'
}, },
}; };

@ -10,7 +10,7 @@ import {sendWebWiew,receiveWebView} from "@/utils/communicate";
const webViewRef=ref(null) const webViewRef=ref(null)
const systemInfo = uni.getSystemInfoSync(); const systemInfo = uni.getSystemInfoSync();
// #ifdef APP-ANDROID // #ifdef APP-ANDROID
const permissionListener = uni.createRequestPermissionListener(); /*const permissionListener = uni.createRequestPermissionListener();
permissionListener.onRequest((e)=>{ permissionListener.onRequest((e)=>{
}) })
permissionListener.onConfirm((e) => { permissionListener.onConfirm((e) => {
@ -18,7 +18,7 @@ permissionListener.onConfirm((e) => {
}); });
permissionListener.onComplete((e) => { permissionListener.onComplete((e) => {
sendWebWiew(webViewRef.value,{auth:e,open:false}) sendWebWiew(webViewRef.value,{auth:e,open:false})
}); });*/
// #endif // #endif
const webLoad=(e)=>{ const webLoad=(e)=>{
const m=receiveWebView(e) const m=receiveWebView(e)

@ -10,15 +10,15 @@ const env = "dev";
const configs = { const configs = {
dev: { dev: {
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend", apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
h5Url: "http://192.168.88.35:8080/" h5Url: "http://192.168.88.37:8080/#/"
}, },
test: { test: {
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend", apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
h5Url: "http://172.16.100.93:8041/#/" h5Url: "http://172.16.100.93:8041/#/"
}, },
prod: { prod: {
apiBaseUrl: "https://oa.szjixun.cn/api", apiBaseUrl: "https://oa-a.szjixun.cn/api",
h5Url: "https://oa.szjixun.cn/#/" h5Url: "https://oa-a.szjixun.cn/#/"
} }
}; };
const config = configs[env]; const config = configs[env];

File diff suppressed because one or more lines are too long

@ -1,9 +1,9 @@
;(function(){ ;(function(){
let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[]; let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[];
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":"oa考勤系统","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"4.08","entryPagePath":"pages/index/index","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"locales":{},"darkmode":false,"themeConfig":{}}; 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":"oa考勤系统","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"4.15","entryPagePath":"pages/index/index","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"locales":{},"darkmode":false,"themeConfig":{}};
const __uniRoutes = [{"path":"pages/index/index","meta":{"isQuit":true,"isEntry":true,"navigationBar":{"titleText":"uni-app","style":"custom","type":"default"},"isNVue":true}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute)); const __uniRoutes = [{"path":"pages/index/index","meta":{"isQuit":true,"isEntry":true,"navigationBar":{"titleText":"uni-app","style":"custom","type":"default"},"isNVue":false}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute));
__uniConfig.styles=[{}];//styles __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.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()})}}); __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}}}}); 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}}}});

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

@ -38,10 +38,7 @@
"launchwebview": { "launchwebview": {
"render": "always", "render": "always",
"id": "1", "id": "1",
"kernel": "WKWebview", "kernel": "WKWebview"
"uniNView": {
"path": "pages/index/index.js"
}
}, },
"usingComponents": true, "usingComponents": true,
"nvueStyleCompiler": "uni-app", "nvueStyleCompiler": "uni-app",
@ -161,7 +158,7 @@
"uni-app": { "uni-app": {
"control": "uni-v3", "control": "uni-v3",
"vueVersion": "3", "vueVersion": "3",
"compilerVersion": "4.08", "compilerVersion": "4.15",
"nvueCompiler": "uni-app", "nvueCompiler": "uni-app",
"renderer": "auto", "renderer": "auto",
"nvue": { "nvue": {
@ -172,5 +169,6 @@
"minUserAgentVersion": "49.0" "minUserAgentVersion": "49.0"
} }
} }
} },
"launch_path": "__uniappview.html"
} }

@ -113,15 +113,15 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
var configs = { var configs = {
dev: { dev: {
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend", apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
h5Url: "http://192.168.88.35:8080/" h5Url: "http://192.168.88.37:8080/#/"
}, },
test: { test: {
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend", apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
h5Url: "http://172.16.100.93:8041/#/" h5Url: "http://172.16.100.93:8041/#/"
}, },
prod: { prod: {
apiBaseUrl: "https://oa.szjixun.cn/api", apiBaseUrl: "https://oa-a.szjixun.cn/api",
h5Url: "https://oa.szjixun.cn/#/" h5Url: "https://oa-a.szjixun.cn/#/"
} }
}; };
var config = configs[env]; var config = configs[env];

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save