Authored by hf

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

1 -commit 7229af7cecf40861c6fb3987c1f38ac3da2faef9  
2 -Author: Lynnic <gunix@foxmail.com>  
3 -Date: Fri Nov 13 17:45:31 2015 +0800  
4 -  
5 - update  
6 -  
7 -commit 2c21a46be447a1bc1982d8ad3cad7f8c00a63a0f  
8 -Author: xuqi <xuqi9010@gmail.com>  
9 -Date: Fri Nov 13 17:27:02 2015 +0800  
10 -  
11 - rm temp file  
12 -  
13 -commit 34763241edf84698b24ecb2aa2f2bfa1e37afc32  
14 -Author: liangzhifeng <zhifeng.liang@yoho.cn>  
15 -Date: Fri Nov 13 16:58:28 2015 +0800  
16 -  
17 - update yas version  
18 -  
19 -commit 3b4a6cd6177ec9cef8ab953b165da1d222974382  
20 -Merge: c1b68bb 7ccb30d  
21 -Author: liangzhifeng <zhifeng.liang@yoho.cn>  
22 -Date: Fri Nov 13 16:39:59 2015 +0800  
23 -  
24 - Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop  
25 -  
26 -commit c1b68bb739bb2535d9d8a205aa198ccc1844752d  
27 -Author: liangzhifeng <zhifeng.liang@yoho.cn>  
28 -Date: Fri Nov 13 16:39:26 2015 +0800  
29 -  
30 - update yas version  
31 -  
32 -commit 7ccb30d2ca3d45bf82638f63c8ae0e0db27b3a5f  
33 -Author: Lynnic <gunix@foxmail.com>  
34 -Date: Fri Nov 13 15:37:18 2015 +0800  
35 -  
36 - changed the name of conflicted function  
37 -  
38 -commit e5569a46931588f42607e84bec1db64a8cf46bcd  
39 -Merge: a7552b8 b4b964e  
40 -Author: Lynnic <gunix@foxmail.com>  
41 -Date: Fri Nov 13 14:50:09 2015 +0800  
42 -  
43 - Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop  
44 -  
45 -commit b4b964e589b88c0821e1138e46d56dca3f139bcd  
46 -Merge: 6f68082 7a6895e  
47 -Author: ccbikai <ccbikai@qq.com>  
48 -Date: Fri Nov 13 14:35:33 2015 +0800  
49 -  
50 - Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop  
51 -  
52 -commit 6f6808272a6a6e40e425bc3df69eff26512e5c80  
53 -Author: ccbikai <ccbikai@qq.com>  
54 -Date: Fri Nov 13 14:35:28 2015 +0800  
55 -  
56 - 修改地址页面样式  
57 -  
58 -commit 7a6895ebfa302d46b791f78196614b9a6d9404ce  
59 -Merge: 8413e20 0ff1e35  
60 -Author: uedxwg <xieweiguang11@163.com>  
61 -Date: Fri Nov 13 14:23:11 2015 +0800  
62 -  
63 - Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop  
64 -  
65 -commit 8413e2059464cec3c386bbcb25cd5f7f9bc3e2da  
66 -Author: uedxwg <xieweiguang11@163.com>  
67 -Date: Fri Nov 13 14:22:31 2015 +0800  
68 -  
69 - 'hotrank'  
70 -  
71 -commit a7552b8af3de3fba625736b885aac3d6aeb57b0a  
72 -Author: lynnic <gunix@foxmail.com>  
73 -Date: Fri Nov 13 13:40:22 2015 +0800  
74 -  
75 - update  
76 -  
77 -commit 9ce2bf2913bc9909a5fac0fa4a30777ba4db23c3  
78 -Author: ccbikai <ccbikai@qq.com>  
79 -Date: Fri Nov 13 13:35:07 2015 +0800  
80 -  
81 -  
82 -  
83 -commit 0ff1e35337c656c288243a40602bd0cb7a85fdb4  
84 -Merge: 88ef01d cdba827  
85 -Author: ccbikai <ccbikai@qq.com>  
86 -Date: Fri Nov 13 13:30:37 2015 +0800  
87 -  
88 - merge code  
89 -  
90 -commit 88ef01d3931dc8b61657019bde2e02186c0222e3  
91 -Author: ccbikai <ccbikai@qq.com>  
92 -Date: Fri Nov 13 13:29:45 2015 +0800  
93 -  
94 - 地址模板修改  
95 -  
96 -commit 072785ab101cff6bcd3f5548165cad6d18c79aa1  
97 -Merge: 5e3e194 cdba827  
98 -Author: liangzhifeng <zhifeng.liang@yoho.cn>  
99 -Date: Fri Nov 13 13:25:15 2015 +0800  
100 -  
101 - Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop  
102 -  
103 -commit cdba82787e574d2274025227bdcfd97553fbe30e  
104 -Merge: 91cebbc 35dbe8b  
105 -Author: hf <fei.hong@yoho.cn>  
106 -Date: Fri Nov 13 13:24:46 2015 +0800  
107 -  
108 - merge master css js code  
109 -  
110 -commit 91cebbc682532eab919ea903c7668f3ff9fb01a1  
111 -Author: hf <fei.hong@yoho.cn>  
112 -Date: Fri Nov 13 13:24:01 2015 +0800  
113 -  
114 - merge master css js code  
115 -  
116 -commit 5e3e194ef858a371f65b0a6e2965f79ec65fdb49  
117 -Merge: 9cb6944 35dbe8b  
118 -Author: liangzhifeng <zhifeng.liang@yoho.cn>  
119 -Date: Fri Nov 13 13:23:02 2015 +0800  
120 -  
121 - Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop  
122 -  
123 -commit 35dbe8bc57c1accce337e199df6d323d4e7b7ead  
124 -Author: ccbikai <ccbikai@qq.com>  
125 -Date: Fri Nov 13 13:22:34 2015 +0800  
126 -  
127 - 地址管理增加数据  
128 -  
129 -commit 9cb6944ea59db8f2958f10de518db079aa0bc3ad  
130 -Merge: 09500b4 bfaf6f7  
131 -Author: liangzhifeng <zhifeng.liang@yoho.cn>  
132 -Date: Fri Nov 13 13:22:11 2015 +0800  
133 -  
134 - Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop  
135 -  
136 -commit f735917c59165291cfb3fcb064e06bb424e64b40  
137 -Author: lynnic <gunix@foxmail.com>  
138 -Date: Fri Nov 13 13:19:56 2015 +0800  
139 -  
140 - product detail  
141 -  
142 -commit bfaf6f7da9e7b3f15ca3e2223af4b04e890f7181  
143 -Merge: ddb8634 da2dd89  
144 -Author: ccbikai <ccbikai@qq.com>  
145 -Date: Fri Nov 13 11:47:23 2015 +0800  
146 -  
147 - Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop  
148 -  
149 -commit ddb8634a6229dafd38b4380cdb4861d768cb207c  
150 -Author: ccbikai <ccbikai@qq.com>  
151 -Date: Fri Nov 13 11:47:18 2015 +0800  
152 -  
153 - 地址管理页面样式  
154 -  
155 -commit 09500b4de29d35d7edb9526feaef5cfda53bc48b  
156 -Merge: b3d45dc da2dd89  
157 -Author: liangzhifeng <zhifeng.liang@yoho.cn>  
158 -Date: Fri Nov 13 11:18:17 2015 +0800  
159 -  
160 - Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop  
161 -  
162 -commit b3d45dcfe30770f888ccde298a1aa65c7b06c829  
163 -Author: liangzhifeng <zhifeng.liang@yoho.cn>  
164 -Date: Fri Nov 13 11:17:43 2015 +0800  
165 -  
166 - update the version of yas  
167 -  
168 -commit da2dd89e32be5bb319141af09fe5b8f1404e192d  
169 -Author: hf <fei.hong@yoho.cn>  
170 -Date: Fri Nov 13 11:15:06 2015 +0800  
171 -  
172 - merge master css js code  
173 -  
174 -commit e677bad09bfc0959d667a29a035375cf9feba5d2  
175 -Merge: cef0926 f1ec957  
176 -Author: hf <fei.hong@yoho.cn>  
177 -Date: Fri Nov 13 10:52:10 2015 +0800  
178 -  
179 - merge master css js code  
180 -  
181 -commit cef09262f23a1ba1fadef9c56fb2088cfd75cde5  
182 -Merge: d927c9f 1483b13  
183 -Author: hf <fei.hong@yoho.cn>  
184 -Date: Fri Nov 13 10:51:02 2015 +0800  
185 -  
186 - do merge master code  
187 -  
188 -commit 1483b137ec3273153d3dfa8f47aadd6b4b88fb9c  
189 -Author: ccbikai <ccbikai@qq.com>  
190 -Date: Fri Nov 13 10:18:43 2015 +0800  
191 -  
192 - 个人中心首页完善  
193 -  
194 -commit 2b3507b2e6319697d96723e7ca3d72fcdce8bedc  
195 -Merge: a772911 67b011f  
196 -Author: ccbikai <ccbikai@qq.com>  
197 -Date: Fri Nov 13 09:39:53 2015 +0800  
198 -  
199 - Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop  
200 -  
201 -commit 67b011f1647426d9d4e59daf67cd75e2e29d1acb  
202 -Merge: 9c12951 a7a3613  
203 -Author: uedxwg <xieweiguang11@163.com>  
204 -Date: Thu Nov 12 18:40:33 2015 +0800  
205 -  
206 - Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop  
207 -  
208 -commit 9c12951e3d4aaa06cc99b8d76da2d8aa1b3bfcc1  
209 -Author: uedxwg <xieweiguang11@163.com>  
210 -Date: Thu Nov 12 18:39:49 2015 +0800  
211 -  
212 - 'hotrank'  
213 -  
214 -commit a7a36134fbca6e9d5f4cb60e40fb9a9a83cb2c1a  
215 -Merge: d336ffb 47f54e6  
216 -Author: Rock Zhang <iamgtskk@gmail.com>  
217 -Date: Thu Nov 12 18:30:47 2015 +0800  
218 -  
219 - Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop  
220 -  
221 - Conflicts:  
222 - framework  
223 -  
224 -commit d336ffb79bb7ead39b230b751f6a7a296cec4b78  
225 -Author: Rock Zhang <iamgtskk@gmail.com>  
226 -Date: Thu Nov 12 18:30:23 2015 +0800  
227 -  
228 - 完成个人中心部分功能  
229 -  
230 -commit f1ec957452269f97436356c5e718460847d32b52  
231 -Author: hf <fei.hong@yoho.cn>  
232 -Date: Thu Nov 12 18:18:41 2015 +0800  
233 -  
234 - modify to search goods list style  
235 -  
236 -commit 47f54e6c63dbfdf87d125c17c7538cfd73c9fab9  
237 -Merge: 1ba211d a72e1a2  
238 -Author: lore-w <metro-cpu@hotmail.com>  
239 -Date: Thu Nov 12 18:16:56 2015 +0800  
240 -  
241 - Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop  
242 -  
243 - Conflicts:  
244 - static/js/me/entry.js  
245 - static/sass/me/_index.scss  
246 - template/m.yohobuy.com/partials/layout/use.phtml  
247 -  
248 -commit afe58b17129e155698bf1114ef95ea25e867f43b  
249 -Author: hf <fei.hong@yoho.cn>  
250 -Date: Thu Nov 12 18:12:58 2015 +0800  
251 -  
252 - modify to search goods list style  
253 -  
254 -commit 32827f6aa9b9c3fe39a213e3c4001399868a10f0  
255 -Merge: 76c5106 80adb41  
256 -Author: hf <fei.hong@yoho.cn>  
257 -Date: Thu Nov 12 18:12:27 2015 +0800  
258 -  
259 - Merge remote-tracking branch 'origin/hotfix'  
260 -  
261 -commit 1ba211d6670de1f88538065b9276bdd63be55aef  
262 -Author: lore-w <metro-cpu@hotmail.com>  
263 -Date: Thu Nov 12 18:11:25 2015 +0800  
264 -  
265 - 收藏、意见反馈  
266 -  
267 -commit 80adb4135a73c332ce435693a83fd5610c20721e  
268 -Author: ccbikai <ccbikai@qq.com>  
269 -Date: Thu Nov 12 18:09:40 2015 +0800  
270 -  
271 - 取消搜索不 focus  
272 -  
273 -commit 76c51067fd3afdb2e04ece7f3cf21c7a3d98fb8d  
274 -Author: hf <fei.hong@yoho.cn>  
275 -Date: Thu Nov 12 18:01:57 2015 +0800  
276 -  
277 - modify to search goods list style  
278 -  
279 -commit ebf90d5f499facf9b0b38d3afe3a421273e319f7  
280 -Author: hf <fei.hong@yoho.cn>  
281 -Date: Thu Nov 12 18:01:37 2015 +0800  
282 -  
283 - modify to search goods list style  
284 -  
285 -commit 74c6939a6c0af5dea824447eedd57b40d5d36e8e  
286 -Merge: d874739 4be2273  
287 -Author: hf <fei.hong@yoho.cn>  
288 -Date: Thu Nov 12 18:  
  1 +/**
  2 + * 商品详情
  3 + * @author: liangzhifeng<zhifeng.liang@yoho.cn>
  4 + * @date: 2015/11/18
  5 + */
