Authored by 郭成尧

'brandcate'

... ... @@ -74,7 +74,7 @@ const getBrandListData = params => {
const getCateListData = params => {
return brandApi.getCateListData(params).then(result => {
if (result.code === 200) {
return camelCase(result.data);
return camelCase(result);
} else {
logger.error('getCateListData api code no 200 or data is null');
}
... ...
... ... @@ -251,10 +251,10 @@
url: '/cate/list.json',
data: data
}).then(result => {
if (result) {
self.$set('brandCate', result);
self.$set('cateNavLeftData', result['MEN男士']);
self.$set('cateNavRightData', result['MEN男士'][0].sub);
if (result.code === 200 && result.data) {
self.$set('brandCate', result.data);
self.$set('cateNavLeftData', result.data['MEN男士']);
self.$set('cateNavRightData', result.data['MEN男士'] ? result.data['MEN男士'][0].sub : []);
}
}).fail(() => {
tip('网络错误');
... ...