From 1ca183b5470f63237054903a3ffc3b5489ca1fe8 Mon Sep 17 00:00:00 2001 From: zhengchanglong Date: Sat, 21 Dec 2019 14:41:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E7=AE=A1=E7=90=86=E5=91=98=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=8A=A0=E5=AF=86=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BehaviorLogController.class.php | 1 + Application/Admin/View/BehaviorLog/index.html | 154 ++++++++++-------- 2 files changed, 84 insertions(+), 71 deletions(-) diff --git a/Application/Admin/Controller/BehaviorLogController.class.php b/Application/Admin/Controller/BehaviorLogController.class.php index 01a43b416..79fc6c29e 100644 --- a/Application/Admin/Controller/BehaviorLogController.class.php +++ b/Application/Admin/Controller/BehaviorLogController.class.php @@ -78,6 +78,7 @@ class BehaviorLogController extends ThinkController $this->assign('startDate', $startDate); $this->assign('endDate', $endDate); $this->assign('data', $data); + $this->assign("is_admin",is_administrator()); $this->display('index'); } diff --git a/Application/Admin/View/BehaviorLog/index.html b/Application/Admin/View/BehaviorLog/index.html index e97c61afd..39a87c998 100644 --- a/Application/Admin/View/BehaviorLog/index.html +++ b/Application/Admin/View/BehaviorLog/index.html @@ -7,24 +7,24 @@ @@ -37,7 +37,7 @@
- +
@@ -63,14 +63,14 @@ - +
+
- - - 已添加添加至常用设置 -
+ @@ -197,7 +209,7 @@ @@ -418,8 +430,8 @@ dataType:'json', success:function(response){ str = '' + - // '' + - ''; + // '' + + ''; data = response.data; for (var i in data){ str += "" @@ -432,29 +444,29 @@ }); $("#promote_level").change(); - var game_server = "{:I('server_name')}"; - $("#sdk_version").change(function(){ - $.ajax({ - url:"{:U('Ajax/getGmeServer')}", - type:"post", - data:{sdk_version:$("#sdk_version option:selected").val(), game_name:$("#game_name option:selected").val()}, - dataType:'json', - success:function(data){ - str = ""; - for (var i in data){ - str += "" - } - $("#server_name").empty(); - $("#server_name").append(str); - $("#server_name").select2(); + var game_server = "{:I('server_name')}"; + $("#sdk_version").change(function(){ + $.ajax({ + url:"{:U('Ajax/getGmeServer')}", + type:"post", + data:{sdk_version:$("#sdk_version option:selected").val(), game_name:$("#game_name option:selected").val()}, + dataType:'json', + success:function(data){ + str = ""; + for (var i in data){ + str += "" } - }) - }); + $("#server_name").empty(); + $("#server_name").append(str); + $("#server_name").select2(); + } + }) + }); - $("#game_name").change(function(){ - $("#sdk_version").change(); - }); - $("#game_name").change(); + $("#game_name").change(function(){ + $("#sdk_version").change(); + }); + $("#game_name").change(); /** * 初始化select2单选,默认带搜索功能。