更新打包配置
This commit is contained in:
+21
-21
@@ -1,21 +1,21 @@
|
||||
//取手机设置
|
||||
const systemInfo = uni.getSystemInfoSync();
|
||||
export const uniPlatform = systemInfo.uniPlatform;
|
||||
|
||||
//屏幕长高 顶部 底部安全区 型号 是否为ios 以ios11模拟器开发暂取5个 安卓和其它ios机型有需要以后在说
|
||||
export const screen = {
|
||||
width:systemInfo.safeArea.width,
|
||||
height:systemInfo.safeArea.height,
|
||||
top:systemInfo.statusBarHeight ? systemInfo.statusBarHeight : systemInfo.safeAreaInsets.top,
|
||||
bottom:Math.abs(systemInfo.safeAreaInsets.bottom),
|
||||
platform:systemInfo.platform,
|
||||
isIos:systemInfo.platform === 'ios' ? true : false
|
||||
};
|
||||
|
||||
//网络状态 当前网络状态 是否有网 是否支持下载 4 5g wifi 支持
|
||||
export const network = {
|
||||
curNet:'',
|
||||
isNone:'',
|
||||
isDownload:''
|
||||
};
|
||||
export const s3 = 'https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/';
|
||||
//取手机设置
|
||||
const systemInfo = uni.getSystemInfoSync();
|
||||
export const uniPlatform = systemInfo.uniPlatform;
|
||||
|
||||
//屏幕长高 顶部 底部安全区 型号 是否为ios 以ios11模拟器开发暂取5个 安卓和其它ios机型有需要以后在说
|
||||
export const screen = {
|
||||
width:systemInfo.safeArea.width,
|
||||
height:systemInfo.safeArea.height,
|
||||
top:systemInfo.statusBarHeight ? systemInfo.statusBarHeight : systemInfo.safeAreaInsets.top,
|
||||
bottom:Math.abs(systemInfo.safeAreaInsets.bottom),
|
||||
platform:systemInfo.platform,
|
||||
isIos:systemInfo.platform === 'ios' ? true : false
|
||||
};
|
||||
|
||||
//网络状态 当前网络状态 是否有网 是否支持下载 4 5g wifi 支持
|
||||
export const network = {
|
||||
curNet:'',
|
||||
isNone:'',
|
||||
isDownload:''
|
||||
};
|
||||
export const s3 = 'https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/';
|
||||
|
||||
Reference in New Issue
Block a user