From d7737291ed740f92e3956d2cb3b1ed7352680624 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Wed, 18 Mar 2020 10:48:53 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E6=9A=82=E5=AD=981?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/access_data_foldline.txt | 1 - .../Admin/View/Promote/belong_add.html | 39 +++---------------- 2 files changed, 5 insertions(+), 35 deletions(-) delete mode 100644 Application/Admin/Controller/access_data_foldline.txt diff --git a/Application/Admin/Controller/access_data_foldline.txt b/Application/Admin/Controller/access_data_foldline.txt deleted file mode 100644 index 06372c756..000000000 --- a/Application/Admin/Controller/access_data_foldline.txt +++ /dev/null @@ -1 +0,0 @@ -{"news":[{"time":"0:00","count":0},{"time":"1:00","count":0},{"time":"2:00","count":0},{"time":"3:00","count":0},{"time":"4:00","count":0},{"time":"5:00","count":0},{"time":"6:00","count":0},{"time":"7:00","count":0},{"time":"8:00","count":0},{"time":"9:00","count":0},{"time":"10:00","count":0},{"time":"11:00","count":0},{"time":"12:00","count":0},{"time":"13:00","count":0},{"time":"14:00","count":0},{"time":"15:00","count":0},{"time":"16:00","count":0},{"time":"17:00","count":0},{"time":"18:00","count":0},{"time":"19:00","count":0},{"time":"20:00","count":0},{"time":"21:00","count":0},{"time":"22:00","count":0},{"time":"23:00","count":0}],"sum":{"news":0,"active":2,"player":0,"money":0},"active":[{"time":"0:00","count":1},{"time":"1:00","count":0},{"time":"2:00","count":0},{"time":"3:00","count":0},{"time":"4:00","count":0},{"time":"5:00","count":0},{"time":"6:00","count":0},{"time":"7:00","count":0},{"time":"8:00","count":0},{"time":"9:00","count":0},{"time":"10:00","count":0},{"time":"11:00","count":0},{"time":"12:00","count":0},{"time":"13:00","count":0},{"time":"14:00","count":1},{"time":"15:00","count":0},{"time":"16:00","count":0},{"time":"17:00","count":0},{"time":"18:00","count":0},{"time":"19:00","count":0},{"time":"20:00","count":0},{"time":"21:00","count":0},{"time":"22:00","count":0},{"time":"23:00","count":0}],"player":[{"time":"0:00","count":0},{"time":"1:00","count":0},{"time":"2:00","count":0},{"time":"3:00","count":0},{"time":"4:00","count":0},{"time":"5:00","count":0},{"time":"6:00","count":0},{"time":"7:00","count":0},{"time":"8:00","count":0},{"time":"9:00","count":0},{"time":"10:00","count":0},{"time":"11:00","count":0},{"time":"12:00","count":0},{"time":"13:00","count":0},{"time":"14:00","count":0},{"time":"15:00","count":0},{"time":"16:00","count":0},{"time":"17:00","count":0},{"time":"18:00","count":0},{"time":"19:00","count":0},{"time":"20:00","count":0},{"time":"21:00","count":0},{"time":"22:00","count":0},{"time":"23:00","count":0}],"money":[{"time":"0:00","count":0},{"time":"1:00","count":0},{"time":"2:00","count":0},{"time":"3:00","count":0},{"time":"4:00","count":0},{"time":"5:00","count":0},{"time":"6:00","count":0},{"time":"7:00","count":0},{"time":"8:00","count":0},{"time":"9:00","count":0},{"time":"10:00","count":0},{"time":"11:00","count":0},{"time":"12:00","count":0},{"time":"13:00","count":0},{"time":"14:00","count":0},{"time":"15:00","count":0},{"time":"16:00","count":0},{"time":"17:00","count":0},{"time":"18:00","count":0},{"time":"19:00","count":0},{"time":"20:00","count":0},{"time":"21:00","count":0},{"time":"22:00","count":0},{"time":"23:00","count":0}]} \ No newline at end of file diff --git a/Application/Admin/View/Promote/belong_add.html b/Application/Admin/View/Promote/belong_add.html index 145dea6b5..3d0814dac 100644 --- a/Application/Admin/View/Promote/belong_add.html +++ b/Application/Admin/View/Promote/belong_add.html @@ -171,41 +171,12 @@ Think.setValue("category", {$data.category|default = 0}); $(".select_gallery").select2(); $(function(){ - showTab(); - prov="{:substr($data['bank_area'],0,2)}"; - city="{:substr($data['bank_area'],2,2)}"; - ciarea="{:substr($data['bank_area'],4,2)}"; - + $("#promote_id").on("select2:select",function(e){ + console.log(e); + }) + // showTab(); }); - //得到地区码 - function getAreaID(){ - var area = 0; - if($("#seachdistrict").val() != "0"){ - area = $("#seachdistrict").val(); - }else if ($("#seachcity").val() != "0"){ - area = $("#seachcity").val(); - }else{ - area = $("#seachprov").val(); - } - return area; - } - - - //根据地区码查询地区名 - function getAreaNamebyID(areaID){ - var areaName = ""; - if(areaID.length == 2){ - areaName = area_array[areaID]; - }else if(areaID.length == 4){ - var index1 = areaID.substring(0, 2); - areaName = area_array[index1] + " " + sub_array[index1][areaID]; - }else if(areaID.length == 6){ - var index1 = areaID.substring(0, 2); - var index2 = areaID.substring(0, 4); - areaName = area_array[index1] + " " + sub_array[index1][index2] + " " + sub_arr[index2][areaID]; - } - return areaName; - } + From dd86a85485e27498400e96cd450275a69a88d374 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Wed, 18 Mar 2020 14:55:57 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E5=85=AC=E4=BC=9A?= =?UTF-8?q?=E5=BD=92=E5=B1=9E=E7=AE=A1=E7=90=86=20=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=85=AC=E4=BC=9A=E5=BD=92=E5=B1=9E=E4=B8=8D=E5=8F=AF=E9=80=89?= =?UTF-8?q?=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/PromoteController.class.php | 9 ++++-- .../Admin/View/Promote/belong_add.html | 29 ++++++++++++------- .../Admin/View/Promote/belong_edit.html | 15 ++++++---- 3 files changed, 36 insertions(+), 17 deletions(-) diff --git a/Application/Admin/Controller/PromoteController.class.php b/Application/Admin/Controller/PromoteController.class.php index ef77192dc..74e8e64be 100644 --- a/Application/Admin/Controller/PromoteController.class.php +++ b/Application/Admin/Controller/PromoteController.class.php @@ -1309,16 +1309,21 @@ class PromoteController extends ThinkController //为数据权限添加 setPowerPromoteIds($map, 'pb.promote_id'); $model = M('promote_belong', 'tab_'); + $field = " + pb.id,pb.promote_id,pb.verify_status,pb.company_relation,pb.remark,pb.can_view_recharge,pb.approver_name,pb.applicant_name,pb.verify_time,pb.applicant_time,pb.company_type, + pc.company_name, + p.company_belong,p.account,p.mobile_phone,p.admin_id,p.ver_status,p.status,p.create_time + "; $list_data = $model->alias('pb') ->join('left join tab_promote as p on p.id=pb.promote_id') ->join('left join tab_promote_company as pc on pc.id = p.company_id') ->where($map) - ->field('p.*,pb.*, pc.company_name') + ->field($field) ->page($p, $row) ->order('verify_status asc,applicant_time asc') ->select(); // dd($model->_sql()); -// dd($list_data); + // dd($list_data); $count = $model->alias('pb') ->join('left join tab_promote as p on p.id=pb.promote_id')->where($map)->count(); $page = set_pagination($count, $row); if ($page) { diff --git a/Application/Admin/View/Promote/belong_add.html b/Application/Admin/View/Promote/belong_add.html index 3d0814dac..99ad10e4e 100644 --- a/Application/Admin/View/Promote/belong_add.html +++ b/Application/Admin/View/Promote/belong_add.html @@ -53,29 +53,30 @@ - + 工会归属: - -