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
02c8f058
Commit
02c8f058
authored
Aug 14, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
动态详情修改
parent
8ecab55b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
131 additions
and
67 deletions
+131
-67
customerinfo_details_new.css
public/app/css/customerinfo_details_new.css
+27
-4
icon_dynamic@2x.png
public/app/images/icon_dynamic@2x.png
+0
-0
customerinfo_details_new.js
public/app/js/customerinfo_details_new.js
+78
-31
customerinfo_details_new_old.js
public/app/js/customerinfo_details_new_old.js
+26
-32
No files found.
public/app/css/customerinfo_details_new.css
View file @
02c8f058
...
...
@@ -143,21 +143,43 @@ header .icon-link{
.sec-dynamic
>
ul
>
li
.li-sp-active
{
background-color
:
#fcba38
;
}
.sec-dynamic
>
ul
>
li
.li-sp-active-top
{
background-color
:
#fcba38
;
}
.first-sec-active
{
position
:
absolute
;
top
:
.98rem
;
left
:
0
;
width
:
1.31rem
;
height
:
.37rem
;
background
:
url(/app/images/icon_dynamic@2x.png)
no-repeat
center
center
/
1.31rem
.37rem
;
}
.sec-dynamic
>
ul
>
li
{
position
:
relative
;
}
.li-top
{
overflow
:
hidden
;
}
.sec-dynamic
>
ul
>
li
>
.li-top
>
div
{
float
:
left
;
}
.sec-dynamic
>
ul
>
li
>
.li-top
>
div
.li-top-right
{
width
:
6.05rem
;
/*width: 6.05rem;*/
width
:
5.7rem
;
}
.li-top-left
{
overflow
:
hidden
;
padding-right
:
.2rem
;
box-sizing
:
border-box
;
position
:
relative
;
}
.li-top-left
>
img
{
float
:
left
;
width
:
.65rem
;
height
:
.65rem
;
/*width: .65rem;
height: .65rem;*/
width
:
1rem
;
height
:
1rem
;
border-radius
:
50%
;
object-fit
:
cover
;
}
...
...
@@ -165,7 +187,8 @@ header .icon-link{
color
:
#999
;
font-size
:
.32rem
;
overflow
:
hidden
;
width
:
6.05rem
;
/*width: 6.05rem;*/
width
:
5.7rem
;
}
.li-top-right-header
>
div
:nth-of-type
(
1
)
{
float
:
left
;
...
...
public/app/images/icon_dynamic@2x.png
0 → 100644
View file @
02c8f058
2.74 KB
public/app/js/customerinfo_details_new.js
View file @
02c8f058
...
...
@@ -2,6 +2,17 @@ var _doc = $(document),
_token
=
getUrlParam
(
"token"
),
_customerId
=
getUrlParam
(
'customerId'
);
/******
*
report 报备
march_in 进场
follow_up_log 跟进
pay_log 收款
refund 退款
bargain 成交报告
*
*****/
$
(
function
(){
$
(
document
.
body
).
show
();
...
...
@@ -57,6 +68,7 @@ function loadMain(){
_selectPhone
=
''
,
//拨号列表里选择的号码,也是当前用户对应的手机号,可能和_userPhone是一样的
_customerPhone
=
''
,
//当前客户的手机号
_backPhone
=
''
;
//绑定之后返回的号码
_user_status
=
''
;
//状态标签上次的值
if
(
_userId
){
...
...
@@ -192,7 +204,35 @@ function loadMain(){
});
};
var
_htmlTemp
=
''
;
if
(
data
[
'data'
][
'user_date'
]
&&
data
[
'data'
][
'user_date'
].
length
>
0
){
var
_tempArr
=
data
[
'data'
][
'user_date'
].
filter
(
function
(
item
,
index
,
array
){
/**********
*
report 报备
march_in 进场
follow_up_log 跟进
pay_log 收款
refund 退款
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
){
_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
({
'0'
:
data
[
'data'
][
'agent_path'
]
+
_tempArr
[
0
][
'img'
],
'1'
:
_tempArr
[
0
][
'name'
],
'2'
:
_tempArr
[
0
][
'step_name'
]
==
'phone_fllow_up'
?
'电话跟进:'
:(
_tempArr
[
0
][
'step_name'
]
==
'fllow_up'
?
'跟进:'
:
''
),
'3'
:
(
_tempArr
[
0
][
'create_time'
]
==
null
?
null
:
_tempArr
[
0
][
'create_time'
]),
'5'
:
_tempArr
[
0
][
'step'
],
'6'
:
_tempArr
[
0
][
'step_name'
]
==
'follow_up_log'
?
dealSp
(
_tempArr
[
0
]):(
_tempArr
[
0
][
'step_name'
]
==
'report'
?
dealSpYdk
(
_tempArr
[
0
]):
''
),
'7'
:
'li-sp-active-top'
});
};
$
.
each
(
data
[
'data'
][
'user_date'
],
function
(
i
,
item
)
{
_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></li>'
.
stringFormatObj
({
'0'
:
data
[
'data'
][
'agent_path'
]
+
item
[
'img'
],
...
...
@@ -296,11 +336,12 @@ function loadMain(){
});
//标签没有默认状态了
// if(data['data']['user_info']['user_status'] == 0 || data['data']['user_info']['user_status'] == 1 || data['data']['user_info']['user_status'] == -1 ){
// _markAreaObj.find('a[data-markid="'+data['data']['user_info']['user_status']+'"]').addClass('genjin-mark-active').siblings().removeClass('genjin-mark-active');
// }else{
// layerTipsX('状态标签返回有误');
// }
var
_data_user_status
=
data
[
'data'
][
'user_info'
][
'user_status'
];
if
(
_data_user_status
==
0
||
_data_user_status
==
1
||
_data_user_status
==
-
1
){
_user_status
=
_data_user_status
;
}
else
{
layerTipsX
(
'状态标签返回有误'
);
}
}
else
{
layerTipsX
(
data
[
'msg'
]);
...
...
@@ -391,24 +432,27 @@ function loadMain(){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
// if((_this.attr('data-markid') == '1') || (_this.attr('data-markid') == '4')){
// //如果选择了未打通,或取消拨打,则直接关闭
// if(_this.parent().parent().index() === 0){
// //只有在.genjin-mark-area-putong,电话跟进特有,下的标签才会隐藏
// _genjinModal.hide();//跟进模态框关闭
// return false;
// }
// };
if
(
!
_this
.
hasClass
(
'genjin-mark-active'
)){
_this
.
addClass
(
'genjin-mark-active'
).
siblings
().
removeClass
(
'genjin-mark-active'
);
};
if
(
_this
.
attr
(
'data-markid'
)
==
'1'
){
//如果选择了未打通,则直接关闭
if
(
_this
.
parent
().
parent
().
index
()
===
0
){
//只有在.genjin-mark-area-putong,电话跟进特有,下的标签才会隐藏
genjinSave
(
'sp1'
);
return
false
;
}
};
});
//跟进的提交按钮点击事件
_btnSave
.
click
(
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
genjinSave
();
});
function
genjinSave
(
type
){
var
_genjinMarkOBj
=
$
(
'.genjin-mark-area-zhuangtai .genjin-mark-active'
),
_genjinMarkOBj2
=
$
(
'.genjin-mark-area-putong .genjin-mark-active'
),
_beizhuObjVal
=
$
.
trim
(
_beizhuObj
.
val
()),
...
...
@@ -424,20 +468,14 @@ function loadMain(){
// return false;
// };
// if((_genjinMarkOBj2.attr('data-markid') == '1') || (_genjinMarkOBj2.attr('data-markid') == '4')){
//
// }else{
// if(_genjinMarkOBj.length == 0){
// layerTipsX('请选择状态跟进标签');
// return false;
// };
// };
if
(
_genjinMarkOBj
.
length
==
0
){
layerTipsX
(
'请选择状态跟进标签'
);
return
false
;
if
((
_genjinMarkOBj2
.
attr
(
'data-markid'
)
==
'1'
)
||
(
_genjinMarkOBj2
.
attr
(
'data-markid'
)
==
'4'
)){
}
else
{
if
(
_genjinMarkOBj
.
length
==
0
){
layerTipsX
(
'请选择状态跟进标签'
);
return
false
;
};
};
var
_data
=
{
'AuthToken'
:
_token
,
'content'
:
_beizhuObjVal
,
...
...
@@ -445,6 +483,17 @@ function loadMain(){
'agent_id'
:
_userId
,
'user_status'
:
_genjinMarkOBj
.
attr
(
'data-markid'
)
};
if
(
type
===
'sp1'
){
if
(
_beizhuObjVal
){
}
else
{
_data
[
'content'
]
=
'未打通'
;
};
if
(
_genjinMarkOBj
.
length
==
0
){
_data
[
'user_status'
]
=
_user_status
;
};
};
if
(
isCallFlag
){
//电话跟进
if
(
_genjinMarkOBj2
.
length
==
0
){
...
...
@@ -510,8 +559,7 @@ function loadMain(){
};
}
});
});
}
function
freePhone
(
obj
){
$
.
ajax
({
...
...
@@ -788,4 +836,4 @@ function loadMain(){
});
};
});
};
\ No newline at end of file
};
public/app/js/customerinfo_details_new_
081001
.js
→
public/app/js/customerinfo_details_new_
old
.js
View file @
02c8f058
...
...
@@ -391,27 +391,24 @@ function loadMain(){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
// if((_this.attr('data-markid') == '1') || (_this.attr('data-markid') == '4')){
// //如果选择了未打通,或取消拨打,则直接关闭
// if(_this.parent().parent().index() === 0){
// //只有在.genjin-mark-area-putong,电话跟进特有,下的标签才会隐藏
// _genjinModal.hide();//跟进模态框关闭
// return false;
// }
// };
if
(
!
_this
.
hasClass
(
'genjin-mark-active'
)){
_this
.
addClass
(
'genjin-mark-active'
).
siblings
().
removeClass
(
'genjin-mark-active'
);
};
if
(
_this
.
attr
(
'data-markid'
)
==
'1'
){
//如果选择了未打通,则直接关闭
if
(
_this
.
parent
().
parent
().
index
()
===
0
){
//只有在.genjin-mark-area-putong,电话跟进特有,下的标签才会隐藏
genjinSave
(
'sp1'
);
return
false
;
}
};
});
//跟进的提交按钮点击事件
_btnSave
.
click
(
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
genjinSave
();
});
function
genjinSave
(
type
){
var
_genjinMarkOBj
=
$
(
'.genjin-mark-area-zhuangtai .genjin-mark-active'
),
_genjinMarkOBj2
=
$
(
'.genjin-mark-area-putong .genjin-mark-active'
),
_beizhuObjVal
=
$
.
trim
(
_beizhuObj
.
val
()),
...
...
@@ -427,14 +424,20 @@ function loadMain(){
// return false;
// };
if
((
_genjinMarkOBj2
.
attr
(
'data-markid'
)
==
'1'
)
||
(
_genjinMarkOBj2
.
attr
(
'data-markid'
)
==
'4'
)){
}
else
{
if
(
_genjinMarkOBj
.
length
==
0
){
layerTipsX
(
'请选择状态跟进标签'
);
return
false
;
};
// if((_genjinMarkOBj2.attr('data-markid') == '1') || (_genjinMarkOBj2.attr('data-markid') == '4')){
//
// }else{
// if(_genjinMarkOBj.length == 0){
// layerTipsX('请选择状态跟进标签');
// return false;
// };
// };
if
(
_genjinMarkOBj
.
length
==
0
){
layerTipsX
(
'请选择状态跟进标签'
);
return
false
;
};
var
_data
=
{
'AuthToken'
:
_token
,
'content'
:
_beizhuObjVal
,
...
...
@@ -442,17 +445,6 @@ function loadMain(){
'agent_id'
:
_userId
,
'user_status'
:
_genjinMarkOBj
.
attr
(
'data-markid'
)
};
if
(
type
===
'sp1'
){
if
(
_beizhuObjVal
){
}
else
{
_data
[
'content'
]
=
'未打通'
;
};
if
(
_genjinMarkOBj
.
length
==
0
){
_data
[
'user_status'
]
=
'-1'
;
};
};
if
(
isCallFlag
){
//电话跟进
if
(
_genjinMarkOBj2
.
length
==
0
){
...
...
@@ -518,7 +510,8 @@ function loadMain(){
};
}
});
}
});
function
freePhone
(
obj
){
$
.
ajax
({
...
...
@@ -795,4 +788,4 @@ function loadMain(){
});
};
});
};
};
\ 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