Ver código fonte

app2.0解绑微信

娄底高职分支
ndbs 2 anos atrás
pai
commit
07d07cb3fb
1 arquivos alterados com 25 adições e 1 exclusões
  1. +25
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/my.vue

+ 25
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/my.vue Ver arquivo

@@ -33,6 +33,10 @@
<l-icon type="edit" color="blue" />
修改密码
</l-list-item>
<l-list-item @click="unbound" arrow>
<image src="@/static/unbound.png" mode="" style="color: #0081ff;width: 14px;height: 14px;margin: 0 10px 0 5px;"></image>
解绑微信
</l-list-item>
</l-list>

<!-- 关于菜单 -->
@@ -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}`
}
},



Carregando…
Cancelar
Salvar