From 30aca0b8757789d0970e173c4038bb7c613a7362 Mon Sep 17 00:00:00 2001 From: jianglong Date: Wed, 30 Apr 2025 14:23:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 12 +- app/admin/controller/financeService/Contract.php | 110 ++++++++ .../controller/financeService/ContractCate.php | 112 ++++++++ app/admin/controller/job/Job.php | 236 ++++++++++++++++ app/admin/controller/job/JobCate.php | 119 ++++++++ app/admin/controller/job/JobIndustry.php | 110 ++++++++ app/admin/controller/job/JobSalary.php | 109 +++++++ app/admin/controller/legal/Legal.php | 143 ++++++++++ app/admin/controller/legal/LegalCase.php | 122 ++++++++ app/admin/controller/legal/LegalCate.php | 111 ++++++++ app/admin/controller/legal/LegalDoc.php | 105 +++++++ app/admin/controller/shop/Apply.php | 72 ++++- app/admin/controller/shop/ShopLevel.php | 90 ++++++ app/admin/controller/shop/Store.php | 8 +- app/admin/controller/user/SvipRight.php | 78 +++++ .../logic/community/CommunityArticleLogic.php | 6 +- .../logic/financeService/ContractCateLogic.php | 160 +++++++++++ app/admin/logic/financeService/ContractLogic.php | 155 ++++++++++ app/admin/logic/job/JobCateLogic.php | 181 ++++++++++++ app/admin/logic/job/JobIndustryLogic.php | 182 ++++++++++++ app/admin/logic/job/JobLogic.php | 264 +++++++++++++++++ app/admin/logic/job/JobSalaryLogic.php | 161 +++++++++++ app/admin/logic/legal/LegalCaseLogic.php | 188 ++++++++++++ app/admin/logic/legal/LegalCateLogic.php | 182 ++++++++++++ app/admin/logic/legal/LegalDocLogic.php | 199 +++++++++++++ app/admin/logic/legal/LegalLogic.php | 206 ++++++++++++++ app/admin/logic/shop/ApplyLogic.php | 15 +- app/admin/logic/shop/ShopLevelLogic.php | 151 ++++++++++ app/admin/logic/shop/ShopVipLogic.php | 141 +++++++++ app/admin/logic/shop/StoreLogic.php | 4 +- app/admin/logic/user/SvipRightLogic.php | 112 ++++++++ app/admin/view/financeService/contract/add.html | 248 ++++++++++++++++ app/admin/view/financeService/contract/edit.html | 258 +++++++++++++++++ app/admin/view/financeService/contract/lists.html | 200 +++++++++++++ .../view/financeService/contract_cate/add.html | 23 ++ .../view/financeService/contract_cate/edit.html | 23 ++ .../view/financeService/contract_cate/lists.html | 151 ++++++++++ app/admin/view/job/job/add.html | 300 ++++++++++++++++++++ app/admin/view/job/job/audit.html | 26 ++ app/admin/view/job/job/detail.html | 260 +++++++++++++++++ app/admin/view/job/job/edit.html | 295 +++++++++++++++++++ app/admin/view/job/job/lists.html | 314 +++++++++++++++++++++ app/admin/view/job/job_cate/add.html | 35 +++ app/admin/view/job/job_cate/edit.html | 35 +++ app/admin/view/job/job_cate/lists.html | 152 ++++++++++ app/admin/view/job/job_industry/add.html | 35 +++ app/admin/view/job/job_industry/edit.html | 35 +++ app/admin/view/job/job_industry/lists.html | 152 ++++++++++ app/admin/view/job/job_salary/add.html | 23 ++ app/admin/view/job/job_salary/edit.html | 24 ++ app/admin/view/job/job_salary/lists.html | 150 ++++++++++ app/admin/view/legal/legal/add.html | 251 ++++++++++++++++ app/admin/view/legal/legal/edit.html | 270 ++++++++++++++++++ app/admin/view/legal/legal/handle.html | 19 ++ app/admin/view/legal/legal/lists.html | 185 ++++++++++++ app/admin/view/legal/legal_case/add.html | 251 ++++++++++++++++ app/admin/view/legal/legal_case/edit.html | 270 ++++++++++++++++++ app/admin/view/legal/legal_case/lists.html | 210 ++++++++++++++ app/admin/view/legal/legal_cate/add.html | 35 +++ app/admin/view/legal/legal_cate/edit.html | 35 +++ app/admin/view/legal/legal_cate/lists.html | 152 ++++++++++ app/admin/view/legal/legal_doc/add.html | 260 +++++++++++++++++ app/admin/view/legal/legal_doc/edit.html | 284 +++++++++++++++++++ app/admin/view/legal/legal_doc/lists.html | 217 ++++++++++++++ app/admin/view/shop/apply/audit2.html | 25 ++ app/admin/view/shop/apply/detail.html | 23 +- app/admin/view/shop/apply/detail2.html | 43 +++ app/admin/view/shop/apply/lists.html | 9 +- app/admin/view/shop/apply/lists2.html | 218 ++++++++++++++ app/admin/view/shop/shop_level/add.html | 62 ++++ app/admin/view/shop/shop_level/edit.html | 61 ++++ app/admin/view/shop/shop_level/lists.html | 233 +++++++++++++++ app/admin/view/shop/shop_level/set.html | 50 ++++ app/admin/view/shop/store/set.html | 28 +- app/admin/view/user/svip_right/add.html | 77 +++++ app/admin/view/user/svip_right/edit.html | 121 ++++++++ app/admin/view/user/svip_right/lists.html | 208 ++++++++++++++ app/admin/view/user/svip_right/set.html | 50 ++++ app/common/model/financeService/Contract.php | 12 + app/common/model/financeService/ContractCate.php | 18 ++ app/common/model/job/Job.php | 12 + app/common/model/job/JobCate.php | 18 ++ app/common/model/job/JobIndustry.php | 18 ++ app/common/model/job/JobSalary.php | 18 ++ app/common/model/legal/Legal.php | 12 + app/common/model/legal/LegalCase.php | 18 ++ app/common/model/legal/LegalCate.php | 18 ++ app/common/model/legal/LegalDoc.php | 18 ++ app/common/model/shop/ShopLevel.php | 34 +++ app/common/model/shop/ShopVip.php | 34 +++ app/common/model/user/UserSvipRight.php | 14 + .../temp/882cc6dae23f6d9f90626307e734eb3e.php | 24 +- .../temp/909200ed5b7811be2dbd760065d4deb2.php | 56 ++-- .../temp/b15ab77bac47d33b7fe5b254d90ba8c3.php | 29 +- .../temp/ec96eb681e51ce8a3ca931e2b19e36c0.php | 10 +- .../cache/23/873d3988110ceeda2c4bdc4f945485.php | 2 +- .../cache/f9/bb91a1aa4584b80bdd1649c0e82e4a.php | 2 +- 97 files changed, 10545 insertions(+), 52 deletions(-) create mode 100644 app/admin/controller/financeService/Contract.php create mode 100644 app/admin/controller/financeService/ContractCate.php create mode 100644 app/admin/controller/job/Job.php create mode 100644 app/admin/controller/job/JobCate.php create mode 100644 app/admin/controller/job/JobIndustry.php create mode 100644 app/admin/controller/job/JobSalary.php create mode 100644 app/admin/controller/legal/Legal.php create mode 100644 app/admin/controller/legal/LegalCase.php create mode 100644 app/admin/controller/legal/LegalCate.php create mode 100644 app/admin/controller/legal/LegalDoc.php create mode 100644 app/admin/controller/shop/ShopLevel.php create mode 100644 app/admin/controller/user/SvipRight.php create mode 100644 app/admin/logic/financeService/ContractCateLogic.php create mode 100644 app/admin/logic/financeService/ContractLogic.php create mode 100644 app/admin/logic/job/JobCateLogic.php create mode 100644 app/admin/logic/job/JobIndustryLogic.php create mode 100644 app/admin/logic/job/JobLogic.php create mode 100644 app/admin/logic/job/JobSalaryLogic.php create mode 100644 app/admin/logic/legal/LegalCaseLogic.php create mode 100644 app/admin/logic/legal/LegalCateLogic.php create mode 100644 app/admin/logic/legal/LegalDocLogic.php create mode 100644 app/admin/logic/legal/LegalLogic.php create mode 100644 app/admin/logic/shop/ShopLevelLogic.php create mode 100644 app/admin/logic/shop/ShopVipLogic.php create mode 100644 app/admin/logic/user/SvipRightLogic.php create mode 100644 app/admin/view/financeService/contract/add.html create mode 100644 app/admin/view/financeService/contract/edit.html create mode 100644 app/admin/view/financeService/contract/lists.html create mode 100644 app/admin/view/financeService/contract_cate/add.html create mode 100644 app/admin/view/financeService/contract_cate/edit.html create mode 100644 app/admin/view/financeService/contract_cate/lists.html create mode 100644 app/admin/view/job/job/add.html create mode 100644 app/admin/view/job/job/audit.html create mode 100644 app/admin/view/job/job/detail.html create mode 100644 app/admin/view/job/job/edit.html create mode 100644 app/admin/view/job/job/lists.html create mode 100644 app/admin/view/job/job_cate/add.html create mode 100644 app/admin/view/job/job_cate/edit.html create mode 100644 app/admin/view/job/job_cate/lists.html create mode 100644 app/admin/view/job/job_industry/add.html create mode 100644 app/admin/view/job/job_industry/edit.html create mode 100644 app/admin/view/job/job_industry/lists.html create mode 100644 app/admin/view/job/job_salary/add.html create mode 100644 app/admin/view/job/job_salary/edit.html create mode 100644 app/admin/view/job/job_salary/lists.html create mode 100644 app/admin/view/legal/legal/add.html create mode 100644 app/admin/view/legal/legal/edit.html create mode 100644 app/admin/view/legal/legal/handle.html create mode 100644 app/admin/view/legal/legal/lists.html create mode 100644 app/admin/view/legal/legal_case/add.html create mode 100644 app/admin/view/legal/legal_case/edit.html create mode 100644 app/admin/view/legal/legal_case/lists.html create mode 100644 app/admin/view/legal/legal_cate/add.html create mode 100644 app/admin/view/legal/legal_cate/edit.html create mode 100644 app/admin/view/legal/legal_cate/lists.html create mode 100644 app/admin/view/legal/legal_doc/add.html create mode 100644 app/admin/view/legal/legal_doc/edit.html create mode 100644 app/admin/view/legal/legal_doc/lists.html create mode 100644 app/admin/view/shop/apply/audit2.html create mode 100644 app/admin/view/shop/apply/detail2.html create mode 100644 app/admin/view/shop/apply/lists2.html create mode 100644 app/admin/view/shop/shop_level/add.html create mode 100644 app/admin/view/shop/shop_level/edit.html create mode 100644 app/admin/view/shop/shop_level/lists.html create mode 100644 app/admin/view/shop/shop_level/set.html create mode 100644 app/admin/view/user/svip_right/add.html create mode 100644 app/admin/view/user/svip_right/edit.html create mode 100644 app/admin/view/user/svip_right/lists.html create mode 100644 app/admin/view/user/svip_right/set.html create mode 100644 app/common/model/financeService/Contract.php create mode 100644 app/common/model/financeService/ContractCate.php create mode 100644 app/common/model/job/Job.php create mode 100644 app/common/model/job/JobCate.php create mode 100644 app/common/model/job/JobIndustry.php create mode 100644 app/common/model/job/JobSalary.php create mode 100644 app/common/model/legal/Legal.php create mode 100644 app/common/model/legal/LegalCase.php create mode 100644 app/common/model/legal/LegalCate.php create mode 100644 app/common/model/legal/LegalDoc.php create mode 100644 app/common/model/shop/ShopLevel.php create mode 100644 app/common/model/shop/ShopVip.php create mode 100644 app/common/model/user/UserSvipRight.php diff --git a/.env b/.env index cf59e88..2935992 100644 --- a/.env +++ b/.env @@ -1,16 +1,16 @@ app_debug = "false" [database] charset = "utf8mb4" -database = "ahbcqz" +database = "ahbcqz_test" debug = "1" -hostname = "122.114.59.173" -# hostname = "127.0.0.1" +# hostname = "122.114.59.173" +hostname = "127.0.0.1" hostport = "3306" -password = "DP3hD2E8tTCAJcZF" -# password = "123456" +# password = "DP3hD2E8tTCAJcZF" +password = "123456" prefix = "ls_" type = "mysql" -username = "ahbcqz" +username = "root" [project] admin_name = "博创设计" diff --git a/app/admin/controller/financeService/Contract.php b/app/admin/controller/financeService/Contract.php new file mode 100644 index 0000000..cfc8ce8 --- /dev/null +++ b/app/admin/controller/financeService/Contract.php @@ -0,0 +1,110 @@ +request->isAjax()) { + $get = $this->request->get(); + $lists = ContractLogic::lists($get); + return JsonServer::success("获取成功", $lists); + } + + return view('', [ + 'cates' => ContractCateLogic::getCate() + ]); + } + + /** + * @NOTES: 添加帮助类 + * @author: 张无忌 + */ + public function add() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = ContractLogic::add($post); + if ($res === false) { + $error = ContractLogic::getError() ?: '新增失败'; + return JsonServer::error($error); + } + return JsonServer::success('新增成功'); + } + + + return view('', [ + 'cates' => ContractCateLogic::getCate() + ]); + } + + /** + * @NOTES: 编辑帮助分类 + * @author: 张无忌 + */ + public function edit() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = ContractLogic::edit($post); + if ($res === false) { + $error = ContractLogic::getError() ?: '编辑失败'; + return JsonServer::error($error); + } + return JsonServer::success('编辑成功'); + } + + + $id = $this->request->get('id'); + $detail = ContractLogic::detail($id); + $category2 = []; + if($detail['cate_id']>0){ + $category2 = ContractCateLogic::getCate($detail['cate_id']); + } + + return view('', [ + 'detail' => $detail, + 'cates' => ContractCateLogic::getCate(), + 'cate2' => $category2, + ]); + } + + /** + * @NOTES: 删除帮助分类 + * @author: 张无忌 + */ + public function del() + { + if ($this->request->isAjax()) { + $id = $this->request->post('id'); + $res = ContractLogic::del($id); + if ($res === false) { + $error = ContractLogic::getError() ?: '删除失败'; + return JsonServer::error($error); + } + return JsonServer::success('删除成功'); + } + + return JsonServer::error('异常'); + } + + + +} diff --git a/app/admin/controller/financeService/ContractCate.php b/app/admin/controller/financeService/ContractCate.php new file mode 100644 index 0000000..a708bf3 --- /dev/null +++ b/app/admin/controller/financeService/ContractCate.php @@ -0,0 +1,112 @@ +request->isAjax()) { + $get = $this->request->get(); + $lists = ContractCateLogic::lists($get); + return JsonServer::success("获取成功", $lists); + } + + return view('', [ + 'cates' => ContractCateLogic::getCate(), + ]); + } + + /** + * @NOTES: 添加资源分类 + * @author: 张无忌 + */ + public function add() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = ContractCateLogic::add($post); + if ($res === false) { + $error = ContractCateLogic::getError() ?: '新增失败'; + return JsonServer::error($error); + } + return JsonServer::success('新增成功'); + } + + + return view('', [ + 'cates' => ContractCateLogic::getCate(), + ]); + } + + /** + * @NOTES: 编辑分类 + * @author: 张无忌 + */ + public function edit() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = ContractCateLogic::edit($post); + if ($res === false) { + $error = ContractCateLogic::getError() ?: '编辑失败'; + return JsonServer::error($error); + } + return JsonServer::success('编辑成功'); + } + + $id = $this->request->get('id'); + return view('', [ + 'detail' => ContractCateLogic::detail($id), + 'cates' => ContractCateLogic::getCate(), + ]); + } + + /** + * @NOTES: 删除分类 + * @author: 张无忌 + */ + public function del() + { + if ($this->request->isAjax()) { + $id = $this->request->post('id'); + $res = ContractCateLogic::del($id); + if ($res === false) { + $error = ContractCateLogic::getError() ?: '删除失败'; + return JsonServer::error($error); + } + return JsonServer::success('删除成功'); + } + + return JsonServer::error('异常'); + } + + /** + * @Notes: 隐藏分类 + * @Author: 张无忌 + */ + public function hide() + { + if ($this->request->isAjax()) { + $id = $this->request->post('id'); + $res = ContractCateLogic::hide($id); + if ($res === false) { + $error = ContractCateLogic::getError() ?: '操作失败'; + return JsonServer::error($error); + } + return JsonServer::success('操作成功'); + } + + return JsonServer::success('异常'); + } +} diff --git a/app/admin/controller/job/Job.php b/app/admin/controller/job/Job.php new file mode 100644 index 0000000..8ae12de --- /dev/null +++ b/app/admin/controller/job/Job.php @@ -0,0 +1,236 @@ +request->isAjax()) { + $get = $this->request->get(); + $lists = JobLogic::lists($get); + return JsonServer::success("获取成功", $lists); + } + + return view('', [ + 'cates' => JobCateLogic::getCate(), + 'industrys' => JobIndustryLogic::getIndustry(), + 'salarys' => JobSalaryLogic::getSalary(), + 'education' => JobLogic::getEducation(), + ]); + } + + /** + * @NOTES: 添加帮助类 + * @author: 张无忌 + */ + public function add() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = JobLogic::add($post); + if ($res === false) { + $error = JobLogic::getError() ?: '新增失败'; + return JsonServer::error($error); + } + return JsonServer::success('新增成功'); + } + + + return view('', [ + 'cates' => JobCateLogic::getCate(), + 'industrys' => JobIndustryLogic::getIndustry(), + 'salarys' => JobSalaryLogic::getSalary(), + 'educations' => JobLogic::getEducation(), + ]); + } + + /** + * @NOTES: 编辑帮助分类 + * @author: 张无忌 + */ + public function edit() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = JobLogic::edit($post); + if ($res === false) { + $error = JobLogic::getError() ?: '编辑失败'; + return JsonServer::error($error); + } + return JsonServer::success('编辑成功'); + } + + + $id = $this->request->get('id'); + $detail = JobLogic::detail($id); + $category2 = []; + $salary2 = []; + $industry2 = []; + if($detail['cate_id']>0){ + $category2 = JobCateLogic::getCate($detail['cate_id']); + } + if($detail['industry_id']>0){ + $industry2 = JobIndustryLogic::getIndustry($detail['industry_id']); + } + if($detail['salary_id']>0){ + $salary2 = JobSalaryLogic::getSalary($detail['salary_id']); + } + return view('', [ + 'detail' => $detail, + 'cates' => JobCateLogic::getCate(), + 'industrys' => JobIndustryLogic::getIndustry(), + 'salarys' => JobSalaryLogic::getSalary(), + 'educations' => JobLogic::getEducation(), + 'cate2' => $category2, + 'industry2' => $industry2, + 'salary2' => $salary2, + ]); + } + + /** + * @NOTES: 删除帮助分类 + * @author: 张无忌 + */ + public function del() + { + if ($this->request->isAjax()) { + $id = $this->request->post('id'); + $res = JobLogic::del($id); + if ($res === false) { + $error = JobLogic::getError() ?: '删除失败'; + return JsonServer::error($error); + } + return JsonServer::success('删除成功'); + } + + return JsonServer::error('异常'); + } + + /** + * @Notes: 隐藏帮助分类 + * @Author: 张无忌 + */ + public function hide() + { + if ($this->request->isAjax()) { + $id = $this->request->post('id'); + $res = JobLogic::hide($id); + if ($res === false) { + $error = JobLogic::getError() ?: '操作失败'; + return JsonServer::error($error); + } + return JsonServer::success('操作成功'); + } + + return JsonServer::success('异常'); + } + + /** + * @notes 审核文章 + * @return \think\response\Json|\think\response\View + * @author 段誉 + * @date 2022/5/10 17:45 + */ + public function audit() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $result = JobLogic::audit($post); + if (false === $result) { + return JsonServer::error(JobLogic::getError() ?: '操作失败'); + } + return JsonServer::success('编辑成功'); + } + $id = $this->request->get('id'); + $detail = JobLogic::detail($id); + $category2 = []; + $salary2 = []; + $industry2 = []; + $education2 = []; + if($detail['cate_id']>0){ + $category2 = JobCateLogic::detail($detail['cate_id']); + } + if($detail['industry_id']>0){ + $industry2 = JobIndustryLogic::detail($detail['industry_id']); + } + if($detail['salary_id']>0){ + $salary2 = JobSalaryLogic::detail($detail['salary_id']); + } + if($detail['education']>0){ + $education2 = JobLogic::getEducation($detail['education']); + } + $detail['address'] = $detail['province_id']?AreaServer::getAddress([ + $detail['province_id'], + $detail['city_id'], + $detail['district_id']]):''; + + $detail['cate_name'] = $category2['name']; + $detail['industry_name'] =$industry2['name']; + $detail['salary_name'] = $salary2['value']; + $detail['education_name'] = $education2['name']; + + return view('', [ + 'detail' => $detail + ]); + } + + /** + * @NOTES: 编辑帮助分类 + * @author: 张无忌 + */ + public function detail() + { + $id = $this->request->get('id'); + $detail = JobLogic::detail($id); + $category2 = []; + $salary2 = []; + $industry2 = []; + $education2 = []; + if($detail['cate_id']>0){ + $category2 = JobCateLogic::detail($detail['cate_id']); + } + if($detail['industry_id']>0){ + $industry2 = JobIndustryLogic::detail($detail['industry_id']); + } + if($detail['salary_id']>0){ + $salary2 = JobSalaryLogic::detail($detail['salary_id']); + } + if($detail['education']>0){ + $education2 = JobLogic::getEducation($detail['education']); + } + $detail['address'] = $detail['province_id']?AreaServer::getAddress([ + $detail['province_id'], + $detail['city_id'], + $detail['district_id']]):''; + + $detail['cate_name'] = $category2['name']; + $detail['industry_name'] =$industry2['name']; + $detail['salary_name'] = $salary2['value']; + $detail['education_name'] = $education2['name']; + + return view('', [ + 'detail' => $detail, + 'cates' => JobCateLogic::getCate(), + 'industrys' => JobIndustryLogic::getIndustry(), + 'salarys' => JobSalaryLogic::getSalary(), + 'educations' => JobLogic::getEducation(), + + ]); + } + +} diff --git a/app/admin/controller/job/JobCate.php b/app/admin/controller/job/JobCate.php new file mode 100644 index 0000000..b5bdca4 --- /dev/null +++ b/app/admin/controller/job/JobCate.php @@ -0,0 +1,119 @@ +request->isAjax()) { + $get = $this->request->get(); + $lists = JobCateLogic::lists($get); + return JsonServer::success("获取成功", $lists); + } + + return view('', [ + 'cates' => JobCateLogic::getCate(), + ]); + } + + /** + * @NOTES: 添加资源分类 + * @author: 张无忌 + */ + public function add() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = JobCateLogic::add($post); + if ($res === false) { + $error = JobCateLogic::getError() ?: '新增失败'; + return JsonServer::error($error); + } + return JsonServer::success('新增成功'); + } + + + return view('', [ + 'cates' => JobCateLogic::getCate(), + ]); + } + + /** + * @NOTES: 编辑分类 + * @author: 张无忌 + */ + public function edit() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = JobCateLogic::edit($post); + if ($res === false) { + $error = JobCateLogic::getError() ?: '编辑失败'; + return JsonServer::error($error); + } + return JsonServer::success('编辑成功'); + } + + $id = $this->request->get('id'); + return view('', [ + 'detail' => JobCateLogic::detail($id), + 'cates' => JobCateLogic::getCate(), + ]); + } + + /** + * @NOTES: 删除分类 + * @author: 张无忌 + */ + public function del() + { + if ($this->request->isAjax()) { + $id = $this->request->post('id'); + $res = JobCateLogic::del($id); + if ($res === false) { + $error = JobCateLogic::getError() ?: '删除失败'; + return JsonServer::error($error); + } + return JsonServer::success('删除成功'); + } + + return JsonServer::error('异常'); + } + + /** + * @Notes: 隐藏分类 + * @Author: 张无忌 + */ + public function hide() + { + if ($this->request->isAjax()) { + $id = $this->request->post('id'); + $res = JobCateLogic::hide($id); + if ($res === false) { + $error = JobCateLogic::getError() ?: '操作失败'; + return JsonServer::error($error); + } + return JsonServer::success('操作成功'); + } + + return JsonServer::success('异常'); + } +} diff --git a/app/admin/controller/job/JobIndustry.php b/app/admin/controller/job/JobIndustry.php new file mode 100644 index 0000000..5fcf69d --- /dev/null +++ b/app/admin/controller/job/JobIndustry.php @@ -0,0 +1,110 @@ +request->isAjax()) { + $get = $this->request->get(); + $lists = JobIndustryLogic::lists($get); + return JsonServer::success("获取成功", $lists); + } + + return view('', [ + 'industrys' => JobIndustryLogic::getIndustry(), + ]); + } + + /** + * @NOTES: 添加资源分类 + * @author: 张无忌 + */ + public function add() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = JobIndustryLogic::add($post); + if ($res === false) { + $error = JobIndustryLogic::getError() ?: '新增失败'; + return JsonServer::error($error); + } + return JsonServer::success('新增成功'); + } + + + return view('', [ + 'industrys' => JobIndustryLogic::getIndustry(), + ]); + } + + /** + * @NOTES: 编辑分类 + * @author: 张无忌 + */ + public function edit() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = JobIndustryLogic::edit($post); + if ($res === false) { + $error = JobIndustryLogic::getError() ?: '编辑失败'; + return JsonServer::error($error); + } + return JsonServer::success('编辑成功'); + } + + $id = $this->request->get('id'); + return view('', [ + 'detail' => JobIndustryLogic::detail($id), + 'industrys' => JobIndustryLogic::getIndustry(), + ]); + } + + /** + * @NOTES: 删除分类 + * @author: 张无忌 + */ + public function del() + { + if ($this->request->isAjax()) { + $id = $this->request->post('id'); + $res = JobIndustryLogic::del($id); + if ($res === false) { + $error = JobIndustryLogic::getError() ?: '删除失败'; + return JsonServer::error($error); + } + return JsonServer::success('删除成功'); + } + + return JsonServer::error('异常'); + } + + /** + * @Notes: 隐藏分类 + * @Author: 张无忌 + */ + public function hide() + { + if ($this->request->isAjax()) { + $id = $this->request->post('id'); + $res = JobIndustryLogic::hide($id); + if ($res === false) { + $error = JobIndustryLogic::getError() ?: '操作失败'; + return JsonServer::error($error); + } + return JsonServer::success('操作成功'); + } + + return JsonServer::success('异常'); + } +} diff --git a/app/admin/controller/job/JobSalary.php b/app/admin/controller/job/JobSalary.php new file mode 100644 index 0000000..fe6ae4e --- /dev/null +++ b/app/admin/controller/job/JobSalary.php @@ -0,0 +1,109 @@ +request->isAjax()) { + $get = $this->request->get(); + $lists = JobSalaryLogic::lists($get); + return JsonServer::success("获取成功", $lists); + } + + return view('', [ + 'salarys' => JobSalaryLogic::getSalary(), + ]); + } + + /** + * @NOTES: 添加资源分类 + * @author: 张无忌 + */ + public function add() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = JobSalaryLogic::add($post); + if ($res === false) { + $error = JobSalaryLogic::getError() ?: '新增失败'; + return JsonServer::error($error); + } + return JsonServer::success('新增成功'); + } + + + return view('', [ + 'salarys' => JobSalaryLogic::getSalary(), + ]); + } + + /** + * @NOTES: 编辑分类 + * @author: 张无忌 + */ + public function edit() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = JobSalaryLogic::edit($post); + if ($res === false) { + $error = JobSalaryLogic::getError() ?: '编辑失败'; + return JsonServer::error($error); + } + return JsonServer::success('编辑成功'); + } + + $id = $this->request->get('id'); + return view('', [ + 'detail' => JobSalaryLogic::detail($id), + 'salarys' => JobSalaryLogic::getSalary(), + ]); + } + + /** + * @NOTES: 删除分类 + * @author: 张无忌 + */ + public function del() + { + if ($this->request->isAjax()) { + $id = $this->request->post('id'); + $res = JobSalaryLogic::del($id); + if ($res === false) { + $error = JobSalaryLogic::getError() ?: '删除失败'; + return JsonServer::error($error); + } + return JsonServer::success('删除成功'); + } + + return JsonServer::error('异常'); + } + + /** + * @Notes: 隐藏分类 + * @Author: 张无忌 + */ + public function hide() + { + if ($this->request->isAjax()) { + $id = $this->request->post('id'); + $res = JobSalaryLogic::hide($id); + if ($res === false) { + $error = JobSalaryLogic::getError() ?: '操作失败'; + return JsonServer::error($error); + } + return JsonServer::success('操作成功'); + } + + return JsonServer::success('异常'); + } +} diff --git a/app/admin/controller/legal/Legal.php b/app/admin/controller/legal/Legal.php new file mode 100644 index 0000000..3b8008e --- /dev/null +++ b/app/admin/controller/legal/Legal.php @@ -0,0 +1,143 @@ +request->isAjax()) { + $get = $this->request->get(); + $lists = LegalLogic::lists($get); + return JsonServer::success("获取成功", $lists); + } + + return view('', [ + 'cates' => LegalCateLogic::getCate(), + ]); + } + + /** + * @NOTES: 添加帮助类 + * @author: 张无忌 + */ + public function add() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = LegalLogic::add($post); + if ($res === false) { + $error = LegalLogic::getError() ?: '新增失败'; + return JsonServer::error($error); + } + return JsonServer::success('新增成功'); + } + + + return view('', [ + 'cates' => LegalCateLogic::getCate(), + ]); + } + + /** + * @NOTES: 编辑帮助分类 + * @author: 张无忌 + */ + public function edit() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = LegalLogic::edit($post); + if ($res === false) { + $error = LegalLogic::getError() ?: '编辑失败'; + return JsonServer::error($error); + } + return JsonServer::success('编辑成功'); + } + + + $id = $this->request->get('id'); + $detail = LegalLogic::detail($id); + $category2 = []; + if($detail['cate_id']>0){ + $category2 = LegalCateLogic::getCate($detail['cate_id']); + } + + return view('', [ + 'detail' => $detail, + 'cates' => LegalCateLogic::getCate(), + 'cate2' => $category2, + ]); + } + + /** + * @NOTES: 删除帮助分类 + * @author: 张无忌 + */ + public function del() + { + if ($this->request->isAjax()) { + $id = $this->request->post('id'); + $res = LegalLogic::del($id); + if ($res === false) { + $error = LegalLogic::getError() ?: '删除失败'; + return JsonServer::error($error); + } + return JsonServer::success('删除成功'); + } + + return JsonServer::error('异常'); + } + + /** + * @Notes: 隐藏帮助分类 + * @Author: 张无忌 + */ + public function hide() + { + if ($this->request->isAjax()) { + $id = $this->request->post('id'); + $res = LegalLogic::hide($id); + if ($res === false) { + $error = LegalLogic::getError() ?: '操作失败'; + return JsonServer::error($error); + } + return JsonServer::success('操作成功'); + } + + return JsonServer::success('异常'); + } + + /** + * @notes 审核文章 + * @return \think\response\Json|\think\response\View + * @author 段誉 + * @date 2022/5/10 17:45 + */ + public function handle() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $result = LegalLogic::handle($post); + if (false === $result) { + return JsonServer::error(LegalLogic::getError() ?: '操作失败'); + } + return JsonServer::success('编辑成功'); + } + $id = $this->request->get('id'); + return view('', [ + 'detail' => LegalLogic::detail($id) + ]); + } +} diff --git a/app/admin/controller/legal/LegalCase.php b/app/admin/controller/legal/LegalCase.php new file mode 100644 index 0000000..a08d563 --- /dev/null +++ b/app/admin/controller/legal/LegalCase.php @@ -0,0 +1,122 @@ +request->isAjax()) { + $get = $this->request->get(); + $lists = LegalCaseLogic::lists($get); + return JsonServer::success("获取成功", $lists); + } + + return view('', [ + 'cates' => LegalCateLogic::getCate(), + ]); + } + + /** + * @NOTES: 添加帮助类 + * @author: 张无忌 + */ + public function add() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = LegalCaseLogic::add($post); + if ($res === false) { + $error = LegalCaseLogic::getError() ?: '新增失败'; + return JsonServer::error($error); + } + return JsonServer::success('新增成功'); + } + + + return view('', [ + 'cates' => LegalCateLogic::getCate(), + ]); + } + + /** + * @NOTES: 编辑帮助分类 + * @author: 张无忌 + */ + public function edit() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = LegalCaseLogic::edit($post); + if ($res === false) { + $error = LegalCaseLogic::getError() ?: '编辑失败'; + return JsonServer::error($error); + } + return JsonServer::success('编辑成功'); + } + + + $id = $this->request->get('id'); + $detail = LegalCaseLogic::detail($id); + $category2 = []; + if($detail['cate_id']>0){ + $category2 = LegalCateLogic::getCate($detail['cate_id']); + } + + return view('', [ + 'detail' => $detail, + 'cates' => LegalCateLogic::getCate(), + 'cate2' => $category2, + ]); + } + + /** + * @NOTES: 删除帮助分类 + * @author: 张无忌 + */ + public function del() + { + if ($this->request->isAjax()) { + $id = $this->request->post('id'); + $res = LegalCaseLogic::del($id); + if ($res === false) { + $error = LegalCaseLogic::getError() ?: '删除失败'; + return JsonServer::error($error); + } + return JsonServer::success('删除成功'); + } + + return JsonServer::error('异常'); + } + + /** + * @Notes: 隐藏帮助分类 + * @Author: 张无忌 + */ + public function hide() + { + if ($this->request->isAjax()) { + $id = $this->request->post('id'); + $res = LegalCaseLogic::hide($id); + if ($res === false) { + $error = LegalCaseLogic::getError() ?: '操作失败'; + return JsonServer::error($error); + } + return JsonServer::success('操作成功'); + } + + return JsonServer::success('异常'); + } + + +} diff --git a/app/admin/controller/legal/LegalCate.php b/app/admin/controller/legal/LegalCate.php new file mode 100644 index 0000000..cb4be3f --- /dev/null +++ b/app/admin/controller/legal/LegalCate.php @@ -0,0 +1,111 @@ +request->isAjax()) { + $get = $this->request->get(); + $lists = LegalCateLogic::lists($get); + return JsonServer::success("获取成功", $lists); + } + + return view('', [ + 'cates' => LegalCateLogic::getCate(), + ]); + } + + /** + * @NOTES: 添加资源分类 + * @author: 张无忌 + */ + public function add() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = LegalCateLogic::add($post); + if ($res === false) { + $error = LegalCateLogic::getError() ?: '新增失败'; + return JsonServer::error($error); + } + return JsonServer::success('新增成功'); + } + + + return view('', [ + 'cates' => LegalCateLogic::getCate(), + ]); + } + + /** + * @NOTES: 编辑分类 + * @author: 张无忌 + */ + public function edit() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = LegalCateLogic::edit($post); + if ($res === false) { + $error = LegalCateLogic::getError() ?: '编辑失败'; + return JsonServer::error($error); + } + return JsonServer::success('编辑成功'); + } + + $id = $this->request->get('id'); + return view('', [ + 'detail' => LegalCateLogic::detail($id), + 'cates' => LegalCateLogic::getCate(), + ]); + } + + /** + * @NOTES: 删除分类 + * @author: 张无忌 + */ + public function del() + { + if ($this->request->isAjax()) { + $id = $this->request->post('id'); + $res = LegalCateLogic::del($id); + if ($res === false) { + $error = LegalCateLogic::getError() ?: '删除失败'; + return JsonServer::error($error); + } + return JsonServer::success('删除成功'); + } + + return JsonServer::error('异常'); + } + + /** + * @Notes: 隐藏分类 + * @Author: 张无忌 + */ + public function hide() + { + if ($this->request->isAjax()) { + $id = $this->request->post('id'); + $res = LegalCateLogic::hide($id); + if ($res === false) { + $error = LegalCateLogic::getError() ?: '操作失败'; + return JsonServer::error($error); + } + return JsonServer::success('操作成功'); + } + + return JsonServer::success('异常'); + } +} diff --git a/app/admin/controller/legal/LegalDoc.php b/app/admin/controller/legal/LegalDoc.php new file mode 100644 index 0000000..4e9162c --- /dev/null +++ b/app/admin/controller/legal/LegalDoc.php @@ -0,0 +1,105 @@ +request->isAjax()) { + $get = $this->request->get(); + $lists = LegalDocLogic::lists($get); + return JsonServer::success("获取成功", $lists); + } + + return view('', [ + 'cates' => LegalCateLogic::getCate(), + ]); + } + + /** + * @NOTES: 添加帮助类 + * @author: 张无忌 + */ + public function add() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = LegalDocLogic::add($post); + if ($res === false) { + $error = LegalDocLogic::getError() ?: '新增失败'; + return JsonServer::error($error); + } + return JsonServer::success('新增成功'); + } + + + return view('', [ + 'cates' => LegalCateLogic::getCate(), + ]); + } + + /** + * @NOTES: 编辑帮助分类 + * @author: 张无忌 + */ + public function edit() + { + if ($this->request->isAjax()) { + $post = $this->request->post(); + $res = LegalDocLogic::edit($post); + if ($res === false) { + $error = LegalDocLogic::getError() ?: '编辑失败'; + return JsonServer::error($error); + } + return JsonServer::success('编辑成功'); + } + + + $id = $this->request->get('id'); + $detail = LegalDocLogic::detail($id); + $category2 = []; + if($detail['cate_id']>0){ + $category2 = LegalCateLogic::getCate($detail['cate_id']); + } + + return view('', [ + 'detail' => $detail, + 'cates' => LegalCateLogic::getCate(), + 'cate2' => $category2, + ]); + } + + /** + * @NOTES: 删除帮助分类 + * @author: 张无忌 + */ + public function del() + { + if ($this->request->isAjax()) { + $id = $this->request->post('id'); + $res = LegalDocLogic::del($id); + if ($res === false) { + $error = LegalDocLogic::getError() ?: '删除失败'; + return JsonServer::error($error); + } + return JsonServer::success('删除成功'); + } + + return JsonServer::error('异常'); + } + + + +} diff --git a/app/admin/controller/shop/Apply.php b/app/admin/controller/shop/Apply.php index b8e4abe..223b3ae 100644 --- a/app/admin/controller/shop/Apply.php +++ b/app/admin/controller/shop/Apply.php @@ -24,6 +24,7 @@ class Apply extends AdminBase { if ($this->request->isAjax()) { $get = $this->request->get(); + $get['auth_type'] = 0; $lists = ApplyLogic::lists($get); return JsonServer::success('获取成功', $lists); } @@ -34,6 +35,24 @@ class Apply extends AdminBase } /** + * NOTE: 申请列表 + * @author: 张无忌 + */ + public function lists2() + { + if ($this->request->isAjax()) { + $get = $this->request->get(); + $get['auth_type'] = 1; + $lists = ApplyLogic::lists($get); + return JsonServer::success('获取成功', $lists); + } + + return view('', [ + 'totalCount' => ApplyLogic::totalCount(1) + ]); + } + + /** * NOTE: 统计 * @author: 张无忌 */ @@ -47,6 +66,19 @@ class Apply extends AdminBase } /** + * NOTE: 统计 + * @author: 张无忌 + */ + public function totalCount2() + { + if ($this->request->isAjax()) { + return JsonServer::success('获取成功', ApplyLogic::totalCount(1)); + } + + return JsonServer::error('请求异常'); + } + + /** * NOTE: 详细 * @author: 张无忌 */ @@ -60,6 +92,20 @@ class Apply extends AdminBase } /** + * NOTE: 详细 + * @author: 张无忌 + */ + public function detail2() + { + (new ShopApplyValidate())->goCheck('id'); + $id = $this->request->get('id'); + return view('', [ + 'detail' => ApplyLogic::detail($id) + ]); + } + + + /** * NOTE: 审核 * @author: 张无忌 */ @@ -68,6 +114,29 @@ class Apply extends AdminBase if ($this->request->isAjax()) { (new ShopApplyValidate())->goCheck('audit'); $post = $this->request->post(); + $post['auth_type'] = 0; + $res = ApplyLogic::audit($post); + if ($res) { + return JsonServer::success('操作成功'); + } + + $error = ApplyLogic::getError() ?: '操作失败'; + return JsonServer::error($error); + } + + return view(); + } + + /** + * NOTE: 审核 + * @author: 张无忌 + */ + public function audit2() + { + if ($this->request->isAjax()) { + (new ShopApplyValidate())->goCheck('audit'); + $post = $this->request->post(); + $post['auth_type'] = 1; $res = ApplyLogic::audit($post); if ($res) { return JsonServer::success('操作成功'); @@ -80,6 +149,7 @@ class Apply extends AdminBase return view(); } + /** * NOTE: 删除 * @author: 张无忌 @@ -100,4 +170,4 @@ class Apply extends AdminBase return JsonServer::error('请求异常'); } -} \ No newline at end of file +} diff --git a/app/admin/controller/shop/ShopLevel.php b/app/admin/controller/shop/ShopLevel.php new file mode 100644 index 0000000..9f70cfd --- /dev/null +++ b/app/admin/controller/shop/ShopLevel.php @@ -0,0 +1,90 @@ +request->isAjax()){ + $get = $this->request->get(); + $lists = ShopLevelLogic::lists($get); + return JsonServer::success('', $lists); + } + return view(); + } + + public function add() + { + if($this->request->isAjax()) { + $post = $this->request->post(); +// try{ +// $post = $this->request->post(); +// validate(LevelValidate::class)->scene('add')->check($post); +// }catch(ValidateException $e) { +// return JsonServer::error($e->getError()); +// } + $result = ShopLevelLogic::add($post); + if($result === true) { + return JsonServer::success('添加成功'); + } + return JsonServer::error(ShopLevelLogic::getError()); + } + return view(); + } + + public function edit(){ + if($this->request->isAjax()){ + $post = $this->request->post(); +// try{ +// validate(LevelValidate::class)->scene('edit')->check($post); +// }catch(ValidateException $e) { +// return JsonServer::error($e->getError()); +// } + $result = ShopLevelLogic::edit($post); + if($result === true) { + return JsonServer::success('编辑成功'); + } + return JsonServer::error(ShopLevelLogic::getError()); + } + + $id = $this->request->get('id', '', 'intval'); + $detail = ShopLevelLogic::detail($id); + return view('', [ + 'detail' => $detail + ]); + } + + public function del() + { + $id = $this->request->post('id', '', 'intval'); + $result = ShopLevelLogic::del($id); + if($result === true) { + return JsonServer::success('删除成功'); + } + return JsonServer::error(ShopLevelLogic::getError()); + } + + /** + * @Notes: 隐藏帮助分类 + * @Author: 张无忌 + */ + public function hide() + { + if ($this->request->isAjax()) { + $id = $this->request->post('id'); + $res = ShopLevelLogic::hide($id); + if ($res === false) { + $error = ShopLevelLogic::getError() ?: '操作失败'; + return JsonServer::error($error); + } + return JsonServer::success('操作成功'); + } + + return JsonServer::success('异常'); + } + +} diff --git a/app/admin/controller/shop/Store.php b/app/admin/controller/shop/Store.php index c33df1e..d6aa251 100644 --- a/app/admin/controller/shop/Store.php +++ b/app/admin/controller/shop/Store.php @@ -5,6 +5,8 @@ namespace app\admin\controller\shop; use app\admin\logic\shop\CategoryLogic; +use app\admin\logic\shop\ShopLevelLogic; +use app\admin\logic\shop\ShopVipLogic; use app\admin\logic\shop\StoreLogic; use app\admin\validate\shop\StoreLValidate; use app\admin\validate\shop\StoreStatusValidate; @@ -109,7 +111,9 @@ class Store extends AdminBase $id = $this->request->get('id'); return view('', [ - 'detail' => StoreLogic::detail($id) + 'detail' => StoreLogic::detail($id), + 'levels' => ShopLevelLogic::getCategory(), + 'roles' => ShopVipLogic::getCategory(), ]); } @@ -159,4 +163,4 @@ class Store extends AdminBase return JsonServer::success('操作成功'); } } -} \ No newline at end of file +} diff --git a/app/admin/controller/user/SvipRight.php b/app/admin/controller/user/SvipRight.php new file mode 100644 index 0000000..e78c1a7 --- /dev/null +++ b/app/admin/controller/user/SvipRight.php @@ -0,0 +1,78 @@ +request->isAjax()){ + $get = $this->request->get(); + $lists = SvipRightLogic::lists($get); + return JsonServer::success('', $lists); + } + return view(); + } + + public function add() + { + if($this->request->isAjax()) { + $post = $this->request->post(); +// try{ +// $post = $this->request->post(); +// validate(LevelValidate::class)->scene('add')->check($post); +// }catch(ValidateException $e) { +// return JsonServer::error($e->getError()); +// } + $result = SvipRightLogic::add($post); + if($result === true) { + return JsonServer::success('添加成功'); + } + return JsonServer::error(SvipRightLogic::getError()); + } + return view(); + } + + public function edit(){ + if($this->request->isAjax()){ + $post = $this->request->post(); +// try{ +// validate(LevelValidate::class)->scene('edit')->check($post); +// }catch(ValidateException $e) { +// return JsonServer::error($e->getError()); +// } + $result = SvipRightLogic::edit($post); + if($result === true) { + return JsonServer::success('编辑成功'); + } + return JsonServer::error(SvipRightLogic::getError()); + } + + $id = $this->request->get('id', '', 'intval'); + $detail = SvipRightLogic::detail($id); + return view('', [ + 'detail' => $detail + ]); + } + + public function del() + { + $id = $this->request->post('id', '', 'intval'); + $result = SvipRightLogic::del($id); + if($result === true) { + return JsonServer::success('删除成功'); + } + return JsonServer::error(SvipRightLogic::getError()); + } + +} diff --git a/app/admin/logic/community/CommunityArticleLogic.php b/app/admin/logic/community/CommunityArticleLogic.php index 78850f7..07a8187 100644 --- a/app/admin/logic/community/CommunityArticleLogic.php +++ b/app/admin/logic/community/CommunityArticleLogic.php @@ -35,7 +35,9 @@ class CommunityArticleLogic extends Logic public static function lists($get) { $where = [ - ['a.del', '=', 0] + ['a.del', '=', 0], + ['a.type', '=', 1], + ]; if (!empty($get['keyword'])) { @@ -215,4 +217,4 @@ class CommunityArticleLogic extends Logic } -} \ No newline at end of file +} diff --git a/app/admin/logic/financeService/ContractCateLogic.php b/app/admin/logic/financeService/ContractCateLogic.php new file mode 100644 index 0000000..1a658b5 --- /dev/null +++ b/app/admin/logic/financeService/ContractCateLogic.php @@ -0,0 +1,160 @@ +field(true) + ->where($where) + ->order('id', 'desc') + ->paginate([ + 'page' => $get['page'], + 'list_rows' => $get['limit'], + 'var_page' => 'page' + ]) + ->toArray(); + + foreach ($lists['data'] as &$item) { + $item['is_show'] = $item['is_show'] ? '启用' : '停用'; + } + return ['count'=>$lists['total'], 'lists'=>$lists['data']]; + } catch (Exception $e) { + return ['error'=>$e->getMessage()]; + } + } + + /** + * @Notes: 获取分类 + * @Author: 张无忌 + * @return array + */ + public static function getCate($pid=0) + { + try { + $model = new ContractCate(); + return $model->field(true) + ->where(['del'=>0, 'is_show'=>1]) + ->order('id', 'desc') + ->select() + ->toArray(); + + } catch (\Exception $e) { + return []; + } + } + + /** + * 获取文章分类详细 + * @param $id + * @return array + */ + public static function detail($id) + { + $model = new ContractCate(); + return $model->field(true)->findOrEmpty($id)->toArray(); + } + + /** + * 添加分类 + * @param $post + * @return bool + */ + public static function add($post) + { + try { + ContractCate::create([ + 'name' => $post['name'], + 'is_show' => $post['is_show'] + ]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * 编辑分类 + * @param $post + * @return bool + */ + public static function edit($post) + { + try { + ContractCate::update([ + 'name' => $post['name'], + 'is_show' => $post['is_show'] + ], ['id'=>$post['id']]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * 删除分类 + * @param $id + * @return bool + */ + public static function del($id) + { + try { + ContractCate::update([ + 'del' => 1 + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 隐藏 + * @Author: 张无忌 + * @param $id + * @return bool + */ + public static function hide($id) + { + try { + $model = new ContractCate(); + $category = $model->findOrEmpty($id)->toArray(); + + ContractCate::update([ + 'is_show' => !$category['is_show'], + 'update_time' => time() + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } +} diff --git a/app/admin/logic/financeService/ContractLogic.php b/app/admin/logic/financeService/ContractLogic.php new file mode 100644 index 0000000..3fddc13 --- /dev/null +++ b/app/admin/logic/financeService/ContractLogic.php @@ -0,0 +1,155 @@ +field(true) + ->where($where) + ->paginate([ + 'page' => $get['page'], + 'list_rows' => $get['limit'], + 'var_page' => 'page' + ]) + ->toArray(); + + $cates1 = Db::name("contract_cate")->where(['del'=>0,'is_show'=>1])->select()->toArray(); + $cates = array_column($cates1,"name","id"); + + foreach ($lists['data'] as &$item) { + $item['cate_name'] = $cates[$item['cate_id']] ?? "未知"; + $item['is_show'] = $item['is_show'] ? '显示' : '隐藏'; + $item['start_time_str'] = $item['start_time'] ? date("Y-m-d",$item['start_time']) : '-'; + $item['end_time_str'] = $item['end_time'] ? date("Y-m-d",$item['end_time']) : '-'; + $item['is_show'] = $item['is_show'] ? '显示' : '隐藏'; + } + + return ['count'=>$lists['total'], 'lists'=>$lists['data']]; + } catch (Exception $e) { + return ['error'=>$e->getMessage()]; + } + } + + /** + * @Notes: 文章详细 + * @Author: 张无忌 + * @param $id + * @return array + */ + public static function detail($id) + { + $model = new Contract(); + $data = $model->field(true)->findOrEmpty($id)->toArray(); + return $data; + } + + /** + * @Notes: 添加文章 + * @Author: 张无忌 + * @param $post + * @return bool + */ + public static function add($post) + { + try { + Contract::create([ + 'title' => $post['title'], + 'partA' => $post['partA'], + 'partB' => $post['partB'], + 'partC' => $post['partC'], + 'cate_id' => $post['cate_id'] ?? 0, + 'start_time' => $post['start_time'] ? strtotime($post['start_time']) : 0, + 'end_time' => $post['end_time'] ? strtotime($post['start_time']." 23:59:59") : 0, + 'term' => $post['term'] ?? 0, + 'money' => $post['money'] ?? 0.00, + 'path' => $post['path'] , + ]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 编辑文章 + * @Author: 张无忌 + * @param $post + * @return bool + */ + public static function edit($post) + { + try { + Contract::update([ + 'title' => $post['title'], + 'partA' => $post['partA'], + 'partB' => $post['partB'], + 'partC' => $post['partC'], + 'cate_id' => $post['cate_id'] ?? 0, + 'start_time' => $post['start_time'] ? strtotime($post['start_time']) : 0, + 'end_time' => $post['end_time'] ? strtotime($post['start_time']." 23:59:59") : 0, + 'term' => $post['term'] ?? 0, + 'money' => $post['money'] ?? 0.00, + 'path' => $post['path'] , + ], ['id'=>$post['id']]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 删除 + * @Author: 张无忌 + * @param $id + * @return bool + */ + public static function del($id) + { + try { + Contract::update([ + 'del' => 1, + 'update_time' => time() + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + +} diff --git a/app/admin/logic/job/JobCateLogic.php b/app/admin/logic/job/JobCateLogic.php new file mode 100644 index 0000000..c72b359 --- /dev/null +++ b/app/admin/logic/job/JobCateLogic.php @@ -0,0 +1,181 @@ +0){ + $where[] = ['pid', '=', $get['pid']]; + } + + $model = new JobCate(); + $lists = $model->field(true) + ->where($where) + ->order('id', 'desc') + ->paginate([ + 'page' => $get['page'], + 'list_rows' => $get['limit'], + 'var_page' => 'page' + ]) + ->toArray(); + + foreach ($lists['data'] as &$item) { + $item['is_show'] = $item['is_show'] ? '启用' : '停用'; + if($item['pid']){ + $where2 = [ + ['del', '=', 0], + ['id', '=', $item['pid']], + ]; + $cates = $model->where($where2)->find(); + if($cates){ + $item['p_name'] = $cates['name']; + }else{ + $item['p_name'] = '无'; + } + }else{ + $item['p_name'] = '无'; + } + + } + + return ['count'=>$lists['total'], 'lists'=>$lists['data']]; + } catch (Exception $e) { + return ['error'=>$e->getMessage()]; + } + } + + /** + * @Notes: 获取分类 + * @Author: 张无忌 + * @return array + */ + public static function getCate($pid=0) + { + try { + $model = new JobCate(); + return $model->field(true) + ->where(['del'=>0, 'is_show'=>1,'pid'=>$pid]) + ->order('id', 'desc') + ->select() + ->toArray(); + + } catch (\Exception $e) { + return []; + } + } + + /** + * 获取文章分类详细 + * @param $id + * @return array + */ + public static function detail($id) + { + $model = new JobCate(); + return $model->field(true)->findOrEmpty($id)->toArray(); + } + + /** + * 添加分类 + * @param $post + * @return bool + */ + public static function add($post) + { + try { + JobCate::create([ + 'name' => $post['name'], + 'is_show' => $post['is_show'], + 'pid' => $post['pid'] + ]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * 编辑分类 + * @param $post + * @return bool + */ + public static function edit($post) + { + try { + JobCate::update([ + 'name' => $post['name'], + 'pid' => $post['pid'], + 'is_show' => $post['is_show'] + ], ['id'=>$post['id']]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * 删除分类 + * @param $id + * @return bool + */ + public static function del($id) + { + try { + JobCate::update([ + 'del' => 1 + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 隐藏 + * @Author: 张无忌 + * @param $id + * @return bool + */ + public static function hide($id) + { + try { + $model = new JobCate(); + $category = $model->findOrEmpty($id)->toArray(); + + JobCate::update([ + 'is_show' => !$category['is_show'], + 'update_time' => time() + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } +} diff --git a/app/admin/logic/job/JobIndustryLogic.php b/app/admin/logic/job/JobIndustryLogic.php new file mode 100644 index 0000000..f39941c --- /dev/null +++ b/app/admin/logic/job/JobIndustryLogic.php @@ -0,0 +1,182 @@ +0){ + $where[] = ['pid', '=', $get['pid']]; + } + + $model = new JobIndustry(); + $lists = $model->field(true) + ->where($where) + ->order('id', 'desc') + ->paginate([ + 'page' => $get['page'], + 'list_rows' => $get['limit'], + 'var_page' => 'page' + ]) + ->toArray(); + + foreach ($lists['data'] as &$item) { + $item['is_show'] = $item['is_show'] ? '启用' : '停用'; + if($item['pid']){ + $where2 = [ + ['del', '=', 0], + ['id', '=', $item['pid']], + ]; + $cates = $model->where($where2)->find(); + if($cates){ + $item['p_name'] = $cates['name']; + }else{ + $item['p_name'] = '无'; + } + }else{ + $item['p_name'] = '无'; + } + + } + + return ['count'=>$lists['total'], 'lists'=>$lists['data']]; + } catch (Exception $e) { + return ['error'=>$e->getMessage()]; + } + } + + /** + * @Notes: 获取分类 + * @Author: 张无忌 + * @return array + */ + public static function getIndustry($pid=0) + { + try { + $model = new JobIndustry(); + return $model->field(true) + ->where(['del'=>0, 'is_show'=>1,'pid'=>$pid]) + ->order('id', 'desc') + ->select() + ->toArray(); + + } catch (\Exception $e) { + return []; + } + } + + /** + * 获取文章分类详细 + * @param $id + * @return array + */ + public static function detail($id) + { + $model = new JobIndustry(); + return $model->field(true)->findOrEmpty($id)->toArray(); + } + + /** + * 添加分类 + * @param $post + * @return bool + */ + public static function add($post) + { + try { + JobIndustry::create([ + 'name' => $post['name'], + 'is_show' => $post['is_show'], + 'pid' => $post['pid'] + ]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * 编辑分类 + * @param $post + * @return bool + */ + public static function edit($post) + { + try { + JobIndustry::update([ + 'name' => $post['name'], + 'pid' => $post['pid'], + 'is_show' => $post['is_show'] + ], ['id'=>$post['id']]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * 删除分类 + * @param $id + * @return bool + */ + public static function del($id) + { + try { + JobIndustry::update([ + 'del' => 1 + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 隐藏 + * @Author: 张无忌 + * @param $id + * @return bool + */ + public static function hide($id) + { + try { + $model = new JobIndustry(); + $category = $model->findOrEmpty($id)->toArray(); + + JobIndustry::update([ + 'is_show' => !$category['is_show'], + 'update_time' => time() + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } +} diff --git a/app/admin/logic/job/JobLogic.php b/app/admin/logic/job/JobLogic.php new file mode 100644 index 0000000..175d7f6 --- /dev/null +++ b/app/admin/logic/job/JobLogic.php @@ -0,0 +1,264 @@ +field(true) + ->where($where) + ->order('sort', 'asc') + ->paginate([ + 'page' => $get['page'], + 'list_rows' => $get['limit'], + 'var_page' => 'page' + ]) + ->toArray(); + + $cates1 = Db::name("job_cate")->where(['del'=>0,'is_show'=>1])->select()->toArray(); + $cates = array_column($cates1,"name","id"); + + $salarys1 = Db::name("job_salary")->where(['del'=>0,'is_show'=>1])->select()->toArray(); + $salarys = array_column($salarys1,"value","id"); + + $industry1 = Db::name("job_industry")->where(['del'=>0,'is_show'=>1])->select()->toArray(); + $industry = array_column($industry1,"name","id"); + + $education1 = Db::name("job_education")->where(['del'=>0,'is_show'=>1])->select()->toArray(); + $education = array_column($education1,"name","id"); + + foreach ($lists['data'] as &$item) { + $item['cate_name'] = $cates[$item['cate_id']] ?? "未知"; + $item['salary_value'] = $salarys[$item['salary_id']] ?? "未知"; + $item['industry_name'] = $industry[$item['industry_id']] ?? "未知"; + $item['education_name'] = $education[$item['education']] ?? "不限"; + $item['is_show'] = $item['is_show'] ? '显示' : '隐藏'; + + $item['username'] = '平台'; + if($item['uid']>0){ + $user = Db::name("user")->field('*')->where('id',$item['uid'])->find(); + if(!empty($user)){ + $item['username'] = $user['nickname']; + } + } + $item['address'] = $item['province_id']?AreaServer::getAddress([ + $item['province_id'], + $item['city_id'], + $item['district_id']]):''; + } + + return ['count'=>$lists['total'], 'lists'=>$lists['data']]; + } catch (Exception $e) { + return ['error'=>$e->getMessage()]; + } + } + + /** + * @Notes: 文章详细 + * @Author: 张无忌 + * @param $id + * @return array + */ + public static function detail($id) + { + $model = new Job(); + $data = $model->field(true)->findOrEmpty($id)->toArray(); + return $data; + } + + /** + * @Notes: 添加文章 + * @Author: 张无忌 + * @param $post + * @return bool + */ + public static function add($post) + { + try { + Job::create([ + 'uid' => 0, + 'name' => $post['name'], + 'intro' => $post['intro'] ?? '', + 'content' => $post['content'] ?? '', + 'contact' => $post['contact'] ?? '', + 'visit' => 0, + 'cate_id' => $post['cate_id'] ?? 0, + 'industry_id' => $post['industry_id'] ?? 0, + 'salary_id' => $post['salary_id'] ?? 0, + 'education' => $post['education'] ?? 1, + 'num' => $post['num'] ?? 1, + 'sort' => $post['sort'] ?? 0, + 'is_show' => $post['is_show'], + 'province_id' => $post['province_id'] ?? 0, + 'city_id' => $post['city_id'] ?? 0, + 'district_id' => $post['district_id'] ?? 0, + 'address_detail' => $post['address_detail'] ?? '', + ]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 编辑文章 + * @Author: 张无忌 + * @param $post + * @return bool + */ + public static function edit($post) + { + try { + Job::update([ + 'uid' => 0, + 'name' => $post['name'], + 'intro' => $post['intro'] ?? '', + 'content' => $post['content'] ?? '', + 'contact' => $post['contact'] ?? '', + 'visit' => 0, + 'cate_id' => $post['cate_id'] ?? 0, + 'industry_id' => $post['industry_id'] ?? 0, + 'salary_id' => $post['salary_id'] ?? 0, + 'education' => $post['education'] ?? 1, + 'num' => $post['num'] ?? 1, + 'sort' => $post['sort'] ?? 0, + 'is_show' => $post['is_show'], + 'province_id' => $post['province_id'] ?? 0, + 'city_id' => $post['city_id'] ?? 0, + 'district_id' => $post['district_id'] ?? 0, + 'address_detail' => $post['address_detail'] ?? '', + ], ['id'=>$post['id']]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 删除 + * @Author: 张无忌 + * @param $id + * @return bool + */ + public static function del($id) + { + try { + Job::update([ + 'del' => 1, + 'update_time' => time() + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 隐藏 + * @Author: 张无忌 + * @param $id + * @return bool + */ + public static function hide($id) + { + try { + $model = new Job(); + $article = $model->findOrEmpty($id)->toArray(); + + Job::update([ + 'is_show' => !$article['is_show'], + 'update_time' => time() + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + + /** + * @notes 审核文章 + * @param $post + * @return bool + * @author 段誉 + * @date 2022/5/12 16:57 + */ + public static function audit($post) + { + $article = Job::findOrEmpty($post['id']); + $article->audit_status = $post['audit_status']; + $article->audit_remark = $post['audit_remark'] ?? ''; + $article->audit_time = time(); + $article->save(); + return true; + } + + + /** + * @Notes: 获取分类 + * @Author: 张无忌 + * @return array + */ + public static function getEducation($pid=0) + { + try { + if($pid == 0){ + return Db::name("job_education")->field(true) + ->where(['del'=>0, 'is_show'=>1]) + ->order('id', 'desc') + ->select() + ->toArray(); + }else{ + return Db::name("job_education")->field(true) + ->where(['del'=>0, 'is_show'=>1,'id'=>$pid]) + ->find(); + } + + } catch (\Exception $e) { + return []; + } + } + + +} diff --git a/app/admin/logic/job/JobSalaryLogic.php b/app/admin/logic/job/JobSalaryLogic.php new file mode 100644 index 0000000..b380cb4 --- /dev/null +++ b/app/admin/logic/job/JobSalaryLogic.php @@ -0,0 +1,161 @@ +field(true) + ->where($where) + ->order('id', 'desc') + ->paginate([ + 'page' => $get['page'], + 'list_rows' => $get['limit'], + 'var_page' => 'page' + ]) + ->toArray(); + + foreach ($lists['data'] as &$item) { + $item['is_show'] = $item['is_show'] ? '启用' : '停用'; + } + + return ['count'=>$lists['total'], 'lists'=>$lists['data']]; + } catch (Exception $e) { + return ['error'=>$e->getMessage()]; + } + } + + /** + * @Notes: 获取分类 + * @Author: 张无忌 + * @return array + */ + public static function getSalary($pid=0) + { + try { + $model = new JobSalary(); + return $model->field(true) + ->where(['del'=>0, 'is_show'=>1]) + ->order('id', 'desc') + ->select() + ->toArray(); + + } catch (\Exception $e) { + return []; + } + } + + /** + * 获取文章分类详细 + * @param $id + * @return array + */ + public static function detail($id) + { + $model = new JobSalary(); + return $model->field(true)->findOrEmpty($id)->toArray(); + } + + /** + * 添加分类 + * @param $post + * @return bool + */ + public static function add($post) + { + try { + JobSalary::create([ + 'value' => $post['value'], + 'is_show' => $post['is_show'] + ]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * 编辑分类 + * @param $post + * @return bool + */ + public static function edit($post) + { + try { + JobSalary::update([ + 'value' => $post['value'], + 'is_show' => $post['is_show'] + ], ['id'=>$post['id']]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * 删除分类 + * @param $id + * @return bool + */ + public static function del($id) + { + try { + JobSalary::update([ + 'del' => 1 + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 隐藏 + * @Author: 张无忌 + * @param $id + * @return bool + */ + public static function hide($id) + { + try { + $model = new JobSalary(); + $category = $model->findOrEmpty($id)->toArray(); + + JobSalary::update([ + 'is_show' => !$category['is_show'], + 'update_time' => time() + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } +} diff --git a/app/admin/logic/legal/LegalCaseLogic.php b/app/admin/logic/legal/LegalCaseLogic.php new file mode 100644 index 0000000..39e0ec4 --- /dev/null +++ b/app/admin/logic/legal/LegalCaseLogic.php @@ -0,0 +1,188 @@ +field(true) + ->where($where) + ->order('sort', 'asc') + ->paginate([ + 'page' => $get['page'], + 'list_rows' => $get['limit'], + 'var_page' => 'page' + ]) + ->toArray(); + + $cates1 = Db::name("legal_cate")->where(['del'=>0,'is_show'=>1])->select()->toArray(); + $cates = array_column($cates1,"name","id"); + + foreach ($lists['data'] as &$item) { + $item['cate_name'] = $cates[$item['cate_id']] ?? "未知"; + $item['is_show'] = $item['is_show'] ? '显示' : '隐藏'; + $item['address'] = $item['province_id']?AreaServer::getAddress([ + $item['province_id'], + $item['city_id'], + $item['district_id']]):''; + } + + return ['count'=>$lists['total'], 'lists'=>$lists['data']]; + } catch (Exception $e) { + return ['error'=>$e->getMessage()]; + } + } + + /** + * @Notes: 文章详细 + * @Author: 张无忌 + * @param $id + * @return array + */ + public static function detail($id) + { + $model = new LegalCase(); + $data= $model->field(true)->findOrEmpty($id)->toArray(); +// $data['address'] = $data['province_id']?AreaServer::getAddress([ +// $data['province_id'], +// $data['city_id'], +// $data['district_id']]):''; + $data['images_arr'] = $data['images']? explode(",",$data['images']):[]; + return $data; + } + + /** + * @Notes: 添加文章 + * @Author: 张无忌 + * @param $post + * @return bool + */ + public static function add($post) + { + try { + LegalCase::create([ + 'title' => $post['title'], + 'cate_id' => $post['cate_id'] ?? 0, + 'content' => $post['content'] ?? '', + 'image' => $post['image'] ?? '', + 'images' => $post['images'] ?? '', + 'contact' => $post['contact'] ?? '', + 'is_show' => $post['is_show'], +// 'province_id' => $post['province_id'] ?? 0, +// 'city_id' => $post['city_id'] ?? 0, +// 'district_id' => $post['district_id'] ?? 0, +// 'address_detail' => $post['address_detail'] ?? '', + + ]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 编辑文章 + * @Author: 张无忌 + * @param $post + * @return bool + */ + public static function edit($post) + { + try { + LegalCase::update([ + 'title' => $post['title'], + 'cate_id' => $post['cate_id'] ?? 0, + 'content' => $post['content'] ?? '', + 'image' => $post['image'] ?? '', + 'images' => $post['images'] ?? '', + 'contact' => $post['contact'] ?? '', + 'is_show' => $post['is_show'], + ], ['id'=>$post['id']]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 删除 + * @Author: 张无忌 + * @param $id + * @return bool + */ + public static function del($id) + { + try { + LegalCase::update([ + 'del' => 1, + 'update_time' => time() + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 隐藏 + * @Author: 张无忌 + * @param $id + * @return bool + */ + public static function hide($id) + { + try { + $model = new LegalCase(); + $article = $model->findOrEmpty($id)->toArray(); + + LegalCase::update([ + 'is_show' => !$article['is_show'], + 'update_time' => time() + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + + + +} diff --git a/app/admin/logic/legal/LegalCateLogic.php b/app/admin/logic/legal/LegalCateLogic.php new file mode 100644 index 0000000..e58e09f --- /dev/null +++ b/app/admin/logic/legal/LegalCateLogic.php @@ -0,0 +1,182 @@ +0){ + $where[] = ['pid', '=', $get['pid']]; + } + + $model = new LegalCate(); + $lists = $model->field(true) + ->where($where) + ->order('id', 'desc') + ->paginate([ + 'page' => $get['page'], + 'list_rows' => $get['limit'], + 'var_page' => 'page' + ]) + ->toArray(); + + foreach ($lists['data'] as &$item) { + $item['is_show'] = $item['is_show'] ? '启用' : '停用'; + if($item['pid']){ + $where2 = [ + ['del', '=', 0], + ['id', '=', $item['pid']], + ]; + $cates = $model->where($where2)->find(); + if($cates){ + $item['p_name'] = $cates['name']; + }else{ + $item['p_name'] = '无'; + } + }else{ + $item['p_name'] = '无'; + } + + } + + return ['count'=>$lists['total'], 'lists'=>$lists['data']]; + } catch (Exception $e) { + return ['error'=>$e->getMessage()]; + } + } + + /** + * @Notes: 获取分类 + * @Author: 张无忌 + * @return array + */ + public static function getCate($pid=0) + { + try { + $model = new LegalCate(); + return $model->field(true) + ->where(['del'=>0, 'is_show'=>1,'pid'=>$pid]) + ->order('id', 'desc') + ->select() + ->toArray(); + + } catch (\Exception $e) { + return []; + } + } + + /** + * 获取文章分类详细 + * @param $id + * @return array + */ + public static function detail($id) + { + $model = new LegalCate(); + return $model->field(true)->findOrEmpty($id)->toArray(); + } + + /** + * 添加分类 + * @param $post + * @return bool + */ + public static function add($post) + { + try { + LegalCate::create([ + 'name' => $post['name'], + 'is_show' => $post['is_show'], + 'pid' => $post['pid'] + ]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * 编辑分类 + * @param $post + * @return bool + */ + public static function edit($post) + { + try { + LegalCate::update([ + 'name' => $post['name'], + 'pid' => $post['pid'], + 'is_show' => $post['is_show'] + ], ['id'=>$post['id']]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * 删除分类 + * @param $id + * @return bool + */ + public static function del($id) + { + try { + LegalCate::update([ + 'del' => 1 + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 隐藏 + * @Author: 张无忌 + * @param $id + * @return bool + */ + public static function hide($id) + { + try { + $model = new LegalCate(); + $category = $model->findOrEmpty($id)->toArray(); + + LegalCate::update([ + 'is_show' => !$category['is_show'], + 'update_time' => time() + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } +} diff --git a/app/admin/logic/legal/LegalDocLogic.php b/app/admin/logic/legal/LegalDocLogic.php new file mode 100644 index 0000000..1bf7689 --- /dev/null +++ b/app/admin/logic/legal/LegalDocLogic.php @@ -0,0 +1,199 @@ +field(true) + ->where($where) + ->order('sort', 'asc') + ->paginate([ + 'page' => $get['page'], + 'list_rows' => $get['limit'], + 'var_page' => 'page' + ]) + ->toArray(); + + $cates1 = Db::name("legal_cate")->where(['del'=>0,'is_show'=>1])->select()->toArray(); + $cates = array_column($cates1,"name","id"); + + foreach ($lists['data'] as &$item) { + $item['cate_name'] = $cates[$item['cate_id']] ?? "未知"; + $item['is_show'] = $item['is_show'] ? '显示' : '隐藏'; +// $item['address'] = $item['province_id']?AreaServer::getAddress([ +// $item['province_id'], +// $item['city_id'], +// $item['district_id']]):''; + } + + return ['count'=>$lists['total'], 'lists'=>$lists['data']]; + } catch (Exception $e) { + return ['error'=>$e->getMessage()]; + } + } + + /** + * @Notes: 文章详细 + * @Author: 张无忌 + * @param $id + * @return array + */ + public static function detail($id) + { + $model = new LegalDoc(); + $data= $model->field(true)->findOrEmpty($id)->toArray(); +// $data['address'] = $data['province_id']?AreaServer::getAddress([ +// $data['province_id'], +// $data['city_id'], +// $data['district_id']]):''; + $data['images_arr'] = $data['images']? explode(",",$data['images']):[]; + return $data; + } + + /** + * @Notes: 添加文章 + * @Author: 张无忌 + * @param $post + * @return bool + */ + public static function add($post) + { + if(isset($post['legal_image']) && count($post['legal_image']) ){ + $post['image'] = implode(",",$post['legal_image']); + } + + try { + LegalDoc::create([ + 'title' => $post['title'], + 'cate_id' => $post['cate_id'] ?? 0, + 'content' => $post['content'] ?? '', + 'image' => $post['image'] ?? '', + 'images' => $post['images'] ?? '', + 'contact' => $post['contact'] ?? '', + 'path' => $post['path'] ?? '', + 'is_show' => $post['is_show'], +// 'province_id' => $post['province_id'] ?? 0, +// 'city_id' => $post['city_id'] ?? 0, +// 'district_id' => $post['district_id'] ?? 0, +// 'address_detail' => $post['address_detail'] ?? '', + + ]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 编辑文章 + * @Author: 张无忌 + * @param $post + * @return bool + */ + public static function edit($post) + { + if(isset($post['legal_image']) && count($post['legal_image']) ){ + $post['image'] = implode(",",$post['legal_image']); + } + + try { + LegalDoc::update([ + 'title' => $post['title'], + 'cate_id' => $post['cate_id'] ?? 0, + 'content' => $post['content'] ?? '', + 'image' => $post['image'] ?? '', + 'images' => $post['images'] ?? '', + 'contact' => $post['contact'] ?? '', + 'is_show' => $post['is_show'], + 'path' => $post['path'] ?? '', + ], ['id'=>$post['id']]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 删除 + * @Author: 张无忌 + * @param $id + * @return bool + */ + public static function del($id) + { + try { + LegalDoc::update([ + 'del' => 1, + 'update_time' => time() + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 隐藏 + * @Author: 张无忌 + * @param $id + * @return bool + */ + public static function hide($id) + { + try { + $model = new LegalDoc(); + $article = $model->findOrEmpty($id)->toArray(); + + LegalDoc::update([ + 'is_show' => !$article['is_show'], + 'update_time' => time() + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + + + +} diff --git a/app/admin/logic/legal/LegalLogic.php b/app/admin/logic/legal/LegalLogic.php new file mode 100644 index 0000000..c685d4b --- /dev/null +++ b/app/admin/logic/legal/LegalLogic.php @@ -0,0 +1,206 @@ +field(true) + ->where($where) + ->paginate([ + 'page' => $get['page'], + 'list_rows' => $get['limit'], + 'var_page' => 'page' + ]) + ->toArray(); + + $cates1 = Db::name("legal_cate")->where(['del'=>0,'is_show'=>1])->select()->toArray(); + $cates = array_column($cates1,"name","id"); + + foreach ($lists['data'] as &$item) { + $item['cate_name'] = $cates[$item['cate_id']] ?? "未知"; + $item['address'] = $item['province_id']?AreaServer::getAddress([ + $item['province_id'], + $item['city_id'], + $item['district_id']]):''; + } + + return ['count'=>$lists['total'], 'lists'=>$lists['data']]; + } catch (Exception $e) { + return ['error'=>$e->getMessage()]; + } + } + + /** + * @Notes: 文章详细 + * @Author: 张无忌 + * @param $id + * @return array + */ + public static function detail($id) + { + $model = new Legal(); + $data= $model->field(true)->findOrEmpty($id)->toArray(); + $data['address'] = $data['province_id']?AreaServer::getAddress([ + $data['province_id'], + $data['city_id'], + $data['district_id']]):''; +// $data['images_arr'] = $data['images']? explode(",",$data['images']):[]; + return $data; + } + + /** + * @Notes: 添加文章 + * @Author: 张无忌 + * @param $post + * @return bool + */ + public static function add($post) + { + try { + Legal::create([ + 'title' => $post['title'], + 'cate_id' => $post['cate_id'] ?? 0, + 'content' => $post['content'] ?? '', + 'username' => $post['username'] ?? '', + 'mobile' => $post['mobile'] ?? '', + 'contact' => $post['contact'] ?? '', + + 'province_id' => $post['province_id'] ?? 0, + 'city_id' => $post['city_id'] ?? 0, + 'district_id' => $post['district_id'] ?? 0, + 'address_detail' => $post['address_detail'] ?? '', + + ]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 编辑文章 + * @Author: 张无忌 + * @param $post + * @return bool + */ + public static function edit($post) + { + try { + Legal::update([ + 'title' => $post['title'], + 'cate_id' => $post['cate_id'] ?? 0, + 'content' => $post['content'] ?? '', + 'username' => $post['username'] ?? '', + 'mobile' => $post['mobile'] ?? '', + 'contact' => $post['contact'] ?? '', + + 'province_id' => $post['province_id'] ?? 0, + 'city_id' => $post['city_id'] ?? 0, + 'district_id' => $post['district_id'] ?? 0, + 'address_detail' => $post['address_detail'] ?? '', + ], ['id'=>$post['id']]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 删除 + * @Author: 张无忌 + * @param $id + * @return bool + */ + public static function del($id) + { + try { + Legal::update([ + 'del' => 1, + 'update_time' => time() + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 隐藏 + * @Author: 张无忌 + * @param $id + * @return bool + */ + public static function hide($id) + { + try { + $model = new Legal(); + $article = $model->findOrEmpty($id)->toArray(); + + Legal::update([ + 'is_show' => !$article['is_show'], + 'update_time' => time() + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + + /** + * @notes 审核文章 + * @param $post + * @return bool + * @author 段誉 + * @date 2022/5/12 16:57 + */ + public static function handle($post) + { + $article = Legal::findOrEmpty($post['id']); + $article->handle_status = 1; + $article->handle_remark = $post['handle_remark'] ?? ''; + $article->handle_time = time(); + $article->save(); + return true; + } + + + +} diff --git a/app/admin/logic/shop/ApplyLogic.php b/app/admin/logic/shop/ApplyLogic.php index 0769707..eda2587 100644 --- a/app/admin/logic/shop/ApplyLogic.php +++ b/app/admin/logic/shop/ApplyLogic.php @@ -33,6 +33,8 @@ class ApplyLogic extends Logic ]; $get['type'] = $get['type'] ?? 1; $where[] = $type[intval($get['type']) - 1]; + if(!empty($get['auth_type'])) + $where[] = ['type', '=', $get['auth_type']]; if (!empty($get['name']) and $get['name']) $where[] = ['name', 'like', '%'.$get['name'].'%']; @@ -83,7 +85,7 @@ class ApplyLogic extends Logic * @author: 张无忌 * @return array */ - public static function totalCount() + public static function totalCount($auth_type=0) { $type = [ ['audit_status', '=', ShopEnum::AUDIT_STATUS_STAY], @@ -92,9 +94,9 @@ class ApplyLogic extends Logic ]; $model = new ShopApply(); - $ok = $model->where(['del'=>0])->where([$type[ShopEnum::AUDIT_STATUS_OK - 1]])->count(); - $stay = $model->where(['del'=>0])->where([$type[ShopEnum::AUDIT_STATUS_STAY - 1]])->count(); - $refuse = $model->where(['del'=>0])->where([$type[ShopEnum::AUDIT_STATUS_REFUSE - 1]])->count(); + $ok = $model->where(['del'=>0])->where([$type[ShopEnum::AUDIT_STATUS_OK - 1]])->where("type",$auth_type)->count(); + $stay = $model->where(['del'=>0])->where([$type[ShopEnum::AUDIT_STATUS_STAY - 1]])->where("type",$auth_type)->count(); + $refuse = $model->where(['del'=>0])->where([$type[ShopEnum::AUDIT_STATUS_REFUSE - 1]])->where("type",$auth_type)->count(); return [ 'ok' => $ok, @@ -147,8 +149,9 @@ class ApplyLogic extends Logic $shop = Shop::create([ 'cid' => $shopApply['cid'], 'type' => ShopEnum::SHOP_TYPE_IN, + 'auth_type' => $post['auth_type'], 'name' => $shopApply['name'], - 'nickname' => $shopApply['nickname'], + 'nickname' => $post['auth_type']==0?$shopApply['nickname']:$shopApply['name'], 'mobile' => $shopApply['mobile'], 'license' => $shopApply['license'], 'logo' => '', @@ -232,4 +235,4 @@ class ApplyLogic extends Logic return false; } } -} \ No newline at end of file +} diff --git a/app/admin/logic/shop/ShopLevelLogic.php b/app/admin/logic/shop/ShopLevelLogic.php new file mode 100644 index 0000000..427379b --- /dev/null +++ b/app/admin/logic/shop/ShopLevelLogic.php @@ -0,0 +1,151 @@ +0])->count(); + $lists = ShopLevel::where(['del'=>0])->order('id', 'desc')->page($get['page'], $get['limit'])->select()->toArray(); + + return ['count' => $count, 'lists' => $lists]; + } + + /** + * NOTE: 获取主营类目 + * @author: 张无忌 + * @return array + */ + public static function getCategory() + { + try { + $model = new ShopLevel(); + return $model->field(true) + ->where('del', 0) + ->order('id', 'desc') + ->select()->toArray(); + } catch (\Exception $e) { + return []; + } + } + + public static function add($post) + { + try{ + $userLevel = ShopLevel::where(['name'=>trim($post['name']), 'del'=>0])->findOrEmpty(); + if(!$userLevel->isEmpty()) { + throw new \think\Exception('等级名称已被使用,请更换后重试'); + } + $time = time(); + $data = [ + 'name' => trim($post['name']), + 'bond' => $post['bond']??0.00, + 'rate' => $post['rate']??0.00, + 'quota' => $post['quota']??0.00, + 'task_level' => $post['task_level']??0, + 'is_show' => $post['is_show']??1, + 'create_time' => $time, + 'update_time' => $time, + 'del' => 0 + ]; + ShopLevel::create($data); + return true; + }catch(\Exception $e) { + self::$error = $e->getMessage(); + return false; + } + } + + public static function detail($id) + { + $detail = ShopLevel::where(['id'=>$id])->findOrEmpty(); + if($detail->isEmpty()) { + return []; + } + $detail = $detail->toArray(); + return $detail; + } + + public static function edit($post) + { + try{ + $userLevel = ShopLevel::where([ + ['name', '=', trim($post['name'])], + ['del', '=', 0], + ['id', '<>', $post['id']] + ])->findOrEmpty(); + if(!$userLevel->isEmpty()) { + throw new \think\Exception('名称已被使用,请更换后重试'); + } + $time = time(); + $data = [ + 'name' => trim($post['name']), + 'bond' => $post['bond']??0.00, + 'rate' => $post['rate']??0.00, + 'quota' => $post['quota']??0.00, + 'task_level' => $post['task_level']??0, + 'is_show' => $post['is_show']??1, + 'create_time' => $time, + 'update_time' => $time, + 'del' => 0 + ]; + ShopLevel::update($data); + return true; + }catch(\Exception $e) { + self::$error = $e->getMessage(); + return false; + } + } + + public static function del($id) + { + try{ + $data = [ + 'id' => $id, + 'del' => 1, + 'update_time' => time() + ]; + ShopLevel::update($data); + return true; + }catch(\Exception $e) { + self::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 隐藏 + * @Author: 张无忌 + * @param $id + * @return bool + */ + public static function hide($id) + { + try { + $model = new ShopLevel(); + $category = $model->findOrEmpty($id)->toArray(); + + ShopLevel::update([ + 'is_show' => !$category['is_show'], + 'update_time' => time() + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + +} diff --git a/app/admin/logic/shop/ShopVipLogic.php b/app/admin/logic/shop/ShopVipLogic.php new file mode 100644 index 0000000..f27b21f --- /dev/null +++ b/app/admin/logic/shop/ShopVipLogic.php @@ -0,0 +1,141 @@ +0])->count(); + $lists = ShopVip::where(['del'=>0])->order('id', 'desc')->page($get['page'], $get['limit'])->select()->toArray(); + + return ['count' => $count, 'lists' => $lists]; + } + + public static function add($post) + { + try{ + $userLevel = ShopVip::where(['name'=>trim($post['name']), 'del'=>0])->findOrEmpty(); + if(!$userLevel->isEmpty()) { + throw new \think\Exception('等级名称已被使用,请更换后重试'); + } + $time = time(); + $data = [ + 'name' => trim($post['name']), + 'create_time' => $time, + 'update_time' => $time, + 'del' => 0 + ]; + ShopVip::create($data); + return true; + }catch(\Exception $e) { + self::$error = $e->getMessage(); + return false; + } + } + + public static function detail($id) + { + $detail = ShopVip::where(['id'=>$id])->findOrEmpty(); + if($detail->isEmpty()) { + return []; + } + $detail = $detail->toArray(); + return $detail; + } + + public static function edit($post) + { + try{ + $userLevel = ShopVip::where([ + ['name', '=', trim($post['name'])], + ['del', '=', 0], + ['id', '<>', $post['id']] + ])->findOrEmpty(); + if(!$userLevel->isEmpty()) { + throw new \think\Exception('名称已被使用,请更换后重试'); + } + $time = time(); + $data = [ + 'name' => trim($post['name']), + 'update_time' => $time, + 'del' => 0 + ]; + ShopLevel::update($data); + return true; + }catch(\Exception $e) { + self::$error = $e->getMessage(); + return false; + } + } + + public static function del($id) + { + try{ + $data = [ + 'id' => $id, + 'del' => 1, + 'update_time' => time() + ]; + ShopVip::update($data); + return true; + }catch(\Exception $e) { + self::$error = $e->getMessage(); + return false; + } + } + + /** + * @Notes: 隐藏 + * @Author: 张无忌 + * @param $id + * @return bool + */ + public static function hide($id) + { + try { + $model = new ShopVip(); + $category = $model->findOrEmpty($id)->toArray(); + + ShopVip::update([ + 'is_show' => !$category['is_show'], + 'update_time' => time() + ], ['id'=>$id]); + + return true; + } catch (\Exception $e) { + static::$error = $e->getMessage(); + return false; + } + } + + /** + * NOTE: 获取主营类目 + * @author: 张无忌 + * @return array + */ + public static function getCategory() + { + try { + $model = new ShopVip(); + return $model->field(true) + ->where('del', 0) + ->order('id', 'desc') + ->select()->toArray(); + } catch (\Exception $e) { + return []; + } + } + + +} diff --git a/app/admin/logic/shop/StoreLogic.php b/app/admin/logic/shop/StoreLogic.php index 2a187be..d56de08 100644 --- a/app/admin/logic/shop/StoreLogic.php +++ b/app/admin/logic/shop/StoreLogic.php @@ -104,6 +104,7 @@ class StoreLogic extends Logic { $model = new Shop(); $detail = $model->json(['other_qualifications'],true)->findOrEmpty($id)->toArray(); + $detail['expire_time'] = $detail['expire_time'] == '无期限' ? 0 : $detail['expire_time']; $detail['business_license'] = $detail['business_license'] ? UrlServer::getFileUrl($detail['business_license']) : ''; @@ -112,7 +113,6 @@ class StoreLogic extends Logic $val = UrlServer::getFileUrl($val); } } - return $detail; } @@ -241,6 +241,8 @@ class StoreLogic extends Logic { try { Shop::update([ + 'shop_role' => $post['shop_role'] ?? 0, + 'level' => $post['level'] ?? 0, 'is_distribution' => $post['is_distribution'] ?? 0, 'is_recommend' => $post['is_recommend'] ?? 0, 'is_pay' => $post['is_pay'] ?? 1, //是否开启支付功能,默认开启 diff --git a/app/admin/logic/user/SvipRightLogic.php b/app/admin/logic/user/SvipRightLogic.php new file mode 100644 index 0000000..fe5818f --- /dev/null +++ b/app/admin/logic/user/SvipRightLogic.php @@ -0,0 +1,112 @@ +0])->count(); + $lists = UserSvipRight::where(['del'=>0])->order('sort', 'desc')->page($get['page'], $get['limit'])->select()->toArray(); + + foreach ($lists as &$item){ + $item['image'] = UrlServer::getFileUrl($item['image']); + } + return ['count' => $count, 'lists' => $lists]; + } + + public static function add($post) + { + try{ + $userLevel = UserSvipRight::where(['title'=>trim($post['title']), 'del'=>0])->findOrEmpty(); + if(!$userLevel->isEmpty()) { + throw new \think\Exception('权益名称已被使用,请更换后重试'); + } + $time = time(); + $data = [ + 'title' => trim($post['title']), + 'show_title' => trim($post['show_title']), + 'image' => clearDomain($post['image']), + 'explain' => trim($post['explain']), +// 'number' => trim($post['number']), + 'sort' => $post['sort'], + 'create_time' => $time, + 'update_time' => $time, + 'del' => 0 + ]; + UserSvipRight::create($data); + return true; + }catch(\Exception $e) { + self::$error = $e->getMessage(); + return false; + } + } + + public static function detail($id) + { + $detail = UserSvipRight::where(['id'=>$id])->findOrEmpty(); + if($detail->isEmpty()) { + return []; + } + $detail = $detail->toArray(); + $detail['image'] = UrlServer::getFileUrl($detail['image']); + return $detail; + } + + public static function edit($post) + { + try{ + $userLevel = UserSvipRight::where([ + ['title', '=', trim($post['title'])], + ['del', '=', 0], + ['id', '<>', $post['id']] + ])->findOrEmpty(); + if(!$userLevel->isEmpty()) { + throw new \think\Exception('权益名称已被使用,请更换后重试'); + } + $time = time(); + $data = [ + 'id' => $post['id'], + 'title' => trim($post['title']), + 'show_title' => trim($post['show_title']), + 'image' => clearDomain($post['image']), + 'explain' => trim($post['explain']), +// 'number' => trim($post['number']), + 'sort' => $post['sort'], + 'create_time' => $time, + 'update_time' => $time, + 'del' => 0 + ]; + UserSvipRight::update($data); + return true; + }catch(\Exception $e) { + self::$error = $e->getMessage(); + return false; + } + } + + public static function del($id) + { + try{ + $data = [ + 'id' => $id, + 'del' => 1, + 'update_time' => time() + ]; + UserSvipRight::update($data); + return true; + }catch(\Exception $e) { + self::$error = $e->getMessage(); + return false; + } + } + +} diff --git a/app/admin/view/financeService/contract/add.html b/app/admin/view/financeService/contract/add.html new file mode 100644 index 0000000..87aec16 --- /dev/null +++ b/app/admin/view/financeService/contract/add.html @@ -0,0 +1,248 @@ +{layout name="layout2" /} + + +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ + + +
+ +
+ +
+
+ +
+ +
+ +
+
+ + +
+ +
+ +
+
+ +
+ +
+ +
+
+ + +
+ +
+ +
+
+ +
+ +
+
+ + +
+
+
+ + +
+ +
+
+
+ + diff --git a/app/admin/view/financeService/contract/edit.html b/app/admin/view/financeService/contract/edit.html new file mode 100644 index 0000000..9c52185 --- /dev/null +++ b/app/admin/view/financeService/contract/edit.html @@ -0,0 +1,258 @@ +{layout name="layout2" /} + + +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ + + +
+ +
+
+ +
+
+
+
+ +
+
+
+ + +
+ +
+ +
+
+ +
+ +
+ +
+
+ + +
+ +
+ +
+
+ +
+ +
+
+ + {if !empty($detail.path)} + +
+ + +
+ {else/} + + {/if} +
+
+
+ + +
+ +
+
+
+ + diff --git a/app/admin/view/financeService/contract/lists.html b/app/admin/view/financeService/contract/lists.html new file mode 100644 index 0000000..817be61 --- /dev/null +++ b/app/admin/view/financeService/contract/lists.html @@ -0,0 +1,200 @@ +{layout name="layout1" /} + +
+
+ +
+
+
+ +
+

