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
周少峰
8 years ago
Commit
ee5db2910519f67b776f2e4ae806d64cfd33d903
1 parent
02c95c78
sale pricie
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
yohobuy/www.yohobuy.com/application/models/Product/Shop.php
yohobuy/www.yohobuy.com/application/models/Product/Shop.php
View file @
ee5db29
...
...
@@ -84,8 +84,7 @@ class ShopModel
'defaultCover'
=>
true
));
foreach
(
$proList
as
$prod
)
{
$prod
[
'marketPrice'
]
=
$prod
[
'marketPrice'
]
?
$prod
[
'marketPrice'
]
:
$prod
[
'salePrice'
];
$coverList
[
$prod
[
'skn'
]]
=
array
(
'img'
=>
$prod
[
'thumb'
],
'price'
=>
'¥'
.
number_format
(
trim
(
$prod
[
'marketPrice'
],
'¥'
),
2
,
'.'
,
''
),
'title'
=>
$prod
[
'name'
]);
$coverList
[
$prod
[
'skn'
]]
=
array
(
'img'
=>
$prod
[
'thumb'
],
'price'
=>
'¥'
.
number_format
(
trim
(
$prod
[
'salePrice'
],
'¥'
),
2
,
'.'
,
''
),
'title'
=>
$prod
[
'name'
]);
}
foreach
(
$data
[
'newArrivel'
][
'list'
]
as
&
$v
)
{
if
(
isset
(
$coverList
[
$v
[
'productSkn'
]]))
{
...
...
Please
register
or
login
to post a comment