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
7b44afb0
Commit
7b44afb0
authored
Aug 23, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户动态详情修改
parent
c66ae66b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
15 deletions
+25
-15
customerinfo_details_new.html
...ation/app_broker/view/index/customerinfo_details_new.html
+1
-1
customerinfo_details_new.css
public/app/css/customerinfo_details_new.css
+12
-1
common.js
public/app/js/common.js
+0
-1
customerinfo_details_new.js
public/app/js/customerinfo_details_new.js
+12
-12
No files found.
application/app_broker/view/index/customerinfo_details_new.html
View file @
7b44afb0
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<div
class=
"flex-center"
><img
src=
"/app/images/ic_default_headpic.png"
onerror=
"javascript:this.src='/app/images/ic_default_headpic.png'"
id=
"customer_pic"
/></div>
<div
class=
"flex-center"
><img
src=
"/app/images/ic_default_headpic.png"
onerror=
"javascript:this.src='/app/images/ic_default_headpic.png'"
id=
"customer_pic"
/></div>
<div>
<div>
<p><span
id=
"name"
></span><span
class=
"edit-btn"
><img
src=
"/app/images/boy_ic@2x.png"
class=
"sex-icon"
/></span></p>
<p><span
id=
"name"
></span><span
class=
"edit-btn"
><img
src=
"/app/images/boy_ic@2x.png"
class=
"sex-icon"
/></span></p>
<p><a
href=
"javascript:;"
id=
"call_list_open_btn"
class=
"flex-center"
><span
id=
"customer_id"
>
客户ID:0,
</span><span
id=
"customer_phone"
></span><img
class=
"call-btn call-btn-main"
src=
"/app/images/ic_tel.png"
/></a></p>
<p><a
href=
"javascript:;"
id=
"call_list_open_btn"
class=
"flex-center"
><span
id=
"customer_id"
>
客户ID:0,
</span><span
id=
"customer_phone"
></span><img
class=
"call-btn call-btn-main"
src=
"/app/images/ic_tel.png"
/><
span
id=
"baohuqi_span"
>
保护期内
</span><
/a></p>
<p><span
class=
"flex-center"
id=
"industry_type"
></span><span
class=
"flex-center"
id=
"price_demand"
></span><span
class=
"flex-center"
id=
"area_demand"
></span></p>
<p><span
class=
"flex-center"
id=
"industry_type"
></span><span
class=
"flex-center"
id=
"price_demand"
></span><span
class=
"flex-center"
id=
"area_demand"
></span></p>
<p
id=
"add_city_type_area"
></p>
<p
id=
"add_city_type_area"
></p>
</div>
</div>
...
...
public/app/css/customerinfo_details_new.css
View file @
7b44afb0
...
@@ -52,10 +52,21 @@ header .icon-link{
...
@@ -52,10 +52,21 @@ header .icon-link{
/*color: #333;*/
/*color: #333;*/
color
:
#1a1a1a
;
color
:
#1a1a1a
;
}
}
#baohuqi_span
{
background-color
:
#FA903F
;
color
:
white
;
font-size
:
.24rem
;
width
:
1.2rem
;
height
:
.36rem
;
line-height
:
.36rem
;
border-radius
:
.16rem
;
margin-left
:
.1rem
;
display
:
none
;
}
.call-btn
{
.call-btn
{
width
:
.3rem
;
width
:
.3rem
;
height
:
.3rem
;
height
:
.3rem
;
margin-left
:
.
2
rem
;
margin-left
:
.
1
rem
;
}
}
.call-btn-main
{
.call-btn-main
{
display
:
none
;
display
:
none
;
...
...
public/app/js/common.js
View file @
7b44afb0
...
@@ -212,7 +212,6 @@ String.prototype.stringFormat = function(){
...
@@ -212,7 +212,6 @@ String.prototype.stringFormat = function(){
//字符串格式化,参数为对象的形式 by xishifeng 2017-07-14
//字符串格式化,参数为对象的形式 by xishifeng 2017-07-14
String
.
prototype
.
stringFormatObj
=
function
(){
String
.
prototype
.
stringFormatObj
=
function
(){
var
formatted
=
this
;
var
formatted
=
this
;
console
.
log
(
arguments
);
for
(
var
i
in
arguments
[
0
]){
for
(
var
i
in
arguments
[
0
]){
var
_regexp
=
new
RegExp
(
'
\\
{'
+
i
+
'
\\
}'
,
'gi'
);
var
_regexp
=
new
RegExp
(
'
\\
{'
+
i
+
'
\\
}'
,
'gi'
);
formatted
=
formatted
.
replace
(
_regexp
,
arguments
[
0
][
i
]);
formatted
=
formatted
.
replace
(
_regexp
,
arguments
[
0
][
i
]);
...
...
public/app/js/customerinfo_details_new.js
View file @
7b44afb0
...
@@ -68,6 +68,7 @@ function loadMain(){
...
@@ -68,6 +68,7 @@ function loadMain(){
_selectPhone
=
''
,
//拨号列表里选择的号码,也是当前用户对应的手机号,可能和_userPhone是一样的
_selectPhone
=
''
,
//拨号列表里选择的号码,也是当前用户对应的手机号,可能和_userPhone是一样的
_customerPhone
=
''
,
//当前客户的手机号
_customerPhone
=
''
,
//当前客户的手机号
_backPhone
=
''
;
//绑定之后返回的号码
_backPhone
=
''
;
//绑定之后返回的号码
_temp_follow_id
=
''
;
//临时的跟进id,在绑定手机号的同时,会产生出来
_user_status
=
''
;
//状态标签上次的值
_user_status
=
''
;
//状态标签上次的值
if
(
_userId
){
if
(
_userId
){
...
@@ -89,7 +90,6 @@ function loadMain(){
...
@@ -89,7 +90,6 @@ function loadMain(){
dataType
:
'json'
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
success
:
function
(
data
)
{
console
.
log
(
data
);
if
(
typeof
data
===
'object'
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
.
is_collect
==
'1'
){
if
(
data
.
data
.
is_collect
==
'1'
){
...
@@ -139,15 +139,16 @@ function loadMain(){
...
@@ -139,15 +139,16 @@ function loadMain(){
$
(
'#customer_id'
).
html
(
'客户ID:'
+
_customerId
+
','
);
$
(
'#customer_id'
).
html
(
'客户ID:'
+
_customerId
+
','
);
$
(
'#customer_phone'
).
html
(
hideTel
(
data
[
'data'
][
'user_info'
][
'user_phone'
]));
$
(
'#customer_phone'
).
html
(
hideTel
(
data
[
'data'
][
'user_info'
][
'user_phone'
]));
if
(
data
[
'data'
][
'is_outstrip_twenty_four_hours'
]
==
1
){
if
(
data
[
'data'
][
'is_outstrip_twenty_four_hours'
]
==
0
){
//超过保护期
$
(
'.call-btn-main'
).
show
();
}
else
{
//在保护期内
//在保护期内
$
(
'#baohuqi_span'
).
show
();
if
(
data
[
'data'
][
'user_info'
][
'agent_id'
]
==
_userId
){
if
(
data
[
'data'
][
'user_info'
][
'agent_id'
]
==
_userId
){
//客方与当前用户一致时
//客方与当前用户一致时
$
(
'.call-btn-main'
).
show
();
$
(
'.call-btn-main'
).
show
();
}
else
{}
}
else
{}
}
else
{
//超过保护期
$
(
'.call-btn-main'
).
show
();
}
}
$
(
'#call_modal_phone_self'
).
val
(
_userPhone
);
$
(
'#call_modal_phone_self'
).
val
(
_userPhone
);
...
@@ -196,7 +197,6 @@ function loadMain(){
...
@@ -196,7 +197,6 @@ function loadMain(){
//动态详情列表
//动态详情列表
function
dealSp
(
obj
){
function
dealSp
(
obj
){
console
.
log
(
obj
[
'img_path'
]
+
obj
[
'explain_img'
]);
return
'<p>属于哪类客户:{0}</p><p>第一决策人:{1}</p><p>租商铺做什么:{2}</p><p>对面积的要求:{3}</p><p>对价格的要求:{4}</p><p>所在区域:{5}</p><p>补充说明:{6}</p>{7}'
.
stringFormatObj
({
return
'<p>属于哪类客户:{0}</p><p>第一决策人:{1}</p><p>租商铺做什么:{2}</p><p>对面积的要求:{3}</p><p>对价格的要求:{4}</p><p>所在区域:{5}</p><p>补充说明:{6}</p>{7}'
.
stringFormatObj
({
'0'
:
obj
[
'user_type'
],
'0'
:
obj
[
'user_type'
],
'1'
:
obj
[
'decision_maker'
],
'1'
:
obj
[
'decision_maker'
],
...
@@ -231,7 +231,6 @@ function loadMain(){
...
@@ -231,7 +231,6 @@ function loadMain(){
* **********/
* **********/
return
(
item
[
'step_name'
]
==
'report'
||
item
[
'step_name'
]
==
'march_in'
||
item
[
'step_name'
]
==
'pay_log'
||
item
[
'step_name'
]
==
'bargain'
);
return
(
item
[
'step_name'
]
==
'report'
||
item
[
'step_name'
]
==
'march_in'
||
item
[
'step_name'
]
==
'pay_log'
||
item
[
'step_name'
]
==
'bargain'
);
});
});
console
.
log
(
_tempArr
);
if
(
_tempArr
.
length
>
0
){
if
(
_tempArr
.
length
>
0
){
_htmlTemp
+=
'<li class="{7}"><div class="li-top"><div class="li-top-left"><img src="{0}" onerror="javascript:this.src=
\'
/app/images/ic_default_headpic.png
\'
" /></div><div class="li-top-right"><div class="li-top-right-header"><div>{1}</div><div>{3}</div></div><p>{2}{5}</p>{6}</div></div><div class="first-sec-active"></div></li>'
.
stringFormatObj
({
_htmlTemp
+=
'<li class="{7}"><div class="li-top"><div class="li-top-left"><img src="{0}" onerror="javascript:this.src=
\'
/app/images/ic_default_headpic.png
\'
" /></div><div class="li-top-right"><div class="li-top-right-header"><div>{1}</div><div>{3}</div></div><p>{2}{5}</p>{6}</div></div><div class="first-sec-active"></div></li>'
.
stringFormatObj
({
...
@@ -363,7 +362,6 @@ function loadMain(){
...
@@ -363,7 +362,6 @@ function loadMain(){
};
};
},
},
error
:
function
()
{
error
:
function
()
{
console
.
log
(
'aa'
);
layerTipsX
(
'error'
);
layerTipsX
(
'error'
);
},
},
complete
:
function
(
xhr
,
textStatus
){
complete
:
function
(
xhr
,
textStatus
){
...
@@ -514,6 +512,7 @@ function loadMain(){
...
@@ -514,6 +512,7 @@ function loadMain(){
}
else
{
}
else
{
_data
[
'labels_id'
]
=
_genjinMarkOBj2
.
attr
(
'data-markid'
);
_data
[
'labels_id'
]
=
_genjinMarkOBj2
.
attr
(
'data-markid'
);
_data
[
'type'
]
=
0
;
_data
[
'type'
]
=
0
;
_data
[
'follow_id'
]
=
_temp_follow_id
;
//跟进id
(
_genjinMarkOBj2
.
attr
(
'data-free'
)
==
0
)
&&
(
_isFreeFlag
=
false
);
(
_genjinMarkOBj2
.
attr
(
'data-free'
)
==
0
)
&&
(
_isFreeFlag
=
false
);
}
}
}
else
{
}
else
{
...
@@ -581,7 +580,8 @@ function loadMain(){
...
@@ -581,7 +580,8 @@ function loadMain(){
'AuthToken'
:
_token
,
'AuthToken'
:
_token
,
'phone_x'
:
_backPhone
,
'phone_x'
:
_backPhone
,
'phone_a'
:
_selectPhone
,
'phone_a'
:
_selectPhone
,
'phone_b'
:
_customerPhone
'user_id'
:
_userId
// 'phone_b': _customerPhone
},
},
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
...
@@ -679,7 +679,6 @@ function loadMain(){
...
@@ -679,7 +679,6 @@ function loadMain(){
e
.
stopPropagation
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
var
_tel
=
_this
.
prev
().
attr
(
'data-tel'
);
var
_tel
=
_this
.
prev
().
attr
(
'data-tel'
);
console
.
log
(
_tel
);
if
(
is_mobile
(
_tel
)
==
1
){
if
(
is_mobile
(
_tel
)
==
1
){
Compatible
({
Compatible
({
paraIos
:
{
paraIos
:
{
...
@@ -792,7 +791,8 @@ function loadMain(){
...
@@ -792,7 +791,8 @@ function loadMain(){
data
:
{
data
:
{
'AuthToken'
:
_token
,
'AuthToken'
:
_token
,
'phone_a'
:
_selectPhone
,
'phone_a'
:
_selectPhone
,
'phone_b'
:
_customerPhone
'user_id'
:
_userId
// 'phone_b': _customerPhone
},
},
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
...
@@ -805,7 +805,7 @@ function loadMain(){
...
@@ -805,7 +805,7 @@ function loadMain(){
if
(
typeof
data
===
'object'
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
_backPhone
=
data
[
'data'
][
'phone'
];
_backPhone
=
data
[
'data'
][
'phone'
];
console
.
log
(
_backPhone
);
_temp_follow_id
=
data
[
'data'
][
'follow_id'
];
//临时的跟进id
Compatible
({
Compatible
({
paraIos
:
{
paraIos
:
{
'route'
:
'call'
,
'route'
:
'call'
,
...
...
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