From 6b7276c344b0998a451c929cf5004c4a634ef18d Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Thu, 14 Oct 2021 14:58:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/GameRebateController.class.php | 9 ++- .../View/GameRebate/simulateSpendForm.html | 55 ++++++++++++++----- .../View/GameRebate/simulateSpendList.html | 14 +++++ .../Base/Service/GameRebateService.class.php | 9 ++- Application/Common/Common/extend.php | 28 ++++++++++ Data/update.sql | 25 ++++++++- 6 files changed, 120 insertions(+), 20 deletions(-) diff --git a/Application/Admin/Controller/GameRebateController.class.php b/Application/Admin/Controller/GameRebateController.class.php index 6347f4c68..5452f0036 100644 --- a/Application/Admin/Controller/GameRebateController.class.php +++ b/Application/Admin/Controller/GameRebateController.class.php @@ -257,10 +257,17 @@ class GameRebateController extends ThinkController $this->assign('baseGames', $baseGames); $this->assign('reviewStatusList', []); $this->assign('records', $records); - $this->display('records'); + $this->display('simulateSpendList'); } public function addSimulateSpend() + { + $baseGames = M('base_game', 'tab_')->select(); + $this->assign('baseGames', $baseGames); + $this->display('simulateSpendForm'); + } + + public function saveSimulateSpend() { $params = I('post.'); try { diff --git a/Application/Admin/View/GameRebate/simulateSpendForm.html b/Application/Admin/View/GameRebate/simulateSpendForm.html index 45870074a..31817929f 100644 --- a/Application/Admin/View/GameRebate/simulateSpendForm.html +++ b/Application/Admin/View/GameRebate/simulateSpendForm.html @@ -111,13 +111,32 @@ body { color: #fff; } .form-group { - float: left; + margin-bottom: 10px; +} +.form-group label { + width: 100px; + display: inline-block; + text-align: right; + margin-right: 10px; + vertical-align: middle; } .form-group input { padding: 5px; border: 1px solid #E5E5E5; border-radius: 4px; height: 24px; + width: 280px; +} +.form-group .static-input { + width: 280px; +} +.form-group select { + width: 280px; +} +.form-group textarea { + padding: 5px; + border: 1px solid #E5E5E5; + border-radius: 4px; } .clearfix:after { content: "\20"; @@ -140,17 +159,19 @@ body {