*平台的合同管理中心。

+
+
+
+
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ 搜索 + 重置 +
+
+
+ + +
+ + +
+ + + +
+ +
+
+ + diff --git a/app/admin/view/financeService/contract_cate/add.html b/app/admin/view/financeService/contract_cate/add.html new file mode 100644 index 0000000..c5efea0 --- /dev/null +++ b/app/admin/view/financeService/contract_cate/add.html @@ -0,0 +1,23 @@ +{layout name="layout2" /} +
+
+
+ +
+ +
+
+ +
+ +
+ + +
+
+ +
+ +
+
+
diff --git a/app/admin/view/financeService/contract_cate/edit.html b/app/admin/view/financeService/contract_cate/edit.html new file mode 100644 index 0000000..d202217 --- /dev/null +++ b/app/admin/view/financeService/contract_cate/edit.html @@ -0,0 +1,23 @@ +{layout name="layout2" /} +
+
+
+ +
+ +
+
+ +
+ +
+ + +
+
+ +
+ +
+
+
diff --git a/app/admin/view/financeService/contract_cate/lists.html b/app/admin/view/financeService/contract_cate/lists.html new file mode 100644 index 0000000..335cb83 --- /dev/null +++ b/app/admin/view/financeService/contract_cate/lists.html @@ -0,0 +1,151 @@ +{layout name="layout1" /} + +
+
+ +
+
+
+ +
+

