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
5b3a464d
Commit
5b3a464d
authored
Jul 02, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户跟进详情修改
parent
7cfaa76a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
50 deletions
+61
-50
customerinfo_details_new.js
public/app/js/customerinfo_details_new.js
+61
-50
No files found.
public/app/js/customerinfo_details_new.js
View file @
5b3a464d
...
@@ -181,11 +181,12 @@ function loadMain(){
...
@@ -181,11 +181,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'
);
// if(data['data']['user_info']['user_status'] == 0 || data['data']['user_info']['user_status'] == 1 || data['data']['user_info']['user_status'] == -1 ){
}
else
{
// _markAreaObj.find('a[data-markid="'+data['data']['user_info']['user_status']+'"]').addClass('genjin-mark-active').siblings().removeClass('genjin-mark-active');
layerTipsX
(
'状态标签返回有误'
);
// }else{
}
// layerTipsX('状态标签返回有误');
// }
}
else
{
}
else
{
layerTipsX
(
data
[
'msg'
]);
layerTipsX
(
data
[
'msg'
]);
...
@@ -324,51 +325,61 @@ function loadMain(){
...
@@ -324,51 +325,61 @@ function loadMain(){
}
}
};
};
$
.
ajax
({
if
(
isCallFlag
&&
((
_genjinMarkOBj2
.
attr
(
'data-markid'
)
==
'1'
)
||
(
_genjinMarkOBj2
.
attr
(
'data-markid'
)
==
'4'
))){
type
:
'POST'
,
if
(
_isFreeFlag
)
{
url
:
ServerHostTempC
+
'/broker/add_phone_follow_up'
,
freePhone
();
data
:
_data
,
};
timeout
:
30000
,
layer
.
close
(
_index
);
dataType
:
'json'
,
return
false
;
beforeSend
:
function
()
{
//如果是电话跟进,选择了没打通或者取消拨打,则关掉不进行提交
_btnSave
.
hide
();
}
else
{
_btnSaveTemp
.
css
(
'display'
,
'block'
);
$
.
ajax
({
},
type
:
'POST'
,
success
:
function
(
data
)
{
url
:
ServerHostTempC
+
'/broker/add_phone_follow_up'
,
if
(
typeof
data
===
'object'
)
{
data
:
_data
,
if
(
data
.
code
==
200
)
{
timeout
:
30000
,
if
(
isCallFlag
&&
_isFreeFlag
){
dataType
:
'json'
,
//释放
beforeSend
:
function
()
{
freePhone
();
_btnSave
.
hide
();
}
else
{
_btnSaveTemp
.
css
(
'display'
,
'block'
);
layer
.
open
({
},
content
:
'提交成功'
,
success
:
function
(
data
)
{
btn
:
[
'确定'
],
if
(
typeof
data
===
'object'
)
{
yes
:
function
(
_index
){
if
(
data
.
code
==
200
)
{
if
(
isCallFlag
&&
_isFreeFlag
){
location
.
reload
();
//释放
layer
.
close
(
_index
);
freePhone
();
}
}
else
{
});
layer
.
open
({
};
content
:
'提交成功'
,
}
else
{
btn
:
[
'确定'
],
layerTipsX
(
data
[
'msg'
]);
yes
:
function
(
_index
){
};
}
else
{
location
.
reload
();
layerTipsX
(
'数据错误'
);
layer
.
close
(
_index
);
};
}
},
});
error
:
function
()
{
};
layerTipsX
(
'error'
);
}
else
{
},
layerTipsX
(
data
[
'msg'
]);
complete
:
function
(
xhr
,
textStatus
){
};
_btnSaveTemp
.
hide
();
}
else
{
_btnSave
.
css
(
'display'
,
'block'
);
layerTipsX
(
'数据错误'
);
if
(
textStatus
===
'timeout'
){
};
layerTipsX
(
'请求超时'
);
},
};
error
:
function
()
{
}
layerTipsX
(
'error'
);
});
},
complete
:
function
(
xhr
,
textStatus
){
_btnSaveTemp
.
hide
();
_btnSave
.
css
(
'display'
,
'block'
);
if
(
textStatus
===
'timeout'
){
layerTipsX
(
'请求超时'
);
};
}
});
}
});
});
function
freePhone
(
obj
){
function
freePhone
(
obj
){
...
...
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