From fee65c0630dd677f981cb734a2878a47f4f7ed15 Mon Sep 17 00:00:00 2001 From: tsf <460834639@qq.com> Date: Fri, 26 Jul 2024 18:34:47 +0800 Subject: [PATCH] 1.1.4 --- application/admin/controller/Estimate.php | 112 ++- application/admin/controller/Technology.php | 130 +++ .../admin/view/estimate/estimate_add.html | 229 +----- .../estimate/estimate_content_observe.html | 19 +- application/admin/view/index/index.html | 10 +- application/admin/view/technology/index.html | 340 ++++++++ .../admin/view/technology/privacy_index.html | 103 +++ .../admin/view/technology/web_index.html | 136 ++++ application/app/controller/Base.php | 151 +++- application/app/controller/Calculatebody.php | 7 +- application/app/controller/Card.php | 135 +++- application/app/controller/Cardparts.php | 3 +- application/app/controller/Device.php | 87 ++- application/app/controller/Download.php | 7 +- application/app/controller/Index.php | 70 +- application/app/controller/Login.php | 124 ++- application/app/controller/Myinformation.php | 2 +- application/app/controller/Pagingcontrast.php | 32 +- application/app/controller/Skip.php | 140 +++- application/app/controller/Sportstesting.php | 739 ++++-------------- application/app/controller/Vitalcapacity.php | 135 +++- application/route.php | 25 +- public/tsf/1.jpg | Bin 5013 -> 0 bytes public/tsf/1.png | Bin 0 -> 3837 bytes public/tsf/2.jpg | Bin 5036 -> 0 bytes public/tsf/2.png | Bin 0 -> 3828 bytes public/tsf/CityList.js | 422 ++++++++++ public/tsf/head_pic.jpg | Bin 1867 -> 0 bytes public/tsf/head_pic.png | Bin 0 -> 2398 bytes public/tsf/默认头像.zip | Bin 0 -> 29740 bytes public/x_admin/js/CityList.js | 412 ++++++++++ public/x_admin/js/xcity.js | 2 +- public/x_admin/js/xcity2.js | 506 ++++++++++++ 33 files changed, 3070 insertions(+), 1008 deletions(-) create mode 100644 application/admin/controller/Technology.php create mode 100644 application/admin/view/technology/index.html create mode 100644 application/admin/view/technology/privacy_index.html create mode 100644 application/admin/view/technology/web_index.html delete mode 100644 public/tsf/1.jpg create mode 100644 public/tsf/1.png delete mode 100644 public/tsf/2.jpg create mode 100644 public/tsf/2.png create mode 100644 public/tsf/CityList.js delete mode 100644 public/tsf/head_pic.jpg create mode 100644 public/tsf/head_pic.png create mode 100644 public/tsf/默认头像.zip create mode 100644 public/x_admin/js/CityList.js create mode 100644 public/x_admin/js/xcity2.js diff --git a/application/admin/controller/Estimate.php b/application/admin/controller/Estimate.php index cb4dd01..cdca3fc 100644 --- a/application/admin/controller/Estimate.php +++ b/application/admin/controller/Estimate.php @@ -21,13 +21,15 @@ class Estimate extends Base{ public function index($page = 1){ $data = input(); $pd = true; - $parameter = []; + // $parameter = []; + $parameter['type'] = 1; // $parameter['is_del'] = 0; if(array_key_exists('tt', $data)){ $page = $data['page_num']; unset($data['page_num']); unset($data['tt']); $pd = false; + // $parameter['type'] = 1; // if($data['status_num'] === "0" || $data['status_num'] === "1"){ // $parameter['is_del'] = $data['status_num']; // } @@ -47,6 +49,9 @@ class Estimate extends Base{ } $num = Db::table('admin_estimate')->where($parameter)->count(); $result = Db::table('admin_estimate')->where($parameter)->order('is_del,id desc')->page($page,$this->page_num)->select(); + // dump($num); + // dump($result); + // die; if(!$pd){ $result['num'] = $num; $result['data'] = $result; @@ -80,49 +85,88 @@ class Estimate extends Base{ 'list'=>[], ]; $temporary_array = json_decode($result['content'],true); - return $this->msg($temporary_array); + + // return $this->msg($temporary_array); + $temporary_array2 = []; + foreach ($temporary_array as $key => $value) { - $num = array_push($temporary_array2,[ - 'title'=>$key.'评定标准', - 'list'=>[], - ]); - foreach ($value as $k1 => $v1) { - $num2 = array_push($temporary_array2[$num-1]['list'],[ - 'title'=>$k1, - 'score'=>'', - 'choose_num'=>'', - 'choose_all'=>count($v1), + // 男女 + foreach ($value as $dlk1 => $dlv1) { + // 大类 + $num = array_push($temporary_array2,[ + 'title'=> $key==1?'男生'.$dlk1.'评定标准':'女生'.$dlk1.'评定标准', 'list'=>[], ]); - foreach ($v1 as $k2 => $v2) { - $temporary_array2[$num-1]['list'][$num2-1]['score'] = $v2['score']; - - - $temporary_array2[$num-1]['list'][$num2-1]['choose_num'] = $v2['choose_num']; - $num3 = array_push($temporary_array2[$num-1]['list'][$num2-1]['list'],[ - 'title'=>$k2, - 'gender'=>'', - 'unit_data'=>$v2['unit_data'], - 'proportion'=>$v2['proportion'], - 'list'=>count($v2['content'])==0?[['成绩','无'],['数据','无']]:[['成绩'],['数据']], + foreach ($dlv1 as $dlk2 => $dlv2) { + // 第二类 + $num2 = array_push($temporary_array2[$num-1]['list'],[ + 'title'=>$dlk2, + 'choose_num'=>$dlv2['choose_num'], + 'choose_all'=>count($dlv2['list']), + 'list'=>[], ]); - if($v2['gender'] == '1'){ - $temporary_array2[$num-1]['list'][$num2-1]['list'][$num3-1]['gender'] = '男生'; - }else if($v2['gender'] == '2'){ - $temporary_array2[$num-1]['list'][$num2-1]['list'][$num3-1]['gender'] = '女生'; - }else{ - $temporary_array2[$num-1]['list'][$num2-1]['list'][$num3-1]['gender'] = '男生&女生'; + foreach ($dlv2['list'] as $xmk1 => $xmv1) { + $num3 = array_push($temporary_array2[$num-1]['list'][$num2-1]['list'],[ + 'title'=>$xmk1, + 'unit_data'=>$xmv1['unit_data'], + 'proportion'=>$xmv1['proportion'], + 'score'=>$xmv1['score'], + // 'list'=>count($v2['content'])==0?[['成绩','无'],['数据','无']]:[['成绩'],['数据']], + 'list'=>[['成绩'],['数据']], + ]); + foreach ($xmv1['content'] as $gzk1 => $gzv1) { + array_push($temporary_array2[$num-1]['list'][$num2-1]['list'][$num3-1]['list'][0],$gzv1[2]); + array_push($temporary_array2[$num-1]['list'][$num2-1]['list'][$num3-1]['list'][1],$gzv1[1].$gzv1[0]); + } } - foreach ($v2['content'] as $k3 => $v3) { - array_push($temporary_array2[$num-1]['list'][$num2-1]['list'][$num3-1]['list'][0],$v3[2]); - array_push($temporary_array2[$num-1]['list'][$num2-1]['list'][$num3-1]['list'][1],$v3[1].$v3[0]); - } - } } } + // return $this->msg($temporary_array2); + // foreach ($temporary_array as $key => $value) { + // $num = array_push($temporary_array2,[ + // 'title'=>$key.'评定标准', + // 'list'=>[], + // ]); + // foreach ($value as $k1 => $v1) { + // $num2 = array_push($temporary_array2[$num-1]['list'],[ + // 'title'=>$k1, + // 'score'=>'', + // 'choose_num'=>'', + // 'choose_all'=>count($v1), + // 'list'=>[], + // ]); + // foreach ($v1 as $k2 => $v2) { + // $temporary_array2[$num-1]['list'][$num2-1]['score'] = $v2['score']; + + + // $temporary_array2[$num-1]['list'][$num2-1]['choose_num'] = $v2['choose_num']; + // $num3 = array_push($temporary_array2[$num-1]['list'][$num2-1]['list'],[ + // 'title'=>$k2, + // 'gender'=>'', + // 'unit_data'=>$v2['unit_data'], + // 'proportion'=>$v2['proportion'], + // 'list'=>count($v2['content'])==0?[['成绩','无'],['数据','无']]:[['成绩'],['数据']], + // ]); + // if($v2['gender'] == '1'){ + // $temporary_array2[$num-1]['list'][$num2-1]['list'][$num3-1]['gender'] = '男生'; + // }else if($v2['gender'] == '2'){ + // $temporary_array2[$num-1]['list'][$num2-1]['list'][$num3-1]['gender'] = '女生'; + // }else{ + // $temporary_array2[$num-1]['list'][$num2-1]['list'][$num3-1]['gender'] = '男生&女生'; + // } + // foreach ($v2['content'] as $k3 => $v3) { + // array_push($temporary_array2[$num-1]['list'][$num2-1]['list'][$num3-1]['list'][0],$v3[2]); + // array_push($temporary_array2[$num-1]['list'][$num2-1]['list'][$num3-1]['list'][1],$v3[1].$v3[0]); + // } + + // } + // } + // } + $data['list'] = $temporary_array2; + // return $this->msg($data); $this->assign([ 'result' => $data, 'num' => 1, diff --git a/application/admin/controller/Technology.php b/application/admin/controller/Technology.php new file mode 100644 index 0000000..33d0155 --- /dev/null +++ b/application/admin/controller/Technology.php @@ -0,0 +1,130 @@ +=',$data['s_time']]; + // } + // if($data['e_time']){ + // $parameter['create_time'] = ['<=',$data['e_time']]; + // } + } + $num = Db::table('admin_technology')->where($parameter)->count(); + $result = Db::table('admin_technology')->where($parameter)->order('is_del,id desc')->page($page,$this->page_num)->select(); + if(!$pd){ + $result['num'] = $num; + $result['data'] = $result; + return $this->msg(0,'success',$result); + } + $this->assign([ + 'result' => $result, + 'num' => $num, + ]); + return $this->fetch(); + } + + // public function ceshiyong(){ + // $data = input(); + // $data = json_decode($data['data'],true); + // // dump($data); + // // die; + // $result_return = [['name'=>'请选择','list'=>['请选择']]]; + // foreach ($data as $key => $value) { + // array_push($result_return,[ + // 'name'=>$value['name'], + // 'list'=>[] + // ]); + // foreach ($value['cityList'] as $key_list => $value_list) { + // array_push($result_return[count($result_return)-1]['list'],$value_list['name']); + // } + // } + // $aaa = Db::table('admin_estimate')->insert([ + // 'content'=>json_encode($result_return), + // 'type'=>2, + // ]); + // // dump($data); + // } + + + ################################################################页面################################################################ + ################################################################页面################################################################ + ################################################################页面################################################################ + // 技术支持手机网页端 + public function web_index(){ + // dump(123); + // die; + return $this->fetch(); + } + // 隐私协议手机网页端 + public function privacy_index(){ + // dump(123); + // die; + return $this->fetch(); + } + ################################################################调用################################################################ + ################################################################调用################################################################ + ################################################################调用################################################################ + + public function set_user_opinion(){ + $data = input(); + if(!array_key_exists('content', $data) || !array_key_exists('tel', $data)){ + return $this->msg(10001); + } + $contact_information = $this->is_tel_email($data['tel']); + if($contact_information == false){ + return $this->msg(10005,'手机或邮箱格式错误'); + } + $result = Db::table('admin_technology')->insert([ + 'contact_information'=>$data['tel'], + 'content_problem'=>$data['content'], + 'account_information'=>'', + 'create_time'=>date('Y-m-d H:i:s'), + ]); + if($result){ + return $this->msg([]); + }else{ + return $this->msg(10002); + } + + } + + + ################################################################other################################################################ + ################################################################other################################################################ + ################################################################other################################################################ + +} \ No newline at end of file diff --git a/application/admin/view/estimate/estimate_add.html b/application/admin/view/estimate/estimate_add.html index 0c4a61e..17d1c14 100644 --- a/application/admin/view/estimate/estimate_add.html +++ b/application/admin/view/estimate/estimate_add.html @@ -47,7 +47,7 @@
| ID | +问题描述 | +联系方式 | +账号信息 | +创建时间 | +状态 | + +
|---|---|---|---|---|---|
| {$vo.id} | +{$vo.content_problem} | +{$vo.contact_information} | +{$vo.account_information} | +{$vo.create_time} | ++ {if condition="$vo.is_del == 0"} + 未处理 + {else /} + 已处理 + {/if} + + | +