*平台维护合同分类,方便合同管理。

+
+
+
+
+ + +
+ + +
+ +
+ +
+
+ + diff --git a/app/admin/view/job/job/add.html b/app/admin/view/job/job/add.html new file mode 100644 index 0000000..e7466cf --- /dev/null +++ b/app/admin/view/job/job/add.html @@ -0,0 +1,300 @@ +{layout name="layout2" /} + + +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ + +
+ +
+ +
+
+ + +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+
+ +
+
+ +
+
+ +
+
+
+ +
+ +
+ +
+
+ +
+ +
+ + +
+
+ + + + + + + +
+ +
+ +
+
+ + +
+ +
+
+
+ + diff --git a/app/admin/view/job/job/audit.html b/app/admin/view/job/job/audit.html new file mode 100644 index 0000000..3125604 --- /dev/null +++ b/app/admin/view/job/job/audit.html @@ -0,0 +1,26 @@ +{layout name="layout2" /} + +
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+
diff --git a/app/admin/view/job/job/detail.html b/app/admin/view/job/job/detail.html new file mode 100644 index 0000000..e1eebba --- /dev/null +++ b/app/admin/view/job/job/detail.html @@ -0,0 +1,260 @@ +{layout name="layout2" /} + + +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ + +
+ +
+ +
+
+ + +
+ +
+ +
+
+ + +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ + +
+
+ + +
+ +
+ +
+
+ +
+ +
+
+
+ + diff --git a/app/admin/view/job/job/edit.html b/app/admin/view/job/job/edit.html new file mode 100644 index 0000000..5d4f8ed --- /dev/null +++ b/app/admin/view/job/job/edit.html @@ -0,0 +1,295 @@ +{layout name="layout2" /} + + +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ + +
+ +
+ +
+
+ + +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+
+ +
+
+ +
+
+ +
+
+
+ +
+ +
+ +
+
+ +
+ +
+ + +
+
+ + + +
+ +
+ +
+
+ +
+ +
+
+
+ + diff --git a/app/admin/view/job/job/lists.html b/app/admin/view/job/job/lists.html new file mode 100644 index 0000000..3505698 --- /dev/null +++ b/app/admin/view/job/job/lists.html @@ -0,0 +1,314 @@ +{layout name="layout1" /} + +
+
+ +
+
+
+ +
+

