From 8aba8728f014b2e0cd8375009fa1ada69d74ceef Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Tue, 11 Feb 2020 17:19:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A2=E5=8D=95=E5=BD=95?= =?UTF-8?q?=E5=85=A5=E5=8A=9F=E8=83=BD=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/TestOrderController.class.php | 18 ++++ .../Admin/View/TestOrder/addOrder.html | 102 ++++++++++++++++-- Application/Admin/View/TestOrder/lists.html | 5 + 3 files changed, 118 insertions(+), 7 deletions(-) diff --git a/Application/Admin/Controller/TestOrderController.class.php b/Application/Admin/Controller/TestOrderController.class.php index ad37f8bbe..fffb929ac 100644 --- a/Application/Admin/Controller/TestOrderController.class.php +++ b/Application/Admin/Controller/TestOrderController.class.php @@ -18,4 +18,22 @@ class TestOrderController extends ThinkController public function addOrder(){ $this->display(); } + + public function saveOrder() { + + $data = $_GET; + +// dump($data);die(); + $data['add_time'] = time(); + $data['game_name'] = get_gamename($data['game_id']); + + $isSuccess = M('test_order','tab_')->add($data); + + if ($isSuccess) { + $this->ajaxReturn(['status'=>1]); + } else { + $this->ajaxReturn(['status'=>0]); + } + + } } \ No newline at end of file diff --git a/Application/Admin/View/TestOrder/addOrder.html b/Application/Admin/View/TestOrder/addOrder.html index c2101129e..700acc551 100644 --- a/Application/Admin/View/TestOrder/addOrder.html +++ b/Application/Admin/View/TestOrder/addOrder.html @@ -85,7 +85,7 @@ 订单类型: - @@ -96,19 +96,19 @@ 支付订单号: - + CP订单号: - + 测试账号: - + @@ -122,13 +122,13 @@ 订单金额: - + 实付金额: - + @@ -159,7 +159,7 @@
- 提交保存 + 提交保存
@@ -203,6 +203,94 @@ } get_game_list(); + + + + diff --git a/Application/Admin/View/TestOrder/lists.html b/Application/Admin/View/TestOrder/lists.html index aa099e5bb..cfbc2bea7 100644 --- a/Application/Admin/View/TestOrder/lists.html +++ b/Application/Admin/View/TestOrder/lists.html @@ -216,6 +216,11 @@