<?php
/**
 * 我的代金券
 *
 *
 *
 *

 */

//use Shopnc\Tpl;

defined('InShopNC') or exit('Access Invalid!');

class member_voucherControl extends mbMemberControl
{

    public function __construct()
    {
        parent::__construct();
    }

    /**
     * 代金券列表
     */
    public function voucher_listOp()
    {
        $model_voucher = Model('voucher');
        $voucher_list = $model_voucher->getMemberVoucherList($_SESSION['member_id'], $_POST['voucher_state'], $this->page_size());
        $page_count = $model_voucher->gettotalpage();

        output_data(array('voucher_list' => $voucher_list), mobile_page($page_count));
    }
}
