diff --git a/frontend/controllers/PhoneCenterController.php b/frontend/controllers/PhoneCenterController.php index f7c0224..4d7b850 100644 --- a/frontend/controllers/PhoneCenterController.php +++ b/frontend/controllers/PhoneCenterController.php @@ -256,8 +256,7 @@ public function actionDownload(){ $id = $request->get('phone_id',0); $assign_info = NetworkPhoneAssignT::findOne($id); -var_dump($assign_info); -exit; + return $this->render('sub-index',[ 'assign_info' => $assign_info ]); diff --git a/frontend/views/phone-center/sub-index.php b/frontend/views/phone-center/sub-index.php index 8d5f51a..dd495cf 100644 --- a/frontend/views/phone-center/sub-index.php +++ b/frontend/views/phone-center/sub-index.php @@ -59,10 +59,10 @@ use \common\libs\MyLib; } function create() { title = '新增小号'; - layer_show(title, '/phone-center/sub-edit?assign_id='); + layer_show(title, '/phone-center/sub-edit?assign_id=id?>'); } function link(id) { - $.get('/phone/ax-init',{id:id,assign_id:},function(obj){ + $.get('/phone/ax-init',{id:id,assign_id:id?>},function(obj){ parent.layer.msg(obj.msg); },'json');