Authored by biao

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

@@ -18,12 +18,13 @@ var page = 1, @@ -18,12 +18,13 @@ var page = 1,
18 var conponTmpl = Handlebars.compile($('#tmpl-coupon').html()), 18 var conponTmpl = Handlebars.compile($('#tmpl-coupon').html()),
19 $newCoupon = $('#new-coupon'); 19 $newCoupon = $('#new-coupon');
20 20
  21 +var winH = $(window).height();
  22 +
21 // conponNotAvaliableTmpl = Handlebars.compile($('#tmpl-coupon-not-avaliable').html()), 23 // conponNotAvaliableTmpl = Handlebars.compile($('#tmpl-coupon-not-avaliable').html()),
22 24
23 function fixedLayOut() { 25 function fixedLayOut() {
24 - var $null = $('.null');  
25 -  
26 - var winH = $(window).height(), 26 + var $null = $('.null'),
  27 + navH = $('.nav-title').height(),
27 nullH = $null.height(); 28 nullH = $null.height();
28 29
29 if ($null.length === 0) { 30 if ($null.length === 0) {
@@ -31,7 +32,7 @@ function fixedLayOut() { @@ -31,7 +32,7 @@ function fixedLayOut() {
31 } 32 }
32 33
33 $null.css({ 34 $null.css({
34 - top: winH / 2 - nullH / 2 35 + top: winH / 2 - nullH / 2 + navH
35 }); 36 });
36 } 37 }
37 38
@@ -83,7 +83,7 @@ @@ -83,7 +83,7 @@
83 position: absolute; 83 position: absolute;
84 left: 0; 84 left: 0;
85 top:50%; 85 top:50%;
86 - //@include transform(translateY(-50%)); 86 + @include transform(translateY(-50%));
87 i{ 87 i{
88 width: 100%; 88 width: 100%;
89 height: 120rem / $pxConvertRem; 89 height: 120rem / $pxConvertRem;