会员+驾校联调

This commit is contained in:
qsh
2023-08-19 17:42:47 +08:00
parent 58928d301a
commit 55394e8487
6 changed files with 155 additions and 67 deletions

View File

@@ -27,7 +27,15 @@ export function logout() {
export function getInfo() {
return request({
url: 'driver-api/tdSysUser/info',
url: 'driver-api/tdSysUser/queryUserMessage',
method: 'get',
});
}
export function bindSchool(data) {
return request({
url: 'driver-api/tdSysUser/bindSchool',
method: 'post',
data
});
}

View File

@@ -26,7 +26,7 @@ function service(options = {}) {
if (res.data.code == 'E403') {
// 未登录
uni.showToast({
title: res.data.message,
title: res?.data?.message || '请重新登录',
icon: 'none'
});
useUserStore().logout()
@@ -34,7 +34,7 @@ function service(options = {}) {
resolved(res.data);
} else if(res.data.code != '0000') {
uni.showToast({
title: res.data.message,
title: res?.data?.message || '访问出错',
icon: 'none'
})
resolved(res.data)