vue 微信扫一扫简单使用 scanCode() { // 存在wx sdk 并且在微信ua下 let that = this; if ( typeof wx != undefined && navigator.userAgent.indexOf("MicroMessenger"