@@ -7,4 +7,5 @@ @@ -7,4 +7,5 @@
7 require('./newsale/newarrival'); 7 require('./newsale/newarrival');
8 require('./newsale/discount'); 8 require('./newsale/discount');
9 require('./list'); 9 require('./list');
10 -require('./detail/detail');  
  10 +require('./detail/detail');
  11 +require('./detail/desc');
@@ -310,11 +310,12 @@ class HomeController extends AbstractAction @@ -310,11 +310,12 @@ class HomeController extends AbstractAction
310 $page = $this->get('page', 1); 310 $page = $this->get('page', 1);
311 $limit = $this->get('limit', 10); 311 $limit = $this->get('limit', 10);
312 $uid = $this->getUid(); 312 $uid = $this->getUid();
313 - $yh_channel = Helpers::getChannelByCookie();  
314 - $uid=5687179;  
315 $gender = Helpers::getGenderByCookie(); 313 $gender = Helpers::getGenderByCookie();
  314 + $yh_channel = Helpers::getChannelByCookie();
316 $guangInfo = \home\GuangModel::getMyGuang($uid, $page,$yh_channel,$gender, $limit); 315 $guangInfo = \home\GuangModel::getMyGuang($uid, $page,$yh_channel,$gender, $limit);
317 - $this->_view->display('my-guang', array('myGuang'=>$guangInfo)); 316 + $this->setTitle('我收藏的');
  317 + $this->setNavHeader('我收藏的', true, '');
  318 + $this->_view->display('my-guang', array( 'myGuangPage' => true,'myGuang'=>$guangInfo,'pageFooter' => true));
