Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-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
李伟
cust-app
Commits
e795e619
Commit
e795e619
authored
Jan 15, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了实名认证相关页面,增加了提示信息
parent
0944f24a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
3 deletions
+28
-3
identityauthentication.vue
pagesme/me/identityauthentication.vue
+10
-2
index.vue
webView/index.vue
+18
-1
No files found.
pagesme/me/identityauthentication.vue
View file @
e795e619
...
...
@@ -39,6 +39,7 @@
</u-form-item>
</u--form>
</view>
<view
style=
"text-align: center;color: red"
>
{{
errorAuthMessage
}}
</view>
<view
class=
"to-btn"
@
click=
"authadd"
>
提交
</view>
...
...
@@ -59,7 +60,8 @@
newImageSrc
:
""
,
type
:
0
,
tipMsg
:
''
,
isConfirm
:
false
isConfirm
:
false
,
errorAuthMessage
:
''
}
},
components
:
{
...
...
@@ -68,6 +70,12 @@
onLoad
()
{
},
onShow
(){
//实名认证报错,返回到该页面,回显报错内容
this
.
errorAuthMessage
=
uni
.
getStorageSync
(
'errorAuthMessage'
)
uni
.
removeStorageSync
(
'errorAuthMessage'
)
},
methods
:
{
async
authadd
()
{
const
userInfo
=
uni
.
getStorageSync
(
'userInfo'
)
...
...
@@ -83,7 +91,7 @@
})
}
else
{
uni
.
showToast
({
title
:
res
.
message
,
title
:
res
.
data
.
message
,
icon
:
'none'
})
}
...
...
webView/index.vue
View file @
e795e619
<
template
>
<view>
<web-view
:src=
"'http://106.3.97.198:20162/realAuth.html?token='+token"
></web-view>
<!--
<web-view
:src=
"'http://106.3.97.198:20163/realAuth.html?token='+token"
></web-view>
-->
<web-view
:src=
"'http://192.168.1.7:8080/realAuth.html?token='+token"
@
message=
"receiveMessage"
></web-view>
</view>
</
template
>
<
script
>
import
{
userDetail
}
from
"../api/user"
;
export
default
{
name
:
"index"
,
data
()
{
...
...
@@ -16,6 +19,20 @@ export default {
},
methods
:
{
receiveMessage
(
event
){
console
.
log
(
'error'
,
event
.
detail
.
data
[
0
])
if
(
event
.
detail
.
data
[
0
]
===
'T'
){
//重新调用查询用户详情,存到localStorage中
const
id
=
uni
.
getStorageSync
(
'userInfo'
).
businessId
userDetail
(
id
).
then
(
res
=>
{
uni
.
removeStorageSync
(
'userInfo'
)
uni
.
setStorageSync
(
"userInfo"
,
res
.
data
.
data
)
})
}
else
{
//认证不通过
uni
.
setStorageSync
(
"errorAuthMessage"
,
event
.
detail
.
data
[
0
])
}
},
}
}
...
...
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