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
ccbikai
9 years ago
Commit
b5b3d8cc7cc0e88ccfee4ea566c103767eaceeb9
2 parents
bf7f162e
61841588
merge code
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
63 additions
and
23 deletions
static/js/index/footer.js
static/sass/product/_index.scss
static/sass/product/_suspend-cart.scss
template/m.yohobuy.com/partials/product/list.phtml
template/m.yohobuy.com/partials/product/suspend-cart.phtml
static/js/index/footer.js
View file @
b5b3d8c
...
...
@@ -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
();
}
}
...
...
static/sass/product/_index.scss
View file @
b5b3d8c
@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
...
...
static/sass/product/_suspend-cart.scss
0 → 100644
View file @
b5b3d8c
.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
...
...
template/m.yohobuy.com/partials/product/list.phtml
View file @
b5b3d8c
...
...
@@ -120,4 +120,6 @@
{
{#if
query
}
}
<input
id=
"query"
type=
"hidden"
value=
{
{query
}
}>
{
{/if
}
}
{
{>
product/suspend-cart
}
}
{
{/
goodList
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/product/suspend-cart.phtml
0 → 100644
View file @
b5b3d8c
<div id="suspend-cart" class="suspend-cart">
<a href={{cartUrl}}>
<span class="iconfont"></span>
</a>
<span class="cart-count hide">1</span>
</div>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment