|
@@ -333,6 +333,7 @@ export default {
|
|
|
.then((res) => {
|
|
|
let data = res.data[0];
|
|
|
console.log("data", data);
|
|
|
+ this.loginType = 'bind'
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.error("请求失败,错误信息:", err);
|
|
@@ -344,9 +345,9 @@ export default {
|
|
|
window.addEventListener('message', function (e) { // 监听 message 事件
|
|
|
if(e.data && e.data.code){
|
|
|
console.log(e);
|
|
|
- _this.loginType = 'bind'
|
|
|
console.log(e.data.code);
|
|
|
console.log(_this.loginType);
|
|
|
+ _this.getOpenId(e.data.code)
|
|
|
}
|
|
|
});
|
|
|
// this.getLoading();
|