Authored by hf

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

... ... @@ -12,7 +12,9 @@ var orderId = $('#order-detail').data('id');
var optHammer;
lazyLoad();
lazyLoad({
try_again_css: 'order-failure'
});
//订单删除
optHammer = new Hammer(document.getElementsByClassName('opt')[0]);
... ...
... ... @@ -58,13 +58,17 @@ function getOrders(option) {
if (opt.page === 1) {
$curContainer.html(data);
lazyLoad($curContainer.find('.lazy'));
lazyLoad($curContainer.find('.lazy'), {
try_again_css: 'order-failure'
});
} else {
num = $curContainer.children('.order').length;
$curContainer.append(data);
//lazyload
lazyLoad($curContainer.children('.order:gt(' + (num - 1) + ')').find('.lazy'));
lazyLoad($curContainer.children('.order:gt(' + (num - 1) + ')').find('.lazy'), {
try_again_css: 'order-failure'
});
}
window.rePosFooter(); //重新计算底部位置
... ... @@ -78,7 +82,9 @@ function getOrders(option) {
});
}
lazyLoad();
lazyLoad({
try_again_css: 'order-failure'
});
//初始化导航
(function() {
... ...
... ... @@ -21,7 +21,7 @@
"yoho.iswiper": "3.0.1",
"iscroll": "5.1.2",
"import-style": "1.0.0",
"yoho.lazyload": "1.1.2",
"yoho.lazyload": "1.1.3",
"yoho.handlebars": "3.0.3",
"yoho.hammer": "2.0.4"
},
... ...
.order-failure {
background-image: image-url('lazy-failure/order-good.jpg');
background-size: 100%;
}
\ No newline at end of file
... ...
... ... @@ -77,6 +77,14 @@
.hot-brands {
padding-top: 178rem / $pxConvertRem;
.floor-header {
padding: 0;
}
.brands-swiper {
border-top: 0;
}
}
.hot-brand {
... ...
... ... @@ -109,6 +109,7 @@
}
img {
display: inline-block;
max-width: 100%;
max-height: 100%;
vertical-align: middle;
... ...
... ... @@ -143,6 +143,7 @@ a {
@import "layout/footer";
@import "layout/footer_tab";
@import "good";
@import "lazy-failure";
@import "filter";
@import "loading";
@import "passport/index";
... ...
... ... @@ -48,8 +48,7 @@ $basicBtnC:#eb0313;
//padding: pxToRem(20px) pxToRem(12px);
padding: pxToRem(6px) 3%;
width: 49.9%;
border-bottom: pxToRem(4px) solid #fff;
border-right: pxToRem(4px) solid #fff;
border: 1px solid #fff;
font-size: pxToRem(24px);
background-color: $tableCellC;
word-wrap: break-word;
... ... @@ -69,8 +68,7 @@ $basicBtnC:#eb0313;
width: 49.9%;
background-color: $tableCellC;
box-sizing: border-box;
border-bottom: 1px solid #fff;
border-right: 1px solid #fff;
border: 1px solid #fff;
width: 49.9%;
height: 100%;
float: left;
... ...
<div class="hot-brands">
{{^ brandPage}}
{{> home/floor_header}}
{{/ brandPage}}
<div class="brands-swiper">
<ul class="brands-list swiper-wrapper clearfix">
{{# list}}
... ...