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
165f54a8
Commit
165f54a8
authored
Sep 12, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户详情页客户来源添加
parent
19cd37b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletion
+35
-1
customerinfo_details_new.html
...ation/app_broker/view/index/customerinfo_details_new.html
+3
-1
customerinfo_details_new.js
public/app/js/customerinfo_details_new.js
+32
-0
No files found.
application/app_broker/view/index/customerinfo_details_new.html
View file @
165f54a8
...
...
@@ -126,6 +126,8 @@
<p>
创建时间:
<span
id=
"add_time"
></span></p>
<p>
注册时间:
<span
id=
"register_time"
></span></p>
<p>
下载登录时间:
<span
id=
"login_time"
></span></p>
<p>
客户来源:
<span
id=
"source_intro"
></span></p>
</div>
<div
class=
"record-main"
>
<p>
客方修改日志
</p>
...
...
@@ -215,7 +217,7 @@
<script
type=
"text/javascript"
src=
"/app/js/jquery-1122-min.js"
></script>
<script
src=
"/app/js/common.js?new42"
charset=
"utf-8"
></script>
<script
src=
"/app/js/customerinfo_details_new.js?new
59
"
></script>
<script
src=
"/app/js/customerinfo_details_new.js?new
60
"
></script>
</body>
...
...
public/app/js/customerinfo_details_new.js
View file @
165f54a8
...
...
@@ -141,6 +141,15 @@ function loadMain(){
};
$
(
'#register_time'
).
html
(
data
[
'data'
][
'user_info'
][
'registration_time'
]);
//注册时间
$
(
'#login_time'
).
html
(
data
[
'data'
][
'user_info'
][
'first_login_time'
]);
//下载登录时间
if
(
data
[
'data'
][
'user_info'
][
'source_intro'
]){
if
(
data
[
'data'
][
'user_info'
][
'source_intro'
]
==
'0'
){
$
(
'#source_intro'
).
parent
().
hide
();
}
else
{
$
(
'#source_intro'
).
html
(
sourceIntro
(
data
[
'data'
][
'user_info'
][
'source_intro'
]));
//客户来源
}
}
else
{
$
(
'#source_intro'
).
parent
().
hide
();
};
$
(
'#add_time'
).
html
(
data
[
'data'
][
'user_info'
][
'create_time'
]);
//创建时间
$
(
'#customer_pic'
).
attr
(
'src'
,
data
[
'data'
][
'user_info'
][
'user_pic'
]);
_customerPhone
=
data
[
'data'
][
'user_info'
][
'user_phone'
];
//当前客户手机号
...
...
@@ -161,6 +170,29 @@ function loadMain(){
$
(
'#call_modal_phone_self'
).
val
(
_userPhone
);
//客户来源类型判断
function
sourceIntro
(
m
)
{
var
_m
=
Number
(
m
);
//来源简述 1网络 2客户介绍 3 朋友介绍 4上门挂牌 5打跟进 6驻守 7 其他
if
(
_m
===
1
){
return
'网络'
;
}
else
if
(
_m
===
2
){
return
'客户介绍'
;
}
else
if
(
_m
===
3
){
return
'朋友介绍'
;
}
else
if
(
_m
===
4
){
return
'上门挂牌'
;
}
else
if
(
_m
===
5
){
return
'打跟进'
;
}
else
if
(
_m
===
6
){
return
'驻守'
;
}
else
if
(
_m
===
7
){
return
'其他'
;
}
else
{
return
'other'
;
}
};
function
landlordType
(
m
)
{
var
_m
=
Number
(
m
);
if
(
_m
===
0
){
...
...
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