Authored by lore-w

意见反馈懒加载

... ... @@ -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) {
... ...
... ... @@ -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;
... ...
... ... @@ -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}}
<h2>{{title}}</h2>
<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
... ...