Authored by xuqi

guang detail commodity

... ... @@ -61,6 +61,103 @@
]
}
## 站点头部
{
gobuytype: 'gobuyboys',//购物车样式
searchcate: 'searchcateboys', //搜索栏样式
navbars: [{//一级导航
name_cn: '男生',
name_en: 'BOYS',
link: '',
classname: 'boys',
index_main: 0,
subnav: [{
name: '新品到着',
link: '',
index_sub:0,
thirdnav: [
{
title: '上装',
branditems: [
{
brandname: '背心',
link: ''
},
{
brandname: 'T恤',
link: ''
},
{
brandname: '衬衫',
link: ''
},
{
brandname: 'POLO',
link: ''
},
{
brandname: '毛衣/针织',
link: ''
}]
}
]
}, {
name: '品牌一览',
link: '',
thirdnav: []
}]
}],
myyoho: {
email: 'caomei@163.com',
viptype: '普通会员',
currentscore: 495,
totalscore: 600,
cardtype: '银卡',
infolist: [{
name: '待处理的订单',
link: '',
num: '0'
}, {
name: '我的收藏',
link: '',
num: '1'
}, {
name: '我的优惠券',
link: '',
num: '2'
}, {
name: '我的YOHO币',
link: '',
num: '1'
}, {
name: '我的退货换货',
link: '',
num: '1'
}],
updlink: ''
},
gobuy: {
gobuynum: 3
},
breadcrumbnav: [{
notend: {
link: 'http://www.yohobuy.com',
name: 'BOYS首页'
}
}, {
notend: {
link: 'http://www.yohobuy.com',
name: '上衣'
}
}, {
isend: {
link: 'http://list.yohobuy.com/?msort=1&gender=1,3',
name: '衬衫'
}
}]
}
## 男首
{
... ... @@ -605,7 +702,7 @@
}
## 逛详情页
### 逛详情页
{
guang:{
id: 1, //详情页id
... ... @@ -636,37 +733,7 @@
relatedReco: { //相关推荐
recos: [
{
withInfo: {
thumb: '', //商品图片
name: '', //商品标题
price: '', //原价
salePrice: '', //现价
tags: [ //商品顶部标签
{
isNew: true //新品到着
},
{
isSale: true //折扣
},
{
isLimit: true //限量
},
{
isYohood: true //yohood
},
{
isReNew: false //再到着
},
{
isYearEndPromotion: false //年终大促
},
{
isYearMidPromotion: false //年中大促
}
],
isFew: true, //单独的即将售罄标志,不显示不写
url: '' //商品链接
}
..//通用商品信息
}
...
],
... ... @@ -717,99 +784,3 @@
}
}
}
\ No newline at end of file
## 站点头部
{
gobuytype: 'gobuyboys',//购物车样式
searchcate: 'searchcateboys', //搜索栏样式
navbars: [{//一级导航
name_cn: '男生',
name_en: 'BOYS',
link: '',
classname: 'boys',
index_main: 0,
subnav: [{
name: '新品到着',
link: '',
index_sub:0,
thirdnav: [
{
title: '上装',
branditems: [
{
brandname: '背心',
link: ''
},
{
brandname: 'T恤',
link: ''
},
{
brandname: '衬衫',
link: ''
},
{
brandname: 'POLO',
link: ''
},
{
brandname: '毛衣/针织',
link: ''
}]
}
]
}, {
name: '品牌一览',
link: '',
thirdnav: []
}]
}],
myyoho: {
email: 'caomei@163.com',
viptype: '普通会员',
currentscore: 495,
totalscore: 600,
cardtype: '银卡',
infolist: [{
name: '待处理的订单',
link: '',
num: '0'
}, {
name: '我的收藏',
link: '',
num: '1'
}, {
name: '我的优惠券',
link: '',
num: '2'
}, {
name: '我的YOHO币',
link: '',
num: '1'
}, {
name: '我的退货换货',
link: '',
num: '1'
}],
updlink: ''
},
gobuy: {
gobuynum: 3
},
breadcrumbnav: [{
notend: {
link: 'http://www.yohobuy.com',
name: 'BOYS首页'
}
}, {
notend: {
link: 'http://www.yohobuy.com',
name: '上衣'
}
}, {
isend: {
link: 'http://list.yohobuy.com/?msort=1&gender=1,3',
name: '衬衫'
}
}]
}
\ No newline at end of file
... ...
... ... @@ -51,11 +51,7 @@
</div>
<div class="recos clearfix">
{{# recos}}
<div class="commodity-info">
{{# withInfo}}
{{> product/good}}
{{/ withInfo}}
</div>
{{/ recos}}
</div>
</div>
... ...
... ... @@ -19,6 +19,7 @@
}
.block-header {
position: relative;
border-bottom: 1px solid #c1c1c1;
font-size: 18px;
height: 38px;
... ... @@ -27,7 +28,8 @@
margin-bottom: 24px;
color: #333;
.more-reco {
float: right;
position: absolute;
right: 0;
color: #000;
font-size: 14px;
text-decoration: none;
... ...
... ... @@ -114,7 +114,7 @@ class GuangController extends AbstractAction
{
$data = array(
'guangDetailPage' => true,
'detail' => array(
'guang' => array(
'id' => '1',
'header' => array(
'title' => '潮款马甲内搭学院风领结衬衣!休闲学院风走起',
... ... @@ -143,7 +143,6 @@ class GuangController extends AbstractAction
'relatedReco' => array(
'recos' => array(
array(
'withInfo' => array(
'thumb' => 'http://img11.static.yhbimg.com/goodsimg/2015/03/02/07/01ebfb219e22770ffb0c2c3a2cbb2b4bef.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
'isLike' => false,
... ... @@ -174,10 +173,8 @@ class GuangController extends AbstractAction
),
'isFew' => true, //单独的即将售罄标志,不显示不写
'url' => ''
)
),
array(
'withInfo' => array(
'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/03/02/08/023f696cf1ae78688bc6c8edeccc480c2c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
'name' => 'CLOTtee 撞色连帽外套',
'isLike' => false,
... ... @@ -198,10 +195,8 @@ class GuangController extends AbstractAction
)
),
'url' => ''
)
),
array(
'withInfo' => array(
'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/03/02/08/023f696cf1ae78688bc6c8edeccc480c2c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
'name' => 'CLOTtee 撞色连帽外套',
'isLike' => false,
... ... @@ -222,10 +217,8 @@ class GuangController extends AbstractAction
)
),
'url' => ''
)
),
array(
'withInfo' => array(
'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/03/02/08/023f696cf1ae78688bc6c8edeccc480c2c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
'name' => 'CLOTtee 撞色连帽外套',
'isLike' => false,
... ... @@ -247,9 +240,8 @@ class GuangController extends AbstractAction
),
'url' => ''
)
)
)
/*'moreReco' => ''*/
),
'moreReco' => '11'
)
)
),
... ...