/** * 基本信息 */ public function actionBase() { $order_id = $_POST['order_id']; $act = isset($_POST['act']) ? $_POST['act'] : ''; $order_info = Orders::model()->find('order_id = :order_id', array(':order_id' => $order_id)); //支付详情 $OrderBills = new OrderBills(); $payment_info = $OrderBills->OrderPayment($order_id, true); //会员信息 $user_name = Params::PamMember($order_info->member_id); $user_info = Params::Member($order_info->member_id); $user_info_addon = unserialize($user_info['addon']); //商品信息 $product_list = OrderItems::model()->findAll('order_id = :order_id', array(':order_id' => $order_id)); if (empty($act)) { $view = 'base'; } else { $view = '_order_base'; } echo $this->renderPartial($view, array('order_id' => $order_id, 'order_info' => $order_info, 'payment_info' => $payment_info, 'user_name' => $user_name, 'user_info' => $user_info, 'user_info_addon' => $user_info_addon, 'product_list' => $product_list), true); }