Toggle navigation
Toggle navigation
This project
Loading...
Sign in
chenchao
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
hf
2015-12-22 07:08:39 +0800
Commit
085ddbe87ad14f6b7a837841e2b895c10161c40d
2 parents
7fee47c2
6df2c408
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
17 deletions
static/js/cart/cart.js
static/sass/cart/_index.scss
static/sass/product/_recommend-for-you.scss
template/m.yohobuy.com/partials/cart/cart-content.phtml
static/js/cart/cart.js
View file @
085ddbe
...
...
@@ -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 @
085ddbe
...
...
@@ -15,6 +15,11 @@
.cart-content
>
*
{
background
:
#fff
;
&
:first-child
{
border-top
:
none
;
margin-top
:
0
;
}
}
.cart-nav
{
...
...
static/sass/product/_recommend-for-you.scss
View file @
085ddbe
...
...
@@ -16,7 +16,7 @@
padding
:
pxToRem
(
30px
)
0
pxToRem
(
20px
);
width
:
100%
;
height
:
pxToRem
(
252px
);
overflow
:
hidden
;
//
overflow: hidden;
.swiper-slide
{
padding
:
0
pxToRem
(
10px
);
...
...
template/m.yohobuy.com/partials/cart/cart-content.phtml
View file @
085ddbe
<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