Showing
2 changed files
with
14 additions
and
4 deletions
1 | var $ = require('jquery'), | 1 | var $ = require('jquery'), |
2 | - Hammer = require('yoho.hammer'); | 2 | + Hammer = require('yoho.hammer'), |
3 | + ellipsis = require('mlellipsis'); | ||
3 | var employ; | 4 | var employ; |
4 | 5 | ||
6 | +ellipsis.init(); | ||
7 | + | ||
8 | +//Żȯ2ʾ | ||
9 | +setTimeout(function() { | ||
10 | + $('.coupon-name').each(function() { | ||
11 | + this.mlellipsis(2); | ||
12 | + }); | ||
13 | +}, 0); | ||
14 | + | ||
5 | window.rePosFooter(); | 15 | window.rePosFooter(); |
6 | $('.yoho-footer').css('border-top', '1px solid #e0e0e0'); | 16 | $('.yoho-footer').css('border-top', '1px solid #e0e0e0'); |
7 | $('.employ span').each(function(index) { | 17 | $('.employ span').each(function(index) { |
1 | .employ{ | 1 | .employ{ |
2 | width: 100%; | 2 | width: 100%; |
3 | height: 90rem / $pxConvertRem; | 3 | height: 90rem / $pxConvertRem; |
4 | - | 4 | + overflow: hidden; |
5 | border-bottom:1px solid #e0e0e0; | 5 | border-bottom:1px solid #e0e0e0; |
6 | position: relative; | 6 | position: relative; |
7 | span{ | 7 | span{ |
@@ -73,7 +73,7 @@ | @@ -73,7 +73,7 @@ | ||
73 | position: absolute; | 73 | position: absolute; |
74 | left: 0; | 74 | left: 0; |
75 | top:50%; | 75 | top:50%; |
76 | - @include transform(translateY(-60%)); | 76 | + @include transform(translateY(-50%)); |
77 | i{ | 77 | i{ |
78 | width: 100%; | 78 | width: 100%; |
79 | height: 120rem / $pxConvertRem; | 79 | height: 120rem / $pxConvertRem; |
@@ -101,7 +101,7 @@ | @@ -101,7 +101,7 @@ | ||
101 | background: #444444; | 101 | background: #444444; |
102 | color: #fff; | 102 | color: #fff; |
103 | text-align: center; | 103 | text-align: center; |
104 | - margin: 32em / $pxConvertRem auto; | 104 | + margin: 60rem / $pxConvertRem auto 0; |
105 | @include border-radius(.2rem); | 105 | @include border-radius(.2rem); |
106 | 106 | ||
107 | } | 107 | } |
-
Please register or login to post a comment