From 07d07cb3fb66e34459a655015aae2afb81e777f8 Mon Sep 17 00:00:00 2001 From: ndbs Date: Thu, 27 Oct 2022 15:09:04 +0800 Subject: [PATCH] =?UTF-8?q?app2.0=E8=A7=A3=E7=BB=91=E5=BE=AE=E4=BF=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LearunApp-2.2.0/pages/my.vue | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/my.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/my.vue index 0ae3c6381..f13786925 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/my.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/my.vue @@ -33,6 +33,10 @@ 修改密码 + + + 解绑微信 + @@ -149,6 +153,26 @@ export default { goTo(urlPath) { this.NAV_TO(`/pages/my/${urlPath}`) }, + + // 解绑微信 + unbound(){ + this.CONFIRM('提示', '确定要解绑微信账号?', true).then(res => { + if (res) { + this.LOADING('正在解绑…'); + this.HTTP_POST('learun/adms/user/unbundWeiXin', null, '解绑失败').then(success => { + this.HIDE_LOADING(); + if (!success) { + return + } + this.TOAST("解绑成功") + setTimeout(()=>{ + this.CLEAR_GLOBAL() + this.RELAUNCH_TO('/pages/login') + },1000) + }); + } + }); + }, // 用户头像 url avatarSrc() { @@ -156,7 +180,7 @@ export default { return '' } - return this.API + `/user/img?data=${this.currentUser.userId}` + return this.API + `/learun/adms/user/img?data=${this.currentUser.userId}` } },