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
55cd6cb9a605860717ba5f73423e911d0fa151ed
1 parent
09bd4494
fixes bug to detail page show cuxiao info
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
11 deletions
library/LibModels/Wap/Product/NewsaleData.php
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
yohobuy/m.yohobuy.com/application/models/Product/Newsale.php
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
library/LibModels/Wap/Product/NewsaleData.php
View file @
55cd6cb
...
...
@@ -95,9 +95,9 @@ class NewsaleData
});
$param
=
Yohobuy
::
param
();
if
(
!
is_null
(
$dayLimit
))
{
if
(
!
is_null
(
$dayLimit
))
{
$param
[
'method'
]
=
'app.search.newProduct'
;
}
else
{
}
else
{
$param
[
'method'
]
=
'app.search.sales'
;
}
$param
[
'page'
]
=
$page
;
...
...
@@ -178,7 +178,6 @@ class NewsaleData
return
Yohobuy
::
get
(
Yohobuy
::
API_URL
,
$param
);
}
/**
* 获取热销排行榜商品数据
*
...
...
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
View file @
55cd6cb
...
...
@@ -96,8 +96,8 @@ class DetailModel
if
(
isset
(
$baseInfo
[
'promotionBoList'
]))
{
$build
=
array
();
foreach
(
$baseInfo
[
'promotionBoList'
]
as
$value
)
{
$build
[
'title'
]
=
$value
[
'promotionTitle'
];
$build
[
'type'
]
=
$value
[
'promotionType'
];
$build
[
'text'
]
=
$value
[
'promotionTitle'
];
//$build['type'] = $value['promotionType'];
$result
[
'goodsDiscount'
][
'list'
][]
=
$build
;
}
}
...
...
yohobuy/m.yohobuy.com/application/models/Product/Newsale.php
View file @
55cd6cb
...
...
@@ -21,6 +21,7 @@ use Plugin\Cache;
class
NewsaleModel
{
/* 男生频道取新品到着及折扣专区数据的位置码 */
const
CODE_TOP_NEW_BOYS
=
'3cf2c1be5217fbab6009ce83959e1e12'
;
const
CODE_TOP_SALE_BOYS
=
'153180b9a88c0b565848850c523bb637'
;
/* 女生频道取新品到着及折扣专区数据的位置码 */
...
...
@@ -125,7 +126,6 @@ class NewsaleModel
return
$result
;
}
/**
* 获取折扣专区的商品列表
*
...
...
@@ -162,7 +162,6 @@ class NewsaleModel
return
$result
;
}
/**
* 顶部焦点图缓存控制
* @param const $cacheKey 缓存常量值
...
...
@@ -185,7 +184,7 @@ class NewsaleModel
// 调用接口获取数据并封装
if
(
isset
(
$newsale
[
'code'
])
&&
isset
(
$newsale
[
'data'
][
'list'
]))
{
if
(
count
(
$newsale
[
'data'
][
'list'
])
===
1
)
{
if
(
count
(
$newsale
[
'data'
][
'list'
])
===
1
)
{
$result
=
Helpers
::
formatBanner
(
$newsale
[
'data'
][
'list'
][
0
][
'data'
][
0
],
640
,
240
);
}
else
{
foreach
(
$newsale
[
'data'
][
'list'
]
as
$one
)
{
...
...
@@ -220,7 +219,7 @@ class NewsaleModel
if
(
isset
(
$data
[
'code'
])
&&
$data
[
'code'
]
===
200
&&
isset
(
$data
[
'data'
][
'product_list'
]))
{
foreach
(
$data
[
'data'
][
'product_list'
]
as
$val
)
{
$result
[
'goods'
][]
=
Helpers
::
formatProduct
(
$val
,
true
,
false
,
false
,
299
,
388
);
$result
[
'goods'
][]
=
Helpers
::
formatProduct
(
$val
,
true
,
false
,
false
,
299
,
388
);
}
}
...
...
@@ -251,7 +250,6 @@ class NewsaleModel
return
$result
;
}
/**
* 获取筛选数据
* @param array $data 接口返回的数据
...
...
@@ -269,4 +267,5 @@ class NewsaleModel
return
$result
;
}
}
...
...
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
View file @
55cd6cb
...
...
@@ -106,7 +106,7 @@ class NewsaleController extends AbstractAction
$tab_id
=
$this
->
get
(
'tab_id'
,
null
);
$limit
=
$this
->
get
(
'limit'
,
50
);
$page
=
$this
->
get
(
'page'
,
1
);
$notab
=
(
boolean
)
$this
->
get
(
'notab'
,
false
);
$notab
=
(
boolean
)
$this
->
get
(
'notab'
,
false
);
// 获取性别
$gender
=
Helpers
::
getGenderByCookie
();
...
...
Please
register
or
login
to post a comment