Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
lore-w
9 years ago
Commit
54dc0a1fc9c926420d4fde71dde5ae03bc2c74a7
1 parent
28280ec1
意见反馈懒加载
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
7 deletions
static/js/me/suggest.js
static/sass/me/_suggest.scss
template/m.yohobuy.com/actions/index/home/suggest.phtml
static/js/me/suggest.js
View file @
54dc0a1
...
...
@@ -7,6 +7,7 @@
var
$
=
require
(
'jquery'
),
Hammer
=
require
(
'yoho.hammer'
),
lazyLoad
=
require
(
'yoho.lazyload'
),
Handlebars
=
require
(
'yoho.handlebars'
);
var
diaLog
=
require
(
'./dialog'
);
...
...
@@ -53,6 +54,8 @@ $('#upload-img').uploadifive({
}
});
lazyLoad
();
headerNavHammer
=
new
Hammer
(
document
.
getElementById
(
'yoho-header'
));
headerNavHammer
.
on
(
'tap'
,
function
(
e
)
{
...
...
static/sass/me/_suggest.scss
View file @
54dc0a1
...
...
@@ -123,8 +123,8 @@ $suggest: sprite-map("me/suggest/*.png",$spacing: 5px);
//发表意见
.create-new-suggest
{
display
:
inline-block
;
color
:
#444
;
display
:
block
;
width
:
100%
;
height
:
pxToRem
(
88px
);
line-height
:
pxToRem
(
88px
);
...
...
@@ -132,7 +132,11 @@ $suggest: sprite-map("me/suggest/*.png",$spacing: 5px);
font-size
:
pxToRem
(
30px
);
border-top
:
1px
solid
#e0e0e0
;
border-bottom
:
1px
solid
#e0e0e0
;
margin-top
:
-1px
;
a
{
color
:
#444
;
display
:
block
;
}
>
span
{
color
:
#b0b0b0
;
...
...
template/m.yohobuy.com/actions/index/home/suggest.phtml
View file @
54dc0a1
...
...
@@ -9,7 +9,9 @@
<div
class=
"suggest-content"
id=
"suggest-content"
>
{
{#
suggestContent
}
}
<div
class=
"suggest-item"
data-id=
"{{suggest_id}}"
>
<img
src=
"{{imgUrl}}"
alt=
""
/>
{
{#
imgUrl
}
}
<img
class=
"lazy"
data-original=
"{{.}}"
alt=
""
/>
{
{/
imgUrl
}
}
<h
2
>
{
{title
}
}</h
2
>
<p>
{
{content
}
}</p>
...
...
@@ -42,9 +44,11 @@
{
{/
suggestContent
}
}
</div>
<a
class=
"create-new-suggest"
href=
"./suggestSub"
>
反馈问题<span>(功能意见,界面意见)</span>
</a>
<div
class=
"create-new-suggest"
>
<a
href=
"./suggestSub"
>
反馈问题<span>(功能意见,界面意见)</span>
</a>
</div>
{
{/
suggest
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment