...
|
...
|
@@ -16,10 +16,8 @@ const helpers = global.yoho.helpers; |
|
|
* @return {[type]} [description]
|
|
|
*/
|
|
|
exports.index = (req, res, next) => {
|
|
|
// if (!req.user.uid) {
|
|
|
// res.redirect(helpers.urlFormat('/signin.html'));
|
|
|
// }
|
|
|
let uid = '20001048';
|
|
|
|
|
|
let uid = req.user.uid;
|
|
|
|
|
|
let responseData = {
|
|
|
module: 'home',
|
...
|
...
|
@@ -42,9 +40,6 @@ exports.index = (req, res, next) => { |
|
|
*/
|
|
|
exports.editUserInfo = (req, res, next) => {
|
|
|
|
|
|
if (!req.user.uid) {
|
|
|
res.redirect(helpers.urlFormat('/signin.html'));
|
|
|
}
|
|
|
let uid = req.user.uid;
|
|
|
|
|
|
// 真实数据输出
|
...
|
...
|
@@ -62,9 +57,6 @@ exports.editUserInfo = (req, res, next) => { |
|
|
*/
|
|
|
exports.editUserContactInfo = (req, res, next) => {
|
|
|
|
|
|
if (!req.user.uid) {
|
|
|
res.redirect(helpers.urlFormat('/signin.html'));
|
|
|
}
|
|
|
let uid = req.user.uid;
|
|
|
|
|
|
// 真实数据输出
|
...
|
...
|
@@ -81,9 +73,7 @@ exports.editUserContactInfo = (req, res, next) => { |
|
|
* @return {[type]} [description]
|
|
|
*/
|
|
|
exports.editUserHabitsInfo = (req, res, next) => {
|
|
|
if (!req.user.uid) {
|
|
|
res.redirect(helpers.urlFormat('/signin.html'));
|
|
|
}
|
|
|
|
|
|
let uid = req.user.uid;
|
|
|
|
|
|
// 真实数据输出
|
...
|
...
|
@@ -101,9 +91,7 @@ exports.editUserHabitsInfo = (req, res, next) => { |
|
|
* @return {[type]} [description]
|
|
|
*/
|
|
|
exports.editUserLikeBrand = (req, res, next) => {
|
|
|
if (!req.user.uid) {
|
|
|
res.redirect(helpers.urlFormat('/signin.html'));
|
|
|
}
|
|
|
|
|
|
let uid = req.user.uid;
|
|
|
|
|
|
// 真实数据输出
|
...
|
...
|
|