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
Lynnic
9 years ago
Commit
d3ab0da3de89cad4d674c72f96ca46c78a2a702f
1 parent
4858545e
update
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
229 additions
and
32 deletions
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Detail.php
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Detail.php
View file @
d3ab0da
...
...
@@ -16,22 +16,11 @@ class DetailController extends AbstractAction
*/
public
function
indexAction
()
{
$productId
=
$this
->
param
(
'productId'
);
$productId
=
22399
;
if
(
!
is_numeric
(
$productId
))
{
$this
->
error
();
}
$goodsId
=
$this
->
param
(
'goodsId'
);
$goodsId
=
32443
;
if
(
!
is_numeric
(
$goodsId
))
{
$this
->
error
();
}
$productId
=
$this
->
param
(
'productId'
,
123
);
$goodsId
=
$this
->
param
(
'goodsId'
,
3241
);
$uid
=
$this
->
getUid
();
$data
=
\Product\DetailModel
::
getBaseInfo
(
$productId
,
$goodsId
,
$uid
);
var_dump
(
$data
);
if
(
array
()
===
$data
)
{
$this
->
error
();
}
$data
=
\Product\DetailModel
::
getBaseInfo
(
$productId
,
$goodsId
,
$uid
);
$data
[
'goodsDetailPage'
]
=
true
;
if
(
isset
(
$data
[
'goodsName'
]))
{
...
...
@@ -39,27 +28,235 @@ class DetailController extends AbstractAction
}
$this
->
setNavHeader
(
'商品详情'
);
// $data = array (
// 'goodsDetailPage' => true,
// 'pageHeader' => array (
// 'navBack' => 'sss ',
// 'navHome' => 'sss ',
// 'navTitle' => '商品详情TEST'
// ),
//
// 'bannerTop' => array (
// 'list' => array (
// array (
// 'url' => '',
// 'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/10/18/03/0250c3935f86dbd2baa7d45603d19fd637.jpg?imageMogr2/thumbnail/450x600/extent/450x600/background/d2hpdGU=/position/center/quality/90'
// ),
// array (
// 'url' => '',
// 'img' => 'http://img11.static.yhbimg.com/goodsimg/2015/10/12/03/01bf4cf4444035a1930d33a9d0f8bff4fa.jpg?imageMogr2/thumbnail/450x600/extent/450x600/background/d2hpdGU=/position/center/quality/90'
// ),
// array (
// 'url' => '',
// 'img' => 'http://img11.static.yhbimg.com/goodsimg/2015/10/12/03/01d7ef2f624eeea15e80bb374607aea317.jpg?imageMogr2/thumbnail/450x600/extent/450x600/background/d2hpdGU=/position/center/quality/90'
// )
// )
// ),
// 'goodsName' => 'Stussy No. 4 BOX TEE DC SPAR HIGH WC
//SHOE BQT KEN BLOCK',
// 'goodsSubtitle'=>'【全民拼抢购】经典印花T恤,满4件免一件!全场低至
//9.9元,拼购时代High起来。',
//
// 'goodsPrice' =>array(
// 'currentPrice'=>'¥298.00',
// 'previousPrice'=>'¥598.00'
// ),
// 'periodOfMarket'=>'11月',
// 'goodsTitle' => '¥298.00',
// 'vipLevel' => array (
// 'list' => array (
// array (
// 'img'=>'http://static.dev.yohobuy.com/img/product/silver.png',
// 'text' => '¥284.00'
// ),
// array (
// 'img'=>'http://static.dev.yohobuy.com/img/product/golden.png',
// 'text' => '¥269.00'
// ),
// array (
// 'img'=>'http://static.dev.yohobuy.com/img/product/platinum.png',
// 'text' => '¥263.00'
// )
// )
// ),
// 'goodsDiscount'=>array(
// 'list'=>array(
// '【summer final sale】满¥499立享6.8折',
// '【BACK TO SCHOOL】满¥499赠送Paul
// Franke帽子一个,多买多送!',
// '【BACK TO SCHOOL】满¥499赠送Paul
// Franke帽子一个,多买多送!'
// )
// ),
// 'feedbacks'=>array(
// 'commentsNum'=>0,
// 'consultsNum'=>1,
// // 'commentName'=>'商品评价',
// // 'consultName' =>'购买咨询',
// 'link'=>'',
// 'comments'=>array(
// array(
// 'userName'=>'Lynnic',
// 'desc'=>'购买了白色Mate7',
// 'content'=>'活动时买的,挺超值。上身效果也不错。质量
//很好,买送人的,很满意。而且物流相当给...',
// 'time'=>'2014-08-12 10:24:26'
// )
// ),
// 'consults'=>array(
// array(
// 'question' =>'您好 我一米七七 140斤 穿M的行吗',
// 'time'=>'2014-08-12 10:24:26',
// 'answer'=>'您好,建议您参考XL的款式,由于版型和个人穿衣风格不同,需要'
// )
// )
// ),
//
// 'enterStore'=>array(
// 'img'=>'http://static.dev.yohobuy.com/img/product/store.png',
// 'storeName'=>'Stussy',
// 'url'=>'http://stussy.m.yohobuy.com/'
// ),
//
// 'goodsDescription'=>array(
// 'title' =>'商品描述',
// 'enTitle'=>'DESCRIPTON',
//
// 'detail'=>array(
// 'nubmer' =>'51018059',
// 'color' =>'黑',
// 'type' =>'帽子',
// 'gender' =>'女款',
// 'hatType' =>'棒球帽',
// 'bongrace' =>'平檐款式',
// 'goodsDetail'=>'字母图案',
// 'style'=>'街头'
// )
// ),
//
// 'sizeInfo'=>array(
// 'title' => '尺码信息',
// 'enTitle' =>'xSIZE INFO',
//
// 'detail' =>array(
// 'list'=>array(
// array(
// 'name'=>'尺寸',
// 'sizem'=>'m',
// 'sizexl' =>'XL'
// ),
// array(
// 'name'=>'肩宽',
// 'sizem'=>'43',
// 'sizexl' =>'46'
// ),
// array(
// 'name'=>'衣长',
// 'sizem'=>'102',
// 'sizexl' =>'106'
// ),
// array(
// 'name'=>'肩宽',
// 'sizem'=>'90',
// 'sizexl' =>'96'
// ),
// array(
// 'name'=>'胸围',
// 'sizem'=>'90',
// 'sizexl' =>'96'
// ),
// array(
// 'name'=>'xx',
// 'sizem'=>'xx',
// 'sizexl' =>'xx'
// )
// )
// )
// ),
//
// 'measurementMethod'=>array(
// 'title' => '测量方式',
// 'enTitle' =>'MEASUREMENT METHOD',
//
// 'detail'=>array(
// 'sort' =>'上衣' ,
// 'enSort'=>'TOPS',
// 'img' =>'http://static.dev.yohobuy.com/img/product/tops.png',
// 'items'=>array(
// '肩宽(两端肩线间的直线长度)',
// '胸围(两端肩线间的直线长度)',
// '肩宽(两端肩线间的直线长度)',
// '肩宽(两端肩线间的直线长度)',
// '肩宽(两端肩线间的直线长度)',
// '肩宽(两端肩线间的直线长度)'
// )
// )
// ),
//
// 'reference' => array(
// 'title' => '模特试穿',
// 'enTitle' =>'REFERENCE',
//
// 'detail' =>array(
// 'list'=>array(
// array(
// 'fieldName'=>'1 ',
// 'firstModel'=>'http://static.dev.yohobuy.com/img/product/avatar1.png',
// 'secondModel' =>'http://static.dev.yohobuy.com/img/product/avatar2.png'
// ),
// array(
// 'fieldName'=>'模特',
// 'firstModel'=>'Oliver',
// 'secondModel' =>'Jvly'
// ),
// array(
// 'fieldName'=>'身高',
// 'firstModel'=>'175',
// 'secondModel' =>'170'
// ),
// array(
// 'fieldName'=>'体重',
// 'firstModel'=>'53',
// 'secondModel' =>'59'
// ),
// array(
// 'fieldName'=>'三围',
// 'firstModel'=>'78/70/87',
// 'secondModel' =>'78/70/87'
// ),
// array(
// 'fieldName'=>'吊牌尺',
// 'firstModel'=>'S',
// 'secondModel' =>'L'
// )
// )
// )
// ),
//
// 'materials' => array(
// 'title' => '商品材质',
// 'enTitle' =>'MATERIALS',
// 'img' => 'http://static.dev.yohobuy.com/img/product/material.png',
// 'desc' =>'用各种洗涤剂,可手洗机洗,但不宜氯漂,宜阴干,避免曝晒,以免深色衣物褪色,在日光下晾晒时,将里面朝外。浸泡时间不能太长,避免褪色,深色与浅色衣服最好请分开洗涤,避免染色。',
// 'materialType'=>'http://static.dev.yohobuy.com/img/product/material-type.png'
// ),
//
// 'productDetail' =>array(
// 'title' => '商品详情',
// 'enTitle' =>'DETAILS',
// 'desc' => 'Married to the MOB是由Leah McSweeney创立的女装品牌,一向标榜不羁、大胆的女性streetwear设计。喜欢恶搞的女生们,赶紧入手吧。',
// 'img' =>'http://static.dev.yohobuy.com/img/product/product.png'
// ),
//
// 'cartInfo' =>array(
// 'numInCart' => 3,
// 'goodsInstore'=>0
// )
//
// );
// 渲染模板
$this
->
_view
->
display
(
'index'
,
$data
);
}
/**
* 尺码描述信息
*/
public
function
introAction
()
{
$productSkn
=
$this
->
param
(
'productSkn'
);
if
(
!
is_numeric
(
$productSkn
))
{
$this
->
error
();
}
$data
=
\Product\DetailModel
::
getSizeInfo
(
$productSkn
);
if
(
array
()
===
$data
)
{
echo
' '
;
exit
();
}
$this
->
_view
->
display
(
'intro'
,
$data
);
}
public
function
commentsAction
()
{
...
...
Please
register
or
login
to post a comment