*平台的招聘中心。用户可在商城查看。

+

*排序值越小越前,排序值相同时新增在前。

+
+
+
+
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ 搜索 + 重置 +
+
+
+ + +
+ + +
+ + + + +
+ +
+
+ + diff --git a/app/admin/view/job/job_cate/add.html b/app/admin/view/job/job_cate/add.html new file mode 100644 index 0000000..46423e6 --- /dev/null +++ b/app/admin/view/job/job_cate/add.html @@ -0,0 +1,35 @@ +{layout name="layout2" /} +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ + +
+
+ +
+ +
+
+
diff --git a/app/admin/view/job/job_cate/edit.html b/app/admin/view/job/job_cate/edit.html new file mode 100644 index 0000000..5cec8c0 --- /dev/null +++ b/app/admin/view/job/job_cate/edit.html @@ -0,0 +1,35 @@ +{layout name="layout2" /} +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ + +
+
+ +
+ +
+
+
diff --git a/app/admin/view/job/job_cate/lists.html b/app/admin/view/job/job_cate/lists.html new file mode 100644 index 0000000..dec5610 --- /dev/null +++ b/app/admin/view/job/job_cate/lists.html @@ -0,0 +1,152 @@ +{layout name="layout1" /} + +
+
+ +
+
+
+ +
+

