Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Showing
7 changed files
with
58 additions
and
191 deletions
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <div class="my-page yoho-page"> | 2 | <div class="my-page yoho-page"> |
3 | <div class="my-header"> | 3 | <div class="my-header"> |
4 | {{#isLogin}} | 4 | {{#isLogin}} |
5 | - <a class="user-info" href="/home/personaldetails"> | 5 | + <a class="user-info" href="/home/mydetails"> |
6 | <img class="user-avatar" src="{{head_ico}}"> | 6 | <img class="user-avatar" src="{{head_ico}}"> |
7 | <span class="username">{{profile_name}}</span> | 7 | <span class="username">{{profile_name}}</span> |
8 | {{#vip_info}} | 8 | {{#vip_info}} |
@@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
13 | {{/isLogin}} | 13 | {{/isLogin}} |
14 | {{^isLogin}} | 14 | {{^isLogin}} |
15 | <div class="user-info"> | 15 | <div class="user-info"> |
16 | - <a class="login-btn" href="http://m.dev.yohobuy.com/signin.html"> | 16 | + <a class="login-btn" href="/signin.html"> |
17 | 登录/注册 | 17 | 登录/注册 |
18 | </a> | 18 | </a> |
19 | </div> | 19 | </div> |
@@ -41,15 +41,15 @@ | @@ -41,15 +41,15 @@ | ||
41 | </a> | 41 | </a> |
42 | </div> | 42 | </div> |
43 | <div class="order-type clearfix"> | 43 | <div class="order-type clearfix"> |
44 | - <a class="type-item" href="/home/order"> | 44 | + <a class="type-item" href="/home/order?type=2"> |
45 | <span class="iconfont"></span> | 45 | <span class="iconfont"></span> |
46 | <br>待付款 | 46 | <br>待付款 |
47 | </a> | 47 | </a> |
48 | - <a class="type-item" href="/home/order"> | 48 | + <a class="type-item" href="/home/order?type=3"> |
49 | <span class="iconfont"></span> | 49 | <span class="iconfont"></span> |
50 | <br>待发货 | 50 | <br>待发货 |
51 | </a> | 51 | </a> |
52 | - <a class="type-item" href="/home/order"> | 52 | + <a class="type-item" href="/home/order?type=4"> |
53 | <span class="iconfont"></span> | 53 | <span class="iconfont"></span> |
54 | <br>待收货 | 54 | <br>待收货 |
55 | </a> | 55 | </a> |
@@ -94,7 +94,7 @@ | @@ -94,7 +94,7 @@ | ||
94 | </a> | 94 | </a> |
95 | </div> | 95 | </div> |
96 | <div class="group-list"> | 96 | <div class="group-list"> |
97 | - <a class="list-item" href="/home/"> | 97 | + <a class="list-item" href="/help.html"> |
98 | <span class="iconfont icon"></span> | 98 | <span class="iconfont icon"></span> |
99 | 帮助 | 99 | 帮助 |
100 | <span class="iconfont num"></span> | 100 | <span class="iconfont num"></span> |
@@ -14,9 +14,7 @@ | @@ -14,9 +14,7 @@ | ||
14 | {{/detail}} | 14 | {{/detail}} |
15 | <div class="desc-text">{{desc}}</div> | 15 | <div class="desc-text">{{desc}}</div> |
16 | </div> | 16 | </div> |
17 | - {{/goodsDescription}} | ||
18 | - | ||
19 | -<!-- <div class="gap-block"></div> --> | 17 | +{{/goodsDescription}} |
20 | 18 | ||
21 | {{#sizeInfo}} | 19 | {{#sizeInfo}} |
22 | <div class="size-info page-block"> | 20 | <div class="size-info page-block"> |
@@ -43,8 +41,6 @@ | @@ -43,8 +41,6 @@ | ||
43 | </div> | 41 | </div> |
44 | {{/sizeInfo}} | 42 | {{/sizeInfo}} |
45 | 43 | ||
46 | -<!-- <div class="gap-block"></div> --> | ||
47 | - | ||
48 | {{#measurementMethod}} | 44 | {{#measurementMethod}} |
49 | <div class="measurement-method page-block"> | 45 | <div class="measurement-method page-block"> |
50 | <h1 class="title"> | 46 | <h1 class="title"> |
1 | -{{#goodsDescription}} | ||
2 | -<div class="goods-desc page-block"> | ||
3 | - <img class="service lazy" data-original="http://static.dev.yohobuy.com/img/product/service.png" alt=""> | ||
4 | - <h1 class="title"> | ||
5 | - {{title}} | ||
6 | - <span class="en-title">{{enTitle}}</span> | ||
7 | - </h1> | ||
8 | - {{#detail}} | ||
9 | - <ul class="detail table clearfix"> | ||
10 | - {{#list}} | ||
11 | - <div class="column">{{param}}</div> | ||
12 | - {{/list}} | ||
13 | - </ul> | ||
14 | - {{/detail}} | ||
15 | - <div class="desc-text">{{desc}}</div> | ||
16 | -</div> | ||
17 | - | ||
18 | -{{/goodsDescription}} | ||
19 | - | ||
20 | -{{#sizeInfo}} | ||
21 | -<div class="size-info page-block"> | ||
22 | -<h1 class="title"> | ||
23 | - {{title}} | ||
24 | - <span class="en-title">{{enTitle}}</span> | ||
25 | -</h1> | ||
26 | -{{#detail}} | ||
27 | -<div class="detail"> | ||
28 | - <div class="swiper-container detail-swiper" id="size-swiper-container"> | ||
29 | - <div class="swiper-wrapper"> | ||
30 | - {{#list}} | ||
31 | - <div class="swiper-slide " > | ||
32 | - {{#params}} | ||
33 | - <div class="cell">{{param}}</div> | ||
34 | - {{/params}} | ||
35 | - </div> | ||
36 | - {{/list}} | ||
37 | - </div> | ||
38 | - </div> | ||
39 | - <p class="tips">提示:左滑查看完整表格信息</p> | ||
40 | -</div> | ||
41 | -{{/detail}} | ||
42 | -</div> | ||
43 | -{{/sizeInfo}} | ||
44 | - | ||
45 | -{{#measurementMethod}} | ||
46 | -<div class="measurement-method page-block"> | ||
47 | -<h1 class="title"> | ||
48 | - {{title}} | ||
49 | - <span class="en-title">{{enTitle}}</span> | ||
50 | -</h1> | ||
51 | -<div class="detail" style="width:100%"> | ||
52 | - <img class="lazy" data-original="{{img}}" alt=""> | ||
53 | -</div> | ||
54 | -</div> | ||
55 | -{{/measurementMethod}} | ||
56 | - | ||
57 | -{{#reference}} | ||
58 | -<div class="size-info page-block"> | ||
59 | - <h1 class="title"> | ||
60 | - {{title}} | ||
61 | - <span class="en-title">{{enTitle}}</span> | ||
62 | - </h1> | ||
63 | - {{#detail}} | ||
64 | - <div class="detail"> | ||
65 | - <div class="swiper-container detail-swiper" id="reference-swiper-container"> | ||
66 | - <div class="swiper-wrapper"> | ||
67 | - {{#list}} | ||
68 | - {{#if @first}} | ||
69 | - <div class="swiper-slide first-group" > | ||
70 | - | ||
71 | - </div> | ||
72 | - {{else}} | ||
73 | - <div class="swiper-slide" > | ||
74 | - {{#params}} | ||
75 | - <div class=" cell">{{param}}</div> | ||
76 | - {{/params}} | ||
77 | - </div> | ||
78 | - {{/if}} | ||
79 | - {{/list}} | ||
80 | - </div> | ||
81 | - </div> | ||
82 | - <p class="tips">提示:左滑查看完整表格信息</p> | ||
83 | - </div> | ||
84 | - {{/detail}} | ||
85 | -</div> | ||
86 | -{{/reference}} | ||
87 | - | ||
88 | -{{#materials}} | ||
89 | -<div class="materials page-block"> | ||
90 | - <h1 class="title"> | ||
91 | - {{title}} | ||
92 | - <span class="en-title">{{enTitle}}</span> | ||
93 | - </h1> | ||
94 | - <div class="detail"> | ||
95 | - {{#list}} | ||
96 | - <div class="material-item"> | ||
97 | - <img class="lazy" data-original="{{img}}" alt=""> | ||
98 | - <p class="material-desc"> | ||
99 | - {{desc}} | ||
100 | - </p> | ||
101 | - </div> | ||
102 | - {{/list}} | ||
103 | - </div> | ||
104 | -</div> | ||
105 | -{{/materials}} | ||
106 | - | ||
107 | -{{#washTips}} | ||
108 | -<div class="wash-tips page-block"> | ||
109 | - <div class="detail table clearfix"> | ||
110 | - {{#list}} | ||
111 | - <div class="tip"> | ||
112 | - <img src="{{img}}" alt=""> | ||
113 | - <span class="caption">{{caption}}</span> | ||
114 | - </div> | ||
115 | - {{/list}} | ||
116 | - </div> | ||
117 | -</div> | ||
118 | -{{/washTips}} | ||
119 | - | ||
120 | -{{#productDetail}} | ||
121 | -<div class="product-detail page-block"> | ||
122 | - <h1 class="title"> | ||
123 | - {{{title}}} | ||
124 | - <span class="en-title">{{{enTitle}}}</span> | ||
125 | - </h1> | ||
126 | - <div class="detail"> | ||
127 | - <p>{{{desc}}}</p> | ||
128 | - {{#list}} | ||
129 | - <img class="lazy" data-original="{{img}}" alt=""> | ||
130 | - {{/list}} | ||
131 | - </div> | ||
132 | -</div> | ||
133 | -{{/productDetail}} |
@@ -51,12 +51,12 @@ class HomeController extends AbstractAction | @@ -51,12 +51,12 @@ class HomeController extends AbstractAction | ||
51 | ); | 51 | ); |
52 | $uid = $this->getUid(); | 52 | $uid = $this->getUid(); |
53 | if ($uid) { | 53 | if ($uid) { |
54 | + // 优选新品数据 | ||
55 | + $channel = Helpers::getChannelByCookie(); | ||
56 | + | ||
54 | $data['isLogin'] = true; | 57 | $data['isLogin'] = true; |
55 | $data += UserModel::getUserProfileData($uid); | 58 | $data += UserModel::getUserProfileData($uid); |
56 | $data += UserModel::getInfoNumData($uid); | 59 | $data += UserModel::getInfoNumData($uid); |
57 | - | ||
58 | - // 优选新品数据 | ||
59 | - $channel = Helpers::getChannelByCookie(); | ||
60 | $data['recommendForYou'] = UserModel::getPreferenceData($channel); | 60 | $data['recommendForYou'] = UserModel::getPreferenceData($channel); |
61 | } | 61 | } |
62 | 62 | ||
@@ -143,10 +143,10 @@ class HomeController extends AbstractAction | @@ -143,10 +143,10 @@ class HomeController extends AbstractAction | ||
143 | /** | 143 | /** |
144 | * 个人信息 | 144 | * 个人信息 |
145 | */ | 145 | */ |
146 | - public function personalDetailsAction() | 146 | + public function mydetailsAction() |
147 | { | 147 | { |
148 | $this->setTitle('个人信息'); | 148 | $this->setTitle('个人信息'); |
149 | - $this->setNavHeader('个人信息', true, SITE_MAIN); | 149 | + $this->setNavHeader('个人信息'); |
150 | 150 | ||
151 | $uid = $this->getUid(); | 151 | $uid = $this->getUid(); |
152 | $data = UserModel::getUserProfileData($uid); | 152 | $data = UserModel::getUserProfileData($uid); |
@@ -188,16 +188,16 @@ class HomeController extends AbstractAction | @@ -188,16 +188,16 @@ class HomeController extends AbstractAction | ||
188 | 188 | ||
189 | /** | 189 | /** |
190 | * 我的消息 | 190 | * 我的消息 |
191 | + * | ||
192 | + * 暂时使用老的,因后面APP、PC、WAP会进行一次改版 | ||
191 | */ | 193 | */ |
192 | public function messageAction() | 194 | public function messageAction() |
193 | { | 195 | { |
194 | - $uid = $this->getUid(); | ||
195 | - $page = $this->get('page', 0); | ||
196 | - $size = $this->get('size', 10); | ||
197 | - | ||
198 | - $messages = UserModel::getMessageData($uid, $page, $size); | ||
199 | - | ||
200 | - print_r($messages); | 196 | +// $uid = $this->getUid(); |
197 | +// $page = $this->get('page', 0); | ||
198 | +// $size = $this->get('size', 10); | ||
199 | +// | ||
200 | +// $messages = UserModel::getMessageData($uid, $page, $size); | ||
201 | } | 201 | } |
202 | 202 | ||
203 | /** | 203 | /** |
@@ -289,7 +289,9 @@ class HomeController extends AbstractAction | @@ -289,7 +289,9 @@ class HomeController extends AbstractAction | ||
289 | } | 289 | } |
290 | } | 290 | } |
291 | 291 | ||
292 | - //在线客服 | 292 | + /** |
293 | + * 在线客服 | ||
294 | + */ | ||
293 | public function onlineServiceAction() | 295 | public function onlineServiceAction() |
294 | { | 296 | { |
295 | // 设置网站标题 | 297 | // 设置网站标题 |
@@ -305,7 +307,9 @@ class HomeController extends AbstractAction | @@ -305,7 +307,9 @@ class HomeController extends AbstractAction | ||
305 | )); | 307 | )); |
306 | } | 308 | } |
307 | 309 | ||
308 | - //在线客服-具体详情 | 310 | + /** |
311 | + * 在线客服-具体详情 | ||
312 | + */ | ||
309 | public function onlineServiceDetailAction() | 313 | public function onlineServiceDetailAction() |
310 | { | 314 | { |
311 | $service = array(); | 315 | $service = array(); |
@@ -322,7 +326,7 @@ class HomeController extends AbstractAction | @@ -322,7 +326,7 @@ class HomeController extends AbstractAction | ||
322 | /** | 326 | /** |
323 | * 我的逛 | 327 | * 我的逛 |
324 | */ | 328 | */ |
325 | - public function myGuangAction() | 329 | + public function myguangAction() |
326 | { | 330 | { |
327 | $page = $this->get('page', 1); | 331 | $page = $this->get('page', 1); |
328 | $limit = $this->get('limit', 10); | 332 | $limit = $this->get('limit', 10); |
@@ -331,7 +335,6 @@ class HomeController extends AbstractAction | @@ -331,7 +335,6 @@ class HomeController extends AbstractAction | ||
331 | $yh_channel = Helpers::getChannelByCookie(); | 335 | $yh_channel = Helpers::getChannelByCookie(); |
332 | $guangInfo = \Home\GuangModel::getMyGuang($uid, $page, $yh_channel, $gender, $limit); | 336 | $guangInfo = \Home\GuangModel::getMyGuang($uid, $page, $yh_channel, $gender, $limit); |
333 | $totalPage = $guangInfo['totalPage']; | 337 | $totalPage = $guangInfo['totalPage']; |
334 | - unset($guangInfo['totalPage']); | ||
335 | if ($page == 1) { | 338 | if ($page == 1) { |
336 | $this->setTitle('我收藏的'); | 339 | $this->setTitle('我收藏的'); |
337 | $this->setNavHeader('我收藏的', true, ''); | 340 | $this->setNavHeader('我收藏的', true, ''); |
@@ -385,7 +388,7 @@ class HomeController extends AbstractAction | @@ -385,7 +388,7 @@ class HomeController extends AbstractAction | ||
385 | 'pageFooter' => true | 388 | 'pageFooter' => true |
386 | ); | 389 | ); |
387 | 390 | ||
388 | - $this->_view->display('suggest_sub', $data); | 391 | + $this->_view->display('suggest-sub', $data); |
389 | } | 392 | } |
390 | 393 | ||
391 | /** | 394 | /** |
@@ -445,6 +448,7 @@ class HomeController extends AbstractAction | @@ -445,6 +448,7 @@ class HomeController extends AbstractAction | ||
445 | $uid = $this->getUid(); | 448 | $uid = $this->getUid(); |
446 | $data = GradeModel::getGrade($gender, $channel, $uid); | 449 | $data = GradeModel::getGrade($gender, $channel, $uid); |
447 | $data['pageFooter'] = true; | 450 | $data['pageFooter'] = true; |
451 | + | ||
448 | $this->_view->display('vip-grade', $data); | 452 | $this->_view->display('vip-grade', $data); |
449 | } | 453 | } |
450 | 454 | ||
@@ -489,7 +493,9 @@ class HomeController extends AbstractAction | @@ -489,7 +493,9 @@ class HomeController extends AbstractAction | ||
489 | )); | 493 | )); |
490 | } | 494 | } |
491 | 495 | ||
492 | - //ajax请求订单页面 | 496 | + /** |
497 | + * ajax请求订单页面 | ||
498 | + */ | ||
493 | public function getOrdersAction() | 499 | public function getOrdersAction() |
494 | { | 500 | { |
495 | //判断是不是ajax请求 | 501 | //判断是不是ajax请求 |
@@ -527,10 +533,8 @@ class HomeController extends AbstractAction | @@ -527,10 +533,8 @@ class HomeController extends AbstractAction | ||
527 | /* | 533 | /* |
528 | * 我的订单-取消订单 | 534 | * 我的订单-取消订单 |
529 | */ | 535 | */ |
530 | - | ||
531 | public function cancelOrderAction() | 536 | public function cancelOrderAction() |
532 | { | 537 | { |
533 | - | ||
534 | //判断是不是ajax请求 | 538 | //判断是不是ajax请求 |
535 | if (!$this->isAjax()) { | 539 | if (!$this->isAjax()) { |
536 | $this->error(); | 540 | $this->error(); |
@@ -549,7 +553,6 @@ class HomeController extends AbstractAction | @@ -549,7 +553,6 @@ class HomeController extends AbstractAction | ||
549 | /* | 553 | /* |
550 | * 我的订单-删除订单 | 554 | * 我的订单-删除订单 |
551 | */ | 555 | */ |
552 | - | ||
553 | public function delOrderAction() | 556 | public function delOrderAction() |
554 | { | 557 | { |
555 | //判断是不是ajax请求 | 558 | //判断是不是ajax请求 |
@@ -570,7 +573,6 @@ class HomeController extends AbstractAction | @@ -570,7 +573,6 @@ class HomeController extends AbstractAction | ||
570 | /* | 573 | /* |
571 | * 我的订单-支付链接获取 | 574 | * 我的订单-支付链接获取 |
572 | */ | 575 | */ |
573 | - | ||
574 | private function paymentAction() | 576 | private function paymentAction() |
575 | { | 577 | { |
576 | $gender = Helpers::getGenderByCookie(); | 578 | $gender = Helpers::getGenderByCookie(); |
@@ -581,7 +583,6 @@ class HomeController extends AbstractAction | @@ -581,7 +583,6 @@ class HomeController extends AbstractAction | ||
581 | /* | 583 | /* |
582 | * 我的订单-随便逛逛链接获取 | 584 | * 我的订单-随便逛逛链接获取 |
583 | */ | 585 | */ |
584 | - | ||
585 | private function strollAction() | 586 | private function strollAction() |
586 | { | 587 | { |
587 | //获取性别、频道数据 | 588 | //获取性别、频道数据 |
@@ -201,14 +201,16 @@ class DetailModel | @@ -201,14 +201,16 @@ class DetailModel | ||
201 | 'title' => '商品信息', | 201 | 'title' => '商品信息', |
202 | 'enTitle' => 'PRODUCT INFO', | 202 | 'enTitle' => 'PRODUCT INFO', |
203 | 'detail' => array( | 203 | 'detail' => array( |
204 | + 'list' => array( | ||
204 | array('param' => '编号:' . $sizeInfo['productDescBo']['erpProductId']), | 205 | array('param' => '编号:' . $sizeInfo['productDescBo']['erpProductId']), |
205 | array('param' => '颜色:' . $sizeInfo['productDescBo']['colorName']), | 206 | array('param' => '颜色:' . $sizeInfo['productDescBo']['colorName']), |
207 | + ) | ||
206 | ), | 208 | ), |
207 | ); | 209 | ); |
208 | } | 210 | } |
209 | if (!empty($sizeInfo['productDescBo']['standardBos'])) { | 211 | if (!empty($sizeInfo['productDescBo']['standardBos'])) { |
210 | foreach ($sizeInfo['productDescBo']['standardBos'] as $value) { | 212 | foreach ($sizeInfo['productDescBo']['standardBos'] as $value) { |
211 | - $result['goodsDescription']['detail'][] = $value['standardName'] . ':' . $value['standardVal']; | 213 | + $result['goodsDescription']['detail']['list'][] = array('param' => $value['standardName'] . ':' . $value['standardVal']); |
212 | } | 214 | } |
213 | } | 215 | } |
214 | if (isset($sizeInfo['phrase'])) { | 216 | if (isset($sizeInfo['phrase'])) { |
@@ -216,28 +218,28 @@ class DetailModel | @@ -216,28 +218,28 @@ class DetailModel | ||
216 | } | 218 | } |
217 | 219 | ||
218 | // 尺码信息 | 220 | // 尺码信息 |
219 | - if (!empty($sizeInfo['productIntroBo']['sizeInfoBo'])) { | 221 | + if (!empty($sizeInfo['sizeInfoBo'])) { |
220 | $result['sizeInfo'] = array( | 222 | $result['sizeInfo'] = array( |
221 | 'title' => '尺码信息', | 223 | 'title' => '尺码信息', |
222 | 'enTitle' => 'SIZE INFO', | 224 | 'enTitle' => 'SIZE INFO', |
223 | 'detail' => array('list' => array()), | 225 | 'detail' => array('list' => array()), |
224 | ); | 226 | ); |
225 | - $sizeNameList = array(0 => array('param' => '吊牌尺码') ); // 尺码名称 | 227 | + $sizeNameList = array(0 => array('param' => '吊牌尺码')) ; // 尺码名称 |
226 | $sizeBoGroup = array(); // 尺码按ID分组 | 228 | $sizeBoGroup = array(); // 尺码按ID分组 |
227 | - foreach ($sizeInfo['productIntroBo']['sizeInfoBo']['sizeAttributeBos'] as $attr) { | ||
228 | - $sizeBoGroup[ $attr['id'] ][0] = array('param' => $value['attributeName']); | 229 | + foreach ($sizeInfo['sizeInfoBo']['sizeAttributeBos'] as $attr) { |
230 | + $sizeBoGroup[ $attr['id'] ][0] = array('param' => $attr['attributeName']); | ||
229 | } | 231 | } |
230 | - foreach ($sizeInfo['productIntroBo']['sizeInfoBo']['sizeBoList'] as $value) { | 232 | + foreach ($sizeInfo['sizeInfoBo']['sizeBoList'] as $value) { |
233 | + $sizeNameList[] = array('param' => $value['sizeName']); | ||
231 | foreach ($value['sortAttributes'] as $attr) { | 234 | foreach ($value['sortAttributes'] as $attr) { |
232 | $sizeBoGroup[ $attr['id'] ][] = array('param' => $attr['sizeValue']); | 235 | $sizeBoGroup[ $attr['id'] ][] = array('param' => $attr['sizeValue']); |
233 | - $sizeNameList[] = array('param' => $value['sizeName']); | ||
234 | } | 236 | } |
235 | } | 237 | } |
236 | 238 | ||
237 | // 根据模板页面的显示,按表格一列一列来显示 | 239 | // 根据模板页面的显示,按表格一列一列来显示 |
238 | - $result['detail']['list'][0] = $sizeNameList; | 240 | + $result['sizeInfo']['detail']['list'][0]['params'] = $sizeNameList; |
239 | foreach ($sizeBoGroup as $value) { | 241 | foreach ($sizeBoGroup as $value) { |
240 | - $result['detail']['list'][] = $value; | 242 | + $result['sizeInfo']['detail']['list'][]['params'] = $value; |
241 | } | 243 | } |
242 | } | 244 | } |
243 | 245 | ||
@@ -250,28 +252,28 @@ class DetailModel | @@ -250,28 +252,28 @@ class DetailModel | ||
250 | ); | 252 | ); |
251 | } | 253 | } |
252 | 254 | ||
253 | - // 模特试穿 | 255 | + // 模特试穿, 竖着输出排列显示 |
254 | if (!empty($sizeInfo['modelBos'])) { | 256 | if (!empty($sizeInfo['modelBos'])) { |
255 | $result['reference'] = array( | 257 | $result['reference'] = array( |
256 | 'title' => '模特试穿', | 258 | 'title' => '模特试穿', |
257 | 'enTitle' => 'REFERENCE', | 259 | 'enTitle' => 'REFERENCE', |
258 | 'detail' => array('list' => array()), | 260 | 'detail' => array('list' => array()), |
259 | ); | 261 | ); |
260 | - $result['reference']['detail']['list'][0] = array(0 => array('param' => '')); // 头像列表 | ||
261 | - $result['reference']['detail']['list'][1] = array(0 => array('param' => '模特')); // 模特名字列表 | ||
262 | - $result['reference']['detail']['list'][2] = array(0 => array('param' => '身高')); // 身高列表 | ||
263 | - $result['reference']['detail']['list'][3] = array(0 => array('param' => '体重')); // 体重列表 | ||
264 | - $result['reference']['detail']['list'][4] = array(0 => array('param' => '三围')); // 三围列表 | ||
265 | - $result['reference']['detail']['list'][5] = array(0 => array('param' => '吊牌尺码')); // 吊牌尺码 | ||
266 | - $result['reference']['detail']['list'][6] = array(0 => array('param' => '试穿描述')); // 试穿描述 | 262 | + $result['reference']['detail']['list'][0]['params'] = array(0 => array('param' => '')); // 头像列表 |
263 | + $result['reference']['detail']['list'][1]['params'] = array(0 => array('param' => '模特')); // 模特名字列表 | ||
264 | + $result['reference']['detail']['list'][2]['params'] = array(0 => array('param' => '身高')); // 身高列表 | ||
265 | + $result['reference']['detail']['list'][3]['params'] = array(0 => array('param' => '体重')); // 体重列表 | ||
266 | + $result['reference']['detail']['list'][4]['params'] = array(0 => array('param' => '三围')); // 三围列表 | ||
267 | + $result['reference']['detail']['list'][5]['params'] = array(0 => array('param' => '吊牌尺码')); // 吊牌尺码 | ||
268 | + $result['reference']['detail']['list'][6]['params'] = array(0 => array('param' => '试穿描述')); // 试穿描述 | ||
267 | foreach ($sizeInfo['modelBos'] as $value) { | 269 | foreach ($sizeInfo['modelBos'] as $value) { |
268 | - $result['reference']['detail']['list'][0][] = array('param' => $value['avatar']); | ||
269 | - $result['reference']['detail']['list'][1][] = array('param' => $value['modelName']); | ||
270 | - $result['reference']['detail']['list'][2][] = array('param' => $value['height']); | ||
271 | - $result['reference']['detail']['list'][3][] = array('param' => $value['weight']); | ||
272 | - $result['reference']['detail']['list'][4][] = array('param' => $value['vitalStatistics']); | ||
273 | - $result['reference']['detail']['list'][5][] = array('param' => $value['fitModelBo']['fit_size']); | ||
274 | - $result['reference']['detail']['list'][6][] = array('param' => $value['fitModelBo']['feel']); | 270 | + $result['reference']['detail']['list'][0]['params'][] = array('param' => $value['avatar']); |
271 | + $result['reference']['detail']['list'][1]['params'][] = array('param' => $value['modelName']); | ||
272 | + $result['reference']['detail']['list'][2]['params'][] = array('param' => $value['height']); | ||
273 | + $result['reference']['detail']['list'][3]['params'][] = array('param' => $value['weight']); | ||
274 | + $result['reference']['detail']['list'][4]['params'][] = array('param' => $value['vitalStatistics']); | ||
275 | + $result['reference']['detail']['list'][5]['params'][] = array('param' => $value['fitModelBo']['fit_size']); | ||
276 | + $result['reference']['detail']['list'][6]['params'][] = array('param' => $value['fitModelBo']['feel']); | ||
275 | } | 277 | } |
276 | } | 278 | } |
277 | 279 |
@@ -49,6 +49,7 @@ class DetailController extends AbstractAction | @@ -49,6 +49,7 @@ class DetailController extends AbstractAction | ||
49 | public function introAction() | 49 | public function introAction() |
50 | { | 50 | { |
51 | $productSkn = $this->param('productSkn'); | 51 | $productSkn = $this->param('productSkn'); |
52 | + $productSkn = 50027562; | ||
52 | if (!is_numeric($productSkn)) { | 53 | if (!is_numeric($productSkn)) { |
53 | $this->error(); | 54 | $this->error(); |
54 | } | 55 | } |
-
Please register or login to post a comment