Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
uedxwg
9 years ago
Commit
1a61dba06a9cc8072f9651504a4c0b8e92fd0e45
1 parent
0e3c8ecb
update/xwg/
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
10 deletions
static/img/me/employ/not.png
static/js/me/coupons.js
static/sass/me/_coupons.scss
static/sass/me/_personal-details.scss
template/m.yohobuy.com/actions/index/home/coupons.phtml
static/img/me/employ/not.png
0 → 100644
View file @
1a61dba
2.85 KB
static/js/me/coupons.js
View file @
1a61dba
var
$
=
require
(
'jquery'
),
Hammer
=
require
(
'yoho.hammer'
);
var
employ
;
$
(
'#yoho-footer'
).
css
(
'position'
,
'static'
);
window
.
rePosFooter
();
$
(
'.employ span'
).
each
(
function
(
index
)
{
employ
=
new
Hammer
(
$
(
'.employ span'
)[
index
]);
employ
.
on
(
'tap'
,
function
(
e
)
{
$
(
'.employ-list'
).
addClass
(
'none'
).
eq
(
index
).
removeClass
(
'none'
);
$
(
'.employ span'
).
removeClass
(
'active'
).
eq
(
index
).
addClass
(
'active'
);
window
.
rePosFooter
();
});
});
\ No newline at end of file
...
...
static/sass/me/_coupons.scss
View file @
1a61dba
...
...
@@ -66,14 +66,47 @@
}
}
.null
{
text-align
:
center
;
color
:
#333
;
margin-top
:
55%
;
font-size
:
56em
/
$pxConvertRem
;
color
:
#333
;
width
:
100%
;
height
:auto
;
overflow
:
hidden
;
position
:
absolute
;
left
:
0
;
top
:
50%
;
@include
transform
(
translateY
(
-60%
));
i
{
width
:
100%
;
height
:
120rem
/
$pxConvertRem
;
overflow
:
hidden
;
display
:
block
;
background
:
image-url
(
'me/employ/not.png'
)
center
top
no-repeat
;
background-size
:auto
100
%
;
}
p
{
width
:
100%
;
height
:
auto
;
overflow
:
hidden
;
padding
:
20rem
/
$pxConvertRem
0
0
;
font-size
:
48em
/
$pxConvertRem
;
text-align
:
center
;
color
:
#444
;
}
a
{
width
:
73
.75%
;
height
:
80rem
/
$pxConvertRem
;
overflow
:
hidden
;
font-size
:
56em
/
$pxConvertRem
;
line-height
:
80rem
/
$pxConvertRem
;
display
:
block
;
background
:
#444444
;
color
:
#fff
;
text-align
:
center
;
margin
:
32em
/
$pxConvertRem
auto
;
@include
border-radius
(
.2rem
);
}
}
}
.none
{
display
:
none
;
}
\ No newline at end of file
}
\ No newline at end of file
...
...
static/sass/me/_personal-details.scss
View file @
1a61dba
...
...
@@ -58,7 +58,7 @@
position
:
absolute
;
right
:
40rem
/
$pxConvertRem
;
top
:
50%
;
@include
transform
(
translateY
(
-50%
))
@include
transform
(
translateY
(
-50%
))
;
}
span
{
color
:
#b0b0b0
;
...
...
template/m.yohobuy.com/actions/index/home/coupons.phtml
View file @
1a61dba
...
...
@@ -13,7 +13,11 @@
</div>
{
{/
used
}
}
{
{^
used
}
}
<p
class=
"null"
>未找到相关相关优惠券</p>
<div
class=
"null"
>
<i></i>
<p>您还没有未使用的优惠券</p>
<a
href=
"{{topURL}}"
>随便逛逛</a>
</div>
{
{/
used
}
}
</div>
<div
class=
"employ-list not none"
>
...
...
@@ -26,7 +30,11 @@
</div>
{
{/
unused
}
}
{
{^
unused
}
}
<p
class=
"null"
>未找到相关相关优惠券</p>
<div
class=
"null"
>
<i></i>
<p>您还没有已使用的优惠券</p>
<a
href=
"{{topURL}}"
>随便逛逛</a>
</div>
{
{/
unused
}
}
</div>
{
{/
couponsUrl
}
}
...
...
Please
register
or
login
to post a comment