uniapp-bridge
uniapp 中对当前环境的快捷判断
Usage
js
import { isAlipayMp } from '@morehook/uniapp-bridge'
if (isAlipayMp) {
console.log('当前环境为支付宝小程序')
}
Type Declarations
typescript
declare const uniPlatform: any,
titleBarHeight: any,
statusBarHeight: any,
platform: any,
windowWidth: any,
screenHeight: any,
navigationBarHeight: any
declare const isAlipayMp: boolean
declare const isWeixinMp: boolean
declare const isWeb: boolean
declare const isIos: boolean
declare const isAndroid: boolean
declare const isWechat: boolean
declare const isWechatH5: boolean
declare const isNoWechatH5: boolean
declare const isWechatIos: boolean
export {
isWechatIos,
isAlipayMp,
isWeixinMp,
isIos,
isWeb,
titleBarHeight,
statusBarHeight,
navigationBarHeight,
platform,
uniPlatform,
isAndroid,
isWechat,
isWechatH5,
isNoWechatH5,
windowWidth,
screenHeight,
}