Vue.prototype.$isWechat = function() {
var ua = window.navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
return true;
} else {
return false;
}
},
Vue.prototype.$isZfb = function() {
var ua = window.navigator.userAgent.toLowerCase();
if (ua.match(/AlipayClient/i) == 'alipayclient') {
return true;
} else {
return false;
}
}