diff --git a/src/api/user.ts b/src/api/user.ts index 9010f2f..e4db51d 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -181,3 +181,20 @@ export function updateUserAddressLocation(id: number) { export function getUserAddressInfo(id: number) { return http.Post('/teamapi/user/addressDetails', { id }) } + + +/** + * 获取配置项 + */ +export function getConfigItem() { + return http.Post('/teamapi/setting/set', null, { + meta: { ignoreAuth: true } + }) +} + +/** + * 更新用户上下班状态 + */ +export function updateWorkState(state: number) { + return http.Post('/teamapi/user/updateState', {state}) +} \ No newline at end of file diff --git a/src/bundle/address/list.vue b/src/bundle/address/list.vue index da52833..7c4c1da 100644 --- a/src/bundle/address/list.vue +++ b/src/bundle/address/list.vue @@ -32,7 +32,7 @@ - + 位置{{ index + 1 }} diff --git a/src/pages/my/my.vue b/src/pages/my/my.vue index 3edaf3d..9ed13d1 100644 --- a/src/pages/my/my.vue +++ b/src/pages/my/my.vue @@ -128,7 +128,7 @@ - + 服务方式: @@ -155,17 +155,17 @@ 住址: {{ userInfo.address || '-' }} - + - + @@ -254,11 +254,13 @@