Explorar el Código

app2.0 解绑微信

临城职教中职
杨晓琪 hace 2 años
padre
commit
a157d54199
Se han modificado 3 ficheros con 31 adiciones y 7 borrados
  1. +7
    -7
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js
  2. +24
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/my.vue
  3. BIN
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/static/unbound.png

+ 7
- 7
Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js Ver fichero

@@ -6,9 +6,9 @@ export default {
// 是否允许用户注册
"enableSignUp": true,
//请求数据的接口地址;可以配置多个,开发环境下登录页会出现选择菜单供您选择
// "apiHost": [
// "http://123.57.209.16:31173/"
// ],
"apiHost": [
"http://123.57.209.16:31173/"
],
// "apiHost": [
// "http://123.57.209.16:31174/learun/adms"
// "https://wx.qjkjedu.com/learun/adms"
@@ -20,10 +20,10 @@ export default {
// "apiHost": [
// "http://192.168.2.98:8088/"
// ],
"apiHost": [
// "http://localhost:31173/"
"http://cyzjzx.gnway.cc:30626/"
],
// "apiHost": [
// // "http://localhost:31173/"
// "http://cyzjzx.gnway.cc:30626/"
// ],
"webHost":"http://cyzjzx.gnway.cc:29618/",
// 开发环境下自动填充登录账号密码,与接口地址一一对应,只在开发环境下显示
"devAccount": [


+ 24
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/my.vue Ver fichero

@@ -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() {


BIN
Learun.Framework.Ultimate V7/LearunApp-2.2.0/static/unbound.png Ver fichero

Antes Después
Anchura: 16  |  Altura: 16  |  Tamaño: 452 B

Cargando…
Cancelar
Guardar