Save.php 1.94 KB
<?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
                    )
                ),
                '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);
    }

}