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
275a14d8
Commit
275a14d8
authored
Jul 11, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拨打电话
parent
429fab9b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
6 deletions
+54
-6
users_list.html
application/index/view/member/users_list.html
+15
-4
user.js
public/resource/js/user.js
+38
-1
user_template_tpl.html
public/resource/template/user_template_tpl.html
+1
-1
No files found.
application/index/view/member/users_list.html
View file @
275a14d8
...
@@ -203,6 +203,10 @@
...
@@ -203,6 +203,10 @@
cursor
:
pointer
cursor
:
pointer
}
}
#phone_title2
{
font-weight
:
600
;
font-size
:
36px
;
}
</style>
</style>
<!--导航star-->
<!--导航star-->
...
@@ -820,18 +824,25 @@
...
@@ -820,18 +824,25 @@
×
×
</button>
</button>
<h4
class=
"modal-title"
>
<h4
class=
"modal-title"
>
请使用13918937741的手机拨打该虚拟号
请使用
<span
id=
"phone_title"
>
</span>
的手机拨打该虚拟号
</h4>
</h4>
</div>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<input
type=
"hidden"
value=
""
id=
"delete_id"
/>
13918937765
<input
type=
"hidden"
value=
""
id=
"delete_id"
/>
<span
id=
"phone_title2"
>
</span>
</div>
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
没打通
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
id=
"unbind_call"
>
没打通
</button>
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"
confirm_delete
"
>
<button
type=
"button"
class=
"btn btn-primary"
id=
"
"
data-dismiss=
"modal
"
>
已拨打
已拨打
</button>
</button>
</div>
</div>
...
...
public/resource/js/user.js
View file @
275a14d8
...
@@ -5,6 +5,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -5,6 +5,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
pageSize
:
15
,
pageSize
:
15
,
/*每页显示多少条*/
/*每页显示多少条*/
user_id
:
0
,
user_id
:
0
,
user_phone
:
''
,
urls
:
''
,
urls
:
''
,
agent_id_two
:
''
,
agent_id_two
:
''
,
agent_id2
:
0
,
agent_id2
:
0
,
...
@@ -136,6 +137,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -136,6 +137,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击操作跟进详情
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击操作跟进详情
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
user_phone
=
$
(
this
).
attr
(
"data-phone"
);
user
.
Caozuo
();
user
.
Caozuo
();
});
});
$
(
document
).
on
(
"input"
,
"#set_father_id3"
,
function
()
{
//手机号搜索客方
$
(
document
).
on
(
"input"
,
"#set_father_id3"
,
function
()
{
//手机号搜索客方
...
@@ -149,6 +151,11 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -149,6 +151,11 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
$
(
document
).
on
(
"click"
,
"#user_call"
,
function
()
{
//手机号搜索客方
$
(
document
).
on
(
"click"
,
"#user_call"
,
function
()
{
//手机号搜索客方
user
.
user_Call
();
user
.
user_Call
();
});
});
//没打通手机号
$
(
document
).
on
(
"click"
,
"#unbind_call"
,
function
()
{
//手机号搜索客方
user
.
unbind_Call
();
});
//约带看 保存
//约带看 保存
$
(
document
).
on
(
"click"
,
".save-look"
,
function
()
{
//手机号搜索客方
$
(
document
).
on
(
"click"
,
".save-look"
,
function
()
{
//手机号搜索客方
user
.
save_look
();
user
.
save_look
();
...
@@ -401,6 +408,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -401,6 +408,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
console
.
log
(
user_info_obj
);
console
.
log
(
user_info_obj
);
var
params
=
{};
var
params
=
{};
params
.
phone_a
=
user_info_obj
.
phone
;
params
.
phone_a
=
user_info_obj
.
phone
;
$
(
'#phone_title'
).
html
(
user_info_obj
.
phone
);
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
params
.
user_id
=
user
.
user_id
;
params
.
user_id
=
user
.
user_id
;
console
.
log
(
params
);
console
.
log
(
params
);
...
@@ -411,7 +419,35 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -411,7 +419,35 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
alert
(
'修改成功'
);
// alert('修改成功');
console
.
log
(
data
.
data
.
data
.
phone
);
$
(
'#phone_title2'
).
html
(
data
.
data
.
data
.
phone
);
// $("#modal-record").modal('hide');
}
else
{
alert
(
data
.
msg
)
}
}
});
},
unbind_Call
:
function
()
{
//客户详情 点击拨打按钮 弹出框 没打通
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
console
.
log
(
user_info_obj
);
var
params
=
{};
params
.
user_id
=
user
.
user_id
;
params
.
phone_a
=
user_info_obj
.
phone
;
$
(
'#phone_title'
).
html
(
user_info_obj
.
phone
);
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
params
.
phone_x
=
$
(
'#phone_title2'
).
html
()
*
1
;
console
.
log
(
params
);
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/agentsUnBind'
,
data
:
params
,
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
data
.
msg
);
// $("#modal-record").modal('hide');
// $("#modal-record").modal('hide');
}
else
{
}
else
{
alert
(
data
.
msg
)
alert
(
data
.
msg
)
...
@@ -419,6 +455,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -419,6 +455,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
}
}
});
});
},
},
Submit_follow
:
function
()
{
//提交
Submit_follow
:
function
()
{
//提交
var
params
=
{};
var
params
=
{};
params
.
id
=
user
.
user_id
;
params
.
id
=
user
.
user_id
;
...
...
public/resource/template/user_template_tpl.html
View file @
275a14d8
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
[
%
}
%
]
[
%
}
%
]
<
/td
>
<
/td
>
<
td
>
<
td
>
<
a
class
=
"btn1 btn-success caozuo"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
<
a
class
=
"btn1 btn-success caozuo"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["id"] %]'
>
详细信息
详细信息
<
/a
>
<
/a
>
<
a
class
=
"btn1 btn-success genj_ure"
href
=
"#modal-add"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
<
a
class
=
"btn1 btn-success genj_ure"
href
=
"#modal-add"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["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