Commit 3447c5cc authored by zfc's avatar zfc

后台url接口问题

parent 4be37874
......@@ -3,7 +3,6 @@
namespace app\api_broker\controller;
use app\api_broker\extend\Basic;
use app\index\controller\Agent;
use app\model\Agents;
use app\model\Users;
use app\model\UPhoneFollowPp;
......@@ -41,6 +40,7 @@ class Client extends Basic
* @throws \think\exception\DbException
*/
public function editClient() {
header('Access-Control-Allow-Origin:*');
if ($this->params['user_nick'] || $this->params['user_nick'] || $this->params['id']) {
if ($this->request->isPost()) {
if ($this->params['id']) {
......@@ -60,6 +60,7 @@ class Client extends Basic
$this->msg = 'user_nick or user_phone or id is null';
}
return $this->response($this->code, $this->msg,$this->data);
}
/**经纪人搜索
......@@ -69,6 +70,7 @@ class Client extends Basic
* @throws \think\exception\DbException
*/
public function agentSearch(){
header('Access-Control-Allow-Origin:*');
$table= new Agents;
$data['msg'] = '';
$params = $this->request->param();
......
......@@ -138,8 +138,8 @@ Route::group('index', [
'lable' => ['index/label/index',['method'=>'get']], //标签列表
//数据统计
'RemarkFollowIndex'=>['index/Remark/RemarkFollowIndex',['method'=>'get']],//跟进列表主界面
'RemarkFollowList'=>['index/Remark/RemarkFollowList',['method'=>'get']],//跟进列表【接口】
'RemarkFollowIndex'=>['index/remark/RemarkFollowIndex',['method'=>'get']],//跟进列表主界面
'RemarkFollowList'=>['index/remark/RemarkFollowList',['method'=>'get']],//跟进列表【接口】
'phone_list'=>['index/Phone/index',['method'=>'get']],//隐私号码列表
'bindPhoneList'=>['index/Phone/bindPhoneList',['method'=>'get']],//绑定的隐私号码列表
'edit_aliYunPhone'=>['index/Phone/edit_aliYunPhone',['method'=>'get|post']],//新增或编辑中间号
......
......@@ -130,7 +130,7 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin
Edit:function(){//获取
$.ajax({
'type': 'GET',
'url' : '/index/saveAgent/group_id/',//获取编辑数据
'url' : '/index/saveAgent',//获取编辑数据
data: {"id":agent.house_id},
dataType: "json",
success: function (data) {
......
......@@ -67,7 +67,7 @@ define (['doT', 'text!temp/auth_template_tpl.html', 'css!style/home.css','pagina
Edit:function(){//获取
$.ajax({
'type': 'GET',
'url' : '/index/addAuth/',//获取编辑数据
'url' : '/index/addAuth',//获取编辑数据
data: {"id":auth.house_id},
dataType: "json",
success: function(data){
......
......@@ -76,7 +76,7 @@ authRule={
Edit:function(){//获取
$.ajax({
'type': 'GET',
'url' : '/index/updateAuthRule/',//获取编辑数据
'url' : '/index/updateAuthRule',//获取编辑数据
data: {"id":authRule.house_id},
dataType: "json",
success: function (data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment