diff --git a/pages/index/index.vue b/pages/index/index.vue index 045f130..369fe58 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -88,7 +88,7 @@ - + {{item.createTime}} @@ -205,10 +205,10 @@ }, getUserInfo() { request({ - url: '/getJxInfo', + url: '/jx/auth/getJxInfo', method: 'get' }).then((res) => { - if (res.code == 200) { + if (res.code == 0) { this.schoolInfo = res.schoolInfo uni.setStorageSync("roles", res.roles) uni.setStorageSync("deptId", res.schoolInfo.deptId) @@ -220,7 +220,7 @@ url: '/drivingSchool/system/reservationCourse/applet/getHomeData', method: 'get' }).then((res) => { - if (res.code == 200) { + if (res.code == 0) { this.dataInfo = res.data } }) diff --git a/pages/login/loginSms.vue b/pages/login/loginSms.vue index dd180e0..9cc08e6 100644 --- a/pages/login/loginSms.vue +++ b/pages/login/loginSms.vue @@ -149,7 +149,7 @@ data: this.appuser }).then((res) => { if (res.code == 0) { - uni.setStorageSync("App-Token", res.data.token) + uni.setStorageSync("App-Token", res.data.accessToken) uni.setStorageSync("loginType", this.tabindex) if (this.tabindex == 0) {