Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xugong
hls-xcmg-vue-app
Commits
2301e057
Commit
2301e057
authored
Mar 03, 2021
by
Jennie Shi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人信息刷新优化
parent
76f7e5d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
40 deletions
+41
-40
my-info.vue
src/pages/myInfo/my-info.vue
+41
-40
No files found.
src/pages/myInfo/my-info.vue
View file @
2301e057
...
...
@@ -975,50 +975,51 @@ export default {
async
certification
()
{
let
vm
=
this
let
authFlag
=
await
vm
.
getNpCertificationUrl
()
// if (authFlag === true) {
if
(
vm
.
bp_id
)
{
if
(
vm
.
bp_identity
===
'NP_NO'
||
vm
.
bp_identity
===
'ORG_L_NO'
||
vm
.
bp_identity
===
'ORG_AUTH_NO'
)
{
let
url
=
process
.
env
.
basePath
+
'bp_query'
let
param
=
{
bp_id
:
window
.
localStorage
.
bp_id
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
((
result
)
=>
{
hlsPopup
.
hideLoading
()
if
(
result
.
result
===
'S'
)
{
let
data
=
result
.
lists
[
0
]
cordova
.
plugins
.
IdCardPlugin
.
idCardIdentify
(
{
idNum
:
data
.
id_card_no
,
idName
:
data
.
bp_name
,
phoneNum
:
window
.
localStorage
.
user_phone
,
},
function
(
suc
)
{
let
success
=
JSON
.
parse
(
suc
)
if
(
success
.
code
===
1
)
{
vm
.
userQuery
()
}
},
function
(
reason
)
{
let
error
=
JSON
.
parse
(
reason
)
vm
.
hlsPopup
.
showLongCenter
(
'认证失败: '
+
error
.
message
)
}
)
}
else
{
vm
.
hlsPopup
.
showLongCenter
(
result
.
message
)
if
(
authFlag
===
true
)
{
if
(
vm
.
bp_id
)
{
if
(
vm
.
bp_identity
===
'NP_NO'
||
vm
.
bp_identity
===
'ORG_L_NO'
||
vm
.
bp_identity
===
'ORG_AUTH_NO'
)
{
let
url
=
process
.
env
.
basePath
+
'bp_query'
let
param
=
{
bp_id
:
window
.
localStorage
.
bp_id
,
}
})
}
else
if
(
vm
.
bp_identity
===
'ORG_NO'
)
{
hlsPopup
.
showLongCenter
(
'APP端不支持认证企业账号,请移步PC端操作'
)
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
((
result
)
=>
{
hlsPopup
.
hideLoading
()
if
(
result
.
result
===
'S'
)
{
let
data
=
result
.
lists
[
0
]
cordova
.
plugins
.
IdCardPlugin
.
idCardIdentify
(
{
idNum
:
data
.
id_card_no
,
idName
:
data
.
bp_name
,
phoneNum
:
window
.
localStorage
.
user_phone
,
},
function
(
suc
)
{
let
success
=
JSON
.
parse
(
suc
)
if
(
success
.
code
===
1
)
{
vm
.
userQuery
()
}
},
function
(
reason
)
{
let
error
=
JSON
.
parse
(
reason
)
vm
.
hlsPopup
.
showLongCenter
(
'认证失败: '
+
error
.
message
)
}
)
}
else
{
vm
.
hlsPopup
.
showLongCenter
(
result
.
message
)
}
})
}
else
if
(
vm
.
bp_identity
===
'ORG_NO'
)
{
hlsPopup
.
showLongCenter
(
'APP端不支持认证企业账号,请移步PC端操作'
)
}
else
{
hlsPopup
.
showLongCenter
(
'您已认证通过'
)
}
}
else
{
hlsPopup
.
showLongCenter
(
'
您已认证通过
'
)
hlsPopup
.
showLongCenter
(
'
请先进行用户绑定!
'
)
}
}
else
{
hlsPopup
.
showLongCenter
(
'请先进行用户绑定!'
)
}
else
if
(
authFlag
===
false
)
{
hlsPopup
.
showLongCenter
(
'用户已绑定!'
)
vm
.
userQuery
()
}
// } else if (authFlag === false) {
// hlsPopup.showLongCenter('用户已绑定!')
// }
},
// 获取个人认证url
...
...
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