*平台维护招聘职位分类,方便帮助招聘模块。

+
+
+
+
+ + +
+ + +
+ +
+ +
+
+ + diff --git a/app/admin/view/job/job_industry/add.html b/app/admin/view/job/job_industry/add.html new file mode 100644 index 0000000..3861747 --- /dev/null +++ b/app/admin/view/job/job_industry/add.html @@ -0,0 +1,35 @@ +{layout name="layout2" /} +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ + +
+
+ +
+ +
+
+
diff --git a/app/admin/view/job/job_industry/edit.html b/app/admin/view/job/job_industry/edit.html new file mode 100644 index 0000000..96bee5d --- /dev/null +++ b/app/admin/view/job/job_industry/edit.html @@ -0,0 +1,35 @@ +{layout name="layout2" /} +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ + +
+
+ +
+ +
+
+
diff --git a/app/admin/view/job/job_industry/lists.html b/app/admin/view/job/job_industry/lists.html new file mode 100644 index 0000000..0cdfc85 --- /dev/null +++ b/app/admin/view/job/job_industry/lists.html @@ -0,0 +1,152 @@ +{layout name="layout1" /} + +
+
+ +
+
+
+ +
+

*平台维护招聘行业分类,方便帮助招聘模块。

+
+
+
+
+ + +
+ + +
+ +
+ +
+
+ + diff --git a/app/admin/view/job/job_salary/add.html b/app/admin/view/job/job_salary/add.html new file mode 100644 index 0000000..6e9592e --- /dev/null +++ b/app/admin/view/job/job_salary/add.html @@ -0,0 +1,23 @@ +{layout name="layout2" /} +
+
+
+ +
+ +
+
+ +
+ +
+ + +
+
+ +
+ +
+
+
diff --git a/app/admin/view/job/job_salary/edit.html b/app/admin/view/job/job_salary/edit.html new file mode 100644 index 0000000..4e79867 --- /dev/null +++ b/app/admin/view/job/job_salary/edit.html @@ -0,0 +1,24 @@ +{layout name="layout2" /} +
+
+ +
+ +
+ +
+
+ +
+ +
+ + +
+
+ +
+ +
+
+
diff --git a/app/admin/view/job/job_salary/lists.html b/app/admin/view/job/job_salary/lists.html new file mode 100644 index 0000000..9ba05c9 --- /dev/null +++ b/app/admin/view/job/job_salary/lists.html @@ -0,0 +1,150 @@ +{layout name="layout1" /} + +
+
+ +
+
+
+ +
+

