Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
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
9 years ago
Commit
c96e1ba61fb69e87c37e28bcb2a947d2ece78370
2 parents
aea3d017
c536f394
Merge remote-tracking branch 'origin/develop' into test
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
31 additions
and
47 deletions
docs/data-structure.md
static/js/product/list.js
static/js/product/newsale/discount.js
static/js/product/newsale/newarrival.js
static/sass/home/_goods-category.scss
static/sass/home/_hot-category.scss
template/m.yohobuy.com/actions/product/newsale/new.phtml
template/m.yohobuy.com/actions/product/newsale/sale.phtml
template/m.yohobuy.com/actions/search/index/index.phtml
template/m.yohobuy.com/partials/home/goods_category.phtml
template/m.yohobuy.com/partials/product/list.phtml
docs/data-structure.md
View file @
c96e1ba
...
...
@@ -752,7 +752,7 @@
},
brand: '',
gender: '',
m
sort: '',
sort: '',
color: '',
size: '',
price: '',
...
...
static/js/product/list.js
View file @
c96e1ba
...
...
@@ -26,7 +26,7 @@ var winH = $(window).height();
var
defaultOpt
=
{
gender
:
$
(
'#gender'
).
val
(),
brand
:
$
(
'#brand'
).
val
(),
msort
:
$
(
'#m
sort'
).
val
(),
sort
:
$
(
'#
sort'
).
val
(),
color
:
$
(
'#color'
).
val
(),
size
:
$
(
'#size'
).
val
(),
price
:
$
(
'#price'
).
val
(),
...
...
@@ -96,9 +96,9 @@ function search(opt) {
brand
:
opt
.
id
};
break
;
case
'
m
sort'
:
case
'sort'
:
ext
=
{
m
sort
:
opt
.
id
sort
:
opt
.
id
};
break
;
case
'color'
:
...
...
static/js/product/newsale/discount.js
View file @
c96e1ba
...
...
@@ -23,7 +23,7 @@ var winH = $(window).height();
var
defaultOpt
=
{
gender
:
$
(
'#gender'
).
val
(),
brand
:
$
(
'#brand'
).
val
(),
msort
:
$
(
'#m
sort'
).
val
(),
sort
:
$
(
'#
sort'
).
val
(),
color
:
$
(
'#color'
).
val
(),
size
:
$
(
'#size'
).
val
(),
price
:
$
(
'#price'
).
val
(),
...
...
@@ -104,9 +104,9 @@ function search(opt) {
brand
:
opt
.
id
};
break
;
case
'
m
sort'
:
case
'sort'
:
ext
=
{
m
sort
:
opt
.
id
sort
:
opt
.
id
};
break
;
case
'color'
:
...
...
static/js/product/newsale/newarrival.js
View file @
c96e1ba
...
...
@@ -23,7 +23,7 @@ var winH = $(window).height();
var
defaultOpt
=
{
gender
:
$
(
'#gender'
).
val
(),
brand
:
$
(
'#brand'
).
val
(),
msort
:
$
(
'#m
sort'
).
val
(),
sort
:
$
(
'#
sort'
).
val
(),
color
:
$
(
'#color'
).
val
(),
size
:
$
(
'#size'
).
val
(),
price
:
$
(
'#price'
).
val
(),
...
...
@@ -114,9 +114,9 @@ function search(opt) {
brand
:
opt
.
id
};
break
;
case
'
m
sort'
:
case
'sort'
:
ext
=
{
m
sort
:
opt
.
id
sort
:
opt
.
id
};
break
;
case
'color'
:
...
...
static/sass/home/_goods-category.scss
View file @
c96e1ba
...
...
@@ -44,21 +44,20 @@
float
:
left
;
width
:
191rem
/
$pxConvertRem
;
height
:
181rem
/
$pxConvertRem
;
padding
:
(
10rem
/
$pxConvertRem
)
0
0
;
border-left
:
1px
solid
#e0e0e0
;
border-bottom
:
1px
solid
#e0e0e0
;
.first-show
{
display
:
none
;
}
.img-box
{
display
:
flex
;
display
:
-
webkit-flex
;
height
:
140rem
/
$pxConvertRem
;
align-items
:
center
;
justify-content
:
center
;
height
:
100%
;
line-height
:
100%
;
text-align
:
center
;
img
{
max-width
:
100%
;
max-height
:
100%
;
width
:
100%
;
height
:
100%
;
vertical-align
:
middle
;
}
}
.category-name
{
...
...
@@ -70,22 +69,7 @@
}
li
:first-child
{
width
:
253rem
/
$pxConvertRem
;
height
:
335rem
/
$pxConvertRem
;
border-left
:
none
;
padding
:
(
48rem
/
$pxConvertRem
)
0
0
0
;
.first-show
{
display
:
block
;
line-height
:
44rem
/
$pxConvertRem
;
font-size
:
30rem
/
$pxConvertRem
;
color
:
#444
;
text-align
:
center
;
}
.img-box
{
height
:
220rem
/
$pxConvertRem
;
}
.category-name
{
line-height
:
40rem
/
$pxConvertRem
;
font-size
:
22rem
/
$pxConvertRem
;
}
height
:
382rem
/
$pxConvertRem
;
border-left
:
none
;
}
}
\ No newline at end of file
...
...
static/sass/home/_hot-category.scss
View file @
c96e1ba
...
...
@@ -20,7 +20,8 @@
border-left
:
1px
solid
#e0e0e0
;
.img-box
{
width
:
100%
;
height
:
138rem
/
$pxConvertRem
;
height
:
100%
;
line-height
:
138rem
/
$pxConvertRem
;
text-align
:
center
;
vertical-align
:
middle
;
img
{
...
...
template/m.yohobuy.com/actions/product/newsale/new.phtml
View file @
c96e1ba
...
...
@@ -51,8 +51,8 @@
<input
id=
"gender"
type=
"hidden"
value=
{
{gender
}
}>
{
{/if
}
}
{
{#if
msort
}
}
<input
id=
"msort"
type=
"hidden"
value=
{
{msort
}
}>
{
{#if
sort
}
}
<input
id=
"sort"
type=
"hidden"
value=
{
{sort
}
}>
{
{/if
}
}
{
{#if
color
}
}
...
...
template/m.yohobuy.com/actions/product/newsale/sale.phtml
View file @
c96e1ba
...
...
@@ -63,8 +63,8 @@
<input
id=
"gender"
type=
"hidden"
value=
{
{gender
}
}>
{
{/if
}
}
{
{#if
msort
}
}
<input
id=
"msort"
type=
"hidden"
value=
{
{msort
}
}>
{
{#if
sort
}
}
<input
id=
"sort"
type=
"hidden"
value=
{
{sort
}
}>
{
{/if
}
}
{
{#if
color
}
}
...
...
template/m.yohobuy.com/actions/search/index/index.phtml
View file @
c96e1ba
...
...
@@ -103,8 +103,8 @@
<input
id=
"gender"
type=
"hidden"
value=
{
{gender
}
}>
{
{/if
}
}
{
{#if
msort
}
}
<input
id=
"msort"
type=
"hidden"
value=
{
{msort
}
}>
{
{#if
sort
}
}
<input
id=
"sort"
type=
"hidden"
value=
{
{sort
}
}>
{
{/if
}
}
{
{#if
color
}
}
...
...
template/m.yohobuy.com/partials/home/goods_category.phtml
View file @
c96e1ba
...
...
@@ -21,9 +21,8 @@
{
{#
list
}
}
<li>
<a
href=
"{{url}}"
>
<p
class=
"first-show"
>推荐品类</p>
<div
class=
"img-box"
>
<img
src
=
"{{img}}"
alt=
""
>
<img
class=
"lazy"
data-original
=
"{{img}}"
alt=
""
>
</div>
<p
class=
"category-name"
>
{
{textCn
}
}</p>
</a>
...
...
template/m.yohobuy.com/partials/product/list.phtml
View file @
c96e1ba
...
...
@@ -101,8 +101,8 @@
<input
id=
"gender"
type=
"hidden"
value=
{
{gender
}
}>
{
{/if
}
}
{
{#if
msort
}
}
<input
id=
"msort"
type=
"hidden"
value=
{
{msort
}
}>
{
{#if
sort
}
}
<input
id=
"sort"
type=
"hidden"
value=
{
{sort
}
}>
{
{/if
}
}
{
{#if
color
}
}
...
...
Please
register
or
login
to post a comment