
<style lang="scss">
    @import "uview-ui/index.scss";
</style>

<script>
	export default {
		onLaunch: function() {
            var ua = window.navigator.userAgent.toLowerCase();

            console.log('+++++++浏览器++++++',ua)
            // if(ua.match(/windowswechat/i)=="windowswechat") {
            //     console.log('这windos的微信浏览器');
            // } else {
            //     console.log('这不是微信浏览器');
            // }
            if (ua.match(/MicroMessenger/i) == 'micromessenger') {
                console.log('这是微信浏览器');
            }else {
                uni.showModal({
                    title:'温馨提示',
                    content:'请在手机微信客户端打开连接',
                })
            }
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>