*平台维护招聘薪资分类,方便帮助招聘模块。

+
+
+
+
+ + +
+ + +
+ +
+ +
+
+ + diff --git a/app/admin/view/legal/legal/add.html b/app/admin/view/legal/legal/add.html new file mode 100644 index 0000000..150a9b0 --- /dev/null +++ b/app/admin/view/legal/legal/add.html @@ -0,0 +1,251 @@ +{layout name="layout2" /} + + +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ + +
+ +
+ +
+
+ +
+ +
+ +
建议尺寸:500*500像
+
+
+ + +
+ + +
+
+ + 建议尺寸:800*800像素,最多上传5张 +
+ +
+ +
+ +
+
+ + +
+ +
+ + +
+
+ +
+ +
+ +
+
+ +
+ +
+
+
+ + diff --git a/app/admin/view/legal/legal/edit.html b/app/admin/view/legal/legal/edit.html new file mode 100644 index 0000000..324b832 --- /dev/null +++ b/app/admin/view/legal/legal/edit.html @@ -0,0 +1,270 @@ +{layout name="layout2" /} + + +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
建议尺寸:500*500像
+
+
+ +
+ +
+ {foreach $detail['images_arr'] as $val} +
+ img + +
x
+
+ {/foreach} + +
+
+
+ + 建议尺寸:800*800像素,最多上传5张 +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ + + +
+ +
+ + +
+
+ +
+ +
+ +
+
+ +
+ +
+
+
+ + diff --git a/app/admin/view/legal/legal/handle.html b/app/admin/view/legal/legal/handle.html new file mode 100644 index 0000000..0ff8734 --- /dev/null +++ b/app/admin/view/legal/legal/handle.html @@ -0,0 +1,19 @@ +{layout name="layout2" /} + +
+
+ +
+ +
+
+
+ +
+
diff --git a/app/admin/view/legal/legal/lists.html b/app/admin/view/legal/legal/lists.html new file mode 100644 index 0000000..bf62dd0 --- /dev/null +++ b/app/admin/view/legal/legal/lists.html @@ -0,0 +1,185 @@ +{layout name="layout1" /} + +
+
+ +
+
+
+ +
+

