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
Email Patches
Plain Diff
Browse Files
Authored by
lore-w
9 years ago
Commit
3fc8fb2afdd728df6a074755d52aa397909b8ba4
1 parent
56aa473d
后台联调,商品数据结构增加字段
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
11 deletions
template/www.yohobuy.com/partials/product/good.phtml
template/www.yohobuy.com/partials/product/left-content.phtml
web-static/js/product/product.js
web-static/sass/product/_left-content.scss
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php
template/www.yohobuy.com/partials/product/good.phtml
View file @
3fc8fb2
<div class="good-info" data-skn="{{skn}}">
<div class="good-info" data-skn="{{skn}}"
data-id="{{id}}"
>
<div class="tag-container clearfix">
{{# tags}}
{{# isNew}}
...
...
template/www.yohobuy.com/partials/product/left-content.phtml
View file @
3fc8fb2
...
...
@@ -45,7 +45,7 @@
</h
2
>
<ul>
{
{#each
list
}
}
<li
class=
"product-list-nav"
>
<li
class=
"product-list-nav
{{#if active}}active{{/if}}
"
>
<h
3
>
<span
class=
"icon-triangle"
></span>
{
{name
}
}
...
...
@@ -53,7 +53,7 @@
</h
3
>
<ul
class=
"sort-child-list"
>
{
{#each
childList
}
}
<li>
<li
class=
"{{#if childActive}}active{{/if}}"
>
<a
href=
"{{href}}"
>
{
{name
}
}</a>
<span>
{
{num
}
}</span>
</li>
...
...
web-static/js/product/product.js
View file @
3fc8fb2
...
...
@@ -92,9 +92,12 @@ exports.init = function(num) {
display
:
'none'
});
$
.
ajax
({
type
:
'
GET
'
,
type
:
'
post
'
,
url
:
'/product/index/productColor'
,
dataType
:
'json'
dataType
:
'json'
,
data
:
{
id
:
$goodItem
.
attr
(
'data-id'
)
}
}).
then
(
function
(
data
)
{
ulStr
=
createColorList
(
data
).
colorListStr
;
//ajax请求的颜色列表
...
...
web-static/sass/product/_left-content.scss
View file @
3fc8fb2
...
...
@@ -58,9 +58,9 @@
}
}
}
/*
ul.sort-child-list {
ul
.sort-child-list
{
display
:
block
;
}
*/
}
}
}
...
...
@@ -73,6 +73,15 @@
li
{
color
:
#bbb
;
&
.active
{
background
:
#333
;
color
:
#fff
;
a
{
color
:
#fff
;
}
}
span
{
padding-left
:
5px
;
}
...
...
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php
View file @
3fc8fb2
...
...
@@ -322,7 +322,9 @@ class IndexController extends AbstractAction
'thumb'
=>
'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'adidas Originals FORUM 中帮拼色休闲板鞋'
,
'salePrice'
=>
'899'
,
'isFew'
=>
true
'isFew'
=>
true
,
'skn'
=>
111
,
'id'
=>
123
),
1
=>
array
(
'tags'
=>
array
(
...
...
@@ -333,7 +335,9 @@ class IndexController extends AbstractAction
'thumb'
=>
'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'adidas Originals FORUM 中帮拼色休闲板鞋'
,
'salePrice'
=>
'899'
,
'showColBtn'
=>
true
'showColBtn'
=>
true
,
'skn'
=>
111
,
'id'
=>
123
),
2
=>
array
(
'tags'
=>
array
(
...
...
@@ -728,7 +732,9 @@ class IndexController extends AbstractAction
'thumb'
=>
'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'adidas Originals FORUM 中帮拼色休闲板鞋'
,
'salePrice'
=>
'899'
,
'isFew'
=>
true
'isFew'
=>
true
,
'skn'
=>
111
,
'id'
=>
123
),
array
(
'tags'
=>
array
(
...
...
@@ -790,6 +796,7 @@ class IndexController extends AbstractAction
array
(
'name'
=>
'裙装'
,
'num'
=>
'10'
,
'active'
=>
true
,
'childList'
=>
array
(
array
(
'name'
=>
'全身裙装'
,
...
...
@@ -799,7 +806,8 @@ class IndexController extends AbstractAction
array
(
'name'
=>
'全身裙装'
,
'href'
=>
'http://adidas.yohobuy.com/?gender=1,3'
,
'num'
=>
'5'
'num'
=>
'5'
,
'childActive'
=>
true
),
array
(
'name'
=>
'全身裙装'
,
...
...
Please
register
or
login
to post a comment