index.php 1.18 KB
<?php

use Action\AbstractAction;

class IndexController extends AbstractAction
{
    /**
     * 订单确认
     */
    public function indexAction()
    {
        $data = array(
            'cartEnsurePage' => true,
            'orderEnsure'=>array(
                'hasAddress' => array(
                    array(
                        'user' => '王成龙',
                        'address' => '江苏省南京市建邺区嘉陵江东街18号,国家广告产业园5栋17楼,YOHO 18605269243',
                        'checked' => true,
                        'id' => 100
                    )
                )
            )
        );

        $this->_view->display('cart', $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);
    }
}