From 00bf837bd6b749b14ae06b3ed327a342f081e988 Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Mon, 10 Nov 2025 16:54:46 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/api/user.js | 13 ++++++ components/MyProfile.vue | 61 ++++++++++++++++++++++++++++ pages/customer/follow/add/index.vue | 14 +++---- pages/customer/follow/edit/index.vue | 14 +++---- pages/index/index.vue | 7 +++- 5 files changed, 93 insertions(+), 16 deletions(-) create mode 100644 components/MyProfile.vue diff --git a/common/api/user.js b/common/api/user.js index af8361c..3f59f0b 100644 --- a/common/api/user.js +++ b/common/api/user.js @@ -47,3 +47,16 @@ export const login = (payload) => { }); }; +/** + * 退出登录 + * @returns {Promise} 退出结果 + */ +export const logout = () => { + return uni.$uv.http.post('/logout', {}, { + custom: { + auth: true, + catch: true + } + }); +}; + diff --git a/components/MyProfile.vue b/components/MyProfile.vue new file mode 100644 index 0000000..d8f4620 --- /dev/null +++ b/components/MyProfile.vue @@ -0,0 +1,61 @@ + + + + + + + diff --git a/pages/customer/follow/add/index.vue b/pages/customer/follow/add/index.vue index 759b2b5..fb01564 100644 --- a/pages/customer/follow/add/index.vue +++ b/pages/customer/follow/add/index.vue @@ -41,7 +41,7 @@ - *客户 + 客户 - *客户状态 + 客户状态 - *意向强度 + 意向强度 - *跟进方式 + 跟进方式 - *跟进内容 + 跟进内容