Authored by xuqi

guang detail commodity

@@ -61,6 +61,103 @@ @@ -61,6 +61,103 @@
61 ] 61 ]
62 } 62 }
63 63
  64 +
  65 +## 站点头部
  66 + {
  67 + gobuytype: 'gobuyboys',//购物车样式
  68 + searchcate: 'searchcateboys', //搜索栏样式
  69 + navbars: [{//一级导航
  70 + name_cn: '男生',
  71 + name_en: 'BOYS',
  72 + link: '',
  73 + classname: 'boys',
  74 + index_main: 0,
  75 + subnav: [{
  76 + name: '新品到着',
  77 + link: '',
  78 + index_sub:0,
  79 + thirdnav: [
  80 + {
  81 + title: '上装',
  82 + branditems: [
  83 + {
  84 + brandname: '背心',
  85 + link: ''
  86 + },
  87 + {
  88 + brandname: 'T恤',
  89 + link: ''
  90 + },
  91 + {
  92 + brandname: '衬衫',
  93 + link: ''
  94 + },
  95 + {
  96 + brandname: 'POLO',
  97 + link: ''
  98 + },
  99 + {
  100 + brandname: '毛衣/针织',
  101 + link: ''
  102 + }]
  103 + }
  104 + ]
  105 + }, {
  106 + name: '品牌一览',
  107 + link: '',
  108 + thirdnav: []
  109 + }]
  110 + }],
  111 + myyoho: {
  112 + email: 'caomei@163.com',
  113 + viptype: '普通会员',
  114 + currentscore: 495,
  115 + totalscore: 600,
  116 + cardtype: '银卡',
  117 + infolist: [{
  118 + name: '待处理的订单',
  119 + link: '',
  120 + num: '0'
  121 + }, {
  122 + name: '我的收藏',
  123 + link: '',
  124 + num: '1'
  125 + }, {
  126 + name: '我的优惠券',
  127 + link: '',
  128 + num: '2'
  129 + }, {
  130 + name: '我的YOHO币',
  131 + link: '',
  132 + num: '1'
  133 + }, {
  134 + name: '我的退货换货',
  135 + link: '',
  136 + num: '1'
  137 + }],
  138 + updlink: ''
  139 + },
  140 + gobuy: {
  141 + gobuynum: 3
  142 + },
  143 + breadcrumbnav: [{
  144 + notend: {
  145 + link: 'http://www.yohobuy.com',
  146 + name: 'BOYS首页'
  147 + }
  148 + }, {
  149 + notend: {
  150 + link: 'http://www.yohobuy.com',
  151 + name: '上衣'
  152 + }
  153 + }, {
  154 + isend: {
  155 + link: 'http://list.yohobuy.com/?msort=1&gender=1,3',
  156 + name: '衬衫'
  157 + }
  158 + }]
  159 + }
  160 +
