diff --git a/common/js/util.js b/common/js/util.js index c04466f..cc2678a 100644 --- a/common/js/util.js +++ b/common/js/util.js @@ -489,17 +489,10 @@ export default { }, /** * 是否是微信浏览器 + * @deprecated 请使用 Platform.isWeiXin() */ isWeiXin() { - // #ifndef H5 - return false; - // #endif - var ua = navigator.userAgent.toLowerCase(); - if (ua.match(/MicroMessenger/i) == "micromessenger") { - return true; - } else { - return false; - } + return Platform.isWeiXin(); }, /** * 判断是否在微信小程序的web-view中打开H5