Authored by xuqi

suspend cart

@import "new-arrival", "discount", "list", "detail";
\ No newline at end of file
@import "new-arrival", "discount", "list", "detail", "suspend-cart";
\ No newline at end of file
... ...
.suspend-cart {
position: fixed;
width: 44px;
height: 44px;
line-height: 44px;
border-radius: 50%;
background: rgba(0,0,0,0.3);
text-align: center;
right: 15px;
bottom: 70px;
z-index: 10;
.iconfont {
color: #fff;
font-size: 22px;
}
.cart-count {
position: absolute;
width: 18px;
height: 18px;
line-height: 18px;
border-radius: 50%;
background: #f00;
top: 0;
right: 0;
color: #fff;
}
}
\ No newline at end of file
... ...
... ... @@ -120,4 +120,6 @@
{{#if query}}
<input id="query" type="hidden" value={{query}}>
{{/if}}
{{> product/suspend-cart}}
{{/ goodList}}
\ No newline at end of file
... ...
<div id="suspend-cart" class="suspend-cart">
<a href={{cartUrl}}>
<span class="iconfont">&#xe62c;</span>
</a>
<span class="cart-count hide">1</span>
</div>
\ No newline at end of file
... ...