Exchange.php 693 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace app\index\controller\shop;
  3. use app\common\controller\Frontend;
  4. use addons\shop\model\ExchangeOrder;
  5. class Exchange extends Frontend
  6. {
  7. protected $layout = 'default';
  8. protected $noNeedLogin = [];
  9. protected $noNeedRight = ['*'];
  10. //我的优惠券列表
  11. public function index()
  12. {
  13. $param = $this->request->param();
  14. $param['f'] = isset($param['status']) ? $param['status'] : '';
  15. $param['user_id'] = $this->auth->id;
  16. $this->assign('__list__', ExchangeOrder::tableList($param));
  17. $this->assign('param', $param);
  18. $this->view->assign('title', '我的积分兑换');
  19. return $this->view->fetch();
  20. }
  21. }