testBrowser() {
let ua = window.navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == 'micromessenger') return 'weixin'; // 微信公众号
if (ua.match(/dsapp/i) == 'isapp') return 'other_app'; // 外部-app
//判断ua中是否含有和app端约定好的标识dsapp
// #ifdef APP-PLUS
return 'self_app'; // 自身-app
// #endif
// #ifdef MP-WEIXIN
return 'mp-weixin'; // 自身-小程序
// #endif
return 'h5';
},