提交 a08ce462 编写于 作者: VK1688's avatar VK1688

update: uni-pay示例 === 改为 ==

上级 0d3811b8
...@@ -425,14 +425,14 @@ ...@@ -425,14 +425,14 @@
// 计算当前是否是ios app // 计算当前是否是ios app
isIosAppCom() : boolean { isIosAppCom() : boolean {
let info = uni.getSystemInfoSync(); let info = uni.getSystemInfoSync();
return info.uniPlatform === 'app' && info.osName === 'ios' ? true : false; return info.uniPlatform == 'app' && info.osName == 'ios' ? true : false;
}, },
// 计算当前是否是PC环境 // 计算当前是否是PC环境
isPcCom() : boolean { isPcCom() : boolean {
let isPC = false; let isPC = false;
// #ifdef H5 // #ifdef H5
let info = uni.getSystemInfoSync(); let info = uni.getSystemInfoSync();
isPC = info.deviceType === 'pc' ? true : false; isPC = info.deviceType == 'pc' ? true : false;
// #endif // #endif
return isPC; return isPC;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册