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
Plain Diff
Browse Files
Authored by
Rock Zhang
2015-12-15 19:07:13 +0800
Commit
6f677cad8c76795fa40d405d37fc1caaf58663e8
2 parents
5cbff9ce
78d482c7
Merge branch 'feature/cart' of git.dev.yoho.cn:web/yohobuy into feature/cart
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
1 deletions
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
static/js/shopping-cart/good.js
View file @
6f677ca
...
...
@@ -33,6 +33,7 @@ lazyLoad({
try_again_css
:
'order-failure'
});
$names
=
$
(
'.name'
);
if
(
$names
.
length
>
0
)
{
$names
[
0
].
mlellipsis
(
2
);
...
...
static/sass/shopping-cart/_index.scss
View file @
6f677ca
...
...
@@ -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 @
6f677ca
{
{>
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 @
6f677ca
...
...
@@ -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