Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
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
Rock Zhang
9 years ago
Commit
8bc94417b5ccc75761ea6fd8c8667a516f3d710c
2 parents
96bc30e6
a79dfef1
Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
33 additions
and
4 deletions
static/js/home/maybe-like.js
static/js/product/list.js
static/js/product/newsale/discount.js
static/js/product/newsale/newarrival.js
static/js/product/suspend-cart.js
template/m.yohobuy.com/actions/product/newsale/new.phtml
template/m.yohobuy.com/actions/product/newsale/sale.phtml
template/m.yohobuy.com/partials/product/list.phtml
template/m.yohobuy.com/partials/product/suspend-cart.phtml
static/js/home/maybe-like.js
View file @
8bc9441
...
...
@@ -12,7 +12,6 @@ var $ = require('jquery'),
var
navHammer
,
winH
=
$
(
window
).
height
(),
loadMoreH
=
$
(
'#load-more'
).
height
(),
$goodList
=
$
(
'#goods-list'
),
searching
=
false
,
page
=
0
,
...
...
@@ -140,7 +139,7 @@ $('.maybe-like p').on('touchstart', function (e) {
//srcoll to load more
$
(
window
).
scroll
(
function
()
{
if
(
$
(
window
).
scrollTop
()
+
winH
>=
$
(
document
).
height
()
-
loadMoreH
-
50
)
{
if
(
$
(
window
).
scrollTop
()
+
winH
>=
$
(
document
).
height
())
{
search
();
}
});
\ No newline at end of file
...
...
static/js/product/list.js
View file @
8bc9441
...
...
@@ -31,6 +31,8 @@ var defaultOpt = {
gender
:
$
(
'#gender'
).
val
(),
brand
:
$
(
'#brand'
).
val
(),
sort
:
$
(
'#sort'
).
val
(),
msort
:
$
(
'#msort'
).
val
(),
misort
:
$
(
'#misort'
).
val
(),
color
:
$
(
'#color'
).
val
(),
size
:
$
(
'#size'
).
val
(),
price
:
$
(
'#price'
).
val
(),
...
...
static/js/product/newsale/discount.js
View file @
8bc9441
...
...
@@ -29,6 +29,8 @@ var defaultOpt = {
gender
:
$
(
'#gender'
).
val
(),
brand
:
$
(
'#brand'
).
val
(),
sort
:
$
(
'#sort'
).
val
(),
msort
:
$
(
'#msort'
).
val
(),
misort
:
$
(
'#misort'
).
val
(),
color
:
$
(
'#color'
).
val
(),
size
:
$
(
'#size'
).
val
(),
price
:
$
(
'#price'
).
val
(),
...
...
static/js/product/newsale/newarrival.js
View file @
8bc9441
...
...
@@ -32,6 +32,8 @@ var defaultOpt = {
gender
:
$
(
'#gender'
).
val
(),
brand
:
$
(
'#brand'
).
val
(),
sort
:
$
(
'#sort'
).
val
(),
msort
:
$
(
'#msort'
).
val
(),
misort
:
$
(
'#misort'
).
val
(),
color
:
$
(
'#color'
).
val
(),
size
:
$
(
'#size'
).
val
(),
price
:
$
(
'#price'
).
val
(),
...
...
static/js/product/suspend-cart.js
View file @
8bc9441
...
...
@@ -13,7 +13,7 @@ $.ajax({
url
:
'/cart/index/count'
,
success
:
function
(
data
)
{
if
(
data
.
code
===
200
)
{
$cart
.
find
(
'.cart-count'
).
html
(
data
.
data
.
cart_good_count
).
removeClass
(
'hide'
);
$cart
.
find
(
'.cart-count'
).
html
(
data
.
data
.
cart_good
s
_count
).
removeClass
(
'hide'
);
}
}
});
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/product/newsale/new.phtml
View file @
8bc9441
...
...
@@ -50,6 +50,14 @@
<input
id=
"sort"
type=
"hidden"
value=
{
{sort
}
}>
{
{/if
}
}
{
{#if
msort
}
}
<input
id=
"msort"
type=
"hidden"
value=
{
{msort
}
}>
{
{/if
}
}
{
{#if
misort
}
}
<input
id=
"misort"
type=
"hidden"
value=
{
{misort
}
}>
{
{/if
}
}
{
{#if
color
}
}
<input
id=
"color"
type=
"hidden"
value=
{
{color
}
}>
{
{/if
}
}
...
...
template/m.yohobuy.com/actions/product/newsale/sale.phtml
View file @
8bc9441
...
...
@@ -61,6 +61,14 @@
<input
id=
"sort"
type=
"hidden"
value=
{
{sort
}
}>
{
{/if
}
}
{
{#if
msort
}
}
<input
id=
"msort"
type=
"hidden"
value=
{
{msort
}
}>
{
{/if
}
}
{
{#if
misort
}
}
<input
id=
"misort"
type=
"hidden"
value=
{
{misort
}
}>
{
{/if
}
}
{
{#if
color
}
}
<input
id=
"color"
type=
"hidden"
value=
{
{color
}
}>
{
{/if
}
}
...
...
template/m.yohobuy.com/partials/product/list.phtml
View file @
8bc9441
...
...
@@ -101,6 +101,14 @@
<input
id=
"sort"
type=
"hidden"
value=
{
{sort
}
}>
{
{/if
}
}
{
{#if
msort
}
}
<input
id=
"msort"
type=
"hidden"
value=
{
{msort
}
}>
{
{/if
}
}
{
{#if
misort
}
}
<input
id=
"misort"
type=
"hidden"
value=
{
{misort
}
}>
{
{/if
}
}
{
{#if
color
}
}
<input
id=
"color"
type=
"hidden"
value=
{
{color
}
}>
{
{/if
}
}
...
...
template/m.yohobuy.com/partials/product/suspend-cart.phtml
View file @
8bc9441
...
...
@@ -2,5 +2,5 @@
<a href={{cartUrl}}>
<span class="iconfont"></span>
</a>
<span class="cart-count hide">
1
</span>
<span class="cart-count hide">
0
</span>
</div>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment