1
|
-<?php
|
|
|
2
|
-
|
|
|
3
|
-use Action\WebAction;
|
|
|
4
|
-use WebPlugin\Helpers;
|
|
|
5
|
-use WebPlugin\Paging;
|
|
|
6
|
-use Home\UserModel;
|
|
|
7
|
-use Home\AddressModel;
|
|
|
8
|
-use Home\IndexModel;
|
|
|
9
|
-use Home\OrderModel;
|
|
|
10
|
-use LibModels\Web\Home\UserData;
|
|
|
11
|
-use LibModels\Web\Home\AddressData;
|
|
|
12
|
-use LibModels\Web\Home\OrderData;
|
|
|
13
|
-
|
|
|
14
|
-/**
|
|
|
15
|
- * 个人中心
|
|
|
16
|
- */
|
|
|
17
|
-class HomeController extends WebAction
|
|
|
18
|
-{
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-// /**
|
|
|
22
|
-// * 我的收藏
|
|
|
23
|
-// */
|
|
|
24
|
-// public function favoriteAction()
|
|
|
25
|
-// {
|
|
|
26
|
-// $data = array(
|
|
|
27
|
-// 'path' => array(
|
|
|
28
|
-// array(
|
|
|
29
|
-// 'href' => 'www.yohobuy.com',
|
|
|
30
|
-// 'name' => 'YOHO!有货首页'
|
|
|
31
|
-// ),
|
|
|
32
|
-// array(
|
|
|
33
|
-// 'href' => 'www.yohobuy.com/home',
|
|
|
34
|
-// 'name' => '个人中心'
|
|
|
35
|
-// ),
|
|
|
36
|
-// array(
|
|
|
37
|
-// 'name' => '订单中心'
|
|
|
38
|
-// )
|
|
|
39
|
-// ),
|
|
|
40
|
-// 'userThumb' => 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100',
|
|
|
41
|
-// 'homeNav' => array(
|
|
|
42
|
-// array(
|
|
|
43
|
-// 'title' => '交易管理',
|
|
|
44
|
-// 'subNav' => array(
|
|
|
45
|
-// array(
|
|
|
46
|
-// 'name' => '我的订单',
|
|
|
47
|
-// 'href' => '/',
|
|
|
48
|
-// 'active' => true
|
|
|
49
|
-// ),
|
|
|
50
|
-// array(
|
|
|
51
|
-// 'name' => '我的收藏',
|
|
|
52
|
-// 'href' => '/'
|
|
|
53
|
-// ),
|
|
|
54
|
-// array(
|
|
|
55
|
-// 'name' => '我的YOHO币',
|
|
|
56
|
-// 'href' => '/'
|
|
|
57
|
-// ),
|
|
|
58
|
-// array(
|
|
|
59
|
-// 'name' => '我的红包',
|
|
|
60
|
-// 'href' => '/'
|
|
|
61
|
-// ),
|
|
|
62
|
-// array(
|
|
|
63
|
-// 'name' => '我的优惠券',
|
|
|
64
|
-// 'href' => '/'
|
|
|
65
|
-// ),
|
|
|
66
|
-// array(
|
|
|
67
|
-// 'name' => '我的VIP',
|
|
|
68
|
-// 'href' => '/'
|
|
|
69
|
-// )
|
|
|
70
|
-// )
|
|
|
71
|
-// )
|
|
|
72
|
-// ),
|
|
|
73
|
-// 'tabs' => array(
|
|
|
74
|
-// array(
|
|
|
75
|
-// 'active' => true,
|
|
|
76
|
-// 'url' => '',
|
|
|
77
|
-// 'name' => '商品收藏'
|
|
|
78
|
-// ),
|
|
|
79
|
-// array(
|
|
|
80
|
-// 'url' => '',
|
|
|
81
|
-// 'name' => '品牌收藏'
|
|
|
82
|
-// ),
|
|
|
83
|
-// array(
|
|
|
84
|
-// 'url' => '',
|
|
|
85
|
-// 'name' => '文章收藏'
|
|
|
86
|
-// )
|
|
|
87
|
-// ),
|
|
|
88
|
-// 'favProducts' => array(
|
|
|
89
|
-// 'sort' => array(
|
|
|
90
|
-// 'default' => array(
|
|
|
91
|
-// array(
|
|
|
92
|
-// 'name' => '全部',
|
|
|
93
|
-// 'count' => 140,
|
|
|
94
|
-// 'focus' => true,
|
|
|
95
|
-// 'url' => ''
|
|
|
96
|
-// )
|
|
|
97
|
-// ),
|
|
|
98
|
-// 'all' => array(
|
|
|
99
|
-// array(
|
|
|
100
|
-// 'name' => '全部',
|
|
|
101
|
-// 'count' => 140,
|
|
|
102
|
-// 'focus' => true,
|
|
|
103
|
-// 'url' => ''
|
|
|
104
|
-// ),
|
|
|
105
|
-// array(
|
|
|
106
|
-// 'name' => 'T恤',
|
|
|
107
|
-// 'count' => 5,
|
|
|
108
|
-// 'url' => ''
|
|
|
109
|
-// ),
|
|
|
110
|
-// array(
|
|
|
111
|
-// 'name' => '衬衫',
|
|
|
112
|
-// 'count' => 40,
|
|
|
113
|
-// 'url' => ''
|
|
|
114
|
-// )
|
|
|
115
|
-// )
|
|
|
116
|
-// ),
|
|
|
117
|
-// 'reduction' => array(
|
|
|
118
|
-// 'count' => 0,
|
|
|
119
|
-// 'url' => ''
|
|
|
120
|
-// ),
|
|
|
121
|
-// 'filter' => array(
|
|
|
122
|
-// 'reductionUrl' => '',
|
|
|
123
|
-// 'reductionChecked' => true,
|
|
|
124
|
-// 'activityUrl' => '',
|
|
|
125
|
-// 'activityChecked' => true
|
|
|
126
|
-// ),
|
|
|
127
|
-// 'goods' => array(
|
|
|
128
|
-// array(
|
|
|
129
|
-// 'skn' => '239557',
|
|
|
130
|
-// 'img' => 'http://img12.static.yhbimg.com/goodsimg/2016/01/14/07/02b9ce4acb9374022cf645634574902f1a.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/90',
|
|
|
131
|
-// 'name' => 'VEIL ADVOCATED CHAOS Snapback 熔岩体刺绣棒球帽',
|
|
|
132
|
-// 'url' => '',
|
|
|
133
|
-// 'activites' => array(
|
|
|
134
|
-// 'count' => 1,
|
|
|
135
|
-// 'list' => array(
|
|
|
136
|
-// array(
|
|
|
137
|
-// 'type' => '现金折扣',
|
|
|
138
|
-// 'name' => '冬装季末特享',
|
|
|
139
|
-// 'desc' => '折上满¥599再减¥100'
|
|
|
140
|
-// ),
|
|
|
141
|
-// array(
|
|
|
142
|
-// 'type' => '满送礼品',
|
|
|
143
|
-// 'name' => '全场99元加价购'
|
|
|
144
|
-// ),
|
|
|
145
|
-// array(
|
|
|
146
|
-// 'type' => '满送礼品',
|
|
|
147
|
-// 'name' => '全场59元加价购'
|
|
|
148
|
-// )
|
|
|
149
|
-// )
|
|
|
150
|
-// ),
|
|
|
151
|
-// 'price' => '239.00',
|
|
|
152
|
-// 'priceDown' => '30.00',
|
|
|
153
|
-// 'buyNow' => '/path/to/buy',
|
|
|
154
|
-// // 'buyAgain' => '/path/to/buy', //再次购买链接
|
|
|
155
|
-// // 'soldOut' => true,
|
|
|
156
|
-// // 'hadNoticed' => true, //已经订阅通知
|
|
|
157
|
-// 'delUrl' => ''
|
|
|
158
|
-// )
|
|
|
159
|
-// ),
|
|
|
160
|
-// 'pager' => array(
|
|
|
161
|
-// 'hasCheckAll' => true,
|
|
|
162
|
-// 'count' => 24,
|
|
|
163
|
-// 'curPage' => 1,
|
|
|
164
|
-// 'totalPages' => 4,
|
|
|
165
|
-// 'pagerHtml' => '<a href="?page=2&type=3"><span class="iconfont"></span>上一页</a><a href="?page=1&type=3">1</a><a class="cur" href="?page=2&type=3">2</a><a href="?page=3&type=3">3</a><a href="?page=2&type=3">下一页<span class="iconfont"></span></a>'
|
|
|
166
|
-// )
|
|
|
167
|
-// )
|
|
|
168
|
-// // 'favBrands' => array(
|
|
|
169
|
-// // 'brands' => array(
|
|
|
170
|
-// // array(
|
|
|
171
|
-// // 'img' => 'http://img13.static.yhbimg.com/brandLogo/2015/12/07/11/02ad8c091053e36261ac4eace80ba40c54.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/90',
|
|
|
172
|
-// // 'url' => '',
|
|
|
173
|
-// // 'name' => 'ACROSS!',
|
|
|
174
|
-// // 'naCount' => 1,
|
|
|
175
|
-// // 'colCount' => 2300,
|
|
|
176
|
-// // 'delUrl' => ''
|
|
|
177
|
-// // )
|
|
|
178
|
-// // ),
|
|
|
179
|
-// // 'pager' => array(
|
|
|
180
|
-// // 'hasCheckAll' => true,
|
|
|
181
|
-// // 'count' => 24,
|
|
|
182
|
-// // 'curPage' => 1,
|
|
|
183
|
-// // 'totalPages' => 4,
|
|
|
184
|
-// // 'pagerHtml' => '<a href="?page=2&type=3"><span class="iconfont"></span>上一页</a><a href="?page=1&type=3">1</a><a class="cur" href="?page=2&type=3">2</a><a href="?page=3&type=3">3</a><a href="?page=2&type=3">下一页<span class="iconfont"></span></a>'
|
|
|
185
|
-// // )
|
|
|
186
|
-// // )
|
|
|
187
|
-// // 'favArticles' => array(
|
|
|
188
|
-// // 'articles' => array(
|
|
|
189
|
-// // array(
|
|
|
190
|
-// // 'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/02/17/06/02f6d182974252df932839932b1f2f8b9c.jpg?imageView/2/w/600/h/200',
|
|
|
191
|
-// // 'url' => '',
|
|
|
192
|
-// // 'name' => ' 趁着好天气,换上一身轻松的装备,骑车去郊游吧',
|
|
|
193
|
-// // 'desc' => '看着外面天气这么好,春节假期的欢乐应该延续一下,马上周末,快约上三五好友去郊游吧!'
|
|
|
194
|
-// // )
|
|
|
195
|
-// // ),
|
|
|
196
|
-// // 'pager' => array(
|
|
|
197
|
-// // 'hasCheckAll' => true,
|
|
|
198
|
-// // 'count' => 24,
|
|
|
199
|
-// // 'curPage' => 1,
|
|
|
200
|
-// // 'totalPages' => 4,
|
|
|
201
|
-// // 'pagerHtml' => '<a href="?page=2&type=3"><span class="iconfont"></span>上一页</a><a href="?page=1&type=3">1</a><a class="cur" href="?page=2&type=3">2</a><a href="?page=3&type=3">3</a><a href="?page=2&type=3">下一页<span class="iconfont"></span></a>'
|
|
|
202
|
-// // )
|
|
|
203
|
-// // )
|
|
|
204
|
-// );
|
|
|
205
|
-//
|
|
|
206
|
-// $this->_view->display('favorite', array('meFavoritePage' => true, 'meFavorite' => $data));
|
|
|
207
|
-// }
|
|
|
208
|
-
|
|
|
209
|
-// /**
|
|
|
210
|
-// * 品牌收藏-新品到着
|
|
|
211
|
-// */
|
|
|
212
|
-// public function newproductAction()
|
|
|
213
|
-// {
|
|
|
214
|
-// $this->_view->display('na-list', array(
|
|
|
215
|
-// 'naGoods' => array(
|
|
|
216
|
-// // 'pre' => 'path/to/ajax',
|
|
|
217
|
-// 'goods' => array(
|
|
|
218
|
-// array(
|
|
|
219
|
-// 'img' => 'http://img13.static.yhbimg.com/goodsimg/2016/02/02/08/0262ec823af3dcecc5fff8c687fc872c31.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/90',
|
|
|
220
|
-// 'url' => '',
|
|
|
221
|
-// 'name' => 'Master Plan PU拼接魔术贴运动鞋 ',
|
|
|
222
|
-// 'salePrice' => '699.00',
|
|
|
223
|
-// 'marketPrice' => '799.00'
|
|
|
224
|
-// )
|
|
|
225
|
-// ),
|
|
|
226
|
-// 'next' => '/home/newproduct'
|
|
|
227
|
-// )
|
|
|
228
|
-// ));
|
|
|
229
|
-// }
|
|
|
230
|
-
|
|
|
231
|
- /**
|
|
|
232
|
- * 我的红包
|
|
|
233
|
- */
|
|
|
234
|
- public function redenvelopesAction()
|
|
|
235
|
- {
|
|
|
236
|
- $data = array(
|
|
|
237
|
- 'path' => array(
|
|
|
238
|
- array(
|
|
|
239
|
- 'href' => 'www.yohobuy.com',
|
|
|
240
|
- 'name' => 'YOHO!有货首页'
|
|
|
241
|
- ),
|
|
|
242
|
- array(
|
|
|
243
|
- 'href' => 'www.yohobuy.com/home',
|
|
|
244
|
- 'name' => '个人中心'
|
|
|
245
|
- ),
|
|
|
246
|
- array(
|
|
|
247
|
- 'name' => '订单中心'
|
|
|
248
|
- )
|
|
|
249
|
- ),
|
|
|
250
|
- 'userThumb' => 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100',
|
|
|
251
|
- 'homeNav' => array(
|
|
|
252
|
- array(
|
|
|
253
|
- 'title' => '交易管理',
|
|
|
254
|
- 'subNav' => array(
|
|
|
255
|
- array(
|
|
|
256
|
- 'name' => '我的订单',
|
|
|
257
|
- 'href' => '/',
|
|
|
258
|
- 'active' => true
|
|
|
259
|
- ),
|
|
|
260
|
- array(
|
|
|
261
|
- 'name' => '我的收藏',
|
|
|
262
|
- 'href' => '/'
|
|
|
263
|
- ),
|
|
|
264
|
- array(
|
|
|
265
|
- 'name' => '我的YOHO币',
|
|
|
266
|
- 'href' => '/'
|
|
|
267
|
- ),
|
|
|
268
|
- array(
|
|
|
269
|
- 'name' => '我的红包',
|
|
|
270
|
- 'href' => '/'
|
|
|
271
|
- ),
|
|
|
272
|
- array(
|
|
|
273
|
- 'name' => '我的优惠券',
|
|
|
274
|
- 'href' => '/'
|
|
|
275
|
- ),
|
|
|
276
|
- array(
|
|
|
277
|
- 'name' => '我的VIP',
|
|
|
278
|
- 'href' => '/'
|
|
|
279
|
- )
|
|
|
280
|
- )
|
|
|
281
|
- )
|
|
|
282
|
- ),
|
|
|
283
|
- 'redEnvelopes' => array(
|
|
|
284
|
- array(
|
|
|
285
|
- 'money' => '0.00',
|
|
|
286
|
- 'termOfValidity' => '2015.10.30-2015.11.12',
|
|
|
287
|
- 'useRemark' => '结算时折抵现金使用,可与优惠券叠加使用。'
|
|
|
288
|
- )
|
|
|
289
|
- )
|
|
|
290
|
- );
|
|
|
291
|
-
|
|
|
292
|
- $this->_view->display('red-envelopes', array('meRedEnvelopes' => $data));
|
|
|
293
|
- }
|
|
|
294
|
-
|
|
|
295
|
- /**
|
|
|
296
|
- * 我的优惠券
|
|
|
297
|
- */
|
|
|
298
|
- public function couponsAction()
|
|
|
299
|
- {
|
|
|
300
|
- $data = array(
|
|
|
301
|
- 'path' => array(
|
|
|
302
|
- array(
|
|
|
303
|
- 'href' => 'www.yohobuy.com',
|
|
|
304
|
- 'name' => 'YOHO!有货首页'
|
|
|
305
|
- ),
|
|
|
306
|
- array(
|
|
|
307
|
- 'href' => 'www.yohobuy.com/home',
|
|
|
308
|
- 'name' => '个人中心'
|
|
|
309
|
- ),
|
|
|
310
|
- array(
|
|
|
311
|
- 'name' => '订单中心'
|
|
|
312
|
- )
|
|
|
313
|
- ),
|
|
|
314
|
- 'userThumb' => 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100',
|
|
|
315
|
- 'homeNav' => array(
|
|
|
316
|
- array(
|
|
|
317
|
- 'title' => '交易管理',
|
|
|
318
|
- 'subNav' => array(
|
|
|
319
|
- array(
|
|
|
320
|
- 'name' => '我的订单',
|
|
|
321
|
- 'href' => '/',
|
|
|
322
|
- 'active' => true
|
|
|
323
|
- ),
|
|
|
324
|
- array(
|
|
|
325
|
- 'name' => '我的收藏',
|
|
|
326
|
- 'href' => '/'
|
|
|
327
|
- ),
|
|
|
328
|
- array(
|
|
|
329
|
- 'name' => '我的YOHO币',
|
|
|
330
|
- 'href' => '/'
|
|
|
331
|
- ),
|
|
|
332
|
- array(
|
|
|
333
|
- 'name' => '我的红包',
|
|
|
334
|
- 'href' => '/'
|
|
|
335
|
- ),
|
|
|
336
|
- array(
|
|
|
337
|
- 'name' => '我的优惠券',
|
|
|
338
|
- 'href' => '/'
|
|
|
339
|
- ),
|
|
|
340
|
- array(
|
|
|
341
|
- 'name' => '我的VIP',
|
|
|
342
|
- 'href' => '/'
|
|
|
343
|
- )
|
|
|
344
|
- )
|
|
|
345
|
- )
|
|
|
346
|
- ),
|
|
|
347
|
- 'tabs' => array(
|
|
|
348
|
- array(
|
|
|
349
|
- 'active' => true,
|
|
|
350
|
- 'url' => '',
|
|
|
351
|
- 'name' => '未使用优惠券'
|
|
|
352
|
- ),
|
|
|
353
|
- array(
|
|
|
354
|
- 'url' => '',
|
|
|
355
|
- 'name' => '已使用优惠券'
|
|
|
356
|
- ),
|
|
|
357
|
- array(
|
|
|
358
|
- 'url' => '',
|
|
|
359
|
- 'name' => '已失效优惠券'
|
|
|
360
|
- )
|
|
|
361
|
- ),
|
|
|
362
|
- 'unUseCoupons' => array(
|
|
|
363
|
- array(
|
|
|
364
|
- 'img' => 'http://static.yohobuy.com/images/v2/activity/default_coupon.jpg',
|
|
|
365
|
- 'value' => '¥70.00',
|
|
|
366
|
- 'beginTime' => '2016-02-19',
|
|
|
367
|
- 'endTime' => '2016-02-29',
|
|
|
368
|
- 'endSoon' => true,
|
|
|
369
|
- 'useRemark' => '开学开工利是:满599减70(金卡专享)',
|
|
|
370
|
- 'status' => '可使用'
|
|
|
371
|
- ),
|
|
|
372
|
- array(
|
|
|
373
|
- 'img' => 'http://static.yohobuy.com/images/v2/activity/default_coupon.jpg',
|
|
|
374
|
- 'value' => '¥70.00',
|
|
|
375
|
- 'beginTime' => '2016-02-19',
|
|
|
376
|
- 'endTime' => '2016-02-29',
|
|
|
377
|
- 'endSoon' => true,
|
|
|
378
|
- 'useRemark' => '开学开工利是:满799减100(金卡专享)',
|
|
|
379
|
- 'status' => '可使用'
|
|
|
380
|
- )
|
|
|
381
|
- ),
|
|
|
382
|
- // 'usedCoupons' => array(
|
|
|
383
|
- // array(
|
|
|
384
|
- // 'img' => 'http://static.yohobuy.com/images/v2/activity/default_coupon.jpg',
|
|
|
385
|
- // 'value' => '¥70.00',
|
|
|
386
|
- // 'orderNum' => '89223467',
|
|
|
387
|
- // 'orderSum' => '122.00',
|
|
|
388
|
- // 'payment' => '111.00',
|
|
|
389
|
- // 'useTime' => '2016-01-01 22:44'
|
|
|
390
|
- // )
|
|
|
391
|
- // ),
|
|
|
392
|
- // 'noValidCoupons' => array(
|
|
|
393
|
- // array(
|
|
|
394
|
- // 'img' => 'http://static.yohobuy.com/images/v2/activity/default_coupon.jpg',
|
|
|
395
|
- // 'value' => '¥70.00',
|
|
|
396
|
- // 'beginTime' => '2016-02-19',
|
|
|
397
|
- // 'endTime' => '2016-02-29',
|
|
|
398
|
- // 'endSoon' => true,
|
|
|
399
|
- // 'useRemark' => '开学开工利是:满599减70(金卡专享)'
|
|
|
400
|
- // )
|
|
|
401
|
- // )
|
|
|
402
|
- );
|
|
|
403
|
-
|
|
|
404
|
- $this->_view->display('coupons', array('meCoupons' => $data));
|
|
|
405
|
- }
|
|
|
406
|
-
|
|
|
407
|
- public function currencyAction()
|
|
|
408
|
- {
|
|
|
409
|
- $data = array(
|
|
|
410
|
- 'path' => array(
|
|
|
411
|
- array(
|
|
|
412
|
- 'href' => 'www.yohobuy.com',
|
|
|
413
|
- 'name' => 'YOHO!有货首页'
|
|
|
414
|
- ),
|
|
|
415
|
- array(
|
|
|
416
|
- 'href' => 'www.yohobuy.com/home',
|
|
|
417
|
- 'name' => '个人中心'
|
|
|
418
|
- ),
|
|
|
419
|
- array(
|
|
|
420
|
- 'name' => '订单中心'
|
|
|
421
|
- )
|
|
|
422
|
- ),
|
|
|
423
|
- 'userThumb' => 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100',
|
|
|
424
|
- 'homeNav' => array(
|
|
|
425
|
- array(
|
|
|
426
|
- 'title' => '交易管理',
|
|
|
427
|
- 'subNav' => array(
|
|
|
428
|
- array(
|
|
|
429
|
- 'name' => '我的订单',
|
|
|
430
|
- 'href' => '/',
|
|
|
431
|
- 'active' => true
|
|
|
432
|
- ),
|
|
|
433
|
- array(
|
|
|
434
|
- 'name' => '我的收藏',
|
|
|
435
|
- 'href' => '/'
|
|
|
436
|
- ),
|
|
|
437
|
- array(
|
|
|
438
|
- 'name' => '我的YOHO币',
|
|
|
439
|
- 'href' => '/'
|
|
|
440
|
- ),
|
|
|
441
|
- array(
|
|
|
442
|
- 'name' => '我的红包',
|
|
|
443
|
- 'href' => '/'
|
|
|
444
|
- ),
|
|
|
445
|
- array(
|
|
|
446
|
- 'name' => '我的优惠券',
|
|
|
447
|
- 'href' => '/'
|
|
|
448
|
- ),
|
|
|
449
|
- array(
|
|
|
450
|
- 'name' => '我的VIP',
|
|
|
451
|
- 'href' => '/'
|
|
|
452
|
- )
|
|
|
453
|
- )
|
|
|
454
|
- )
|
|
|
455
|
- ),
|
|
|
456
|
- 'myCurrency' => 0,
|
|
|
457
|
- 'tabs' => array(
|
|
|
458
|
- array(
|
|
|
459
|
- 'active' => true,
|
|
|
460
|
- 'url' => '',
|
|
|
461
|
- 'name' => '全部明细'
|
|
|
462
|
- ),
|
|
|
463
|
- array(
|
|
|
464
|
- 'url' => '',
|
|
|
465
|
- 'name' => '全部收入'
|
|
|
466
|
- ),
|
|
|
467
|
- array(
|
|
|
468
|
- 'url' => '',
|
|
|
469
|
- 'name' => '全部支出'
|
|
|
470
|
- )
|
|
|
471
|
- ),
|
|
|
472
|
- 'options' => array(
|
|
|
473
|
- array(
|
|
|
474
|
- 'url' => '#',
|
|
|
475
|
- 'name' => '最近3个月明细'
|
|
|
476
|
- ),
|
|
|
477
|
- array(
|
|
|
478
|
- 'url' => '',
|
|
|
479
|
- 'name' => '最近半年明细'
|
|
|
480
|
- ),
|
|
|
481
|
- array(
|
|
|
482
|
- 'url' => '',
|
|
|
483
|
- 'name' => '最近一年明细'
|
|
|
484
|
- )
|
|
|
485
|
- ),
|
|
|
486
|
- 'coinHelperUrl' => '',
|
|
|
487
|
- 'currency' => array(
|
|
|
488
|
- array(
|
|
|
489
|
- 'date' => '2016/2/2 14:20:09',
|
|
|
490
|
- 'isIncome' => true,
|
|
|
491
|
- 'value' => 100,
|
|
|
492
|
- 'desc' => '晒单奖励:DABOMB经典后背交叉骨印花圆领卫衣',
|
|
|
493
|
- 'detailUrl' => '#'
|
|
|
494
|
- )
|
|
|
495
|
- )
|
|
|
496
|
- );
|
|
|
497
|
- $this->_view->display('currency', array('meCurrency' => $data));
|
|
|
498
|
- }
|
|
|
499
|
-
|
|
|
500
|
-
|
|
|
501
|
- /**
|
|
|
502
|
- * 我的咨询
|
|
|
503
|
- */
|
|
|
504
|
- public function consultAction()
|
|
|
505
|
- {
|
|
|
506
|
- $data = array(
|
|
|
507
|
- 'path' => array(
|
|
|
508
|
- array(
|
|
|
509
|
- 'href' => 'www.yohobuy.com',
|
|
|
510
|
- 'name' => 'YOHO!有货首页'
|
|
|
511
|
- ),
|
|
|
512
|
- array(
|
|
|
513
|
- 'href' => 'www.yohobuy.com/home',
|
|
|
514
|
- 'name' => '个人中心'
|
|
|
515
|
- ),
|
|
|
516
|
- array(
|
|
|
517
|
- 'name' => '订单中心'
|
|
|
518
|
- )
|
|
|
519
|
- ),
|
|
|
520
|
- 'userThumb' => 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100',
|
|
|
521
|
- 'homeNav' => array(
|
|
|
522
|
- array(
|
|
|
523
|
- 'title' => '交易管理',
|
|
|
524
|
- 'subNav' => array(
|
|
|
525
|
- array(
|
|
|
526
|
- 'name' => '我的订单',
|
|
|
527
|
- 'href' => '/'
|
|
|
528
|
- ),
|
|
|
529
|
- array(
|
|
|
530
|
- 'name' => '我的收藏',
|
|
|
531
|
- 'href' => '/'
|
|
|
532
|
- ),
|
|
|
533
|
- array(
|
|
|
534
|
- 'name' => '我的YOHO币',
|
|
|
535
|
- 'href' => '/'
|
|
|
536
|
- ),
|
|
|
537
|
- array(
|
|
|
538
|
- 'name' => '我的红包',
|
|
|
539
|
- 'href' => '/'
|
|
|
540
|
- ),
|
|
|
541
|
- array(
|
|
|
542
|
- 'name' => '我的优惠券',
|
|
|
543
|
- 'href' => '/'
|
|
|
544
|
- ),
|
|
|
545
|
- array(
|
|
|
546
|
- 'name' => '我的VIP',
|
|
|
547
|
- 'href' => '/'
|
|
|
548
|
- )
|
|
|
549
|
- )
|
|
|
550
|
- ),
|
|
|
551
|
- array(
|
|
|
552
|
- 'title' => '服务中心',
|
|
|
553
|
- 'subNav' => array(
|
|
|
554
|
- array(
|
|
|
555
|
- 'name' => '我的退/换货',
|
|
|
556
|
- 'href' => '/'
|
|
|
557
|
- ),
|
|
|
558
|
- array(
|
|
|
559
|
- 'name' => '我的咨询',
|
|
|
560
|
- 'href' => '/',
|
|
|
561
|
- 'active' => true
|
|
|
562
|
- ),
|
|
|
563
|
- array(
|
|
|
564
|
- 'name' => '我的评论',
|
|
|
565
|
- 'href' => '/'
|
|
|
566
|
- ),
|
|
|
567
|
- array(
|
|
|
568
|
- 'name' => '我的投诉',
|
|
|
569
|
- 'href' => '/'
|
|
|
570
|
- ),
|
|
|
571
|
- array(
|
|
|
572
|
- 'name' => '我的信息',
|
|
|
573
|
- 'href' => '/'
|
|
|
574
|
- ),
|
|
|
575
|
- array(
|
|
|
576
|
- 'name' => '在线客服',
|
|
|
577
|
- 'href' => '/'
|
|
|
578
|
- )
|
|
|
579
|
- )
|
|
|
580
|
- )
|
|
|
581
|
- ),
|
|
|
582
|
- 'consults' => array(
|
|
|
583
|
- array(
|
|
|
584
|
- 'href' => '',
|
|
|
585
|
- 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/06/08/02107c4a7aed6d189584116c6f1fa7ec03.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
|
|
|
586
|
- 'name' => 'MACROPUS PU简约系列双肩包',
|
|
|
587
|
- 'question' => '170, 65应该穿多大号',
|
|
|
588
|
- 'reply' => '向您推荐L号供参考,由于版型和个人穿衣风格不同,建议您参照此款商品“尺码信息”。
|
|
|
589
|
- 感谢您对Yoho!Buy有货的支持,祝您购物愉快!',
|
|
|
590
|
- 'consultTime' => '2015-12-01 22:08:19'
|
|
|
591
|
- ),
|
|
|
592
|
- array(
|
|
|
593
|
- 'href' => '',
|
|
|
594
|
- 'thumb' => 'http://img11.static.yhbimg.com/goodsimg/2015/11/17/08/0107ba4a348463e8d0a5898a45ac986c1e.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
|
|
|
595
|
- 'name' => 'Daniel Wellington Cl',
|
|
|
596
|
- 'question' => '表盘直径多少',
|
|
|
597
|
- 'consultTime' => '2015-12-01 22:08:19'
|
|
|
598
|
- ),
|
|
|
599
|
- array(
|
|
|
600
|
- 'href' => '',
|
|
|
601
|
- 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/06/08/02107c4a7aed6d189584116c6f1fa7ec03.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
|
|
|
602
|
- 'name' => 'MACROPUS PU简约系列双肩包',
|
|
|
603
|
- 'question' => '170, 65应该穿多大号',
|
|
|
604
|
- 'reply' => '您的问题太多,不想回答。',
|
|
|
605
|
- 'consultTime' => '2015-12-01 22:08:19'
|
|
|
606
|
- ),
|
|
|
607
|
- array(
|
|
|
608
|
- 'href' => '',
|
|
|
609
|
- 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/06/08/02107c4a7aed6d189584116c6f1fa7ec03.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
|
|
|
610
|
- 'name' => 'MACROPUS PU简约系列双肩包',
|
|
|
611
|
- 'question' => '170, 65应该穿多大号',
|
|
|
612
|
- 'reply' => '您的问题太多,不想回答。',
|
|
|
613
|
- 'consultTime' => '2015-12-01 22:08:19'
|
|
|
614
|
- ),
|
|
|
615
|
- array(
|
|
|
616
|
- 'href' => '',
|
|
|
617
|
- 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/06/08/02107c4a7aed6d189584116c6f1fa7ec03.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
|
|
|
618
|
- 'name' => 'MACROPUS PU简约系列双肩包',
|
|
|
619
|
- 'question' => '170, 65应该穿多大号',
|
|
|
620
|
- 'reply' => '您的问题太多,不想回答。',
|
|
|
621
|
- 'consultTime' => '2015-12-01 22:08:19'
|
|
|
622
|
- )
|
|
|
623
|
- ),
|
|
|
624
|
- 'pager' => array(
|
|
|
625
|
- 'hasCheckAll' => true,
|
|
|
626
|
- 'count' => 24,
|
|
|
627
|
- 'curPage' => 1,
|
|
|
628
|
- 'totalPages' => 4,
|
|
|
629
|
- 'pagerHtml' => '<a href="?page=2&type=3"><span class="iconfont"></span>上一页</a><a href="?page=1&type=3">1</a><a class="cur" href="?page=2&type=3">2</a><a href="?page=3&type=3">3</a><a href="?page=2&type=3">下一页<span class="iconfont"></span></a>'
|
|
|
630
|
- )
|
|
|
631
|
- );
|
|
|
632
|
-
|
|
|
633
|
- $this->_view->display('consult', array('homeConsultPage' => false, 'consult' => $data));
|
|
|
634
|
- }
|
|
|
635
|
-
|
|
|
636
|
- public function complaintsAction()
|
|
|
637
|
- {
|
|
|
638
|
- $data = array(
|
|
|
639
|
- 'path' => array(
|
|
|
640
|
- array(
|
|
|
641
|
- 'href' => 'www.yohobuy.com',
|
|
|
642
|
- 'name' => 'YOHO!有货首页'
|
|
|
643
|
- ),
|
|
|
644
|
- array(
|
|
|
645
|
- 'href' => 'www.yohobuy.com/home',
|
|
|
646
|
- 'name' => '个人中心'
|
|
|
647
|
- ),
|
|
|
648
|
- array(
|
|
|
649
|
- 'name' => '订单中心'
|
|
|
650
|
- )
|
|
|
651
|
- ),
|
|
|
652
|
- 'userThumb' => 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100',
|
|
|
653
|
- 'homeNav' => array(
|
|
|
654
|
- array(
|
|
|
655
|
- 'title' => '交易管理',
|
|
|
656
|
- 'subNav' => array(
|
|
|
657
|
- array(
|
|
|
658
|
- 'name' => '我的订单',
|
|
|
659
|
- 'href' => '/'
|
|
|
660
|
- ),
|
|
|
661
|
- array(
|
|
|
662
|
- 'name' => '我的收藏',
|
|
|
663
|
- 'href' => '/'
|
|
|
664
|
- ),
|
|
|
665
|
- array(
|
|
|
666
|
- 'name' => '我的YOHO币',
|
|
|
667
|
- 'href' => '/'
|
|
|
668
|
- ),
|
|
|
669
|
- array(
|
|
|
670
|
- 'name' => '我的红包',
|
|
|
671
|
- 'href' => '/'
|
|
|
672
|
- ),
|
|
|
673
|
- array(
|
|
|
674
|
- 'name' => '我的优惠券',
|
|
|
675
|
- 'href' => '/'
|
|
|
676
|
- ),
|
|
|
677
|
- array(
|
|
|
678
|
- 'name' => '我的VIP',
|
|
|
679
|
- 'href' => '/'
|
|
|
680
|
- )
|
|
|
681
|
- )
|
|
|
682
|
- ),
|
|
|
683
|
- array(
|
|
|
684
|
- 'title' => '服务中心',
|
|
|
685
|
- 'subNav' => array(
|
|
|
686
|
- array(
|
|
|
687
|
- 'name' => '我的退/换货',
|
|
|
688
|
- 'href' => '/'
|
|
|
689
|
- ),
|
|
|
690
|
- array(
|
|
|
691
|
- 'name' => '我的咨询',
|
|
|
692
|
- 'href' => '/',
|
|
|
693
|
- 'active' => true
|
|
|
694
|
- ),
|
|
|
695
|
- array(
|
|
|
696
|
- 'name' => '我的评论',
|
|
|
697
|
- 'href' => '/'
|
|
|
698
|
- ),
|
|
|
699
|
- array(
|
|
|
700
|
- 'name' => '我的投诉',
|
|
|
701
|
- 'href' => '/'
|
|
|
702
|
- ),
|
|
|
703
|
- array(
|
|
|
704
|
- 'name' => '我的信息',
|
|
|
705
|
- 'href' => '/'
|
|
|
706
|
- ),
|
|
|
707
|
- array(
|
|
|
708
|
- 'name' => '在线客服',
|
|
|
709
|
- 'href' => '/'
|
|
|
710
|
- )
|
|
|
711
|
- )
|
|
|
712
|
- )
|
|
|
713
|
- ),
|
|
|
714
|
- 'complaints' => array(
|
|
|
715
|
- 'empty' => '您尚未投诉任何内容'
|
|
|
716
|
- ),
|
|
|
717
|
- 'pager' => array(
|
|
|
718
|
- 'hasCheckAll' => true,
|
|
|
719
|
- 'count' => 24,
|
|
|
720
|
- 'curPage' => 1,
|
|
|
721
|
- 'totalPages' => 4,
|
|
|
722
|
- 'pagerHtml' => '<a href="?page=2&type=3"><span class="iconfont"></span>上一页</a><a href="?page=1&type=3">1</a><a class="cur" href="?page=2&type=3">2</a><a href="?page=3&type=3">3</a><a href="?page=2&type=3">下一页<span class="iconfont"></span></a>'
|
|
|
723
|
- )
|
|
|
724
|
- );
|
|
|
725
|
- $this->_view->display('complaints', array('homeComplaintsPage' => false, 'complaints' => $data));
|
|
|
726
|
- }
|
|
|
727
|
-
|
|
|
728
|
- /**
|
|
|
729
|
- * 个人中心-我的评论
|
|
|
730
|
- */
|
|
|
731
|
- public function commentAction()
|
|
|
732
|
- {
|
|
|
733
|
- $data = array(
|
|
|
734
|
- 'path' => array(
|
|
|
735
|
- array(
|
|
|
736
|
- 'href' => 'www.yohobuy.com',
|
|
|
737
|
- 'name' => 'YOHO!有货首页'
|
|
|
738
|
- ),
|
|
|
739
|
- array(
|
|
|
740
|
- 'href' => 'www.yohobuy.com/home',
|
|
|
741
|
- 'name' => '个人中心'
|
|
|
742
|
- ),
|
|
|
743
|
- array(
|
|
|
744
|
- 'name' => '订单中心'
|
|
|
745
|
- )
|
|
|
746
|
- ),
|
|
|
747
|
- 'userThumb' => 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100',
|
|
|
748
|
- 'homeNav' => array(
|
|
|
749
|
- array(
|
|
|
750
|
- 'title' => '服务中心',
|
|
|
751
|
- 'subNav' => array(
|
|
|
752
|
- array(
|
|
|
753
|
- 'name' => '我的退/换货',
|
|
|
754
|
- 'href' => '/'
|
|
|
755
|
- ),
|
|
|
756
|
- array(
|
|
|
757
|
- 'name' => '我的咨询',
|
|
|
758
|
- 'href' => '/'
|
|
|
759
|
- ),
|
|
|
760
|
- array(
|
|
|
761
|
- 'name' => '我的评论',
|
|
|
762
|
- 'href' => '/',
|
|
|
763
|
- 'active' => true
|
|
|
764
|
- ),
|
|
|
765
|
- array(
|
|
|
766
|
- 'name' => '我的投诉',
|
|
|
767
|
- 'href' => '/'
|
|
|
768
|
- ),
|
|
|
769
|
- array(
|
|
|
770
|
- 'name' => '我的信息',
|
|
|
771
|
- 'href' => '/'
|
|
|
772
|
- ),
|
|
|
773
|
- array(
|
|
|
774
|
- 'name' => '在线客服',
|
|
|
775
|
- 'href' => '/'
|
|
|
776
|
- )
|
|
|
777
|
- )
|
|
|
778
|
- )
|
|
|
779
|
- ),
|
|
|
780
|
- 'comment' => array(
|
|
|
781
|
- 'isComment' => true, // 未评论
|
|
|
782
|
- 'goodsNum' => '18', // 已/未评论商品数量
|
|
|
783
|
- 'orders' => array(
|
|
|
784
|
- array(
|
|
|
785
|
- 'orderNum' => '1511731933',
|
|
|
786
|
- 'orderTime' => '2015-12-01 22:08:19',
|
|
|
787
|
- 'goods' => array(
|
|
|
788
|
- array(
|
|
|
789
|
- 'href' => '',
|
|
|
790
|
- 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2016/01/12/02/025e869a41f00e6316b5e7daaec39c14f4.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/90',
|
|
|
791
|
- 'name' => 'VEIL OG Logo 《World Chaos》 Black Snapback 棒球帽',
|
|
|
792
|
- 'remark' => '21222131212'
|
|
|
793
|
- ),
|
|
|
794
|
- array(
|
|
|
795
|
- 'href' => '',
|
|
|
796
|
- 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2016/01/12/02/025e869a41f00e6316b5e7daaec39c14f4.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/90',
|
|
|
797
|
- 'name' => 'VEIL OG Logo 《World Chaos》 Black Snapback 棒球帽'
|
|
|
798
|
- )
|
|
|
799
|
- )
|
|
|
800
|
- ),
|
|
|
801
|
- array(
|
|
|
802
|
- 'orderNum' => '1511731933',
|
|
|
803
|
- 'orderTime' => '2015-12-01 22:08:19',
|
|
|
804
|
- 'goods' => array(
|
|
|
805
|
- array(
|
|
|
806
|
- 'href' => '',
|
|
|
807
|
- 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2016/01/12/02/025e869a41f00e6316b5e7daaec39c14f4.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/90',
|
|
|
808
|
- 'name' => 'VEIL OG Logo 《World Chaos》 Black Snapback 棒球帽',
|
|
|
809
|
- 'remark' => '21222131212'
|
|
|
810
|
- ),
|
|
|
811
|
- array(
|
|
|
812
|
- 'href' => '',
|
|
|
813
|
- 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2016/01/12/02/025e869a41f00e6316b5e7daaec39c14f4.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/90',
|
|
|
814
|
- 'name' => 'VEIL OG Logo 《World Chaos》 Black Snapback 棒球帽'
|
|
|
815
|
- )
|
|
|
816
|
- )
|
|
|
817
|
- )
|
|
|
818
|
- )
|
|
|
819
|
- ),
|
|
|
820
|
- 'pager' => array(
|
|
|
821
|
- 'hasCheckAll' => false,
|
|
|
822
|
- 'count' => 24,
|
|
|
823
|
- 'curPage' => 1,
|
|
|
824
|
- 'totalPages' => 4,
|
|
|
825
|
- 'pagerHtml' => '<a href="?page=2&type=3"><span class="iconfont"></span>上一页</a><a href="?page=1&type=3">1</a><a class="cur" href="?page=2&type=3">2</a><a href="?page=3&type=3">3</a><a href="?page=2&type=3">下一页<span class="iconfont"></span></a>'
|
|
|
826
|
- )
|
|
|
827
|
- );
|
|
|
828
|
- $this->_view->display('comment', array('meCommentPage' => true, 'comment' => $data));
|
|
|
829
|
- }
|
|
|
830
|
-
|
|
|
831
|
-
|
|
|
832
|
- /**
|
|
|
833
|
- * 个人中心-退货申请
|
|
|
834
|
- */
|
|
|
835
|
- public function refund2Action()
|
|
|
836
|
- {
|
|
|
837
|
- $data = array(
|
|
|
838
|
- 'path' => array(
|
|
|
839
|
- array(
|
|
|
840
|
- 'href' => 'www.yohobuy.com',
|
|
|
841
|
- 'name' => 'YOHO!有货首页'
|
|
|
842
|
- ),
|
|
|
843
|
- array(
|
|
|
844
|
- 'href' => 'www.yohobuy.com/home',
|
|
|
845
|
- 'name' => '个人中心'
|
|
|
846
|
- ),
|
|
|
847
|
- array(
|
|
|
848
|
- 'name' => '订单中心'
|
|
|
849
|
- )
|
|
|
850
|
- ),
|
|
|
851
|
- 'userThumb' => 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100',
|
|
|
852
|
- 'homeNav' => array(
|
|
|
853
|
- array(
|
|
|
854
|
- 'title' => '服务中心',
|
|
|
855
|
- 'subNav' => array(
|
|
|
856
|
- array(
|
|
|
857
|
- 'name' => '我的退/换货',
|
|
|
858
|
- 'href' => '/'
|
|
|
859
|
- ),
|
|
|
860
|
- array(
|
|
|
861
|
- 'name' => '我的咨询',
|
|
|
862
|
- 'href' => '/',
|
|
|
863
|
- 'active' => true
|
|
|
864
|
- ),
|
|
|
865
|
- array(
|
|
|
866
|
- 'name' => '我的评论',
|
|
|
867
|
- 'href' => '/'
|
|
|
868
|
- ),
|
|
|
869
|
- array(
|
|
|
870
|
- 'name' => '我的投诉',
|
|
|
871
|
- 'href' => '/'
|
|
|
872
|
- ),
|
|
|
873
|
- array(
|
|
|
874
|
- 'name' => '我的信息',
|
|
|
875
|
- 'href' => '/'
|
|
|
876
|
- ),
|
|
|
877
|
- array(
|
|
|
878
|
- 'name' => '在线客服',
|
|
|
879
|
- 'href' => '/'
|
|
|
880
|
- )
|
|
|
881
|
- )
|
|
|
882
|
- )
|
|
|
883
|
- ),
|
|
|
884
|
- 'refund' => array(
|
|
|
885
|
- 'tips' => array(
|
|
|
886
|
- 'footwear' => true
|
|
|
887
|
- ),
|
|
|
888
|
- 'goods' => array(
|
|
|
889
|
- array(
|
|
|
890
|
- 'href' => '',
|
|
|
891
|
- 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/06/08/02107c4a7aed6d189584116c6f1fa7ec03.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
|
|
|
892
|
- 'name' => 'MACROPUS PU简约系列双肩包',
|
|
|
893
|
- 'color' => '黑色',
|
|
|
894
|
- 'size' => 'F',
|
|
|
895
|
- 'price' => '195.00',
|
|
|
896
|
- 'banMsg' => '已申请退换货!'
|
|
|
897
|
- ),
|
|
|
898
|
- array(
|
|
|
899
|
- 'href' => '',
|
|
|
900
|
- 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/06/08/02107c4a7aed6d189584116c6f1fa7ec03.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
|
|
|
901
|
- 'name' => 'MACROPUS PU简约系列双肩包',
|
|
|
902
|
- 'color' => '黑色',
|
|
|
903
|
- 'size' => 'F',
|
|
|
904
|
- 'price' => '195.00'
|
|
|
905
|
- )
|
|
|
906
|
- ),
|
|
|
907
|
- 'reason' => array(
|
|
|
908
|
- array(
|
|
|
909
|
- 'id' => 3,
|
|
|
910
|
- 'name' => '不喜欢'
|
|
|
911
|
- ),
|
|
|
912
|
- array(
|
|
|
913
|
- 'id' => 2,
|
|
|
914
|
- 'name' => '性价比不高'
|
|
|
915
|
- ),
|
|
|
916
|
- array(
|
|
|
917
|
- 'id' => 11,
|
|
|
918
|
- 'name' => '价格变化'
|
|
|
919
|
- ),
|
|
|
920
|
- array(
|
|
|
921
|
- 'id' => 4,
|
|
|
922
|
- 'name' => '质量瑕疵'
|
|
|
923
|
- ),
|
|
|
924
|
- array(
|
|
|
925
|
- 'id' => 1,
|
|
|
926
|
- 'name' => '尺寸不合适'
|
|
|
927
|
- ),
|
|
|
928
|
- array(
|
|
|
929
|
- 'id' => 7,
|
|
|
930
|
- 'name' => '商品有色差'
|
|
|
931
|
- ),
|
|
|
932
|
- array(
|
|
|
933
|
- 'id' => 8,
|
|
|
934
|
- 'name' => '图片与实物不符'
|
|
|
935
|
- ),
|
|
|
936
|
- array(
|
|
|
937
|
- 'id' => 6,
|
|
|
938
|
- 'name' => '发错货'
|
|
|
939
|
- ),
|
|
|
940
|
- array(
|
|
|
941
|
- 'id' => 5,
|
|
|
942
|
- 'name' => '快递延迟'
|
|
|
943
|
- )
|
|
|
944
|
- ),
|
|
|
945
|
- 'amount' => '196.00',
|
|
|
946
|
- 'cash' => '196.00',
|
|
|
947
|
- 'yohoCoin' => '0.00',
|
|
|
948
|
- 'coupon' => '0.00',
|
|
|
949
|
- 'returnAmountMode' => array(
|
|
|
950
|
- array(
|
|
|
951
|
- 'id' => 1,
|
|
|
952
|
- 'name' => '原卡返还'
|
|
|
953
|
- )
|
|
|
954
|
- )
|
|
|
955
|
- ),
|
|
|
956
|
- 'pager' => array(
|
|
|
957
|
- 'hasCheckAll' => true,
|
|
|
958
|
- 'count' => 24,
|
|
|
959
|
- 'curPage' => 1,
|
|
|
960
|
- 'totalPages' => 4,
|
|
|
961
|
- 'pagerHtml' => '<a href="?page=2&type=3"><span class="iconfont"></span>上一页</a><a href="?page=1&type=3">1</a><a class="cur" href="?page=2&type=3">2</a><a href="?page=3&type=3">3</a><a href="?page=2&type=3">下一页<span class="iconfont"></span></a>'
|
|
|
962
|
- )
|
|
|
963
|
- );
|
|
|
964
|
- $this->_view->display('returns-apply', array('meReturnsPage' => true, 'returns' => $data));
|
|
|
965
|
- }
|
|
|
966
|
-
|
|
|
967
|
- /**
|
|
|
968
|
- * 个人中心-换货申请
|
|
|
969
|
- */
|
|
|
970
|
- public function exchange2Action()
|
|
|
971
|
- {
|
|
|
972
|
- $data = array(
|
|
|
973
|
- 'path' => array(
|
|
|
974
|
- array(
|
|
|
975
|
- 'href' => 'www.yohobuy.com',
|
|
|
976
|
- 'name' => 'YOHO!有货首页'
|
|
|
977
|
- ),
|
|
|
978
|
- array(
|
|
|
979
|
- 'href' => 'www.yohobuy.com/home',
|
|
|
980
|
- 'name' => '个人中心'
|
|
|
981
|
- ),
|
|
|
982
|
- array(
|
|
|
983
|
- 'name' => '订单中心'
|
|
|
984
|
- )
|
|
|
985
|
- ),
|
|
|
986
|
- 'userThumb' => 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100',
|
|
|
987
|
- 'homeNav' => array(
|
|
|
988
|
- array(
|
|
|
989
|
- 'title' => '服务中心',
|
|
|
990
|
- 'subNav' => array(
|
|
|
991
|
- array(
|
|
|
992
|
- 'name' => '我的退/换货',
|
|
|
993
|
- 'href' => '/'
|
|
|
994
|
- ),
|
|
|
995
|
- array(
|
|
|
996
|
- 'name' => '我的咨询',
|
|
|
997
|
- 'href' => '/',
|
|
|
998
|
- 'active' => true
|
|
|
999
|
- ),
|
|
|
1000
|
- array(
|
|
|
1001
|
- 'name' => '我的评论',
|
|
|
1002
|
- 'href' => '/'
|
|
|
1003
|
- ),
|
|
|
1004
|
- array(
|
|
|
1005
|
- 'name' => '我的投诉',
|
|
|
1006
|
- 'href' => '/'
|
|
|
1007
|
- ),
|
|
|
1008
|
- array(
|
|
|
1009
|
- 'name' => '我的信息',
|
|
|
1010
|
- 'href' => '/'
|
|
|
1011
|
- ),
|
|
|
1012
|
- array(
|
|
|
1013
|
- 'name' => '在线客服',
|
|
|
1014
|
- 'href' => '/'
|
|
|
1015
|
- )
|
|
|
1016
|
- )
|
|
|
1017
|
- )
|
|
|
1018
|
- ),
|
|
|
1019
|
- 'exchange' => array(
|
|
|
1020
|
- 'goods' => array(
|
|
|
1021
|
- array(
|
|
|
1022
|
- 'href' => '',
|
|
|
1023
|
- 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/06/08/02107c4a7aed6d189584116c6f1fa7ec03.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
|
|
|
1024
|
- 'name' => 'MACROPUS PU简约系列双肩包',
|
|
|
1025
|
- 'color' => '黑色',
|
|
|
1026
|
- 'size' => 'F'
|
|
|
1027
|
- ),
|
|
|
1028
|
- array(
|
|
|
1029
|
- 'href' => '',
|
|
|
1030
|
- 'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/06/08/02107c4a7aed6d189584116c6f1fa7ec03.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
|
|
|
1031
|
- 'name' => 'MACROPUS PU简约系列双肩包',
|
|
|
1032
|
- 'color' => '黑色',
|
|
|
1033
|
- 'size' => 'F',
|
|
|
1034
|
- 'colorList' => array(
|
|
|
1035
|
- '446333' => '黑色'
|
|
|
1036
|
- ),
|
|
|
1037
|
- 'sizeList' => array(
|
|
|
1038
|
- '231432' => 'A',
|
|
|
1039
|
- '542122' => 'B',
|
|
|
1040
|
- '874521' => 'C',
|
|
|
1041
|
- '435452' => 'F'
|
|
|
1042
|
- )
|
|
|
1043
|
- )
|
|
|
1044
|
- ),
|
|
|
1045
|
- 'reason' => array(
|
|
|
1046
|
- array(
|
|
|
1047
|
- 'id' => 3,
|
|
|
1048
|
- 'name' => '不喜欢'
|
|
|
1049
|
- ),
|
|
|
1050
|
- array(
|
|
|
1051
|
- 'id' => 2,
|
|
|
1052
|
- 'name' => '性价比不高'
|
|
|
1053
|
- ),
|
|
|
1054
|
- array(
|
|
|
1055
|
- 'id' => 11,
|
|
|
1056
|
- 'name' => '价格变化'
|
|
|
1057
|
- ),
|
|
|
1058
|
- array(
|
|
|
1059
|
- 'id' => 4,
|
|
|
1060
|
- 'name' => '质量瑕疵'
|
|
|
1061
|
- ),
|
|
|
1062
|
- array(
|
|
|
1063
|
- 'id' => 1,
|
|
|
1064
|
- 'name' => '尺寸不合适'
|
|
|
1065
|
- ),
|
|
|
1066
|
- array(
|
|
|
1067
|
- 'id' => 7,
|
|
|
1068
|
- 'name' => '商品有色差'
|
|
|
1069
|
- ),
|
|
|
1070
|
- array(
|
|
|
1071
|
- 'id' => 8,
|
|
|
1072
|
- 'name' => '图片与实物不符'
|
|
|
1073
|
- ),
|
|
|
1074
|
- array(
|
|
|
1075
|
- 'id' => 6,
|
|
|
1076
|
- 'name' => '发错货'
|
|
|
1077
|
- ),
|
|
|
1078
|
- array(
|
|
|
1079
|
- 'id' => 5,
|
|
|
1080
|
- 'name' => '快递延迟'
|
|
|
1081
|
- )
|
|
|
1082
|
- ),
|
|
|
1083
|
- 'name' => '杨延青',
|
|
|
1084
|
- 'province' => '32',
|
|
|
1085
|
- 'city' => '3201',
|
|
|
1086
|
- 'area' => '320105',
|
|
|
1087
|
- 'address' => '国家广告产业园5栋16楼',
|
|
|
1088
|
- 'phone' => '18752098068',
|
|
|
1089
|
- 'postcode' => ''
|
|
|
1090
|
- ),
|
|
|
1091
|
- 'pager' => array(
|
|
|
1092
|
- 'hasCheckAll' => true,
|
|
|
1093
|
- 'count' => 24,
|
|
|
1094
|
- 'curPage' => 1,
|
|
|
1095
|
- 'totalPages' => 4,
|
|
|
1096
|
- 'pagerHtml' => '<a href="?page=2&type=3"><span class="iconfont"></span>上一页</a><a href="?page=1&type=3">1</a><a class="cur" href="?page=2&type=3">2</a><a href="?page=3&type=3">3</a><a href="?page=2&type=3">下一页<span class="iconfont"></span></a>'
|
|
|
1097
|
- )
|
|
|
1098
|
- );
|
|
|
1099
|
- $this->_view->display('returns-apply', array('meReturnsPage' => true, 'returns' => $data));
|
|
|
1100
|
- }
|
|
|
1101
|
-
|
|
|
1102
|
-
|
|
|
1103
|
- /**
|
|
|
1104
|
- * 个人中心-我的信息
|
|
|
1105
|
- */
|
|
|
1106
|
- public function messageAction()
|
|
|
1107
|
- {
|
|
|
1108
|
- $data = array(
|
|
|
1109
|
- 'path' => array(
|
|
|
1110
|
- array(
|
|
|
1111
|
- 'href' => 'www.yohobuy.com',
|
|
|
1112
|
- 'name' => 'YOHO!有货首页'
|
|
|
1113
|
- ),
|
|
|
1114
|
- array(
|
|
|
1115
|
- 'href' => 'www.yohobuy.com/home',
|
|
|
1116
|
- 'name' => '个人中心'
|
|
|
1117
|
- ),
|
|
|
1118
|
- array(
|
|
|
1119
|
- 'name' => '订单中心'
|
|
|
1120
|
- )
|
|
|
1121
|
- ),
|
|
|
1122
|
- 'userThumb' => 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100',
|
|
|
1123
|
- 'homeNav' => array(
|
|
|
1124
|
- array(
|
|
|
1125
|
- 'title' => '服务中心',
|
|
|
1126
|
- 'subNav' => array(
|
|
|
1127
|
- array(
|
|
|
1128
|
- 'name' => '我的退/换货',
|
|
|
1129
|
- 'href' => '/'
|
|
|
1130
|
- ),
|
|
|
1131
|
- array(
|
|
|
1132
|
- 'name' => '我的咨询',
|
|
|
1133
|
- 'href' => '/',
|
|
|
1134
|
- 'active' => true
|
|
|
1135
|
- ),
|
|
|
1136
|
- array(
|
|
|
1137
|
- 'name' => '我的评论',
|
|
|
1138
|
- 'href' => '/'
|
|
|
1139
|
- ),
|
|
|
1140
|
- array(
|
|
|
1141
|
- 'name' => '我的投诉',
|
|
|
1142
|
- 'href' => '/'
|
|
|
1143
|
- ),
|
|
|
1144
|
- array(
|
|
|
1145
|
- 'name' => '我的信息',
|
|
|
1146
|
- 'href' => '/'
|
|
|
1147
|
- ),
|
|
|
1148
|
- array(
|
|
|
1149
|
- 'name' => '在线客服',
|
|
|
1150
|
- 'href' => '/'
|
|
|
1151
|
- )
|
|
|
1152
|
- )
|
|
|
1153
|
- )
|
|
|
1154
|
- ),
|
|
|
1155
|
- 'messages' => array(
|
|
|
1156
|
- array(
|
|
|
1157
|
- 'href' => '#',
|
|
|
1158
|
- 'sender' => 'YOHO!有货官方消息',
|
|
|
1159
|
- 'title' => '您有一张优惠券即将过期',
|
|
|
1160
|
- 'time' => '2016-02-24 08:16:09',
|
|
|
1161
|
- 'id' => '3123'
|
|
|
1162
|
- ),
|
|
|
1163
|
- array(
|
|
|
1164
|
- 'href' => '#',
|
|
|
1165
|
- 'sender' => 'YOHO!有货官方消息',
|
|
|
1166
|
- 'title' => '您有一张优惠券即将过期',
|
|
|
1167
|
- 'time' => '2016-02-24 08:16:09',
|
|
|
1168
|
- 'id' => '3123'
|
|
|
1169
|
- ),
|
|
|
1170
|
- array(
|
|
|
1171
|
- 'href' => '#',
|
|
|
1172
|
- 'sender' => 'YOHO!有货官方消息',
|
|
|
1173
|
- 'title' => '您有一张优惠券即将过期',
|
|
|
1174
|
- 'time' => '2016-02-24 08:16:09',
|
|
|
1175
|
- 'id' => '3123'
|
|
|
1176
|
- ),
|
|
|
1177
|
- array(
|
|
|
1178
|
- 'href' => '#',
|
|
|
1179
|
- 'sender' => 'YOHO!有货官方消息',
|
|
|
1180
|
- 'title' => '您有一张优惠券即将过期',
|
|
|
1181
|
- 'time' => '2016-02-24 08:16:09',
|
|
|
1182
|
- 'id' => '3123'
|
|
|
1183
|
- )
|
|
|
1184
|
- ),
|
|
|
1185
|
- 'pager' => array(
|
|
|
1186
|
- 'hasCheckAll' => false,
|
|
|
1187
|
- 'count' => 24,
|
|
|
1188
|
- 'curPage' => 1,
|
|
|
1189
|
- 'totalPages' => 4,
|
|
|
1190
|
- 'pagerHtml' => '<a href="?page=2&type=3"><span class="iconfont"></span>上一页</a><a href="?page=1&type=3">1</a><a class="cur" href="?page=2&type=3">2</a><a href="?page=3&type=3">3</a><a href="?page=2&type=3">下一页<span class="iconfont"></span></a>'
|
|
|
1191
|
- )
|
|
|
1192
|
- );
|
|
|
1193
|
- $this->_view->display('message', array('meMessagePage' => true, 'message' => $data));
|
|
|
1194
|
- }
|
|
|
1195
|
-
|
|
|
1196
|
-
|
|
|
1197
|
- /**
|
|
|
1198
|
- * 个人中心-账号安全
|
|
|
1199
|
- */
|
|
|
1200
|
- public function accountAction()
|
|
|
1201
|
- {
|
|
|
1202
|
- //判断是否登录
|
|
|
1203
|
- $this->auditJumpLogin();
|
|
|
1204
|
-
|
|
|
1205
|
- //头部导航
|
|
|
1206
|
- $channel = Helpers::getChannelNameByCookie();
|
|
|
1207
|
- $this->setWebNavHeader($channel);
|
|
|
1208
|
- //面包屑-左侧导航
|
|
|
1209
|
- $path = UserModel::getCenterCrumb('账号安全');
|
|
|
1210
|
- $leftNav = UserModel::getCenterLeftNav('账号安全');
|
|
|
1211
|
- $data = array(
|
|
|
1212
|
- 'path' => $path,
|
|
|
1213
|
- 'homeNav' => $leftNav,
|
|
|
1214
|
- 'userThumb' => 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100',
|
|
|
1215
|
- 'allAccounts' => array(
|
|
|
1216
|
- array(
|
|
|
1217
|
- 'icon' => 'ok',
|
|
|
1218
|
- 'type' => '登录密码',
|
|
|
1219
|
- 'tip' => '互联网帐号存在被盗风险,建议您定期更改密码以保护帐号安全。',
|
|
|
1220
|
- 'red' => 'true',
|
|
|
1221
|
- 'url' => '/home/userpwd',
|
|
|
1222
|
- 'isValid' => true
|
|
|
1223
|
- ),
|
|
|
1224
|
- array(
|
|
|
1225
|
- 'icon' => 'warning',
|
|
|
1226
|
- 'type' => '邮箱验证',
|
|
|
1227
|
- 'tip' => '验证后,可用于找回登录密码。',
|
|
|
1228
|
- 'url' => '/home/email'
|
|
|
1229
|
- ),
|
|
|
1230
|
- array(
|
|
|
1231
|
- 'icon' => 'warning',
|
|
|
1232
|
- 'type' => '手机验证',
|
|
|
1233
|
- 'tip' => '验证后,可用于找回登录密码。',
|
|
|
1234
|
- 'url' => '/home/mobile'
|
|
|
1235
|
- )
|
|
|
1236
|
- )
|
|
|
1237
|
- );
|
|
|
1238
|
- $this->_view->display('account', array('meAccountPage' => true, 'account' => $data));
|
|
|
1239
|
- }
|
|
|
1240
|
-
|
|
|
1241
|
- /**
|
|
|
1242
|
- * 个人中心-修改密码身份验证
|
|
|
1243
|
- */
|
|
|
1244
|
- public function userpwdAction()
|
|
|
1245
|
- {
|
|
|
1246
|
- //判断是否登录
|
|
|
1247
|
- $this->auditJumpLogin();
|
|
|
1248
|
-
|
|
|
1249
|
- //头部导航
|
|
|
1250
|
- $channel = Helpers::getChannelNameByCookie();
|
|
|
1251
|
- $this->setWebNavHeader($channel);
|
|
|
1252
|
- //面包屑-左侧导航
|
|
|
1253
|
- $path = UserModel::getCenterCrumb('账号安全');
|
|
|
1254
|
- $leftNav = UserModel::getCenterLeftNav('账号安全');
|
|
|
1255
|
- //用户信息
|
|
|
1256
|
-
|
|
|
1257
|
- //判断身份验证状态
|
|
|
1258
|
- $checkStatus = $this ->auditCheckStatus('');
|
|
|
1259
|
-
|
|
|
1260
|
- $data = array(
|
|
|
1261
|
- 'path' => $path,
|
|
|
1262
|
- 'homeNav' => $leftNav,
|
|
|
1263
|
- 'subTitle' => '修改密码',
|
|
|
1264
|
- 'enTitle' => 'CHANGE PASSWORD',
|
|
|
1265
|
- 'progressCur' => 'progress1',
|
|
|
1266
|
- 'progress' => array(
|
|
|
1267
|
- array(
|
|
|
1268
|
- 'iscur' => true,
|
|
|
1269
|
- 'progressName' => '1.验证身份'
|
|
|
1270
|
- ),
|
|
|
1271
|
- array(
|
|
|
1272
|
- 'iscur' => false,
|
|
|
1273
|
- 'progressName' => '2.修改登录密码'
|
|
|
1274
|
- ),
|
|
|
1275
|
- array(
|
|
|
1276
|
- 'iscur' => false,
|
|
|
1277
|
- 'progressName' => '3.完成'
|
|
|
1278
|
- )
|
|
|
1279
|
- ),
|
|
|
1280
|
- 'returnInfo' => false,
|
|
|
1281
|
- 'sendEmail' => array(
|
|
|
1282
|
- 'emailInfo' => '92****65@qq.com',
|
|
|
1283
|
- 'emailUrl' => 'http://mail.qq.com'
|
|
|
1284
|
- ),
|
|
|
1285
|
- 'formInfo' => array(
|
|
|
1286
|
- 'formAction' => '/home/userpwd/newpwd',
|
|
|
1287
|
- 'ischeckEmail' => $checkStatus['ischeckEmail'],
|
|
|
1288
|
- 'formData' => array(
|
|
|
1289
|
- $checkStatus['formData']
|
|
|
1290
|
- ),
|
|
|
1291
|
- 'mobileCode' => $checkStatus['ischeckMobile']
|
|
|
1292
|
- )
|
|
|
1293
|
- );
|
|
|
1294
|
-
|
|
|
1295
|
- $this->_view->display('userpwd', array(
|
|
|
1296
|
- 'userpwd' => $data,
|
|
|
1297
|
- 'meValidatePage' => true
|
|
|
1298
|
- ));
|
|
|
1299
|
- }
|
|
|
1300
|
-
|
|
|
1301
|
- /**
|
|
|
1302
|
- * 个人中心-邮箱验证身份
|
|
|
1303
|
- */
|
|
|
1304
|
- public function emailAction()
|
|
|
1305
|
- {
|
|
|
1306
|
- //判断是否登录
|
|
|
1307
|
- $this->auditJumpLogin();
|
|
|
1308
|
-
|
|
|
1309
|
- //头部导航
|
|
|
1310
|
- $channel = Helpers::getChannelNameByCookie();
|
|
|
1311
|
- $this->setWebNavHeader($channel);
|
|
|
1312
|
- //面包屑-左侧导航
|
|
|
1313
|
- $path = UserModel::getCenterCrumb('账号安全');
|
|
|
1314
|
- $leftNav = UserModel::getCenterLeftNav('账号安全');
|
|
|
1315
|
- //用户信息
|
|
|
1316
|
-
|
|
|
1317
|
- //判断身份验证状态
|
|
|
1318
|
- $checkStatus = $this ->auditCheckStatus('email');
|
|
|
1319
|
-
|
|
|
1320
|
- $data = array(
|
|
|
1321
|
- 'path' => $path,
|
|
|
1322
|
- 'homeNav' => $leftNav,
|
|
|
1323
|
- 'subTitle' => $checkStatus['subTitle'],
|
|
|
1324
|
- 'enTitle' => $checkStatus['enTitle'],
|
|
|
1325
|
- 'progressCur' => 'progress1',
|
|
|
1326
|
- 'progress' => array(
|
|
|
1327
|
- array(
|
|
|
1328
|
- 'iscur' => true,
|
|
|
1329
|
- 'progressName' => '1.验证身份'
|
|
|
1330
|
- ),
|
|
|
1331
|
- array(
|
|
|
1332
|
- 'iscur' => false,
|
|
|
1333
|
- 'progressName' => '2.'.$checkStatus['subTitle']
|
|
|
1334
|
- ),
|
|
|
1335
|
- array(
|
|
|
1336
|
- 'iscur' => false,
|
|
|
1337
|
- 'progressName' => '3.完成'
|
|
|
1338
|
- )
|
|
|
1339
|
- ),
|
|
|
1340
|
- 'returnInfo' => false,
|
|
|
1341
|
- 'sendEmail' => array(
|
|
|
1342
|
- 'emailInfo' => '92****65@qq.com',
|
|
|
1343
|
- 'emailUrl' => 'http://mail.qq.com'
|
|
|
1344
|
- ),
|
|
|
1345
|
- 'formInfo' => array(
|
|
|
1346
|
- 'formAction' => '/home/email/mail',
|
|
|
1347
|
- 'ischeckEmail' => $checkStatus['ischeckEmail'],
|
|
|
1348
|
- 'formData' => array(
|
|
|
1349
|
- $checkStatus['formData']
|
|
|
1350
|
- ),
|
|
|
1351
|
- 'mobileCode' => $checkStatus['ischeckMobile']
|
|
|
1352
|
- )
|
|
|
1353
|
- );
|
|
|
1354
|
-
|
|
|
1355
|
- $this->_view->display('email', array(
|
|
|
1356
|
- 'email' => $data,
|
|
|
1357
|
- 'meValidatePage' => true
|
|
|
1358
|
- ));
|
|
|
1359
|
- }
|
|
|
1360
|
-
|
|
|
1361
|
- /**
|
|
|
1362
|
- * 个人中心-手机验证身份
|
|
|
1363
|
- */
|
|
|
1364
|
- public function mobileAction()
|
|
|
1365
|
- {
|
|
|
1366
|
- //判断是否登录
|
|
|
1367
|
- $this->auditJumpLogin();
|
|
|
1368
|
-
|
|
|
1369
|
- //头部导航
|
|
|
1370
|
- $channel = Helpers::getChannelNameByCookie();
|
|
|
1371
|
- $this->setWebNavHeader($channel);
|
|
|
1372
|
- //面包屑-左侧导航
|
|
|
1373
|
- $path = UserModel::getCenterCrumb('账号安全');
|
|
|
1374
|
- $leftNav = UserModel::getCenterLeftNav('账号安全');
|
|
|
1375
|
- //用户信息
|
|
|
1376
|
-
|
|
|
1377
|
- //判断身份验证状态
|
|
|
1378
|
- $checkStatus = $this ->auditCheckStatus('mobile');
|
|
|
1379
|
-
|
|
|
1380
|
- $data = array(
|
|
|
1381
|
- 'path' => $path,
|
|
|
1382
|
- 'homeNav' => $leftNav,
|
|
|
1383
|
- 'subTitle' => $checkStatus['subTitle'],
|
|
|
1384
|
- 'enTitle' => $checkStatus['enTitle'],
|
|
|
1385
|
- 'progressCur' => 'progress1',
|
|
|
1386
|
- 'progress' => array(
|
|
|
1387
|
- array(
|
|
|
1388
|
- 'iscur' => true,
|
|
|
1389
|
- 'progressName' => '1.验证身份'
|
|
|
1390
|
- ),
|
|
|
1391
|
- array(
|
|
|
1392
|
- 'iscur' => false,
|
|
|
1393
|
- 'progressName' => '2.'.$checkStatus['subTitle']
|
|
|
1394
|
- ),
|
|
|
1395
|
- array(
|
|
|
1396
|
- 'iscur' => false,
|
|
|
1397
|
- 'progressName' => '3.完成'
|
|
|
1398
|
- )
|
|
|
1399
|
- ),
|
|
|
1400
|
- 'returnInfo' => false,
|
|
|
1401
|
- 'sendEmail' => array(
|
|
|
1402
|
- 'emailInfo' => '92****65@qq.com',
|
|
|
1403
|
- 'emailUrl' => 'http://mail.qq.com'
|
|
|
1404
|
- ),
|
|
|
1405
|
- 'formInfo' => array(
|
|
|
1406
|
- 'formAction' => '/home/mobile/new',
|
|
|
1407
|
- 'ischeckEmail' => $checkStatus['ischeckEmail'],
|
|
|
1408
|
- 'formData' => array(
|
|
|
1409
|
- $checkStatus['formData']
|
|
|
1410
|
- ),
|
|
|
1411
|
- 'mobileCode' => $checkStatus['ischeckMobile']
|
|
|
1412
|
- )
|
|
|
1413
|
- );
|
|
|
1414
|
-
|
|
|
1415
|
- $this->_view->display('mobile', array(
|
|
|
1416
|
- 'mobile' => $data,
|
|
|
1417
|
- 'meValidatePage' => true
|
|
|
1418
|
- ));
|
|
|
1419
|
- }
|
|
|
1420
|
-
|
|
|
1421
|
- /**
|
|
|
1422
|
- * 个人中心-判断身份验证状态
|
|
|
1423
|
- */
|
|
|
1424
|
- function auditCheckStatus($checkType)
|
|
|
1425
|
- {
|
|
|
1426
|
- $ischeckMobile = false;
|
|
|
1427
|
- //是否验证过手机号码
|
|
|
1428
|
- $ischeckEmail = false;
|
|
|
1429
|
- //是否验证过邮箱
|
|
|
1430
|
- $firstCheck = 'mobile';
|
|
|
1431
|
- //第一个校验的是手机还是邮箱的标记
|
|
|
1432
|
-
|
|
|
1433
|
- if ($checkType === 'mobile') {
|
|
|
1434
|
- $subTitle = $ischeckMobile ? '修改手机' : '验证手机';
|
|
|
1435
|
- $enTitle = $ischeckMobile ? 'CHANGE TELEPHONE' : 'VERIFICATION TELEPHONE';
|
|
|
1436
|
- } else {
|
|
|
1437
|
- $subTitle = $ischeckEmail ? '修改邮箱' : '验证邮箱';
|
|
|
1438
|
- $enTitle = $ischeckEmail ? 'CHANGE EMAIL' : 'VERIFICATION EMAIL';
|
|
|
1439
|
- }
|
|
|
1440
|
-
|
|
|
1441
|
- $formData1 = array(
|
|
|
1442
|
- 'inputTxt' => '请输入登录密码',
|
|
|
1443
|
- 'key' => 'password',
|
|
|
1444
|
- 'type' => 'password',
|
|
|
1445
|
- 'name' => 'oldpassword'
|
|
|
1446
|
- );
|
|
|
1447
|
- $formData2 = array(
|
|
|
1448
|
- 'inputTxt' => '已验证的手机号',
|
|
|
1449
|
- 'key' => 'mobilevalue',
|
|
|
1450
|
- 'type' => 'text',
|
|
|
1451
|
- 'name' => 'mobile'
|
|
|
1452
|
- );
|
|
|
1453
|
- $formData3 = array(
|
|
|
1454
|
- 'inputTxt' => '已验证邮箱',
|
|
|
1455
|
- 'emailInfo' => '92****65@qq.com'
|
|
|
1456
|
- );
|
|
|
1457
|
- if ($ischeckMobile && !$ischeckEmail) {
|
|
|
1458
|
- $formData = $formData2;
|
|
|
1459
|
- } else if ($ischeckEmail && !$ischeckMobile) {
|
|
|
1460
|
- $formData = $formData3;
|
|
|
1461
|
- } else if ($ischeckMobile && $ischeckEmail) {
|
|
|
1462
|
- if ($firstCheck === 'mobile') {
|
|
|
1463
|
- $formData = $formData2;
|
|
|
1464
|
- } else {
|
|
|
1465
|
- $formData = $formData3;
|
|
|
1466
|
- }
|
|
|
1467
|
- } else {
|
|
|
1468
|
- $formData = $formData1;
|
|
|
1469
|
- }
|
|
|
1470
|
-
|
|
|
1471
|
- $data = array(
|
|
|
1472
|
- 'ischeckMobile' => $ischeckMobile,
|
|
|
1473
|
- 'ischeckEmail' => $ischeckEmail,
|
|
|
1474
|
- 'subTitle' => $subTitle,
|
|
|
1475
|
- 'enTitle' => $enTitle,
|
|
|
1476
|
- 'formData' => $formData
|
|
|
1477
|
- );
|
|
|
1478
|
-
|
|
|
1479
|
- return $data;
|
|
|
1480
|
- }
|
|
|
1481
|
-
|
|
|
1482
|
- /**
|
|
|
1483
|
- * 个人中心-兑换礼品卡编辑
|
|
|
1484
|
- */
|
|
|
1485
|
- public function giftAction()
|
|
|
1486
|
- {
|
|
|
1487
|
- //判断是否登录
|
|
|
1488
|
- $this->auditJumpLogin();
|
|
|
1489
|
-
|
|
|
1490
|
- //头部导航
|
|
|
1491
|
- $channel = Helpers::getChannelNameByCookie();
|
|
|
1492
|
- $this->setWebNavHeader($channel);
|
|
|
1493
|
- //面包屑-左侧导航
|
|
|
1494
|
- $path = UserModel::getCenterCrumb('兑换礼品卡');
|
|
|
1495
|
- $leftNav = UserModel::getCenterLeftNav('兑换礼品卡');
|
|
|
1496
|
- //用户信息
|
|
|
1497
|
-
|
|
|
1498
|
- $data = array(
|
|
|
1499
|
- 'path' => $path,
|
|
|
1500
|
- 'homeNav' => $leftNav,
|
|
|
1501
|
- 'formAction' => '/home/gift/exchange'
|
|
|
1502
|
- );
|
|
|
1503
|
-
|
|
|
1504
|
- $this->_view->display('gift', array(
|
|
|
1505
|
- 'gift' => $data,
|
|
|
1506
|
- 'meGiftPage' => true
|
|
|
1507
|
- ));
|
|
|
1508
|
- }
|
|
|
1509
|
-
|
|
|
1510
|
-
|
|
|
1511
|
-} |
|
|