Authored by htoooth

add todo

... ... @@ -94,6 +94,7 @@ class CommentAction extends YohoAction {
this.response.json({
code: result.code,
// TODO:
data: camelCase(_.get(pageResponse, 'list', [])).map((item)=> {
return {
... ...
... ... @@ -114,6 +114,8 @@ exports.processFloor = (list, params) => {
let floorData;
list = list || [];
// TODO:
list = camelCase(list);
// 格式化数据
... ...
... ... @@ -73,6 +73,7 @@ exports.getSaleGoodsData = (params) => {
// 处理 VIP 商品数据
if (result[1].code === 200) {
// TODO:
let userInfo = result[1].data.vip_info ? camelCase(result[1].data.vip_info) : {};
if (_.isEmpty(userInfo)) {
... ... @@ -315,6 +316,7 @@ exports.getSaleOthersData = (params, channel) => {
if (!_.isEmpty(result[4])) {
// 处理 VIP 商品数据
// TODO:
if (result[4].code === 200 && parseInt(params.saleType, 10) === 2) {
let userInfo = result[4].data.vip_info ? camelCase(result[4].data.vip_info) : {};
... ...
... ... @@ -50,6 +50,8 @@ const getNavBar = (data, type) => {
_.forEach(data, item => {
let obj = {},
// TODO:
lowEn = _.camelCase(item.sort_name_en).toLowerCase();
... ... @@ -140,6 +142,7 @@ const getSubNav = (data, type) => {
let subNav = [];
_.forEach(data, it => {
// TODO:
if (type === _.camelCase(it.sort_name_en).toLowerCase()) {
_.forEach(it.sub, item => {
let obj = {};
... ...
... ... @@ -79,6 +79,7 @@ exports.processProductList = (list, options) => {
gender: '2,3'
}, options);
// TODO:
list = camelCase(list);
_.forEach(list, (product) => {
... ... @@ -241,6 +242,8 @@ exports.processFilter = (list, options) => {
gender: '1,2,3', // 默认选择的性别,默认1,2,3表示所有
exclude: null // 需要排除的字段
}, options);
// TODO:
list = camelCase(list);
_.forEach(list, (item, key) => {
... ...
... ... @@ -10,6 +10,7 @@ module.exports = (list) => {
const formatData = [];
list = list || [];
// TODO:
list = camelCase(list);
_.forEach(list, (floor) => {
... ...