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
zhangxiaoru
9 years ago
Commit
481440d45565d75521af40076c7da8838d466587
1 parent
fdf49b67
brand
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
14 deletions
apps/brand/controllers/brand.js
apps/brand/models/brand.js
apps/brand/views/action/index.hbs
apps/editorial/controllers/editorial.js
apps/editorial/models/editorial.js
public/js/brand/index.page.js
public/js/editorial/index.page.js
apps/brand/controllers/brand.js
View file @
481440d
...
...
@@ -31,17 +31,17 @@ const index = (req, res) => {
{
url
:
'#'
,
name
:
''
,
src
:
'
#
'
src
:
'
//img10.static.yhbimg.com/yhb-img01/2016/07/06/17/01932e57d2dcd5c74afeaffd2525da5834.jpg?imageView2/2/w/570/h/633
'
},
{
url
:
'#'
,
name
:
''
,
src
:
'
#
'
src
:
'
//img10.static.yhbimg.com/yhb-img01/2016/07/06/17/01932e57d2dcd5c74afeaffd2525da5834.jpg?imageView2/2/w/570/h/633
'
},
{
url
:
'#'
,
name
:
''
,
src
:
'
#
'
src
:
'
//img10.static.yhbimg.com/yhb-img01/2016/07/06/17/01932e57d2dcd5c74afeaffd2525da5834.jpg?imageView2/2/w/570/h/633
'
}
],
category
:
result
.
category
...
...
apps/brand/models/brand.js
View file @
481440d
...
...
@@ -16,7 +16,6 @@ const _processListData = (list) => {
list
=
list
||
[];
list
=
camelCase
(
list
);
console
.
log
(
list
);
_
.
forEach
(
list
.
data
.
allList
,
function
(
value
,
index
)
{
...
...
apps/brand/views/action/index.hbs
View file @
481440d
...
...
@@ -9,7 +9,7 @@
<a
href=
"
{{
url
}}
"
target=
"_blank"
>
<div
class=
"g-mask"
></div>
<p
class=
"tips"
>
{{
name
}}
</p>
<img
class=
"lazy"
data-original=
"
{{
src
}}
"
/>
<img
class=
"lazy"
data-original=
"
{{
image
src
370
304
}}
"
/>
</a>
</li>
{{/
each
}}
...
...
apps/editorial/controllers/editorial.js
View file @
481440d
...
...
@@ -28,11 +28,6 @@ const index = (req, res, next) => {
link
:
'/editorial?type=1'
,
pathTitle
:
'资讯'
,
name
:
'资讯'
},
{
link
:
'/'
,
pathTitle
:
'资讯'
,
name
:
'资讯'
}
],
msgTypes
:
result
.
msgTypes
,
...
...
apps/editorial/models/editorial.js
View file @
481440d
...
...
@@ -7,8 +7,7 @@ const _ = require('lodash');
// const moment = require('moment');
const
logger
=
global
.
yoho
.
logger
;
// const helpers = global.yoho.helpers;
const
helpers
=
global
.
yoho
.
helpers
;
const
_processNavData
=
(
list
,
type
)
=>
{
let
formatData
=
[];
...
...
@@ -40,6 +39,7 @@ const _processListData = (list) => {
return
data
;
});
console
.
log
(
artList
)
return
artList
;
};
...
...
public/js/brand/index.page.js
View file @
481440d
...
...
@@ -16,7 +16,7 @@ var $list = $('.brands-list'),
require
(
'../common/header'
);
require
(
'../common/return-top'
);
lazyLoad
(
$
(
'.brand
s-list
img.lazy'
));
lazyLoad
(
$
(
'.brand
-page
img.lazy'
));
// 品牌类别滚动事件
$
(
window
).
scroll
(
function
()
{
...
...
public/js/editorial/index.page.js
View file @
481440d
...
...
@@ -10,7 +10,7 @@ var $ = require('yoho-jquery'),
require
(
'../common/header'
);
require
(
'../common/return-top'
);
lazyLoad
(
$
(
'
#msg-list
img.lazy'
));
lazyLoad
(
$
(
'
.content-msg
img.lazy'
));
$
(
'.editorial-index-page'
).
on
(
'click'
,
'.like-icon'
,
function
()
{
var
$this
=
$
(
this
),
...
...
Please
register
or
login
to post a comment