*平台的法律援助中心。用户可在商城查看。

+

*排序值越小越前,排序值相同时新增在前。

+
+
+
+
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ 搜索 + 重置 +
+
+
+ + +
+
+ + + +
+ +
+
+ + diff --git a/app/admin/view/legal/legal_case/add.html b/app/admin/view/legal/legal_case/add.html new file mode 100644 index 0000000..150a9b0 --- /dev/null +++ b/app/admin/view/legal/legal_case/add.html @@ -0,0 +1,251 @@ +{layout name="layout2" /} + + +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ + +
+ +
+ +
+
+ +
+ +
+ +
建议尺寸:500*500像
+
+
+ + +
+ + +
+
+ + 建议尺寸:800*800像素,最多上传5张 +
+ +
+ +
+ +
+
+ + +
+ +
+ + +
+
+ +
+ +
+ +
+
+ +
+ +
+
+
+ + diff --git a/app/admin/view/legal/legal_case/edit.html b/app/admin/view/legal/legal_case/edit.html new file mode 100644 index 0000000..324b832 --- /dev/null +++ b/app/admin/view/legal/legal_case/edit.html @@ -0,0 +1,270 @@ +{layout name="layout2" /} + + +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
建议尺寸:500*500像
+
+
+ +
+ +
+ {foreach $detail['images_arr'] as $val} +
+ img + +
x
+
+ {/foreach} + +
+
+
+ + 建议尺寸:800*800像素,最多上传5张 +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ + + +
+ +
+ + +
+
+ +
+ +
+ +
+
+ +
+ +
+
+
+ + diff --git a/app/admin/view/legal/legal_case/lists.html b/app/admin/view/legal/legal_case/lists.html new file mode 100644 index 0000000..ff83b60 --- /dev/null +++ b/app/admin/view/legal/legal_case/lists.html @@ -0,0 +1,210 @@ +{layout name="layout1" /} + +
+
+ +
+
+
+ +
+

