Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
5 years ago
Committed by
shuaiguo
5 years ago
Commit
229b160f8f186507f48015cd6275b2253ee361b6
1 parent
18e2215e
ssr log & auth loading
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletions
apps/pages/passport/auth.vue
doraemon/middleware/ssr.js
apps/pages/passport/auth.vue
View file @
229b160
...
...
@@ -154,12 +154,21 @@ export default {
this.toast('上传失败');
},
submitCert() {
if (this.$createToast) {
this.submiting = this.$createToast({
txt: '认证中',
mask: true
}).show();
}
this.userRealCertification({
certName: this.name,
certNo: this.idCode,
frontImageUrl: this.idCardFront,
backImageUrl: this.idCardBack
}).then(res => {
this.submiting && this.submiting.hide();
if (res.code === 200) {
if (this.$route.query.refer) {
this.$router.push({
...
...
@@ -175,6 +184,13 @@ export default {
time: 1000
}).show();
}
}).catch(e => {
this.submiting && this.submiting.hide();
this.$createToast && this.$createToast({
txt: '网络异常,请稍后重试',
type: 'txt',
time: 1000
}).show();
});
}
},
...
...
doraemon/middleware/ssr.js
View file @
229b160
...
...
@@ -135,7 +135,15 @@ const render = (route) => {
const
isDegrade
=
_
.
get
(
req
.
app
.
locals
.
wap
,
'webapp.degrade'
,
false
);
logger
.
info
(
`
$
{
req
.
yoho
.
clientIp
}
|
$
{
req
.
url
}
|
uid
:
$
{
req
.
user
.
uid
}
|
ua
:
$
{
req
.
get
(
'user-agent'
)}
|
$
{
new
Date
()}
`
);
logger
.
info
(
JSON
.
stringify
({
type
:
'ssr_page_access'
,
app
:
config
.
appName
,
ip
:
req
.
yoho
.
clientIp
,
path
:
req
.
url
,
uid
:
req
.
user
.
uid
,
ua
:
req
.
get
(
'user-agent'
),
time
:
new
Date
()
}));
if
(
isDegrade
)
{
return
res
.
send
(
degradeHtml
);
...
...
Please
register
or
login
to post a comment