注销账户

cyl/develop
zsk 12 months ago
parent 26d9c6bb8d
commit 3de02cea47

@ -64,6 +64,42 @@ Page({
});
});
// wx.navigateBack({
// delta: 1
// })
} else if (res.cancel) {
console.log("用户点击取消");
}
},
});
},
logOff: function () {
var that = this;
wx.showModal({
title: "注销账号",
content: "确定要注销账号吗?该操作不可逆!",
confirmColor: "#1890ff",
success(res) {
if (res.confirm) {
customRequest("/yishoudan/updatePasswordByPwd", {
header: 'headers', method: 'post', data: {
tel: app.globalData.user.tel,
oldPassword: 'qqqq1111',
password:'1111qqqq',
}
}).then(({ data }) => {
if (data.status == 200) {
app.showTips(that, "修改成功");
setTimeout(() => {
wx.reLaunch({
url: "/pages/login/index?type=psw",
success: (result) => { },
});
}, 2000);
} else {
app.showTips(that, data.msg);
}
})
// wx.navigateBack({
// delta: 1
// })
@ -73,4 +109,5 @@ Page({
},
});
},
});

@ -41,4 +41,13 @@
<text class="f16">退出登录</text>
</view>
</view>
<view catchtap="logOff" hover-class="thover">
<view class="tc mt120">
<text class="f12 c9">注销账号</text>
</view>
</view>
</view>

Loading…
Cancel
Save