From 7c784284ceaa2176790ea1d68b186c71d61bfd75 Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Mon, 20 Apr 2026 17:34:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8A=E4=B8=8B=E7=8F=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user.ts | 17 +++++++++ src/bundle/address/list.vue | 2 +- src/pages/my/my.vue | 69 ++++++++++++++++--------------------- src/pages/order/detail.vue | 17 +++++++-- 4 files changed, 62 insertions(+), 43 deletions(-) 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 @@