|
@@ -160,6 +160,13 @@ export default {
|
|
|
showName: "",
|
|
|
};
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ loginType(newValue) {
|
|
|
+ if(newValue != 'weChat'){
|
|
|
+ this.$refs.QRcode.innerHTML = ''
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
...mapActions({
|
|
|
login: "user/login",
|
|
@@ -318,11 +325,11 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
window.addEventListener('message', function (e) { // 监听 message 事件
|
|
|
- console.log(e);
|
|
|
if(e.data && e.data.code){
|
|
|
+ console.log(e);
|
|
|
this.loginType = 'bind'
|
|
|
console.log(e.data.code);
|
|
|
-
|
|
|
+ console.log(this.loginType);
|
|
|
}
|
|
|
});
|
|
|
// this.getLoading();
|