Message.php
6.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<?php
use Action\WebAction;
/**
* 个人中心
*/
class messageController extends WebAction
{
/**
* 我的信息
*/
public function indexAction()
{
$data = array(
'path' => array(
array(
'href' => 'www.yohobuy.com',
'name' => 'YOHO!有货首页'
),
array(
'href' => 'www.yohobuy.com/home',
'name' => '个人中心'
),
array(
'name' => '订单中心'
)
),
'userThumb' => 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100',
'homeNav' => array(
array(
'title' => '服务中心',
'subNav' => array(
array(
'name' => '我的退/换货',
'href' => '/'
),
array(
'name' => '我的咨询',
'href' => '/',
'active' => true
),
array(
'name' => '我的评论',
'href' => '/'
),
array(
'name' => '我的投诉',
'href' => '/'
),
array(
'name' => '我的信息',
'href' => '/'
),
array(
'name' => '在线客服',
'href' => '/'
)
)
)
),
'messages' => array(
array(
'href' => '#',
'sender' => 'YOHO!有货官方消息',
'title' => '您有一张优惠券即将过期',
'time' => '2016-02-24 08:16:09',
'id' => '3123'
),
array(
'href' => '#',
'sender' => 'YOHO!有货官方消息',
'title' => '您有一张优惠券即将过期',
'time' => '2016-02-24 08:16:09',
'id' => '3123'
),
array(
'href' => '#',
'sender' => 'YOHO!有货官方消息',
'title' => '您有一张优惠券即将过期',
'time' => '2016-02-24 08:16:09',
'id' => '3123'
),
array(
'href' => '#',
'sender' => 'YOHO!有货官方消息',
'title' => '您有一张优惠券即将过期',
'time' => '2016-02-24 08:16:09',
'id' => '3123'
)
),
'pager' => array(
'hasCheckAll' => false,
'count' => 24,
'curPage' => 1,
'totalPages' => 4,
'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>'
)
);
$this->_view->display('message', array('meMessagePage' => true, 'message' => $data));
}
//我的信息详情假数据
public function contentAction()
{
$data = array(
'path' => array(
array(
'href' => 'www.yohobuy.com',
'name' => 'YOHO!有货首页'
),
array(
'href' => 'www.yohobuy.com/home',
'name' => '个人中心'
),
array(
'name' => '订单中心'
)
),
'userThumb' => 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100',
'homeNav' => array(
array(
'title' => '服务中心',
'subNav' => array(
array(
'name' => '我的退/换货',
'href' => '/'
),
array(
'name' => '我的咨询',
'href' => '/',
'active' => true
),
array(
'name' => '我的评论',
'href' => '/'
),
array(
'name' => '我的投诉',
'href' => '/'
),
array(
'name' => '我的信息',
'href' => '/'
),
array(
'name' => '在线客服',
'href' => '/'
)
)
)
),
'message' => array(
'sender' => 'YOHO!有货官方消息',
'title' => '您有一张优惠券即将过期',
'time' => '2016-02-24 08:16:09',
'content' => '您有一张优惠券即将到期,请至【我的优惠券】查看。'
),
'pager' => array(
'hasCheckAll' => false,
'count' => 24,
'curPage' => 1,
'totalPages' => 4,
'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>'
)
);
$this->_view->display('message-content', array('meMessagePage' => true, 'message' => $data));
}
}