示例#1
0
 private function btrProvinceValidate($province)
 {
     $m = new \Home\Model\AreaModel();
     $ret = $m->provinceValidate($province);
     $provincesValue = $ret['value'];
     $provinceField = $ret['field'];
     return array($provinceField, $provincesValue);
 }
 public function index()
 {
     //标记当前菜单为激活状态
     $currentmenu['saledata'] = "active";
     $m = new \Home\Model\AreaModel();
     $province = $m->getProvinces();
     $this->assign('province', $province);
     $this->assign('currentmenu', $currentmenu);
     $this->display();
 }
 public function queryCities($province)
 {
     $m = new \Home\Model\AreaModel();
     $this->ajaxReturn($m->getCitiesByProvince($province));
 }