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
xiaowei
9 years ago
Commit
e9158021726b39107c3515c6f3504607a5ed5483
2 parents
10db6940
b071cc8b
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
View file @
e915802
...
...
@@ -168,7 +168,7 @@ class DetailModel
foreach
(
$baseInfo
[
'goodsList'
]
as
$value
)
{
$sizeList
=
array
();
$colorStorageNum
=
0
;
$sizeStorageStr
=
''
;
// clear to empty
$sizeStorageStr
=
''
;
// 商品分组
if
(
isset
(
$value
[
'goodsImagesList'
]))
{
...
...
@@ -210,7 +210,7 @@ class DetailModel
// 缩略图
$thumbImageList
[]
=
array
(
'img'
=>
Helpers
::
getImageUrl
(
$value
[
'colorImage'
],
60
,
60
)
);
// 统计
每个
尺码对应的各个颜色的库存量
// 统计尺码对应的各个颜色的库存量
foreach
(
$sizeList
as
&
$sizeArr
)
{
$sizeArr
[
'colorNumStr'
]
=
implode
(
'/'
,
array_values
(
$colorStorageGroup
[
$sizeArr
[
'name'
]
])
);
}
...
...
Please
register
or
login
to post a comment