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

update: uni-pay示例页面中的 === 调整为 ==

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