作者 sgj

注册取消平台设置

@@ -43,11 +43,13 @@ class IndexController extends WeChatBaseController @@ -43,11 +43,13 @@ class IndexController extends WeChatBaseController
43 $this->error('已经注册过相关信息!','/'); 43 $this->error('已经注册过相关信息!','/');
44 } 44 }
45 $Hospital = new HospitalModel(); 45 $Hospital = new HospitalModel();
  46 + $hospital = $Hospital->getHospital();
46 $platform = $Hospital->getPlatment()->toArray(); 47 $platform = $Hospital->getPlatment()->toArray();
47 $Job = new JobModel(); 48 $Job = new JobModel();
48 $jobs = $Job->getJob()->toArray(); 49 $jobs = $Job->getJob()->toArray();
49 $this->assign('jobs', $jobs); 50 $this->assign('jobs', $jobs);
50 $this->assign('platform', $platform); 51 $this->assign('platform', $platform);
  52 + $this->assign('hospital', $hospital);
51 return $this->fetch(); 53 return $this->fetch();
52 } 54 }
53 55
@@ -33,7 +33,15 @@ @@ -33,7 +33,15 @@
33 33
34 $('.search').click(function (res) { 34 $('.search').click(function (res) {
35 35
36 - console.log(res); 36 + $.ajax({
  37 + url:'{:url(index)}',
  38 + type:'POST',
  39 + data:{
  40 + },
  41 + success:function (res) {
  42 + console.log(res)
  43 + }
  44 + })
37 // window.location.href="{:url('portal/serarch')}" 45 // window.location.href="{:url('portal/serarch')}"
38 }) 46 })
39 }) 47 })