318 } 319 }
319 320
320 /** 321 /**
@@ -13,68 +13,19 @@ class GuangModel @@ -13,68 +13,19 @@ class GuangModel
13 { 13 {
14 14
15 //获取我的逛列表 15 //获取我的逛列表
16 - public static function getMyGuang($uid, $page,$yh_channel=1, $gender = '1,3', $limit = 10) 16 + public static function getMyGuang($uid, $page, $yh_channel = 1, $gender = '1,3', $limit = 10)
17 { 17 {
18 $result = array(); 18 $result = array();
19 //调用接口获取数据 19 //调用接口获取数据
20 - $res = GuangData::getGuangInfo($uid, $page, $yh_channel,$gender, $limit);  
21 - $guangInfo = $res['data']['data'];  
22 - if ($guangInfo) 20 + $res = GuangData::getGuangInfo($uid, $page, $yh_channel, $gender, $limit);
  21 + if (!empty($res['data']['data']))
23 { 22 {
24 - foreach ($guangInfo as $k => $v) 23 + foreach ($res['data']['data'] as $k => $v)
25 { 24 {
26 - $result[$k]['id'] = $v['id'];  
27 - $result[$k]['author'] = $v['author'];  
28 - $tag = self::getTag(TRUE, intval($v['category_id']));  
29 - $result[$k]['url'] = $v['url'];  
30 - $result[$k]['img'] = $v['src'];  
31 - $result[$k]['title'] = $v['title'];  
32 - $result[$k]['text'] = $v['intro'];  
33 - $result[$k]['pageView'] = $v['views_num'];  
34 - $result[$k]['publish_time'] = $v['publish_time'];  
35 - $like = ($v['isPraise'] == "Y") ? true : false;  
36 - $collect = ($v['isFavor'] == "Y") ? true : false;  
37 - $result[$k]['like'] = array('isLiked' => $like, 'count' => $v['praise_num']);  
38 - $result[$k]['collect'] = array('isCollected' => $collect, 'url' => $v['url']);  
39 - $result[$k] += $tag;  
40 - $result[$k]['share'] = $v['url']; 25 + $result[$k] = Helpers::formatArticle($v, true, false, true, $uid);
41 } 26 }
42 } 27 }
43 -  
44 return $result; 28 return $result;
45 } 29 }
46 30
47 - //【标签】isTip-小贴士;isCollocation-搭配 isFashionMan-潮人 isFashionGood-潮品 isTopic-话题  
48 - private static function getTag($isShow, $tagId)  
49 - {  
50 - $ret['showTags'] = $isShow;  
51 - $ret['isTopic'] = false;  
52 - $ret['isCollocation'] = false;  
53 - $ret['isFashionMan'] = false;  
54 - $ret['isFashionGood'] = false;  
55 - $ret['isTip'] = false;  
56 - switch ($tagId)  
57 - {  
58 - case 1:  
59 - $ret['isTopic'] = true;  
60 - break;  
61 - case 2:  
62 - $ret['isCollocation'] = true;  
63 - break;  
64 - case 3:  
65 - $ret['isFashionMan'] = true;  
66 - break;  
67 - case 4:  
68 - $ret['isFashionGood'] = true;  
69 - break;  
70 - case 5:  
71 - $ret['isTip'] = true;  
72 - break;  
73 - default:  
74 - $ret['showTags'] = FALSE;  
75 - break;  
76 - }  
77 - return $ret;  
78 - }  
79 -  
80 } 31 }