Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsalesProgram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1cc3dc3d
authored
Oct 11, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
禁用帐号
parent
1a8f2e77
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
64 additions
and
7 deletions
pages/person/getphone/index.js
pages/person/login/index.js
pages/person/verifycode/index.js
pages/person/getphone/index.js
View file @
1cc3dc3d
...
...
@@ -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
);
...
...
pages/person/login/index.js
View file @
1cc3dc3d
...
...
@@ -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
({
...
...
pages/person/verifycode/index.js
View file @
1cc3dc3d
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment