|
|
|
@ -84,13 +84,6 @@
|
|
|
|
<view class="g_mt_10 g_ml_10 g_mr_10">
|
|
|
|
<view class="g_mt_10 g_ml_10 g_mr_10">
|
|
|
|
<g-button btnText="退出登录" type="delete" size="medium" @clickBtn="handleLayout" mode="square" />
|
|
|
|
<g-button btnText="退出登录" type="delete" size="medium" @clickBtn="handleLayout" mode="square" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
<view @click="logOff" style="position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%)" hover-class="thover">
|
|
|
|
|
|
|
|
<view class="tc">
|
|
|
|
|
|
|
|
<text class="g_fs_12 g_c_9">注销账号</text>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<u-popup v-model="showTeamToggle" class="" mode="bottom" uZindex="9999" :closeable="true" border-radius="12" :mask-close-able="true">
|
|
|
|
<u-popup v-model="showTeamToggle" class="" mode="bottom" uZindex="9999" :closeable="true" border-radius="12" :mask-close-able="true">
|
|
|
|
<view class="title g_text_c g_fs_18 g_fw_600 g_pt_32 g_pb_20">切换团队</view>
|
|
|
|
<view class="title g_text_c g_fs_18 g_fw_600 g_pt_32 g_pb_20">切换团队</view>
|
|
|
|
<scroll-view class="g_pb_32" scroll-y="true" hover-class="none" style="height: calc(70vh)">
|
|
|
|
<scroll-view class="g_pb_32" scroll-y="true" hover-class="none" style="height: calc(70vh)">
|
|
|
|
@ -139,46 +132,6 @@ export default {
|
|
|
|
that.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
|
|
|
|
that.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
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("用户点击取消");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 获取团队列表
|
|
|
|
* 获取团队列表
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|