Exemplo n.º 1
0
 /**
  * 订单详情
  */
 public function actionDetail()
 {
     $order_id = $this->get('order_id');
     $Order = new ModelOrder();
     $model['order_info'] = $Order->orderDetail($order_id);
     $model['order_product'] = $Order->OrderProduct($order_id);
     $this->render('detail', array('model' => $model));
 }
Exemplo n.º 2
0
 /**
  * 会员中心首页
  */
 public function actionIndex()
 {
     $this->CheckLogin();
     //最近的订单
     $Order = new ModelOrder();
     $model['order_list'] = $Order->items('order_id,final_amount,createtime,status,pay_status', "member_id = {$this->member_id}");
     $this->render('index', array('model' => $model));
 }
Exemplo n.º 3
0
 /**
  * 订单提交
  */
 public function actionSubmit()
 {
     $Order = new ModelOrder();
     $result = $Order->Create($this->member_id);
     if ($result['code'] == 400) {
         header("Content-type:text/html;charset=utf-8");
         echo '<script>alert("' . $result['msg'] . '");</script>';
         die;
     } else {
         $this->redirect('/order/index.html');
     }
 }