Save.php
6.08 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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<?php
use Action\AbstractAction;
class SaveController extends AbstractAction
{
/**
* 订单确认
*/
public function indexAction()
{
$src="http://img04.static.yohobuy.com/thumb/2015/08/25/08/012622ad14f32470d56a0b1da5d533a7e2-0060x0060-2-goodsimg.jpg";
$data = array(
'orderSavePage' => true,
'orderSave'=>array(
'hasAddress' => array(
array(
'user' => '王成龙',
'address' => '江苏省南京市建邺区嘉陵江东街18号,国家广告产业园5栋17楼,YOHO 18605269243',
'checked' => true,
'id' => 100
)
),
'supportLine' => array(
array(
'src' => 'http://static.yohobuy.com/images/pay/icon/zhifubao.png'
),
array(
'src' => 'http://static.yohobuy.com/images/pay/icon/zhifubao.png'
),
array(
'src' => 'http://static.yohobuy.com/images/pay/icon/zhifubao.png'
),
array(
'src' => 'http://static.yohobuy.com/images/pay/icon/zhifubao.png'
),
array(
'src' => 'http://static.yohobuy.com/images/pay/icon/zhifubao.png'
),
array(
'src' => 'http://static.yohobuy.com/images/pay/icon/zhifubao.png'
),
array(
'src' => 'http://static.yohobuy.com/images/pay/icon/zhifubao.png'
),
array(
'src' => 'http://static.yohobuy.com/images/pay/icon/zhifubao.png'
)
),
'supportBank' => array(
array(
'src' => 'http://static.yohobuy.com/images/bankico/BOC.gif'
),
array(
'src' => 'http://static.yohobuy.com/images/bankico/BOC.gif'
)
),
'carriagelist'=>array(
array('name'=>'普通快递','value'=>'0.00',"desc"=>''),
array('name'=>'普通快递','value'=>'5.00',"desc"=>'(仅支持顺丰可配送的地区)')
),
'orderProducts'=>array(
array('name' =>"Eight Guys 破洞束口牛仔裤",'tip'=>"颜色:蓝色 尺码:L",'src'=>$src,'href'=>'','price'=>'179.00','coin'=>'0','count'=>'1'),
array('name' =>"Eight Guys 破洞束口牛仔裤",'tip'=>"颜色:蓝色 尺码:L",'src'=>$src,'href'=>'','price'=>'179.00','coin'=>'0','count'=>'1')
),
'piaotypes'=>array(
array('name'=>'个人','value'=>'001'),
array('name'=>'公司','value'=>'002')
),
'juanlist'=>array(
array('name'=>'YOHOXXXXXX优惠卷','value'=>'001'),
array('name'=>'爽1111优惠卷','value'=>'002')
)
)
);
$this->_view->display('index', $data);
}
/*获取优惠卷的面额*/
public function priceByCodeAction()
{
$result = array();
do {
$result=array(
'code'=>200,
'msg'=>'成功',//卷不存在,过期等等
'price'=>'10'
);
} while (false);
$this->echoJson($result);
}
//获取省级联动ajax
//省
public function getProvinceAction()
{
$data = array(
array(
'name' => '111省',
'value' => 11,
'checked' => true
),
array(
'name' => '222省',
'value' => 22
),
array(
'name' => '333省',
'value' => 33
)
);
$this->echoJson($data);
}
//市
public function getCityAction()
{
$data = array(
array(
'name' => '111市',
'value' => 11
),
array(
'name' => '222市',
'value' => 22,
'checked' => true
),
array(
'name' => '333市',
'value' => 33
)
);
$this->echoJson($data);
}
//县
public function getCountyAction()
{
$data = array(
array(
'name' => '111县',
'value' => 11
),
array(
'name' => '222县',
'value' => 22
),
array(
'name' => '333县',
'value' => 33,
'checked' => true
)
);
$this->echoJson($data);
}
//修改地址
public function getUserInfoAction()
{
$data = array(
'name' => '王成龙',
'phone' => '18605269243',
'address' => '江陵江东街',
'tel' => false,
'telCode' => false,
'mail' => false,
'code' => '210000'
);
$this->echoJson($data);
}
//删除地址
public function addressDelAction()
{
$data = array(
'status' => true
);
$this->echoJson($data);
}
//保存地址
public function addressSaveAction()
{
$data = array(
'status' => true
);
$this->echoJson($data);
}
//设为默认地址
public function defaultAddressAction()
{
$data = array(
'status' => true
);
$this->echoJson($data);
}
}