Toggle navigation
Toggle navigation
This project
Loading...
Sign in
chenchao
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
2015-12-15 18:08:22 +0800
Commit
62442b4b8a311310420bc67b653eb27d22044d60
1 parent
bfbfebb7
'购物车为空,展示页面'
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
3 deletions
framework
static/js/shopping-cart/good.js
static/sass/shopping-cart/_index.scss
template/m.yohobuy.com/actions/index/shoppingCart/index.phtml
template/m.yohobuy.com/partials/layout/use.phtml
framework
@
75bbc3b0
Subproject commit
e9d066dd88a8e7e37103021c427a205a5cfcdcec
Subproject commit
75bbc3b075de19f239532f60c5995d06c5f814e2
...
...
static/js/shopping-cart/good.js
View file @
62442b4
...
...
@@ -24,7 +24,7 @@ ellipsis.init();
lazyLoad
(
$
(
'.lazy'
));
$
(
'.name'
)[
0
].
mlellipsis
(
2
);
//
$('.name')[0].mlellipsis(2);
//TIP:事件委托在.cart-goods,商品列表的容器统一需要有.cart-goods
$
(
'.cart-goods'
).
on
(
'touchstart'
,
'.checkbox'
,
function
()
{
...
...
static/sass/shopping-cart/_index.scss
View file @
62442b4
...
...
@@ -178,3 +178,36 @@
}
}
}
.shopping-cart-zero
{
.cart-zero
{
width
:
100%
;
height
:
auto
;
padding-top
:
2rem
;
padding-bottom
:
20%
;
i
{
font-size
:
6em
;
display
:
block
;
margin
:
0
auto
;
text-align
:
center
;
color
:
#505050
;
}
p
{
display
:
block
;
text-align
:
center
;
font-size
:
1
.2em
;
color
:
#505050
;
padding
:
.6rem
0
;
}
a
{
width
:
27%
;
height
:
1
.2rem
;
overflow
:
hidden
;
line-height
:
1
.2rem
;
border
:
1px
solid
#505050
;
border-radius
:
.2rem
;
display
:
block
;
margin
:
0
auto
;
text-align
:
center
;
}
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/index/shoppingCart/index.phtml
View file @
62442b4
{
{>
layout/header
}
}
<div
class=
"shopping-cart-page yoho-page"
>
<div
class=
"shopping-cart-page yoho-page"
style=
"display: none;"
>
{
{#
shoppingCart
}
}
{
{#if
cartNav
}
}
<ul
class=
"cart-nav clearfix"
>
...
...
@@ -44,4 +44,12 @@
{
{/
shoppingCart
}
}
</div>
<div
class=
"shopping-cart-zero yoho-page"
>
<div
class=
"cart-zero"
>
<i
class=
"iconfont"
>
62
c</i>
<p>您的购物车暂无商品</p>
<a
href=
""
>随便逛逛</a>
</div>
{
{>
product/recommend-for-you
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/layout/use.phtml
View file @
62442b4
...
...
@@ -206,6 +206,7 @@
{{#if shoppingCartPage}}
<script>
seajs.use('js/shopping-cart/cart');
seajs.use('js/product/recommend-for-you');
</script>
{{/if}}
{{#if giftAdvancePage}}
...
...
Please
register
or
login
to post a comment