Authored by biao

update to use pure js to fix the coupin image. code review by XWG

... ... @@ -18,12 +18,13 @@ var page = 1,
var conponTmpl = Handlebars.compile($('#tmpl-coupon').html()),
$newCoupon = $('#new-coupon');
var winH = $(window).height();
// conponNotAvaliableTmpl = Handlebars.compile($('#tmpl-coupon-not-avaliable').html()),
function fixedLayOut() {
var $null = $('.null');
var winH = $(window).height(),
var $null = $('.null'),
navH = $('.nav-title').height(),
nullH = $null.height();
if ($null.length === 0) {
... ... @@ -31,7 +32,7 @@ function fixedLayOut() {
}
$null.css({
top: winH / 2 - nullH / 2
top: winH / 2 - nullH / 2 + navH
});
}
... ...
... ... @@ -83,7 +83,7 @@
position: absolute;
left: 0;
top:50%;
//@include transform(translateY(-50%));
@include transform(translateY(-50%));
i{
width: 100%;
height: 120rem / $pxConvertRem;
... ...