Authored by ccbikai

merge code

... ... @@ -33,32 +33,35 @@ function downLoadApp() {
// });
// });
floatLayerCloseHammer = new Hammer($('#float-layer-close')[0]);
floatLayerCloseHammer.on('tap', function(e) {
$('#float-layer-app').hide();
window.setCookie('_float-layer-app', 'id490655927',
{
domain: '.yohobuy.com'
});
window.setCookie('_float-layer-app-close', 1,
{
domain: '.yohobuy.com',
expires: 1
});
});
if ($('#float-layer-close') && $('#float-layer-close')[0]) {
floatLayerCloseHammer = new Hammer($('#float-layer-close')[0]);
floatLayerCloseHammer.on('tap', function(e) {
$('#float-layer-app').hide();
window.setCookie('_float-layer-app', 'id490655927',
{
domain: '.yohobuy.com'
});
window.setCookie('_float-layer-app-close', 1,
{
domain: '.yohobuy.com',
expires: 1
});
});
}
// $('#float-layer-btn').tap(function () {
// downLoadApp('bottom');
// });
floatLayerBtnHammer = new Hammer($('#float-layer-btn')[0]);
floatLayerBtnHammer.on('tap', function(e) {
downLoadApp('bottom');
});
if ($('#float-layer-btn') && $('#float-layer-btn')[0]) {
floatLayerBtnHammer = new Hammer($('#float-layer-btn')[0]);
floatLayerBtnHammer.on('tap', function(e) {
downLoadApp('bottom');
});
if (!window.cookie('_float-layer-app')) {
$('#float-layer-app').show();
} else {
$('#float-layer-app').hide();
if (!window.cookie('_float-layer-app')) {
$('#float-layer-app').show();
} else {
$('#float-layer-app').hide();
}
}
... ...
@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
... ...