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 ],
@@ -716,100 +783,4 @@ @@ -716,100 +783,4 @@
716 ] 783 ]
717 } 784 }
718 } 785 }
719 - }  
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 } 786 }
@@ -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}}  
57 - {{/ withInfo}}  
58 - </div> 54 + {{> product/good}}
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,113 +143,105 @@ class GuangController extends AbstractAction @@ -143,113 +143,105 @@ 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',  
148 - 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',  
149 - 'isLike' => false,  
150 - 'price' => 1268,  
151 - 'salePrice' => 589,  
152 - 'tags' => array(  
153 - array(  
154 - 'isNew' => true  
155 - ),  
156 - array(  
157 - 'isSale' => false  
158 - ),  
159 - array(  
160 - 'isLimit' => true  
161 - ),  
162 - array(  
163 - 'isYohood' => false  
164 - ),  
165 - array(  
166 - 'isReNew' => true  
167 - ),  
168 - array(  
169 - 'isYearEndPromotion' => false  
170 - ),  
171 - array(  
172 - 'isYearMidPromotion' => false  
173 - ) 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',
  147 + 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
  148 + 'isLike' => false,
  149 + 'price' => 1268,
  150 + 'salePrice' => 589,
  151 + 'tags' => array(
  152 + array(
  153 + 'isNew' => true
  154 + ),
  155 + array(
  156 + 'isSale' => false
  157 + ),
  158 + array(
  159 + 'isLimit' => true
  160 + ),
  161 + array(
  162 + 'isYohood' => false
174 ), 163 ),
175 - 'isFew' => true, //单独的即将售罄标志,不显示不写  
176 - 'url' => ''  
177 - ) 164 + array(
  165 + 'isReNew' => true
  166 + ),
  167 + array(
  168 + 'isYearEndPromotion' => false
  169 + ),
  170 + array(
  171 + 'isYearMidPromotion' => false
  172 + )
  173 + ),
  174 + 'isFew' => true, //单独的即将售罄标志,不显示不写
  175 + 'url' => ''
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',  
182 - 'name' => 'CLOTtee 撞色连帽外套',  
183 - 'isLike' => false,  
184 - 'price' => 488,  
185 - 'salePrice' => 139,  
186 - 'tags' => array(  
187 - array(  
188 - 'isNew' => true  
189 - ),  
190 - array(  
191 - 'isSale' => false  
192 - ),  
193 - array(  
194 - 'isLimit' => true  
195 - ),  
196 - array(  
197 - 'isYohood' => true  
198 - ) 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',
  179 + 'name' => 'CLOTtee 撞色连帽外套',
  180 + 'isLike' => false,
  181 + 'price' => 488,
  182 + 'salePrice' => 139,
  183 + 'tags' => array(
  184 + array(
  185 + 'isNew' => true
  186 + ),
  187 + array(
  188 + 'isSale' => false
199 ), 189 ),
200 - 'url' => ''  
201 - ) 190 + array(
  191 + 'isLimit' => true
  192 + ),
  193 + array(
  194 + 'isYohood' => true
  195 + )
  196 + ),
  197 + 'url' => ''
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',  
206 - 'name' => 'CLOTtee 撞色连帽外套',  
207 - 'isLike' => false,  
208 - 'price' => 488,  
209 - 'salePrice' => 139,  
210 - 'tags' => array(  
211 - array(  
212 - 'isNew' => true  
213 - ),  
214 - array(  
215 - 'isSale' => false  
216 - ),  
217 - array(  
218 - 'isLimit' => true  
219 - ),  
220 - array(  
221 - 'isYohood' => true  
222 - ) 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',
  201 + 'name' => 'CLOTtee 撞色连帽外套',
  202 + 'isLike' => false,
  203 + 'price' => 488,
  204 + 'salePrice' => 139,
  205 + 'tags' => array(
  206 + array(
  207 + 'isNew' => true
  208 + ),
  209 + array(
  210 + 'isSale' => false
  211 + ),
  212 + array(
  213 + 'isLimit' => true
223 ), 214 ),
224 - 'url' => ''  
225 - ) 215 + array(
  216 + 'isYohood' => true
  217 + )
  218 + ),
  219 + 'url' => ''
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',  
230 - 'name' => 'CLOTtee 撞色连帽外套',  
231 - 'isLike' => false,  
232 - 'price' => 488,  
233 - 'salePrice' => 139,  
234 - 'tags' => array(  
235 - array(  
236 - 'isNew' => true  
237 - ),  
238 - array(  
239 - 'isSale' => false  
240 - ),  
241 - array(  
242 - 'isLimit' => true  
243 - ),  
244 - array(  
245 - 'isYohood' => true  
246 - ) 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',
  223 + 'name' => 'CLOTtee 撞色连帽外套',
  224 + 'isLike' => false,
  225 + 'price' => 488,
  226 + 'salePrice' => 139,
  227 + 'tags' => array(
  228 + array(
  229 + 'isNew' => true
247 ), 230 ),
248 - 'url' => ''  
249 - ) 231 + array(
  232 + 'isSale' => false
  233 + ),
  234 + array(
  235 + 'isLimit' => true
  236 + ),
  237 + array(
  238 + 'isYohood' => true
  239 + )
  240 + ),
  241 + 'url' => ''
250 ) 242 )
251 - )  
252 - /*'moreReco' => ''*/ 243 + ),
  244 + 'moreReco' => '11'
253 ) 245 )
254 ) 246 )
255 ), 247 ),