do goods detail page merge other code
Showing
5 changed files
with
254 additions
and
148 deletions
@@ -22,7 +22,7 @@ class PlusstarData | @@ -22,7 +22,7 @@ class PlusstarData | ||
22 | { | 22 | { |
23 | 23 | ||
24 | const URI_BRANDLIST = 'guang/api/v1/plustar/getlist'; | 24 | const URI_BRANDLIST = 'guang/api/v1/plustar/getlist'; |
25 | - const URI_BRANDINFO_PLUSSTAR = 'guang/service/v1/plustar/'; // 'guang/service/v3/plustar/' | 25 | + const URI_BRANDINFO_PLUSSTAR = 'guang/service/v3/plustar/'; // 'guang/service/v3/plustar/' |
26 | const URI_BRANDINFO_FAVORITE = 'shops/service/v1/favorite/'; | 26 | const URI_BRANDINFO_FAVORITE = 'shops/service/v1/favorite/'; |
27 | const URI_BRANDINFO_ARTICLE = 'guang/service/v1/article/'; | 27 | const URI_BRANDINFO_ARTICLE = 'guang/service/v1/article/'; |
28 | 28 |
@@ -226,29 +226,36 @@ $basicBtnC:#eb0313; | @@ -226,29 +226,36 @@ $basicBtnC:#eb0313; | ||
226 | } | 226 | } |
227 | } | 227 | } |
228 | .goodsDiscount{ | 228 | .goodsDiscount{ |
229 | - min-height: pxToRem(88px); | ||
230 | - padding-left:pxToRem(28px); | ||
231 | - padding-right:pxToRem(28px); | ||
232 | - font-size: pxToRem(28px); | ||
233 | - color: $mainFontC; | ||
234 | - line-height: pxToRem(88px); | ||
235 | - | ||
236 | - border-bottom: 1px solid $borderC; | ||
237 | - | ||
238 | - .iconfont{ | ||
239 | - display: inline-block; | ||
240 | - width: pxToRem(35px); | ||
241 | - font-size: pxToRem(45px); | ||
242 | - float: right; | ||
243 | - color:#e0e0e0; | ||
244 | - // padding-left:pxToRem(50px); | ||
245 | - } | ||
246 | - } | 229 | + |
230 | + font-size: pxToRem(28px); | ||
231 | + color: $mainFontC; | ||
232 | + border-bottom: 1px solid $borderC; | ||
233 | + h1{ | ||
234 | + padding : pxToRem(30px) pxToRem(28px); | ||
235 | + line-height: pxToRem(36px); | ||
236 | + // line-height: pxToRem(88px); | ||
237 | + } | ||
238 | + .iconfont{ | ||
239 | + display: inline-block; | ||
240 | + width: pxToRem(35px); | ||
241 | + font-size: pxToRem(45px); | ||
242 | + float: right; | ||
243 | + color:#e0e0e0; | ||
244 | + // padding-left:pxToRem(50px); | ||
245 | + } | ||
246 | + .discount-folder{ | ||
247 | + .folder-item{ | ||
248 | + border-top: 1px solid $borderC; | ||
249 | + } | ||
250 | + display: none; | ||
251 | + } | ||
252 | + | ||
253 | +} | ||
247 | .goodsSubtitle, | 254 | .goodsSubtitle, |
248 | .goodsDiscount{ | 255 | .goodsDiscount{ |
249 | text-indent: pxToRem(-14px); | 256 | text-indent: pxToRem(-14px); |
250 | } | 257 | } |
251 | - .feedback-list-page { | 258 | + .feedback-list { |
252 | padding-top: pxToRem(30px); | 259 | padding-top: pxToRem(30px); |
253 | background-color: #f0f0f0; | 260 | background-color: #f0f0f0; |
254 | 261 | ||
@@ -404,7 +411,20 @@ $basicBtnC:#eb0313; | @@ -404,7 +411,20 @@ $basicBtnC:#eb0313; | ||
404 | display: none; | 411 | display: none; |
405 | } | 412 | } |
406 | } | 413 | } |
407 | - | 414 | +.feedback-list .nodata{ |
415 | + height: pxToRem(88px); | ||
416 | + font-size: pxToRem(28px); | ||
417 | + line-height: pxToRem(88px); | ||
418 | + background-color: #fff; | ||
419 | + padding:0 pxToRem(28px); | ||
420 | + .go-consult{ | ||
421 | + float: right; | ||
422 | + color: $subFontC; | ||
423 | + span{ | ||
424 | + font-size: pxToRem(28px); | ||
425 | + } | ||
426 | + } | ||
427 | +} | ||
408 | .enter-store{ | 428 | .enter-store{ |
409 | min-height: pxToRem(100px); | 429 | min-height: pxToRem(100px); |
410 | display: table; | 430 | display: table; |
@@ -484,6 +504,8 @@ $basicBtnC:#eb0313; | @@ -484,6 +504,8 @@ $basicBtnC:#eb0313; | ||
484 | 504 | ||
485 | .detail-swiper{ | 505 | .detail-swiper{ |
486 | .swiper-wrapper{ | 506 | .swiper-wrapper{ |
507 | + height: pxToRem(200px); | ||
508 | + overflow: hidden; | ||
487 | .swiper-slide{ | 509 | .swiper-slide{ |
488 | width: pxToRem(114px); | 510 | width: pxToRem(114px); |
489 | div{ | 511 | div{ |
@@ -516,7 +538,7 @@ $basicBtnC:#eb0313; | @@ -516,7 +538,7 @@ $basicBtnC:#eb0313; | ||
516 | .measurement-method{ | 538 | .measurement-method{ |
517 | .detail{ | 539 | .detail{ |
518 | width: 100%; | 540 | width: 100%; |
519 | - // height: pxToRem(300px); | 541 | + height: pxToRem(260px); |
520 | img{ | 542 | img{ |
521 | float:left; | 543 | float:left; |
522 | width: pxToRem(270px); | 544 | width: pxToRem(270px); |
@@ -584,7 +606,8 @@ $basicBtnC:#eb0313; | @@ -584,7 +606,8 @@ $basicBtnC:#eb0313; | ||
584 | font-size: pxToRem(34px); | 606 | font-size: pxToRem(34px); |
585 | color:$basicBtnC; | 607 | color:$basicBtnC; |
586 | } | 608 | } |
587 | - &.addto-cart{ | 609 | + &.addto-cart, |
610 | + &.sold-out{ | ||
588 | height: pxToRem(80px); | 611 | height: pxToRem(80px); |
589 | width: pxToRem(260px); | 612 | width: pxToRem(260px); |
590 | margin:0 pxToRem(100px) 0 pxToRem(115px); | 613 | margin:0 pxToRem(100px) 0 pxToRem(115px); |
@@ -594,6 +617,9 @@ $basicBtnC:#eb0313; | @@ -594,6 +617,9 @@ $basicBtnC:#eb0313; | ||
594 | line-height: pxToRem(80px); | 617 | line-height: pxToRem(80px); |
595 | text-align: center; | 618 | text-align: center; |
596 | } | 619 | } |
620 | + &.sold-out{ | ||
621 | + background-color: #f58189; | ||
622 | + } | ||
597 | } | 623 | } |
598 | .num-tag{ | 624 | .num-tag{ |
599 | position: absolute; | 625 | position: absolute; |
@@ -57,22 +57,93 @@ | @@ -57,22 +57,93 @@ | ||
57 | 57 | ||
58 | <div class="feedback-list "> | 58 | <div class="feedback-list "> |
59 | {{# feedbacks}} | 59 | {{# feedbacks}} |
60 | - {{#if nodata}} | ||
61 | - <div class="nodata"> | ||
62 | - <span>暂无商品评价和咨询</span> | ||
63 | - <a class="go-consult">我要咨询<i class="iconfont"><span class="iconfont"></span></a> | 60 | + {{#if commentsNum}} |
61 | + <!--tab begin--> | ||
62 | + <ul id="nav-tab" class="nav-tab clearfix"> | ||
63 | + <li class="comment-nav">商品评价(<span class="comments-num">{{commentsNum}}</span>)</li> | ||
64 | + <li class="consult-nav">购买咨询(<span class="consults-num">{{consultsNum}}</span>)</li> | ||
65 | + </ul> | ||
66 | + <div id="feedback-content" > | ||
67 | + | ||
68 | + <div class="comment-content content "> | ||
69 | + {{#if commentsNum}} | ||
70 | + <div class="comment-content-main content-main"> | ||
71 | + {{# comments}} | ||
72 | + <span class="user-name"> | ||
73 | + {{userName}} | ||
74 | + </span> | ||
75 | + <span class="goods-spec"> | ||
76 | + {{desc}} | ||
77 | + </span> | ||
78 | + <p class="detail-content"> | ||
79 | + {{content}} | ||
80 | + </p> | ||
81 | + <span class="comment-time"> | ||
82 | + {{time}} | ||
83 | + </span> | ||
84 | + {{/ comments}} | ||
85 | + </div> | ||
86 | + {{else}} | ||
87 | + <div class="comment-content-main content-main no-item"> | ||
88 | + <span class="iconfont"></span>暂无评论 | ||
89 | + </div> | ||
90 | + {{/if}} | ||
91 | + <div class="comment-content-footer"> | ||
92 | + <a href="{{link}}">查看更多 <span class="iconfont"></span></a> | ||
93 | + </div> | ||
64 | </div> | 94 | </div> |
95 | + | ||
96 | + | ||
97 | + <div class="consult-content content hide "> | ||
98 | + {{#if consultsNum}} | ||
99 | + <div class="consult-content-main content-main"> | ||
100 | + {{# consults}} | ||
101 | + <div class="question"> | ||
102 | + <span class="iconfont"></span> | ||
103 | + <p>{{question}} | ||
104 | + <span class="time"> | ||
105 | + {{time}} | ||
106 | + </span> | ||
107 | + </p> | ||
108 | + </div> | ||
109 | + | ||
110 | + <div class="answer"> | ||
111 | + <span class="iconfont"></span> | ||
112 | + <p>{{answer}}</p> | ||
113 | + </div> | ||
114 | + {{/ consults}} | ||
115 | + </div> | ||
116 | + <div class="consult-content-footer"> | ||
117 | + <a href="{{link}}"> | ||
118 | + 查看更多 | ||
119 | + <span class="iconfont"></span></a> | ||
120 | + </div> | ||
121 | + {{else}} | ||
122 | + <div class="comment-content-main content-main no-item"> | ||
123 | + <span class="iconfont"></span>暂无咨询 | ||
124 | + </div> | ||
125 | + <div class="consult-content-footer"> | ||
126 | + <a href="{{link}}"> | ||
127 | + 我要咨询 | ||
128 | + <span class="iconfont"></span></a> | ||
129 | + </div> | ||
130 | + {{/if}} | ||
131 | + | ||
132 | + </div> | ||
133 | + </div> | ||
134 | + <!--/tab end--> | ||
65 | {{else}} | 135 | {{else}} |
66 | - | ||
67 | - <ul id="nav-tab" class="nav-tab clearfix"> | ||
68 | - <li class="comment-nav">商品评价(<span class="comments-num">{{commentsNum}}</span>)</li> | ||
69 | - <li class="consult-nav">购买咨询(<span class="consults-num">{{consultsNum}}</span>)</li> | ||
70 | - </ul> | ||
71 | - <div id="feedback-content" > | ||
72 | - | ||
73 | - <div class="comment-content content "> | ||
74 | - {{#if commentsNum}} | ||
75 | - <div class="comment-content-main content-main"> | 136 | + {{#if consultsNum}} |
137 | + <!--tab begin--> | ||
138 | + <ul id="nav-tab" class="nav-tab clearfix"> | ||
139 | + <li class="comment-nav">商品评价(<span class="comments-num">{{commentsNum}}</span>)</li> | ||
140 | + <li class="consult-nav">购买咨询(<span class="consults-num">{{consultsNum}}</span>)</li> | ||
141 | + </ul> | ||
142 | + <div id="feedback-content" > | ||
143 | + | ||
144 | + <div class="comment-content content "> | ||
145 | + {{#if commentsNum}} | ||
146 | + <div class="comment-content-main content-main"> | ||
76 | {{# comments}} | 147 | {{# comments}} |
77 | <span class="user-name"> | 148 | <span class="user-name"> |
78 | {{userName}} | 149 | {{userName}} |
@@ -88,13 +159,13 @@ | @@ -88,13 +159,13 @@ | ||
88 | </span> | 159 | </span> |
89 | {{/ comments}} | 160 | {{/ comments}} |
90 | </div> | 161 | </div> |
91 | - {{else}} | ||
92 | - <div class="comment-content-main content-main no-item"> | ||
93 | - <span class="iconfont"></span>暂无评论 | ||
94 | - </div> | 162 | + {{else}} |
163 | + <div class="comment-content-main content-main no-item"> | ||
164 | + <span class="iconfont"></span>暂无评论 | ||
165 | + </div> | ||
95 | {{/if}} | 166 | {{/if}} |
96 | <div class="comment-content-footer"> | 167 | <div class="comment-content-footer"> |
97 | - <a href="{{moreComments}}">查看更多 <span class="iconfont"></span></a> | 168 | + <a href="{{link}}">查看更多 <span class="iconfont"></span></a> |
98 | </div> | 169 | </div> |
99 | </div> | 170 | </div> |
100 | 171 | ||
@@ -109,7 +180,7 @@ | @@ -109,7 +180,7 @@ | ||
109 | <span class="time"> | 180 | <span class="time"> |
110 | {{time}} | 181 | {{time}} |
111 | </span> | 182 | </span> |
112 | - </p> | 183 | + </p> |
113 | </div> | 184 | </div> |
114 | 185 | ||
115 | <div class="answer"> | 186 | <div class="answer"> |
@@ -119,24 +190,34 @@ | @@ -119,24 +190,34 @@ | ||
119 | {{/ consults}} | 190 | {{/ consults}} |
120 | </div> | 191 | </div> |
121 | <div class="consult-content-footer"> | 192 | <div class="consult-content-footer"> |
122 | - <a href="{{moreConsults}}"> | 193 | + <a href="{{link}}"> |
123 | 查看更多 | 194 | 查看更多 |
124 | <span class="iconfont"></span></a> | 195 | <span class="iconfont"></span></a> |
125 | - </div> | 196 | + </div> |
126 | {{else}} | 197 | {{else}} |
127 | - <div class="comment-content-main content-main no-item"> | ||
128 | - <span class="iconfont"></span>暂无咨询 | ||
129 | - </div> | ||
130 | - <div class="consult-content-footer"> | ||
131 | - <a href="{{gotoConsults}}"> | 198 | + <div class="comment-content-main content-main no-item"> |
199 | + <span class="iconfont"></span>暂无咨询 | ||
200 | + </div> | ||
201 | + <div class="consult-content-footer"> | ||
202 | + <a href="{{link}}"> | ||
132 | 我要咨询 | 203 | 我要咨询 |
133 | <span class="iconfont"></span></a> | 204 | <span class="iconfont"></span></a> |
134 | </div> | 205 | </div> |
135 | - {{/if}} | 206 | + {{/if}} |
136 | 207 | ||
208 | + </div> | ||
209 | + </div> | ||
210 | + <!--/tab end--> | ||
211 | + {{else}} | ||
212 | + <div class="nodata"> | ||
213 | + <span>暂无商品评价和咨询</span> | ||
214 | + <a class="go-consult">我要咨询<span class="iconfont"></span></a> | ||
137 | </div> | 215 | </div> |
138 | - </div> | 216 | + {{/if}} |
139 | {{/if}} | 217 | {{/if}} |
218 | + | ||
219 | + | ||
220 | + | ||
140 | {{/ feedbacks}} | 221 | {{/ feedbacks}} |
141 | </div> | 222 | </div> |
142 | 223 |
@@ -3,6 +3,7 @@ | @@ -3,6 +3,7 @@ | ||
3 | use Action\AbstractAction; | 3 | use Action\AbstractAction; |
4 | use LibModels\Wap\Guang\PlusstarData; | 4 | use LibModels\Wap\Guang\PlusstarData; |
5 | use Plugin\Helpers; | 5 | use Plugin\Helpers; |
6 | +use Plugin\Images; | ||
6 | 7 | ||
7 | /** | 8 | /** |
8 | * 明星品牌和原创品牌 | 9 | * 明星品牌和原创品牌 |
@@ -131,7 +132,7 @@ class PlusstarController extends AbstractAction | @@ -131,7 +132,7 @@ class PlusstarController extends AbstractAction | ||
131 | $data['psDetail'] = true; | 132 | $data['psDetail'] = true; |
132 | $data['ps']['id'] = $brandId; | 133 | $data['ps']['id'] = $brandId; |
133 | $data['ps']['banner'] = Helpers::getImageUrl($brandInfo['getBrandInfo']['data']['cover_img'], 640, 309); | 134 | $data['ps']['banner'] = Helpers::getImageUrl($brandInfo['getBrandInfo']['data']['cover_img'], 640, 309); |
134 | - $data['ps']['logo'] = Helpers::getImageUrl($brandInfo['getBrandInfo']['data']['brand_ico'], 160, 160); | 135 | + $data['ps']['logo'] = Images::getSourceUrl($brandInfo['getBrandInfo']['data']['brand_ico'],'brandLogo'); |
135 | $data['ps']['name'] = $brandInfo['getBrandInfo']['data']['brand_name']; | 136 | $data['ps']['name'] = $brandInfo['getBrandInfo']['data']['brand_name']; |
136 | $data['ps']['isLike'] = $brandInfo['getUidBrandFav']; | 137 | $data['ps']['isLike'] = $brandInfo['getUidBrandFav']; |
137 | $data['ps']['intro'] = empty($brandInfo['getBrandInfo']['data']['brand_intro']) ? false : strtr(strip_tags($brandInfo['getBrandInfo']['data']['brand_intro']), array(' ' => ' ')); | 138 | $data['ps']['intro'] = empty($brandInfo['getBrandInfo']['data']['brand_intro']) ? false : strtr(strip_tags($brandInfo['getBrandInfo']['data']['brand_intro']), array(' ' => ' ')); |
1 | <?php | 1 | <?php |
2 | + | ||
2 | use Action\AbstractAction; | 3 | use Action\AbstractAction; |
3 | 4 | ||
4 | /** | 5 | /** |
@@ -6,6 +7,7 @@ use Action\AbstractAction; | @@ -6,6 +7,7 @@ use Action\AbstractAction; | ||
6 | */ | 7 | */ |
7 | class DetailController extends AbstractAction | 8 | class DetailController extends AbstractAction |
8 | { | 9 | { |
10 | + | ||
9 | /** | 11 | /** |
10 | * 商品详情 | 12 | * 商品详情 |
11 | * | 13 | * |
@@ -13,11 +15,11 @@ class DetailController extends AbstractAction | @@ -13,11 +15,11 @@ class DetailController extends AbstractAction | ||
13 | * @param int goodsId | 15 | * @param int goodsId |
14 | */ | 16 | */ |
15 | public function indexAction() | 17 | public function indexAction() |
16 | - { | 18 | + { |
17 | $productId = $this->param('productId', 123); | 19 | $productId = $this->param('productId', 123); |
18 | $goodsId = $this->param('goodsId', 3241); | 20 | $goodsId = $this->param('goodsId', 3241); |
19 | $uid = $this->getUid(); | 21 | $uid = $this->getUid(); |
20 | - | 22 | + |
21 | $data = \Product\DetailModel::getBaseInfo($productId, $goodsId, $uid); | 23 | $data = \Product\DetailModel::getBaseInfo($productId, $goodsId, $uid); |
22 | $data['goodsDetailPage'] = true; | 24 | $data['goodsDetailPage'] = true; |
23 | 25 | ||
@@ -25,7 +27,7 @@ class DetailController extends AbstractAction | @@ -25,7 +27,7 @@ class DetailController extends AbstractAction | ||
25 | $this->setTitle($data['goodsName']); | 27 | $this->setTitle($data['goodsName']); |
26 | } | 28 | } |
27 | $this->setNavHeader('商品详情'); | 29 | $this->setNavHeader('商品详情'); |
28 | - | 30 | + |
29 | // $data = array ( | 31 | // $data = array ( |
30 | // 'goodsDetailPage' => true, | 32 | // 'goodsDetailPage' => true, |
31 | // 'pageHeader' => array ( | 33 | // 'pageHeader' => array ( |
@@ -252,109 +254,105 @@ class DetailController extends AbstractAction | @@ -252,109 +254,105 @@ class DetailController extends AbstractAction | ||
252 | // ) | 254 | // ) |
253 | // | 255 | // |
254 | // ); | 256 | // ); |
255 | - | ||
256 | // 渲染模板 | 257 | // 渲染模板 |
257 | $this->_view->display('index', $data); | 258 | $this->_view->display('index', $data); |
258 | } | 259 | } |
259 | 260 | ||
260 | - public function commentsAction(){ | ||
261 | - $data = array( | ||
262 | - | ||
263 | - 'goodsCommentsPage' =>true, | ||
264 | - 'pageHeader' => array ( | ||
265 | - 'navBack' => 'sss ', | ||
266 | - // 'navHome' => 'sss ', | ||
267 | - 'navTitle' => '购买评价(6)' | ||
268 | - ), | ||
269 | - 'pageFooter' => true, | ||
270 | - 'comments'=>array( | ||
271 | - 'list' =>array( | ||
272 | - array( | ||
273 | - 'userName'=>'Lynnic', | ||
274 | - 'desc'=>'购买了白色Mate7', | ||
275 | - 'content'=>'活动时买的,挺超值。上身效果也不错。质量 | ||
276 | - 很好,买送人的,很满意。而且物流相当给...', | ||
277 | - 'time'=>'2014-08-12 10:24:26' | ||
278 | - ), | ||
279 | - array( | ||
280 | - 'userName'=>'Lynnic', | ||
281 | - 'desc'=>'购买了白色Mate7', | ||
282 | - 'content'=>'活动时买的,挺超值。上身效果也不错。质量 | 261 | + public function commentsAction() |
262 | + { | ||
263 | + $data = array( | ||
264 | + 'goodsCommentsPage' => true, | ||
265 | + 'pageHeader' => array( | ||
266 | + 'navBack' => 'sss ', | ||
267 | + // 'navHome' => 'sss ', | ||
268 | + 'navTitle' => '购买评价(6)' | ||
269 | + ), | ||
270 | + 'pageFooter' => true, | ||
271 | + 'comments' => array( | ||
272 | + 'list' => array( | ||
273 | + array( | ||
274 | + 'userName' => 'Lynnic', | ||
275 | + 'desc' => '购买了白色Mate7', | ||
276 | + 'content' => '活动时买的,挺超值。上身效果也不错。质量 | ||
283 | 很好,买送人的,很满意。而且物流相当给...', | 277 | 很好,买送人的,很满意。而且物流相当给...', |
284 | - 'time'=>'2014-08-12 10:24:26' | ||
285 | - ), | ||
286 | - array( | ||
287 | - 'userName'=>'Lynnic', | ||
288 | - 'desc'=>'购买了白色Mate7', | ||
289 | - 'content'=>'活动时买的,挺超值。上身效果也不错。质量 | 278 | + 'time' => '2014-08-12 10:24:26' |
279 | + ), | ||
280 | + array( | ||
281 | + 'userName' => 'Lynnic', | ||
282 | + 'desc' => '购买了白色Mate7', | ||
283 | + 'content' => '活动时买的,挺超值。上身效果也不错。质量 | ||
290 | 很好,买送人的,很满意。而且物流相当给...', | 284 | 很好,买送人的,很满意。而且物流相当给...', |
291 | - 'time'=>'2014-08-12 10:24:26' | ||
292 | - ) | ||
293 | - | ||
294 | - ) | 285 | + 'time' => '2014-08-12 10:24:26' |
295 | ), | 286 | ), |
296 | - ); | ||
297 | - | ||
298 | - $this->_view->assign('title', '购买评价'); | ||
299 | - //$this->_view->display('brand', compact('brands')); | ||
300 | - | ||
301 | - // 渲染模板 | ||
302 | - $this->_view->display('comments', $data); | ||
303 | - } | 287 | + array( |
288 | + 'userName' => 'Lynnic', | ||
289 | + 'desc' => '购买了白色Mate7', | ||
290 | + 'content' => '活动时买的,挺超值。上身效果也不错。质量 | ||
291 | + 很好,买送人的,很满意。而且物流相当给...', | ||
292 | + 'time' => '2014-08-12 10:24:26' | ||
293 | + ) | ||
294 | + ) | ||
295 | + ), | ||
296 | + ); | ||
304 | 297 | ||
298 | + $this->_view->assign('title', '购买评价'); | ||
299 | + //$this->_view->display('brand', compact('brands')); | ||
300 | + // 渲染模板 | ||
301 | + $this->_view->display('comments', $data); | ||
302 | + } | ||
305 | 303 | ||
306 | - public function consultsAction(){ | ||
307 | - $data = array( | ||
308 | - 'goodsConsultsPage' =>true, | ||
309 | - 'pageHeader' => array ( | ||
310 | - 'navBack' => 'sss ', | ||
311 | - // 'navHome' => 'sss ', | ||
312 | - 'navTitle' => '购买咨询(6)' | ||
313 | - ), | ||
314 | - 'pageFooter' => true, | ||
315 | - 'consults'=>array( | ||
316 | - 'list' =>array( | ||
317 | - array( | ||
318 | - 'question' =>'您好 我一米七七 140斤 穿M的行吗', | ||
319 | - 'time'=>'2014-08-12 10:24:26', | ||
320 | - 'answer'=>'您好,建议您参考XL的款式,由于版型和个人穿衣风格不同,需要' | ||
321 | - ), | ||
322 | - array( | ||
323 | - 'question' =>'您好 我一米七七 140斤 穿M的行吗', | ||
324 | - 'time'=>'2014-08-12 10:24:26', | ||
325 | - 'answer'=>'您好,建议您参考XL的款式,由于版型和个人穿衣风格不同,需要' | ||
326 | - ), | ||
327 | - array( | ||
328 | - 'question' =>'您好 我一米七七 140斤 穿M的行吗', | ||
329 | - 'time'=>'2014-08-12 10:24:26', | ||
330 | - 'answer'=>'您好,建议您参考XL的款式,由于版型和个人穿衣风格不同,需要' | ||
331 | - ) | ||
332 | - | ||
333 | - ) | 304 | + public function consultsAction() |
305 | + { | ||
306 | + $data = array( | ||
307 | + 'goodsConsultsPage' => true, | ||
308 | + 'pageHeader' => array( | ||
309 | + 'navBack' => 'sss ', | ||
310 | + // 'navHome' => 'sss ', | ||
311 | + 'navTitle' => '购买咨询(6)' | ||
312 | + ), | ||
313 | + 'pageFooter' => true, | ||
314 | + 'consults' => array( | ||
315 | + 'list' => array( | ||
316 | + array( | ||
317 | + 'question' => '您好 我一米七七 140斤 穿M的行吗', | ||
318 | + 'time' => '2014-08-12 10:24:26', | ||
319 | + 'answer' => '您好,建议您参考XL的款式,由于版型和个人穿衣风格不同,需要' | ||
334 | ), | 320 | ), |
335 | - ); | ||
336 | - | ||
337 | - $this->_view->assign('title', '购买咨询'); | ||
338 | - //$this->_view->display('brand', compact('brands')); | 321 | + array( |
322 | + 'question' => '您好 我一米七七 140斤 穿M的行吗', | ||
323 | + 'time' => '2014-08-12 10:24:26', | ||
324 | + 'answer' => '您好,建议您参考XL的款式,由于版型和个人穿衣风格不同,需要' | ||
325 | + ), | ||
326 | + array( | ||
327 | + 'question' => '您好 我一米七七 140斤 穿M的行吗', | ||
328 | + 'time' => '2014-08-12 10:24:26', | ||
329 | + 'answer' => '您好,建议您参考XL的款式,由于版型和个人穿衣风格不同,需要' | ||
330 | + ) | ||
331 | + ) | ||
332 | + ), | ||
333 | + ); | ||
339 | 334 | ||
340 | - // 渲染模板 | ||
341 | - $this->_view->display('consults', $data); | ||
342 | - } | 335 | + $this->_view->assign('title', '购买咨询'); |
336 | + //$this->_view->display('brand', compact('brands')); | ||
337 | + // 渲染模板 | ||
338 | + $this->_view->display('consults', $data); | ||
339 | + } | ||
343 | 340 | ||
344 | - public function consultformAction(){ | ||
345 | - $data = array( | ||
346 | - 'consultform' =>true, | ||
347 | - 'pageHeader' => array ( | ||
348 | - 'navBack' => 'sss ', | ||
349 | - // 'navHome' => 'sss ', | ||
350 | - 'navTitle' => '我要咨询' | ||
351 | - ) | ||
352 | - ); | 341 | + public function consultformAction() |
342 | + { | ||
343 | + $data = array( | ||
344 | + 'consultform' => true, | ||
345 | + 'pageHeader' => array( | ||
346 | + 'navBack' => 'sss ', | ||
347 | + // 'navHome' => 'sss ', | ||
348 | + 'navTitle' => '我要咨询' | ||
349 | + ) | ||
350 | + ); | ||
353 | 351 | ||
354 | - $this->_view->assign('title', '我要咨询'); | ||
355 | - //$this->_view->display('brand', compact('brands')); | 352 | + $this->_view->assign('title', '我要咨询'); |
353 | + //$this->_view->display('brand', compact('brands')); | ||
354 | + // 渲染模板 | ||
355 | + $this->_view->display('consultform', $data); | ||
356 | + } | ||
356 | 357 | ||
357 | - // 渲染模板 | ||
358 | - $this->_view->display('consultform', $data); | ||
359 | - } | ||
360 | -} | ||
358 | +} |
-
Please register or login to post a comment