26 lines
562 B
JavaScript
26 lines
562 B
JavaScript
export function openApp(url) {
|
|
// #ifdef H5
|
|
window.location.href = 'com.hnsiyao.duanju://'
|
|
// #endif
|
|
}
|
|
export function isAndroid() {
|
|
const systemInfo = uni.getSystemInfoSync();
|
|
const isA = systemInfo.platform === 'android'
|
|
isAndroid = () => {
|
|
return isA
|
|
}
|
|
isA
|
|
}
|
|
export function isIos() {
|
|
const systemInfo = uni.getSystemInfoSync();
|
|
const isIOS = /iOS/.test(systemInfo.platform);
|
|
isIos = () => {
|
|
return isIOS
|
|
}
|
|
return isIOS
|
|
}
|
|
|
|
// 获取当前系统版本信息
|
|
export function getVeriosn() {
|
|
return plus.runtime.getProperty(plus.runtime.appid)
|
|
} |