diff --git a/root/detail/job.vue b/root/detail/job.vue
index 90f35bb..5e96fa2 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 ce6c666..71d769d 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("用户点击取消");
+ }
+ },
+ });
+ },
/**
* 获取团队列表
*/