Authored by xuqi

code norm remend

... ... @@ -8,7 +8,7 @@
const editorialModel = require('../models/editorial');
const index = (req, res,next) => {
const index = (req, res, next) => {
let pageNum = req.query.page || 1;
let type = req.query.type || 0;
... ...
... ... @@ -5,7 +5,8 @@ const serviceAPI = global.yoho.ServiceAPI;
const camelCase = global.yoho.camelCase;
const _ = require('lodash');
const logger = global.yoho.logger;
//const helpers = global.yoho.helpers;
// const helpers = global.yoho.helpers;
const _processNavData = (list, type) => {
let formatData = [];
... ... @@ -31,11 +32,11 @@ const _processNavData = (list, type) => {
};
const _processListData = (list) => {
//let formatData = [];
// let formatData = [];
list = list || [];
//list = camelCase(list);
// list = camelCase(list);
'2016年06月02日 15:56'.match(/^(\d+)(\d+)(\d+)(\d+):(\d+)$/, function(data) {
console.log(data);
... ...