Authored by yyq
Committed by shuaiguo

ssr log & auth loading

... ... @@ -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();
});
}
},
... ...
... ... @@ -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);
... ...