作者:有点难 | 来源:互联网 | 2018-03-20 06:12
//选择地址
public function getAddress(){
$this->model = M('China');
$type = I('post.type');
switch ($type){
case 1: //选择一级省份
$this->getFirst();
break;
case 2: //选择二级市
$pid = I('post.pid');
$this->getSecond($pid);
break;
case 3: //选择三级县区
$cid = I('post.pid');
$this->getThird($cid);
break;
default:
break;
}
}