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
hf
9 years ago
Commit
ea331cde2302db2fc3dda22a3a1d0fefbabde244
1 parent
9c81d24c
do modify product detail page bugs
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
12 deletions
yohobuy/m.yohobuy.com/application/controllers/Index.php
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
yohobuy/m.yohobuy.com/application/models/Product/Search.php
yohobuy/m.yohobuy.com/application/controllers/Index.php
View file @
ea331cd
...
...
@@ -37,7 +37,6 @@ class IndexController extends AbstractAction
* 设置升级公告路由
*
*/
public
function
systemUpdateAction
()
{
$this
->
setTitle
(
'关于系统升级的公告'
);
...
...
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
View file @
ea331cd
...
...
@@ -79,7 +79,7 @@ class DetailModel
$result
[
'goodsPrice'
]
=
array
();
$result
[
'goodsPrice'
][
'currentPrice'
]
=
$baseInfo
[
'productPriceBo'
][
'formatSalesPrice'
];
if
(
$baseInfo
[
'productPriceBo'
][
'formatMarketPrice'
]
!==
$baseInfo
[
'productPriceBo'
][
'formatSalesPrice'
])
{
$result
[
'goodsPrice'
][
'previousPrice'
]
=
strtr
(
$baseInfo
[
'productPriceBo'
][
'formatMarketPrice'
],
array
(
'¥'
=>
''
))
;
$result
[
'goodsPrice'
][
'previousPrice'
]
=
$baseInfo
[
'productPriceBo'
][
'formatMarketPrice'
]
;
}
}
// VIP商品价格
...
...
@@ -87,7 +87,7 @@ class DetailModel
$build
=
array
();
foreach
(
$baseInfo
[
'productPriceBo'
][
'vipPrices'
]
as
$value
)
{
$build
[
'level'
]
=
$value
[
'vipLevel'
];
$build
[
'text'
]
=
strtr
(
$value
[
'vipPrice'
],
array
(
'¥'
=>
''
))
;
$build
[
'text'
]
=
$value
[
'vipPrice'
]
;
$build
[
'currentLevel'
]
=
(
$value
[
'vipLevel'
]
==
$vipLevel
)
?
true
:
false
;
$result
[
'vipLevel'
][
'list'
][]
=
$build
;
}
...
...
yohobuy/m.yohobuy.com/application/models/Product/Search.php
View file @
ea331cd
...
...
@@ -43,7 +43,7 @@ class SearchModel
}
// 调用接口查询数据 (使用新的 Elastic Engine)
$listData
=
SearchData
::
searchElasticByCondition
(
$condition
);
$listData
=
SearchData
::
searchElasticByCondition
(
$condition
);
// 调用接口查询数据 (使用老的 Sphinx Engine)
// $listData = SearchData::searchByCondition($condition);
// 处理返回的数据
...
...
@@ -87,22 +87,22 @@ class SearchModel
}
}
// 设置选定的gender
$gender
=
'1,2,3'
;
if
(
isset
(
$condition
[
'gender'
]))
{
$gender
=
$condition
[
'gender'
];
}
// 设置选定的gender
$gender
=
'1,2,3'
;
if
(
isset
(
$condition
[
'gender'
]))
{
$gender
=
$condition
[
'gender'
];
}
// 区别各种列表页面的筛选数据
if
(
isset
(
$condition
[
'brand'
]))
{
$listData
=
BrandData
::
filterBrandData
(
$condition
);
$exclude
=
'brand'
;
$exclude
=
'brand'
;
}
else
if
(
isset
(
$condition
[
'sort'
]))
{
$listData
=
ClassData
::
filterClassData
(
$condition
);
$exclude
=
'group_sort'
;
$exclude
=
'group_sort'
;
}
else
{
$listData
=
SearchData
::
searchByCondition
(
$condition
);
$exclude
=
null
;
$exclude
=
null
;
}
if
(
isset
(
$listData
[
'data'
][
'filter'
]))
{
...
...
Please
register
or
login
to post a comment