Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
biao
9 years ago
Commit
be74885065881a3218d8522c94eb6c1f4570892b
1 parent
ca7f2770
update to use pure js to fix the coupin image. code review by XWG
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
static/js/cart/select-coupon.js
static/sass/me/_coupons.scss
static/js/cart/select-coupon.js
View file @
be74885
...
...
@@ -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
});
}
...
...
static/sass/me/_coupons.scss
View file @
be74885
...
...
@@ -83,7 +83,7 @@
position
:
absolute
;
left
:
0
;
top
:
50%
;
//
@include transform(translateY(-50%));
@include
transform
(
translateY
(
-50%
));
i
{
width
:
100%
;
height
:
120rem
/
$pxConvertRem
;
...
...
Please
register
or
login
to post a comment