From 48e0c074331ae2778a11135da0d662ab35b51598 Mon Sep 17 00:00:00 2001 From: zsk <710162063@qq.com> Date: Thu, 27 Nov 2025 17:44:51 +0800 Subject: [PATCH] 1 --- pages/person/index.vue | 14 ++++++- root/NEUIKit/pages/Chat/message/message-input.vue | 3 +- root/detail/job.vue | 4 +- root/person/avatar.vue | 18 +++++---- root/person/set.vue | 47 +++++++++++++++++++++++ 5 files changed, 73 insertions(+), 13 deletions(-) diff --git a/pages/person/index.vue b/pages/person/index.vue index d57e363..434d406 100644 --- a/pages/person/index.vue +++ b/pages/person/index.vue @@ -120,10 +120,22 @@ @clickItem="goPage('/root/person/set')" /> + + + + + + + + 豫ICP备2025146744号 + + + - diff --git a/root/NEUIKit/pages/Chat/message/message-input.vue b/root/NEUIKit/pages/Chat/message/message-input.vue index 8c16b43..ffb5fca 100644 --- a/root/NEUIKit/pages/Chat/message/message-input.vue +++ b/root/NEUIKit/pages/Chat/message/message-input.vue @@ -845,8 +845,7 @@ const screenHeight = ref(0); screenHeight.value = uni.getSystemInfoSync().windowHeight; const chooseData = ref({}); onMounted(() => { - try { - try { + try { const windowInfo = uni.getWindowInfo(); console.log("windowInfo", windowInfo); let safeTop = windowInfo?.safeArea?.top || 0; diff --git a/root/detail/job.vue b/root/detail/job.vue index 2b54ac6..b4ff3a1 100644 --- a/root/detail/job.vue +++ b/root/detail/job.vue @@ -70,10 +70,10 @@ {{ jobDetail.monthPay ? "丨" + jobDetail.monthPay : "" }} - +
diff --git a/root/person/avatar.vue b/root/person/avatar.vue index d0da4be..f8f1b6e 100644 --- a/root/person/avatar.vue +++ b/root/person/avatar.vue @@ -17,15 +17,17 @@ }" /> - - - + + + + + + + 取消 + 确认 + - - 取消 - 确认 - - + diff --git a/root/person/set.vue b/root/person/set.vue index 601872b..6bf0e45 100644 --- a/root/person/set.vue +++ b/root/person/set.vue @@ -84,6 +84,13 @@ + + + + 注销账号 + + + 切换团队 @@ -132,6 +139,46 @@ export default { that.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false; }, methods: { + logOff() { + var that = this; + uni.showModal({ + title: "注销账号", + content: "确定要注销账号吗?该操作不可逆!", + confirmColor: "#576b95", + success(res) { + if (res.confirm) { + that.G.Post( + that.api.user_changeLoginPwd, + { + tel: uni.getStorageSync("apply-tel"), + oldPassword: "123456", + password: "123456", + }, + () => { + uni.showToast({ + title: "修改成功", + icon: "success", + }); + setTimeout(() => { + that.G.Get(that.api.login_out, {}, () => { + that.G.clearLocalStorage(); + let params = { + path: "", + level: "", + }; + uni.reLaunch({ + url: "/root/person/loginIndex?" + that.G.objToStr(params), + }); + }); + }, 1500); + } + ); + } else if (res.cancel) { + console.log("用户点击取消"); + } + }, + }); + }, /** * 获取团队列表 */