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("用户点击取消");
+ }
+ },
+ });
+ },
/**
* 获取团队列表
*/