*平台的法律援助案例管理。用户可在商城的援助查看。

+
+
+
+
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ 搜索 + 重置 +
+
+
+ + +
+ + +
+ + +
+ +
+
+ + diff --git a/app/admin/view/legal/legal_cate/add.html b/app/admin/view/legal/legal_cate/add.html new file mode 100644 index 0000000..46423e6 --- /dev/null +++ b/app/admin/view/legal/legal_cate/add.html @@ -0,0 +1,35 @@ +{layout name="layout2" /} +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ + +
+
+ +
+ +
+
+
diff --git a/app/admin/view/legal/legal_cate/edit.html b/app/admin/view/legal/legal_cate/edit.html new file mode 100644 index 0000000..5cec8c0 --- /dev/null +++ b/app/admin/view/legal/legal_cate/edit.html @@ -0,0 +1,35 @@ +{layout name="layout2" /} +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ + +
+
+ +
+ +
+
+
diff --git a/app/admin/view/legal/legal_cate/lists.html b/app/admin/view/legal/legal_cate/lists.html new file mode 100644 index 0000000..095ab3a --- /dev/null +++ b/app/admin/view/legal/legal_cate/lists.html @@ -0,0 +1,152 @@ +{layout name="layout1" /} + +
+
+ +
+
+
+ +
+

*平台维护法律援助分类,方便法律援助模块。

+
+
+
+
+ + +
+ + +
+ +
+ +
+
+ + diff --git a/app/admin/view/legal/legal_doc/add.html b/app/admin/view/legal/legal_doc/add.html new file mode 100644 index 0000000..02e7d56 --- /dev/null +++ b/app/admin/view/legal/legal_doc/add.html @@ -0,0 +1,260 @@ +{layout name="layout2" /} + + +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ + + + + + + + + +
+ +
+ +
建议尺寸:500*500像
+
+
+ + +
+ + +
+
+ + 建议尺寸:800*800像素,最多上传5张 +
+ + +
+ +
+
+ + +
+
+ 用户下载的文书附件 +
+
+
+ + +
+ +
+ + +
+
+ +
+ +
+ +
+
+ +
+ +
+
+
+ + diff --git a/app/admin/view/legal/legal_doc/edit.html b/app/admin/view/legal/legal_doc/edit.html new file mode 100644 index 0000000..2c57c55 --- /dev/null +++ b/app/admin/view/legal/legal_doc/edit.html @@ -0,0 +1,284 @@ +{layout name="layout2" /} + + +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
建议尺寸:500*500像
+
+
+ +
+ +
+ {foreach $detail['images_arr'] as $val} +
+ img + +
x
+
+ {/foreach} + +
+
+
+ + 建议尺寸:800*800像素,最多上传5张 +
+ + +
+ +
+
+ + {if !empty($detail.path)} + +
+ + +
+ {else/} + + {/if} + + + + +
+
+ 用户下载的文书附件 +
+
+
+ +
+ +
+ + +
+
+ +
+ +
+ +
+
+ +
+ +
+
+
+ + diff --git a/app/admin/view/legal/legal_doc/lists.html b/app/admin/view/legal/legal_doc/lists.html new file mode 100644 index 0000000..26e4391 --- /dev/null +++ b/app/admin/view/legal/legal_doc/lists.html @@ -0,0 +1,217 @@ +{layout name="layout1" /} + +
+
+ +
+
+
+ +
+

*平台的法律援助文书管理。用户可在商城的援助查看。

+
+
+
+
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ 搜索 + 重置 +
+
+
+ + +
+ + +
+ + + +
+ +
+
+ + diff --git a/app/admin/view/shop/apply/audit2.html b/app/admin/view/shop/apply/audit2.html new file mode 100644 index 0000000..650576a --- /dev/null +++ b/app/admin/view/shop/apply/audit2.html @@ -0,0 +1,25 @@ +{layout name="layout2" /} + +
+
+
+ +
+ + +
+
审核通过后会自动创建商家账号
+
+ +
+ +
+ +
+
+ +
+ +
+
+
\ No newline at end of file diff --git a/app/admin/view/shop/apply/detail.html b/app/admin/view/shop/apply/detail.html index e5fca07..37697e9 100644 --- a/app/admin/view/shop/apply/detail.html +++ b/app/admin/view/shop/apply/detail.html @@ -19,13 +19,30 @@
联系人名:
{$detail.nickname}
+ +
+
商家账号:
+
{$detail.account}
+
+
+
公司地址:
+
{$detail.address}
+
联系电话:
{$detail.mobile}
-
商家账号:
-
{$detail.account}
+
公司法人:
+
{$detail.person_name}
+
+
+
法人身份证:
+
{$detail.idcard}
+
+
+
营业执照:
+
营业执照
审核状态:
@@ -37,4 +54,4 @@
- \ No newline at end of file + diff --git a/app/admin/view/shop/apply/detail2.html b/app/admin/view/shop/apply/detail2.html new file mode 100644 index 0000000..1bfdf71 --- /dev/null +++ b/app/admin/view/shop/apply/detail2.html @@ -0,0 +1,43 @@ +{layout name="layout2" /} + + +
+
+
+
+
名称:
+
{$detail.name}
+
+ +
+
商家账号:
+
{$detail.account}
+
+ +
+
联系电话:
+
{$detail.mobile}
+
+ +
+
法人身份证:
+
{$detail.idcard}
+
+
+
安拆证明:
+
安拆证明
+
+
+
审核状态:
+
{$detail.audit_status}
+
+
+
审核说明:
+
{$detail.audit_explain}
+
+
+
+
diff --git a/app/admin/view/shop/apply/lists.html b/app/admin/view/shop/apply/lists.html index 4fcba75..6fedf84 100644 --- a/app/admin/view/shop/apply/lists.html +++ b/app/admin/view/shop/apply/lists.html @@ -62,7 +62,7 @@
\ No newline at end of file + diff --git a/app/admin/view/shop/apply/lists2.html b/app/admin/view/shop/apply/lists2.html new file mode 100644 index 0000000..e8beef2 --- /dev/null +++ b/app/admin/view/shop/apply/lists2.html @@ -0,0 +1,218 @@ +{layout name="layout1" /} + +
+
+ +
+
+
+ +
+

*审核商家入驻申请,审核通过后会自动创建商家。

+

*审核通过的商家初始营业状态为:暂停营业。

+
+
+
+
+ + +
+
+
+ +
+ +
+
+
+ +
+
+ +
+
+
-
+
+
+ +
+
+
+
+ 搜索 + 重置 +
+
+
+ + +
+
    +
  • 待审核({$totalCount.stay})
  • +
  • 审核通过({$totalCount.ok})
  • +
  • 审核拒绝({$totalCount.refuse})
  • +
+
+
+ + +
+
+ +
+
+ + diff --git a/app/admin/view/shop/shop_level/add.html b/app/admin/view/shop/shop_level/add.html new file mode 100644 index 0000000..44c89ae --- /dev/null +++ b/app/admin/view/shop/shop_level/add.html @@ -0,0 +1,62 @@ +{layout name="layout2" /} + +
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+
+ diff --git a/app/admin/view/shop/shop_level/edit.html b/app/admin/view/shop/shop_level/edit.html new file mode 100644 index 0000000..b9bd359 --- /dev/null +++ b/app/admin/view/shop/shop_level/edit.html @@ -0,0 +1,61 @@ +{layout name="layout2" /} + +
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+
+ diff --git a/app/admin/view/shop/shop_level/lists.html b/app/admin/view/shop/shop_level/lists.html new file mode 100644 index 0000000..b20febc --- /dev/null +++ b/app/admin/view/shop/shop_level/lists.html @@ -0,0 +1,233 @@ +{layout name="layout1" /} +
+
+ +
+
+ +
+
+ +
+ +
+ + +
+
+
+ +
+
+ + + diff --git a/app/admin/view/shop/shop_level/set.html b/app/admin/view/shop/shop_level/set.html new file mode 100644 index 0000000..25bc9fe --- /dev/null +++ b/app/admin/view/shop/shop_level/set.html @@ -0,0 +1,50 @@ +{layout name="layout2" /} + +
+ +
+ +
+ +
+
+
+
+ +
在会员中心显示的等级说明
+
+
+ +
+
+
+ +
+
+ \ No newline at end of file diff --git a/app/admin/view/shop/store/set.html b/app/admin/view/shop/store/set.html index a1967fe..77f518f 100644 --- a/app/admin/view/shop/store/set.html +++ b/app/admin/view/shop/store/set.html @@ -31,6 +31,32 @@
默认开启,关闭时商品详情则显示咨询商家按钮
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
@@ -45,4 +71,4 @@
-
\ No newline at end of file +
diff --git a/app/admin/view/user/svip_right/add.html b/app/admin/view/user/svip_right/add.html new file mode 100644 index 0000000..ce35e8f --- /dev/null +++ b/app/admin/view/user/svip_right/add.html @@ -0,0 +1,77 @@ +{layout name="layout2" /} + +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
建议尺寸:100*100像素,jpg,jpeg,png图片类型
+
+
+ + +
+ +
+ +
+
+
+ +
+ +
+
+ + +
+ +
+
+ \ No newline at end of file diff --git a/app/admin/view/user/svip_right/edit.html b/app/admin/view/user/svip_right/edit.html new file mode 100644 index 0000000..167b3de --- /dev/null +++ b/app/admin/view/user/svip_right/edit.html @@ -0,0 +1,121 @@ +{layout name="layout2" /} + +
+ + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
建议尺寸:100*100像素,jpg,jpeg,png图片类型
+ +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+
+ + \ No newline at end of file diff --git a/app/admin/view/user/svip_right/lists.html b/app/admin/view/user/svip_right/lists.html new file mode 100644 index 0000000..2f434b1 --- /dev/null +++ b/app/admin/view/user/svip_right/lists.html @@ -0,0 +1,208 @@ +{layout name="layout1" /} +
+
+ +
+
+ +
+
+ +
+ +
+ + + +
+
+ +
+ +
+
+ + + diff --git a/app/admin/view/user/svip_right/set.html b/app/admin/view/user/svip_right/set.html new file mode 100644 index 0000000..25bc9fe --- /dev/null +++ b/app/admin/view/user/svip_right/set.html @@ -0,0 +1,50 @@ +{layout name="layout2" /} + +
+ +
+ +
+ +
+
+
+
+ +
在会员中心显示的等级说明
+
+
+ +
+
+
+ +
+
+ \ No newline at end of file diff --git a/app/common/model/financeService/Contract.php b/app/common/model/financeService/Contract.php new file mode 100644 index 0000000..109385d --- /dev/null +++ b/app/common/model/financeService/Contract.php @@ -0,0 +1,12 @@ + + @@ -38,13 +38,30 @@
联系人名:
+ +
+
商家账号:
+
+
+
+
公司地址:
+
+
联系电话:
-
商家账号:
-
+
公司法人:
+
+
+
+
法人身份证:
+
+
+
+
营业执照:
+
营业执照
审核状态:
@@ -57,5 +74,6 @@ + \ No newline at end of file diff --git a/runtime/admin/temp/909200ed5b7811be2dbd760065d4deb2.php b/runtime/admin/temp/909200ed5b7811be2dbd760065d4deb2.php index 796f5ba..c7a70eb 100644 --- a/runtime/admin/temp/909200ed5b7811be2dbd760065d4deb2.php +++ b/runtime/admin/temp/909200ed5b7811be2dbd760065d4deb2.php @@ -1,4 +1,4 @@ - + @@ -79,12 +79,15 @@ margin: 4px; text-align: center; } + .layui-form-label{ + width: 120px !important; + }
- +
@@ -92,20 +95,6 @@
- -
- -
-
- -
- -
- -
-
- -
@@ -130,6 +119,36 @@
+ +
+ +
+
+ + +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ + +
@@ -150,7 +169,7 @@
- +
@@ -204,7 +223,7 @@ //==========================================上传证书start========================================================= - like.certUpload('.cert-add', '?local=1&sub_dir=resource', ''); + like.certUpload('.cert-add', '?sub_dir=resource', ''); //==========================================上传证书end=========================================================== // 删除按钮的显示与隐藏 $(document).on('mouseover', '.pay-img', function () { @@ -232,5 +251,6 @@ }) + \ No newline at end of file diff --git a/runtime/admin/temp/b15ab77bac47d33b7fe5b254d90ba8c3.php b/runtime/admin/temp/b15ab77bac47d33b7fe5b254d90ba8c3.php index 7f4ff87..03c03ce 100644 --- a/runtime/admin/temp/b15ab77bac47d33b7fe5b254d90ba8c3.php +++ b/runtime/admin/temp/b15ab77bac47d33b7fe5b254d90ba8c3.php @@ -1,4 +1,4 @@ - + @@ -50,6 +50,32 @@
默认开启,关闭时商品详情则显示咨询商家按钮
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
@@ -65,5 +91,6 @@
+ \ No newline at end of file diff --git a/runtime/admin/temp/ec96eb681e51ce8a3ca931e2b19e36c0.php b/runtime/admin/temp/ec96eb681e51ce8a3ca931e2b19e36c0.php index 46df0ef..617f08d 100644 --- a/runtime/admin/temp/ec96eb681e51ce8a3ca931e2b19e36c0.php +++ b/runtime/admin/temp/ec96eb681e51ce8a3ca931e2b19e36c0.php @@ -1,4 +1,4 @@ - + @@ -83,7 +83,7 @@
+ \ No newline at end of file diff --git a/runtime/cache/23/873d3988110ceeda2c4bdc4f945485.php b/runtime/cache/23/873d3988110ceeda2c4bdc4f945485.php index 773a6fb..84cbc14 100644 --- a/runtime/cache/23/873d3988110ceeda2c4bdc4f945485.php +++ b/runtime/cache/23/873d3988110ceeda2c4bdc4f945485.php @@ -1,4 +1,4 @@ -a:1:{i:0;s:75:"E:\waibao\ahbcqz\server\runtime\cache\45\ab3ad2419a7204a6ea4eedd2684368.php";} \ No newline at end of file +a:2:{i:0;s:75:"E:\waibao\ahbcqz\server\runtime\cache\45\ab3ad2419a7204a6ea4eedd2684368.php";i:1;s:75:"E:\waibao\ahbcqz\server\runtime\cache\16\8b8e4d3e08c771cc74750c28ad3105.php";} \ No newline at end of file diff --git a/runtime/cache/f9/bb91a1aa4584b80bdd1649c0e82e4a.php b/runtime/cache/f9/bb91a1aa4584b80bdd1649c0e82e4a.php index a5f41dd..eea5f31 100644 --- a/runtime/cache/f9/bb91a1aa4584b80bdd1649c0e82e4a.php +++ b/runtime/cache/f9/bb91a1aa4584b80bdd1649c0e82e4a.php @@ -1,4 +1,4 @@ -a:1:{s:13:"config_server";s:0:"";} \ No newline at end of file +a:1:{s:13:"config_server";s:5:"local";} \ No newline at end of file