From 29650d44c7174a0407aaee16cea851726214a696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=8F=B6?= Date: Tue, 22 Feb 2022 10:02:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93=E5=89=8D=E4=BC=81=E4=B8=9A=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.js b/app.js index ce8d956..220fc5a 100644 --- a/app.js +++ b/app.js @@ -5,6 +5,10 @@ App({ this.updateVersion() wx.getSystemInfo({ success(res) { + console.log(res) + if(!!res.environment&&res.environment=='wxwork'){ + console.log('当前企业微信') + } that.globalData.statusBarHeight = res.statusBarHeight; that.globalData.screenHeight = res.screenHeight; that.globalData.screenWidth = res.screenWidth;