...
|
...
|
@@ -7,7 +7,8 @@ |
|
|
'use strict';
|
|
|
const api = global.yoho.API;
|
|
|
const userApi = require('./user-api');
|
|
|
const searchApi = global.yoho.SearchAPI;
|
|
|
|
|
|
// const searchApi = global.yoho.SearchAPI;
|
|
|
const Images = require('../../../utils/images');
|
|
|
const headerModel = require('../../../doraemon/models/header');
|
|
|
|
...
|
...
|
@@ -249,12 +250,11 @@ const getUserInfo = (channel, uid) => { |
|
|
]).then(result => {
|
|
|
let finalResult = {},
|
|
|
headerData = {},
|
|
|
userInfo = {},
|
|
|
brandList;
|
|
|
userInfo = {};
|
|
|
|
|
|
brandList = searchApi.get('/brand/list.json', {is_hot: 'Y'}, {
|
|
|
cache: true
|
|
|
});
|
|
|
// brandList = searchApi.get('/brand/list.json', {is_hot: 'Y'}, {
|
|
|
// cache: true
|
|
|
// });
|
|
|
|
|
|
if (result[0].code === 200) {
|
|
|
headerData = result[0];
|
...
|
...
|
@@ -481,6 +481,7 @@ const getUserInfo = (channel, uid) => { |
|
|
finalResult.favorite = {
|
|
|
subTitle: '喜爱品牌',
|
|
|
submitId: 'favorite-brand'
|
|
|
|
|
|
// likebrand: (substr($userLikeBrandInfo['likeBrandStr'], 0, 1) == ',') ?
|
|
|
// $userLikeBrandInfo['likeBrandStr'] : ',' . $userLikeBrandInfo['likeBrandStr'],
|
|
|
// favoriteBrands: $userLikeBrandInfo['favBrands'],
|
...
|
...
|
@@ -530,7 +531,7 @@ const editUserHabitsInfo = (req, uid) => { |
|
|
if (req.body.dress) {
|
|
|
dressArr = req.body.dress;
|
|
|
habitsInfo.dress = dressArr.join(',');
|
|
|
}else {
|
|
|
} else {
|
|
|
habitsInfo.dress = '';
|
|
|
}
|
|
|
|
...
|
...
|
|