Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
ac0b12e53f708762c6858a37e124e3bcbbd905f0
1 parent
922cfc0b
最新上架增加统计位置
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
yohobuy/www.yohobuy.com/application/models/Index/Home.php
yohobuy/www.yohobuy.com/application/models/Index/Home.php
View file @
ac0b12e
...
...
@@ -230,12 +230,14 @@ class HomeModel
$sortList
=
ChannelConfig
::
$newArrivalSortList
[
$channel
];
// 获取分类列表获取商品信息
$goodsList
=
SearchData
::
getSearchDataBySort
(
$params
,
$sortList
);
$pos
=
1
;
foreach
(
$goodsList
as
$goods
)
{
// 格式化数据
$val
=
Helpers
::
formatProduct
(
$goods
,
true
,
true
,
true
,
280
,
373
);
if
(
$val
[
'price'
]
==
false
)
{
$val
[
'price'
]
=
$val
[
'salePrice'
];
}
$val
[
'url'
]
=
sprintf
(
'%s?channel=%s&from=%s-n_%s'
,
$val
[
'url'
],
$channel
,
$channel
,
$pos
++
);
//TODO 字段要调整
$val
[
'isFew'
]
=
$val
[
'is_soon_sold_out'
];
$val
[
'tags'
][
'isLimit'
]
=
$val
[
'tags'
][
'is_limited'
];
...
...
Please
register
or
login
to post a comment