uni-app 判断是在微信浏览器or普通浏览器
//判断是否微信登陆
isWeiXinLogin() {
var ua = window.navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
return true; // 微信中打开
} else {
return false; // 普通浏览器中打开
}
},