64 ## 男首 161 ## 男首
65 162
66 { 163 {
@@ -605,7 +702,7 @@ @@ -605,7 +702,7 @@
605 } 702 }
606 703
607 704
608 -## 逛详情页 705 +### 逛详情页
609 { 706 {
610 guang:{ 707 guang:{
611 id: 1, //详情页id 708 id: 1, //详情页id
@@ -636,37 +733,7 @@ @@ -636,37 +733,7 @@
636 relatedReco: { //相关推荐 733 relatedReco: { //相关推荐
637 recos: [ 734 recos: [
638 { 735 {
639 - withInfo: {  
640 - thumb: '', //商品图片  
641 - name: '', //商品标题  
642 - price: '', //原价  
643 - salePrice: '', //现价  
644 - tags: [ //商品顶部标签  
645 - {  
646 - isNew: true //新品到着  
647 - },  
648 - {  
649 - isSale: true //折扣  
650 - },  
651 - {  
652 - isLimit: true //限量  
653 - },  
654 - {  
655 - isYohood: true //yohood  
656 - },  
657 - {  
658 - isReNew: false //再到着  
659 - },  
660 - {  
661 - isYearEndPromotion: false //年终大促  
662 - },  
663 - {  
664 - isYearMidPromotion: false //年中大促  
665 - }  
666 - ],  
667 - isFew: true, //单独的即将售罄标志,不显示不写  
668 - url: '' //商品链接  
669 - } 736 + ..//通用商品信息
670 } 737 }
671 ... 738 ...
672 ], 739 ],
@@ -717,99 +784,3 @@ @@ -717,99 +784,3 @@
717 } 784 }
718 } 785 }
719 } 786 }
720 -  
721 -## 站点头部  
722 - {  
723 - gobuytype: 'gobuyboys',//购物车样式  
724 - searchcate: 'searchcateboys', //搜索栏样式  
725 - navbars: [{//一级导航  
726 - name_cn: '男生',  
727 - name_en: 'BOYS',  
728 - link: '',  
729 - classname: 'boys',  
730 - index_main: 0,  
731 - subnav: [{  
732 - name: '新品到着',  
733 - link: '',  
734 - index_sub:0,  
735 - thirdnav: [  
736 - {  
737 - title: '上装',  
738 - branditems: [  
739 - {  
740 - brandname: '背心',  
741 - link: ''  
742 - },  
743 - {  
744 - brandname: 'T恤',  
745 - link: ''  
746 - },  
747 - {  
748 - brandname: '衬衫',  
749 - link: ''  
750 - },  
751 - {  
752 - brandname: 'POLO',  
753 - link: ''  
754 - },  
755 - {  
756 - brandname: '毛衣/针织',  
757 - link: ''  
758 - }]  
759 - }  
760 - ]  
761 - }, {  
762 - name: '品牌一览',  
763 - link: '',  
764 - thirdnav: []  
765 - }]  
766 - }],  
767 - myyoho: {  
768 - email: 'caomei@163.com',  
769 - viptype: '普通会员',  
770 - currentscore: 495,  
771 - totalscore: 600,  
772 - cardtype: '银卡',  
773 - infolist: [{  
774 - name: '待处理的订单',  
775 - link: '',  
776 - num: '0'  
777 - }, {  
778 - name: '我的收藏',  
779 - link: '',  
780 - num: '1'  
781 - }, {  
782 - name: '我的优惠券',  
783 - link: '',  
784 - num: '2'  
785 - }, {  
786 - name: '我的YOHO币',  
787 - link: '',  
788 - num: '1'  
789 - }, {  
790 - name: '我的退货换货',  
791 - link: '',  
792 - num: '1'  
793 - }],  
794 - updlink: ''  
795 - },  
796 - gobuy: {  
797 - gobuynum: 3  
798 - },  
799 - breadcrumbnav: [{  
800 - notend: {  
801 - link: 'http://www.yohobuy.com',  
802 - name: 'BOYS首页'  
803 - }  
804 - }, {  
805 - notend: {  
806 - link: 'http://www.yohobuy.com',  
807 - name: '上衣'  
808 - }  
809 - }, {  
810 - isend: {  
811 - link: 'http://list.yohobuy.com/?msort=1&gender=1,3',  
812 - name: '衬衫'  
813 - }  
814 - }]  
815 - }  
@@ -51,11 +51,7 @@ @@ -51,11 +51,7 @@
51 </div> 51 </div>
52 <div class="recos clearfix"> 52 <div class="recos clearfix">
53 {{# recos}} 53 {{# recos}}
54 - <div class="commodity-info">  
55 - {{# withInfo}}  
56 {{> product/good}} 54 {{> product/good}}
57 - {{/ withInfo}}  
58 - </div>  
59 {{/ recos}} 55 {{/ recos}}
60 </div> 56 </div>
61 </div> 57 </div>
@@ -19,6 +19,7 @@ @@ -19,6 +19,7 @@
19 } 19 }
20 20
21 .block-header { 21 .block-header {
  22 + position: relative;
22 border-bottom: 1px solid #c1c1c1; 23 border-bottom: 1px solid #c1c1c1;
23 font-size: 18px; 24 font-size: 18px;
24 height: 38px; 25 height: 38px;
@@ -27,7 +28,8 @@ @@ -27,7 +28,8 @@
27 margin-bottom: 24px; 28 margin-bottom: 24px;
28 color: #333; 29 color: #333;
29 .more-reco { 30 .more-reco {
30 - float: right; 31 + position: absolute;
  32 + right: 0;
31 color: #000; 33 color: #000;
32 font-size: 14px; 34 font-size: 14px;
33 text-decoration: none; 35 text-decoration: none;
@@ -114,7 +114,7 @@ class GuangController extends AbstractAction @@ -114,7 +114,7 @@ class GuangController extends AbstractAction
114 { 114 {
115 $data = array( 115 $data = array(
116 'guangDetailPage' => true, 116 'guangDetailPage' => true,
117 - 'detail' => array( 117 + 'guang' => array(
118 'id' => '1', 118 'id' => '1',
119 'header' => array( 119 'header' => array(
120 'title' => '潮款马甲内搭学院风领结衬衣!休闲学院风走起', 120 'title' => '潮款马甲内搭学院风领结衬衣!休闲学院风走起',
@@ -143,7 +143,6 @@ class GuangController extends AbstractAction @@ -143,7 +143,6 @@ class GuangController extends AbstractAction
143 'relatedReco' => array( 143 'relatedReco' => array(
144 'recos' => array( 144 'recos' => array(
145 array( 145 array(
146 - 'withInfo' => array(  
147 'thumb' => 'http://img11.static.yhbimg.com/goodsimg/2015/03/02/07/01ebfb219e22770ffb0c2c3a2cbb2b4bef.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', 146 'thumb' => 'http://img11.static.yhbimg.com/goodsimg/2015/03/02/07/01ebfb219e22770ffb0c2c3a2cbb2b4bef.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
148 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣', 147 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
149 'isLike' => false, 148 'isLike' => false,
@@ -174,10 +173,8 @@ class GuangController extends AbstractAction @@ -174,10 +173,8 @@ class GuangController extends AbstractAction
174 ), 173 ),
175 'isFew' => true, //单独的即将售罄标志,不显示不写 174 'isFew' => true, //单独的即将售罄标志,不显示不写
176 'url' => '' 175 'url' => ''
177 - )  
178 ), 176 ),
179 array( 177 array(
180 - 'withInfo' => array(  
181 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/03/02/08/023f696cf1ae78688bc6c8edeccc480c2c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', 178 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/03/02/08/023f696cf1ae78688bc6c8edeccc480c2c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
182 'name' => 'CLOTtee 撞色连帽外套', 179 'name' => 'CLOTtee 撞色连帽外套',
183 'isLike' => false, 180 'isLike' => false,
@@ -198,10 +195,8 @@ class GuangController extends AbstractAction @@ -198,10 +195,8 @@ class GuangController extends AbstractAction
198 ) 195 )
199 ), 196 ),
200 'url' => '' 197 'url' => ''
201 - )  
202 ), 198 ),
203 array( 199 array(
204 - 'withInfo' => array(  
205 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/03/02/08/023f696cf1ae78688bc6c8edeccc480c2c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', 200 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/03/02/08/023f696cf1ae78688bc6c8edeccc480c2c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
206 'name' => 'CLOTtee 撞色连帽外套', 201 'name' => 'CLOTtee 撞色连帽外套',
207 'isLike' => false, 202 'isLike' => false,
@@ -222,10 +217,8 @@ class GuangController extends AbstractAction @@ -222,10 +217,8 @@ class GuangController extends AbstractAction
222 ) 217 )
223 ), 218 ),
224 'url' => '' 219 'url' => ''
225 - )  
226 ), 220 ),
227 array( 221 array(
228 - 'withInfo' => array(  
229 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/03/02/08/023f696cf1ae78688bc6c8edeccc480c2c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', 222 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/03/02/08/023f696cf1ae78688bc6c8edeccc480c2c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
230 'name' => 'CLOTtee 撞色连帽外套', 223 'name' => 'CLOTtee 撞色连帽外套',
231 'isLike' => false, 224 'isLike' => false,
@@ -247,9 +240,8 @@ class GuangController extends AbstractAction @@ -247,9 +240,8 @@ class GuangController extends AbstractAction
247 ), 240 ),
248 'url' => '' 241 'url' => ''
249 ) 242 )
250 - )  
251 - )  
252 - /*'moreReco' => ''*/ 243 + ),
  244 + 'moreReco' => '11'
253 ) 245 )
254 ) 246 )
255 ), 247 ),