Commit 1cc3dc3d by 梁建民

禁用帐号

parent 1a8f2e77
......@@ -94,7 +94,6 @@ Page({
}, (res) => {}, false, false, true);
}
//登录环信帐号
getApp().getImUser();
......@@ -102,12 +101,32 @@ Page({
url: '/pages/tab/home/home'
});
} else if (res.errcode === 505) {
wx.showModal({
title: '账户被禁用',
content: '请联系0755-23940717,进行解禁',
cancelText: '取消',
confirmText: '联系客服',
success(res) {
if (res.confirm) {
wx.makePhoneCall({
phoneNumber: '0755-23940717'
})
} else if (res.cancel) {
console.log('用户点击取消')
}
}
})
} else {
wx.showToast({
title: res.errmsg,
icon: 'none',
duration: 2000
});
}
}, true);
......
......@@ -231,6 +231,25 @@ Page({
url: '/pages/tab/home/home'
})
} else if (res.errcode === 505) {
wx.showModal({
title: '账户被禁用',
content: '请联系0755-23940717,进行解禁',
cancelText: '取消',
confirmText: '联系客服',
success(res) {
if (res.confirm) {
wx.makePhoneCall({
phoneNumber: '0755-23940717'
})
} else if (res.cancel) {
console.log('用户点击取消')
}
}
})
} else {
wx.showToast({
......
......@@ -311,6 +311,25 @@ Page({
url: '/pages/tab/home/home'
})
} else if (res.errcode === 505) {
wx.showModal({
title: '账户被禁用',
content: '请联系0755-23940717,进行解禁',
cancelText: '取消',
confirmText: '联系客服',
success(res) {
if (res.confirm) {
wx.makePhoneCall({
phoneNumber: '0755-23940717'
})
} else if (res.cancel) {
console.log('用户点击取消')
}
}
})
} else if (res.errcode === 500) {
//图形验证码不正确的时候
this.refreshVerification();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment