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
Rock Zhang
9 years ago
Commit
74de3d469d11028c847bbeb4a74dea0f19dda7b5
2 parents
108d052e
a016f7c8
Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
View file @
74de3d4
...
...
@@ -242,11 +242,14 @@ class DetailModel
++
$i
;
}
// 遍历所有颜色, 构建尺码显示数据
$i
=
1
;
foreach
(
$colorList
as
$value
)
{
// 各个尺码的颜色,每行显示一个颜色的对应尺码
$sizeGroup
[][
'size'
]
=
$sizeList
[
$value
[
'skcId'
]
];
$sizeGroup
[
$i
][
'size'
]
=
$sizeList
[
$value
[
'skcId'
]
];
// 默认颜色
$colorGroup
[
0
][
'color'
][]
=
$value
;
++
$i
;
}
// 商品图: 多个
...
...
@@ -275,6 +278,8 @@ class DetailModel
$notForSale
=
$baseInfo
[
'attribute'
]
==
2
;
// 显示加入购物车链接
if
(
!
$soldOut
&&
!
$notForSale
)
{
ksort
(
$colorGroup
,
SORT_NUMERIC
);
$result
[
'cartInfo'
][
'addToCartUrl'
]
=
Helpers
::
url
(
'/product/buy_'
.
$productId
.
'_'
.
$goodsId
.
'.html'
);
$result
[
'cartInfo'
][
'productId'
]
=
$productId
;
$result
[
'cartInfo'
][
'thumbs'
]
=
$thumbImageList
;
...
...
Please
register
or
login
to post a comment