...
|
...
|
@@ -29,26 +29,46 @@ class CouponController extends AbstractAction |
|
|
'showTitle' => 1,
|
|
|
'coupons' => [
|
|
|
[
|
|
|
'id' => 1,
|
|
|
'picUrl' => 'http://img12.static.yhbimg.com/yhb-img01/2016/01/19/11/02039485d87cc1b100b883244cf386e62d.jpg?imageView/2/w/640/h/200',
|
|
|
'status' => 1,
|
|
|
'num' => '123',
|
|
|
'go'=>'http://m.dev.yohobuy.com/boys',
|
|
|
'couponIds' =>[8024,2564,3587]
|
|
|
],
|
|
|
[
|
|
|
'id' => 1,
|
|
|
'picUrl' => 'http://img12.static.yhbimg.com/yhb-img01/2016/01/19/11/02039485d87cc1b100b883244cf386e62d.jpg?imageView/2/w/640/h/200',
|
|
|
'status' => 2,
|
|
|
'num' => '0',
|
|
|
'go'=>'http://m.dev.yohobuy.com/boys',
|
|
|
'couponIds' =>[8024,2564,3587]
|
|
|
],
|
|
|
[
|
|
|
'id' => 1,
|
|
|
'picUrl' => 'http://img12.static.yhbimg.com/yhb-img01/2016/01/19/11/02039485d87cc1b100b883244cf386e62d.jpg?imageView/2/w/640/h/200',
|
|
|
'status' => 3,
|
|
|
'num'=>'456',
|
|
|
'go'=>'http://m.dev.yohobuy.com/boys',
|
|
|
'couponIds' =>[8024,2564,3587]
|
|
|
],
|
|
|
]
|
|
|
];
|
|
|
$this->_view->display('index', $data);
|
|
|
}
|
|
|
|
|
|
public function receiveCouponAction()
|
|
|
{
|
|
|
$receiveData = filter_input_array(INPUT_GET,array(
|
|
|
'id' => FILTER_DEFAULT
|
|
|
));
|
|
|
$returnData = [
|
|
|
'id' => $receiveData['id'],
|
|
|
'status' => 1,
|
|
|
'message' => '您已经领过券了!'
|
|
|
];
|
|
|
|
|
|
$this->_view->display('receive-coupon',$returnData);
|
|
|
}
|
|
|
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|