Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
ccbikai(👎🏻🍜)
8 years ago
Commit
2f00b31dade9162f9fc6152bf2ba6085eb57c332
2 parents
32950ce4
59aefe3c
Merge remote-tracking branch 'origin/hotfix/plusstar' into grey
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
22 deletions
apps/guang/models/plusstar.js
apps/guang/views/action/plusstar/resources-template.hbs
public/js/guang/plusstar-index.page.js
public/scss/guang/plusstar/_index.css
apps/guang/models/plusstar.js
View file @
2f00b31
...
...
@@ -104,9 +104,10 @@ const getResources = (params, options) => {
}
list
=
{
id
:
res
.
template_id
,
title
:
res
.
data
.
title
,
more_url
:
res
.
data
.
more_url
,
more_name
:
res
.
data
.
more_name
,
moreUrl
:
res
.
data
.
more_url
,
moreName
:
res
.
data
.
more_name
,
image
:
res
.
data
.
image
};
...
...
@@ -115,8 +116,8 @@ const getResources = (params, options) => {
case
'titleFloor'
:
list
=
{
name
:
res
.
data
.
title
.
name
,
more_url
:
res
.
data
.
title
.
more_url
,
more_name
:
res
.
data
.
title
.
more_name
moreUrl
:
res
.
data
.
title
.
more_url
,
moreName
:
res
.
data
.
title
.
more_name
};
if
(
res
.
data
.
title
.
name
===
'热门商品'
)
{
...
...
apps/guang/views/action/plusstar/resources-template.hbs
View file @
2f00b31
...
...
@@ -45,7 +45,7 @@
<div
class=
"focus-left-right"
>
{{#
each
result
.
focus2
.
data
}}
<a
href=
"
{{
url
}}
"
title=
"
{{
title
}}
"
>
<img
class=
"lazy"
data-original
=
"
{{
image
src
250
250
}}
"
>
<img
src
=
"
{{
image
src
250
250
}}
"
>
</a>
{{/
each
}}
</div>
...
...
public/js/guang/plusstar-index.page.js
View file @
2f00b31
var
$
=
require
(
'yoho-jquery'
),
tip
=
require
(
'../plugin/tip'
),
Swiper
=
require
(
'yoho-swiper'
),
loading
=
require
(
'../plugin/loading'
),
lazyLoad
=
require
(
'yoho-jquery-lazyload'
);
loading
=
require
(
'../plugin/loading'
);
var
plusstar
=
{},
$footer
=
$
(
'#yoho-footer'
);
require
(
'yoho-jquery-lazyload'
);
require
(
'../common'
);
plusstar
=
{
...
...
@@ -82,16 +82,8 @@ plusstar = {
that
.
resInit
();
loading
.
hideLoadingMask
();
lazyLoad
(
$
(
'img.lazy'
));
// 处理左右滑动,未加载的图片
setTimeout
(
function
()
{
$
(
'img.lazy'
).
each
(
function
()
{
if
(
$
(
this
).
attr
(
'src'
)
!==
$
(
this
).
data
(
'original'
))
{
$
(
this
).
attr
(
'src'
,
$
(
this
).
data
(
'original'
));
}
});
},
40
);
$
(
'.plusstar-resources'
).
find
(
'img.lazy'
).
lazyload
();
// 设置滚动条的位置
if
(
window
.
localStorage
)
{
...
...
public/scss/guang/plusstar/_index.css
View file @
2f00b31
...
...
@@ -163,13 +163,11 @@
a
{
display
:
inline-block
;
margin
:
0
15px
;
width
:
213px
;
height
:
213px
;
}
img
{
width
:
100%
;
height
:
100%
;
width
:
213px
;
height
:
213px
;
}
}
...
...
@@ -180,7 +178,11 @@
a
{
display
:
inline-block
;
width
:
50%
;
overflow
:
hidden
;
img
{
width
:
320px
;
height
:
320px
;
}
}
}
...
...
Please
register
or
login
to post a comment