Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
5f301e59be88e387567e9b96c0d0ebadf5f9f817
1 parent
ab30b479
code norm remend
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
apps/editorial/controllers/editorial.js
apps/editorial/models/editorial.js
apps/editorial/controllers/editorial.js
View file @
5f301e5
...
...
@@ -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
;
...
...
apps/editorial/models/editorial.js
View file @
5f301e5
...
...
@@ -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
);
...
...
Please
register
or
login
to post a comment