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
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
9d540667dff4be94213e35dd2a07a71d2d04faf9
1 parent
fc4bb1f4
remove autohide
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
16 deletions
static/js/cart/cart.js
static/sass/cart/_index.scss
template/m.yohobuy.com/partials/cart/cart-content.phtml
static/js/cart/cart.js
View file @
9d54066
...
...
@@ -180,16 +180,5 @@ $('.chose').on('touchend', function() {
chosePanel
.
show
();
});
function
notAllowScroll
()
{
var
docH
=
$
(
document
).
height
(),
winH
=
$
(
window
).
height
();
if
(
docH
-
winH
<=
10
)
{
$
(
'body'
).
css
(
'overflow'
,
'hidden'
);
}
}
notAllowScroll
();
//提前触发lazyload
$
(
window
).
scrollTop
(
1
).
scrollTop
(
0
);
...
...
static/sass/cart/_index.scss
View file @
9d54066
...
...
@@ -15,6 +15,11 @@
.cart-content
>
*
{
background
:
#fff
;
&
:first-child
{
border-top
:
none
;
margin-top
:
0
;
}
}
.cart-nav
{
...
...
template/m.yohobuy.com/partials/cart/cart-content.phtml
View file @
9d54066
<div class="cart-goods">
{{# goods}}
{{> cart/good}}
{{/ goods}}
</div>
{
{#if
goods
}
}
<div
class=
"cart-goods"
>
{
{#
goods
}
}
{
{>
cart/good
}
}
{
{/
goods
}
}
</div>
{
{/if
}
}
{
{#if
notValidGoods
}
}
<div
class=
"invalid-goods"
>
...
...
Please
register
or
login
to post a comment