...
|
...
|
@@ -148,28 +148,30 @@ const bindMobile = (req, res, next) => { |
|
|
|
|
|
settingModel.getUserInfo(uid).then(result=> {
|
|
|
if (result.info.verify_mobile !== '') {
|
|
|
let info = result.info;
|
|
|
|
|
|
info.ellipsisMobile = info.verify_mobile.replace(regMobile, '$1****$2');
|
|
|
info.checkCode = settingModel.cipheriv(info.uid + '.completeverify');
|
|
|
|
|
|
res.display('index', {
|
|
|
module: 'me',
|
|
|
page: 'setting',
|
|
|
isMe: true,
|
|
|
content: {
|
|
|
region: passportHelper.getCountry(),
|
|
|
location: '+86',
|
|
|
nav: mcHandler.getMeCrumb('个人设置'),
|
|
|
navigation: mcHandler.getSideMenu('个人设置'),
|
|
|
banner: 'http://placehold.it/150x120',
|
|
|
validateStep: true,
|
|
|
title: _getTitle(type).typeName,
|
|
|
proTitle: _getTitle(type).proName,
|
|
|
captchaUrl: captchaUrl,
|
|
|
isShowMobile: true,
|
|
|
data: info
|
|
|
}
|
|
|
mcHandler.getMeThumb().then((thumb) => {
|
|
|
let info = result.info;
|
|
|
|
|
|
info.ellipsisMobile = info.verify_mobile.replace(regMobile, '$1****$2');
|
|
|
info.checkCode = settingModel.cipheriv(info.uid + '.completeverify');
|
|
|
|
|
|
res.display('index', {
|
|
|
module: 'me',
|
|
|
page: 'setting',
|
|
|
isMe: true,
|
|
|
content: {
|
|
|
region: passportHelper.getCountry(),
|
|
|
location: '+86',
|
|
|
nav: mcHandler.getMeCrumb('个人设置'),
|
|
|
navigation: mcHandler.getSideMenu('个人设置'),
|
|
|
banner: thumb,
|
|
|
validateStep: true,
|
|
|
title: _getTitle(type).typeName,
|
|
|
proTitle: _getTitle(type).proName,
|
|
|
captchaUrl: captchaUrl,
|
|
|
isShowMobile: true,
|
|
|
data: info
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
next();
|
...
|
...
|
@@ -189,21 +191,24 @@ const bindEmail = (req, res, next) => { |
|
|
|
|
|
info.ellipsisEmail = info.verify_email.replace(regEmail, '$1****');
|
|
|
info.checkCode = settingModel.cipheriv(info.uid + '.completeverify');
|
|
|
res.display('index', {
|
|
|
module: 'me',
|
|
|
page: 'setting',
|
|
|
isMe: true,
|
|
|
content: {
|
|
|
nav: mcHandler.getMeCrumb('个人设置'),
|
|
|
navigation: mcHandler.getSideMenu('个人设置'),
|
|
|
banner: 'http://placehold.it/150x120',
|
|
|
validateStep: true,
|
|
|
title: _getTitle(type).typeName,
|
|
|
proTitle: _getTitle(type).proName,
|
|
|
captchaUrl: captchaUrl,
|
|
|
isShowEmail: true,
|
|
|
data: info
|
|
|
}
|
|
|
|
|
|
mcHandler.getMeThumb().then((thumb) => {
|
|
|
res.display('index', {
|
|
|
module: 'me',
|
|
|
page: 'setting',
|
|
|
isMe: true,
|
|
|
content: {
|
|
|
nav: mcHandler.getMeCrumb('个人设置'),
|
|
|
navigation: mcHandler.getSideMenu('个人设置'),
|
|
|
banner: thumb,
|
|
|
validateStep: true,
|
|
|
title: _getTitle(type).typeName,
|
|
|
proTitle: _getTitle(type).proName,
|
|
|
captchaUrl: captchaUrl,
|
|
|
isShowEmail: true,
|
|
|
data: info
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
next();
|
...
|
...
|
@@ -217,21 +222,23 @@ const modifyPassword = (req, res) => { |
|
|
let type = req.params.type;
|
|
|
let checkCode = settingModel.cipheriv(req.user.uid + '.completeverify');
|
|
|
|
|
|
res.display('index', {
|
|
|
module: 'me',
|
|
|
page: 'setting',
|
|
|
isMe: true,
|
|
|
content: {
|
|
|
nav: mcHandler.getMeCrumb('个人设置'),
|
|
|
navigation: mcHandler.getSideMenu('个人设置'),
|
|
|
banner: 'http://placehold.it/150x120',
|
|
|
validateStep: true,
|
|
|
title: _getTitle(type).typeName,
|
|
|
proTitle: _getTitle(type).proName,
|
|
|
captchaUrl: captchaUrl,
|
|
|
isShowPassword: true,
|
|
|
checkCode: checkCode
|
|
|
}
|
|
|
mcHandler.getMeThumb().then((thumb) => {
|
|
|
res.display('index', {
|
|
|
module: 'me',
|
|
|
page: 'setting',
|
|
|
isMe: true,
|
|
|
content: {
|
|
|
nav: mcHandler.getMeCrumb('个人设置'),
|
|
|
navigation: mcHandler.getSideMenu('个人设置'),
|
|
|
banner: thumb,
|
|
|
validateStep: true,
|
|
|
title: _getTitle(type).typeName,
|
|
|
proTitle: _getTitle(type).proName,
|
|
|
captchaUrl: captchaUrl,
|
|
|
isShowPassword: true,
|
|
|
checkCode: checkCode
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
|
...
|
...
|
@@ -253,25 +260,26 @@ const edit = (req, res)=> { |
|
|
};
|
|
|
let checkCode = settingModel.cipheriv(req.user.uid + '.completeoperate');
|
|
|
|
|
|
res.display('index', {
|
|
|
module: 'me',
|
|
|
page: 'setting',
|
|
|
isMe: true,
|
|
|
content: Object.assign({
|
|
|
region: passportHelper.getCountry(),
|
|
|
location: '+86',
|
|
|
nav: mcHandler.getMeCrumb('个人设置'),
|
|
|
navigation: mcHandler.getSideMenu('个人设置'),
|
|
|
banner: 'http://placehold.it/150x120',
|
|
|
operateStep: true,
|
|
|
stepUrl: '/me/setting/step3/' + type,
|
|
|
captchaUrl: captchaUrl,
|
|
|
checkCode: checkCode
|
|
|
}, result)
|
|
|
mcHandler.getMeThumb().then((thumb) => {
|
|
|
res.display('index', {
|
|
|
module: 'me',
|
|
|
page: 'setting',
|
|
|
isMe: true,
|
|
|
content: Object.assign({
|
|
|
region: passportHelper.getCountry(),
|
|
|
location: '+86',
|
|
|
nav: mcHandler.getMeCrumb('个人设置'),
|
|
|
navigation: mcHandler.getSideMenu('个人设置'),
|
|
|
banner: thumb,
|
|
|
operateStep: true,
|
|
|
stepUrl: '/me/setting/step3/' + type,
|
|
|
captchaUrl: captchaUrl,
|
|
|
checkCode: checkCode
|
|
|
}, result)
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|
|
|
};
|
|
|
|
|
|
/*
|
...
|
...
|
@@ -293,19 +301,21 @@ const success = (req, res)=> { |
|
|
isShowPassword: _getTitle(type).isShowPassword
|
|
|
};
|
|
|
|
|
|
res.display('index', {
|
|
|
module: 'me',
|
|
|
page: 'setting',
|
|
|
isMe: true,
|
|
|
content: Object.assign({
|
|
|
region: passportHelper.getCountry(),
|
|
|
location: '+86',
|
|
|
nav: mcHandler.getMeCrumb('个人设置'),
|
|
|
navigation: mcHandler.getSideMenu('个人设置'),
|
|
|
banner: 'http://placehold.it/150x120',
|
|
|
successStep: true,
|
|
|
captchaUrl: captchaUrl
|
|
|
}, result)
|
|
|
mcHandler.getMeThumb().then((thumb) => {
|
|
|
res.display('index', {
|
|
|
module: 'me',
|
|
|
page: 'setting',
|
|
|
isMe: true,
|
|
|
content: Object.assign({
|
|
|
region: passportHelper.getCountry(),
|
|
|
location: '+86',
|
|
|
nav: mcHandler.getMeCrumb('个人设置'),
|
|
|
navigation: mcHandler.getSideMenu('个人设置'),
|
|
|
banner: thumb,
|
|
|
successStep: true,
|
|
|
captchaUrl: captchaUrl
|
|
|
}, result)
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
|