From a4b53c4e9a11f1591aef5a2f87fb4ea62ff3b492 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Fri, 10 Jan 2020 10:53:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E7=AE=97=E5=8D=95=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=90=8D=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/AjaxController.class.php | 13 +++++++++++++ .../Admin/View/StatementMangement/lists.html | 8 ++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/Application/Admin/Controller/AjaxController.class.php b/Application/Admin/Controller/AjaxController.class.php index b6a212bbb..a7d6214db 100644 --- a/Application/Admin/Controller/AjaxController.class.php +++ b/Application/Admin/Controller/AjaxController.class.php @@ -312,9 +312,22 @@ class AjaxController extends ThinkController{ // dump($statementData);die(); } else { + + $data['address'] = json_decode($data['address'],1); +// dd($data['address']); + $address = ''; + if (is_array($data['address'])) { + foreach($data['address'] as $key => $value) { + $address = $address.' '.$value; + } + } + $data['address'] = $address; + if (is_array($data['game_ratio'])) { foreach ($data['game_ratio'] as $key => &$value) { + + foreach ($value as $k => &$v) { $v['game_name'] = get_gamename($key); } diff --git a/Application/Admin/View/StatementMangement/lists.html b/Application/Admin/View/StatementMangement/lists.html index 48c40df33..6def393a1 100644 --- a/Application/Admin/View/StatementMangement/lists.html +++ b/Application/Admin/View/StatementMangement/lists.html @@ -322,11 +322,11 @@ var str = ''; console.log($("#company_id option:selected").attr('company-type')) if ($("#company_id option:selected").attr('company-type') == '1') { - str += ' \n' + - ' '; + str += ' \n' + + ' '; } else if ($("#company_id option:selected").attr('company-type') == '0') { - str += ' \n' + - ' '; + str += ' \n' + + ' '; }