Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
01027324
Commit
01027324
authored
Apr 12, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人修改
parent
4a982702
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
16 deletions
+19
-16
Broker.php
application/api_broker/controller/Broker.php
+1
-0
Client.php
application/api_broker/controller/Client.php
+1
-0
agent.js
public/resource/js/agent.js
+13
-8
get_auth_list_template_tpl.html
public/resource/template/get_auth_list_template_tpl.html
+4
-8
No files found.
application/api_broker/controller/Broker.php
View file @
01027324
...
@@ -49,6 +49,7 @@ class Broker extends Basic
...
@@ -49,6 +49,7 @@ class Broker extends Basic
$field
=
'id,device_id,store_id,auth_group_id,district_id,level,name,phone,password,sex,img,inviter_id,status'
;
$field
=
'id,device_id,store_id,auth_group_id,district_id,level,name,phone,password,sex,img,inviter_id,status'
;
$where
[
'phone'
]
=
$this
->
params
[
'phone'
];
$where
[
'phone'
]
=
$this
->
params
[
'phone'
];
$where
[
'id'
]
=
[
'<>'
,
1
];
$agents_data
=
$this
->
a_agents
->
getAgentInfo
(
$field
,
''
,
$where
);
$agents_data
=
$this
->
a_agents
->
getAgentInfo
(
$field
,
''
,
$where
);
if
(
empty
(
$agents_data
))
{
if
(
empty
(
$agents_data
))
{
...
...
application/api_broker/controller/Client.php
View file @
01027324
...
@@ -361,6 +361,7 @@ class Client extends Basic
...
@@ -361,6 +361,7 @@ class Client extends Basic
foreach
(
$data
[
'data'
]
as
$k
=>
$v
)
{
foreach
(
$data
[
'data'
]
as
$k
=>
$v
)
{
$data
[
'data'
][
$k
][
'user_pic'
]
=
HEADERIMGURL
.
$v
[
'user_pic'
];
$data
[
'data'
][
$k
][
'user_pic'
]
=
HEADERIMGURL
.
$v
[
'user_pic'
];
$data
[
'data'
][
$k
][
'user_phone'
]
=
hide_customer_phone
(
$v
[
'user_phone'
]);
$data
[
'data'
][
$k
][
'user_phone'
]
=
hide_customer_phone
(
$v
[
'user_phone'
]);
$data
[
'data'
][
$k
][
'create_time'
]
=
date
(
'Y-m-d'
,
strtotime
(
$v
[
'create_time'
]));
}
}
$data
[
'status'
]
=
200
;
$data
[
'status'
]
=
200
;
...
...
public/resource/js/agent.js
View file @
01027324
...
@@ -123,7 +123,6 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin
...
@@ -123,7 +123,6 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin
});
});
},
},
Edit_add
:
function
(){
Edit_add
:
function
(){
$
.
ajax
({
$
.
ajax
({
url
:
'/index/getAuth2'
,
url
:
'/index/getAuth2'
,
...
@@ -151,14 +150,20 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin
...
@@ -151,14 +150,20 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin
$
(
"#admin_off"
).
val
(
data
.
data
.
admin_off
);
$
(
"#admin_off"
).
val
(
data
.
data
.
admin_off
);
$
(
"#remarks"
).
val
(
data
.
data
.
remarks
);
$
(
"#remarks"
).
val
(
data
.
data
.
remarks
);
$
(
"#status"
).
val
(
data
.
data
.
status
);
$
(
"#status"
).
val
(
data
.
data
.
status
);
$
(
"#auth_group_id"
).
val
(
data
.
data
.
auth_group_id
);
//选中所属角色
$
(
"#auth_group_id option"
).
each
(
function
()
{
if
(
$
(
this
).
val
()
==
data
.
data
.
auth_group_id
)
{
$
(
this
).
attr
(
'selected'
,
'selected'
);
}
});
if
(
data
.
data
.
sex
==
'0'
){
if
(
data
.
data
.
sex
==
'0'
){
$
(
"#sex0"
).
attr
(
'checked'
,
true
);
$
(
"#sex0"
).
attr
(
'checked'
,
true
);
}
else
if
(
data
.
data
.
sex
==
'1'
){
}
else
if
(
data
.
data
.
sex
==
'1'
){
$
(
"#sex1"
).
attr
(
'checked'
,
true
);
$
(
"#sex1"
).
attr
(
'checked'
,
true
);
}
else
{
}
else
{
$
(
"#sex2"
).
attr
(
'checked'
,
true
);
$
(
"#sex2"
).
attr
(
'checked'
,
true
);
}
}
}
}
});
});
...
@@ -185,9 +190,9 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin
...
@@ -185,9 +190,9 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin
data
:
par
,
data
:
par
,
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
){
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
code
==
200
)
{
agent
.
getList
(
1
);
}
else
{
}
else
{
alert
(
data
.
msg
);
alert
(
data
.
msg
);
}
}
}
}
...
@@ -223,7 +228,6 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin
...
@@ -223,7 +228,6 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin
}
}
})
})
}
}
};
}
return
agent
;
return
agent
;
});
});
\ No newline at end of file
public/resource/template/get_auth_list_template_tpl.html
View file @
01027324
<script
id=
"get_auth_list"
type=
"text/template"
>
<script
id=
"get_auth_list"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
option
value
=
"[%= it[item]['id'] %]"
>
[
%=
it
[
item
][
"title"
]
%
]
<
/option
>
[
%
}
%
]
<
option
value
=
"[%= it[item]['id'] %]"
>
[
%=
it
[
item
][
"title"
]
%
]
<
/option
>
[
%
}
%
]
[
%
}
%
]
[
%
}
%
]
</script>
</script>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment