提交 c75decad 编写于 作者: fxy060608's avatar fxy060608

add getSystemInfoSync

上级 72379575
...@@ -6143,11 +6143,19 @@ let toast = false; ...@@ -6143,11 +6143,19 @@ let toast = false;
let toastTimeout; let toastTimeout;
function showLoading$1 (args) { function showLoading$1 (args) {
return showToast$1(args).replace('showToast', 'showLoading') const ret = showToast$1(args);
if (ret && ret.errMsg) {
ret.errMsg = ret.errMsg.replace('showToast', 'showLoading');
}
return ret
} }
function hideLoading () { function hideLoading () {
return hideToast().replace('hideToast', 'hideLoading') const ret = hideToast();
if (ret && ret.errMsg) {
ret.errMsg = ret.errMsg.replace('hideToast', 'hideLoading');
}
return ret
} }
function showToast$1 ({ function showToast$1 ({
......
...@@ -10,7 +10,11 @@ import { ...@@ -10,7 +10,11 @@ import {
import tabbar from '../../framework/tabbar' import tabbar from '../../framework/tabbar'
export function getSystemInfo (args) { export function getSystemInfoSync () {
return getSystemInfo()
}
export function getSystemInfo () {
const platform = plus.os.name.toLowerCase() const platform = plus.os.name.toLowerCase()
const ios = platform === 'ios' const ios = platform === 'ios'
// 安卓 plus 接口获取的屏幕大小值不为整数,iOS js 获取的屏幕大小横屏时颠倒 // 安卓 plus 接口获取的屏幕大小值不为整数,iOS js 获取的屏幕大小横屏时颠倒
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册