Authored by htoooth

add todo

@@ -94,6 +94,7 @@ class CommentAction extends YohoAction { @@ -94,6 +94,7 @@ class CommentAction extends YohoAction {
94 94
95 this.response.json({ 95 this.response.json({
96 code: result.code, 96 code: result.code,
  97 + // TODO:
97 data: camelCase(_.get(pageResponse, 'list', [])).map((item)=> { 98 data: camelCase(_.get(pageResponse, 'list', [])).map((item)=> {
98 99
99 return { 100 return {
@@ -114,6 +114,8 @@ exports.processFloor = (list, params) => { @@ -114,6 +114,8 @@ exports.processFloor = (list, params) => {
114 let floorData; 114 let floorData;
115 115
116 list = list || []; 116 list = list || [];
  117 +
  118 + // TODO:
117 list = camelCase(list); 119 list = camelCase(list);
118 120
119 // 格式化数据 121 // 格式化数据
@@ -73,6 +73,7 @@ exports.getSaleGoodsData = (params) => { @@ -73,6 +73,7 @@ exports.getSaleGoodsData = (params) => {
73 73
74 // 处理 VIP 商品数据 74 // 处理 VIP 商品数据
75 if (result[1].code === 200) { 75 if (result[1].code === 200) {
  76 + // TODO:
76 let userInfo = result[1].data.vip_info ? camelCase(result[1].data.vip_info) : {}; 77 let userInfo = result[1].data.vip_info ? camelCase(result[1].data.vip_info) : {};
77 78
78 if (_.isEmpty(userInfo)) { 79 if (_.isEmpty(userInfo)) {
@@ -315,6 +316,7 @@ exports.getSaleOthersData = (params, channel) => { @@ -315,6 +316,7 @@ exports.getSaleOthersData = (params, channel) => {
315 316
316 if (!_.isEmpty(result[4])) { 317 if (!_.isEmpty(result[4])) {
317 // 处理 VIP 商品数据 318 // 处理 VIP 商品数据
  319 + // TODO:
318 if (result[4].code === 200 && parseInt(params.saleType, 10) === 2) { 320 if (result[4].code === 200 && parseInt(params.saleType, 10) === 2) {
319 let userInfo = result[4].data.vip_info ? camelCase(result[4].data.vip_info) : {}; 321 let userInfo = result[4].data.vip_info ? camelCase(result[4].data.vip_info) : {};
320 322
@@ -50,6 +50,8 @@ const getNavBar = (data, type) => { @@ -50,6 +50,8 @@ const getNavBar = (data, type) => {
50 50
51 _.forEach(data, item => { 51 _.forEach(data, item => {
52 let obj = {}, 52 let obj = {},
  53 +
  54 + // TODO:
53 lowEn = _.camelCase(item.sort_name_en).toLowerCase(); 55 lowEn = _.camelCase(item.sort_name_en).toLowerCase();
54 56
55 57
@@ -140,6 +142,7 @@ const getSubNav = (data, type) => { @@ -140,6 +142,7 @@ const getSubNav = (data, type) => {
140 let subNav = []; 142 let subNav = [];
141 143
142 _.forEach(data, it => { 144 _.forEach(data, it => {
  145 + // TODO:
143 if (type === _.camelCase(it.sort_name_en).toLowerCase()) { 146 if (type === _.camelCase(it.sort_name_en).toLowerCase()) {
144 _.forEach(it.sub, item => { 147 _.forEach(it.sub, item => {
145 let obj = {}; 148 let obj = {};
@@ -79,6 +79,7 @@ exports.processProductList = (list, options) => { @@ -79,6 +79,7 @@ exports.processProductList = (list, options) => {
79 gender: '2,3' 79 gender: '2,3'
80 }, options); 80 }, options);
81 81
  82 + // TODO:
82 list = camelCase(list); 83 list = camelCase(list);
83 84
84 _.forEach(list, (product) => { 85 _.forEach(list, (product) => {
@@ -241,6 +242,8 @@ exports.processFilter = (list, options) => { @@ -241,6 +242,8 @@ exports.processFilter = (list, options) => {
241 gender: '1,2,3', // 默认选择的性别,默认1,2,3表示所有 242 gender: '1,2,3', // 默认选择的性别,默认1,2,3表示所有
242 exclude: null // 需要排除的字段 243 exclude: null // 需要排除的字段
243 }, options); 244 }, options);
  245 +
  246 + // TODO:
244 list = camelCase(list); 247 list = camelCase(list);
245 248
246 _.forEach(list, (item, key) => { 249 _.forEach(list, (item, key) => {
@@ -10,6 +10,7 @@ module.exports = (list) => { @@ -10,6 +10,7 @@ module.exports = (list) => {
10 const formatData = []; 10 const formatData = [];
11 11
12 list = list || []; 12 list = list || [];
  13 + // TODO:
13 list = camelCase(list); 14 list = camelCase(list);
14 15
15 _.forEach(list, (floor) => { 16 _.forEach(list, (floor) => {