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
fd5c223a
Commit
fd5c223a
authored
Jul 11, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台拨打电话
parent
445c46d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
agent.html
application/index/view/agent/agent.html
+1
-1
user.js
public/resource/js/user.js
+26
-0
No files found.
application/index/view/agent/agent.html
View file @
fd5c223a
...
...
@@ -231,7 +231,7 @@
×
</button>
<h4
class=
"modal-title"
>
角色设置
绑定手机
</h4>
</div>
<div
class=
"modal-body"
>
...
...
public/resource/js/user.js
View file @
fd5c223a
...
...
@@ -145,6 +145,10 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
user
.
search_phone
();
}
});
//拨打手机号
$
(
document
).
on
(
"click"
,
"#user_call"
,
function
()
{
//手机号搜索客方
user
.
user_Call
();
});
//约带看 保存
$
(
document
).
on
(
"click"
,
".save-look"
,
function
()
{
//手机号搜索客方
user
.
save_look
();
...
...
@@ -392,6 +396,28 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
}
});
},
user_Call
:
function
()
{
//客户详情 点击拨打按钮
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
console
.
log
(
user_info_obj
);
var
params
=
{};
params
.
phone_a
=
user_info_obj
.
phone
;
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
params
.
user_id
=
$
(
'#cus_id'
);
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/broker/bindAXB'
,
data
:
params
,
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
'修改成功'
);
$
(
"#modal-record"
).
modal
(
'hide'
);
}
else
{
alert
(
data
.
msg
)
}
}
});
},
Submit_follow
:
function
()
{
//提交
var
params
=
{};
params
.
id
=
user
.
user_id
;
...
...
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