Ejemplo n.º 1
0
 /**
  * 订单提交
  */
 public function actionIndex()
 {
     $Cart = new ModelCart();
     $result = $Cart->CardIdentProduct($this->member_id);
     if ($result['code'] == 400 || empty($result)) {
         $this->redirect('/');
     }
     $order_info = $result['data'];
     $item = $order_info['cart_list'];
     $num = $order_info['quantity_sum'];
     $amount = $order_info['amount'];
     $addr_row = $order_info['addr'];
     //配送方式
     $dly = $order_info['dly'];
     //支付方式
     $payment = $order_info['payment'];
     $this->render('checkout', array('item' => $item, 'num' => $num, 'amount' => $amount, 'addr_row' => $addr_row, 'dly' => $dly, 'payment' => $payment));
 }