|
|
|
@ -137,7 +137,9 @@ |
|
|
|
}, |
|
|
|
//登录 |
|
|
|
goLogin() { |
|
|
|
let data = {} |
|
|
|
let data = {} |
|
|
|
console.log(this.loginWay) |
|
|
|
console.log(this.wayValue) |
|
|
|
if (this.loginWay) { //true |
|
|
|
data = { |
|
|
|
username: this.username, |
|
|
|
@ -155,14 +157,7 @@ |
|
|
|
type: this.wayValue |
|
|
|
} |
|
|
|
} |
|
|
|
this.tui.request("/auth/login", "POST", { |
|
|
|
username: this.username, |
|
|
|
password: this.password, |
|
|
|
code: this.code, |
|
|
|
captchaId: this.captchaId, |
|
|
|
saveLogin: true, |
|
|
|
type: this.wayValue |
|
|
|
}, true, true).then((res) => { |
|
|
|
this.tui.request("/auth/login", "POST", data, true, true).then((res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
uni.setStorageSync("hiver_token", res.result.accessToken) |
|
|
|
let state = { |
|
|
|
|