Commit bf3a1f05 authored by xishifeng's avatar xishifeng

拨打电话修改

parent abf9e488
...@@ -14,8 +14,8 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'], functio ...@@ -14,8 +14,8 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'], functio
isGenjinSave: false,//是否正在保存跟进 isGenjinSave: false,//是否正在保存跟进
selectPhone: '',//所选中的号码 selectPhone: '',//所选中的号码
telHide: '', //拨打隐号返回的号码 telHide: '', //拨打隐号返回的号码
activeLandlordPhone: '', //当前点击的房东号码 tempFollowId: '',//临时的跟进id
activeLandlordName: '',//当前点击的房东姓名 activeLandlord: '',//当前点击的房东
content: '',//跟进的内容,填写 content: '',//跟进的内容,填写
d: {} d: {}
}, },
...@@ -191,8 +191,7 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'], functio ...@@ -191,8 +191,7 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'], functio
}, },
showModal1(t) { showModal1(t) {
let _this = this; let _this = this;
_this.activeLandlordPhone = t.phone; _this.activeLandlord = t;
_this.activeLandlordName = t.name;
_this.modalShow1 = true; _this.modalShow1 = true;
}, },
//点击拨打,调用隐号接口 //点击拨打,调用隐号接口
...@@ -217,7 +216,7 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'], functio ...@@ -217,7 +216,7 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'], functio
//url: '/index/bindAXB', //url: '/index/bindAXB',
data: { data: {
'phone_a': _this.selectPhone, 'phone_a': _this.selectPhone,
'phone_b': _this.activeLandlordPhone, 'phone_b': _this.activeLandlord.phone,
'AuthToken': _this.user_info_obj.AuthToken 'AuthToken': _this.user_info_obj.AuthToken
}, },
timeout: 30000, timeout: 30000,
...@@ -228,6 +227,7 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'], functio ...@@ -228,6 +227,7 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'], functio
success: function(_data) { success: function(_data) {
if(_data['code'] == '200') { if(_data['code'] == '200') {
_this.telHide = _data.data.phone; _this.telHide = _data.data.phone;
_this.tempFollowId = _data.data.follow_id;
console.log(_this.telHide); console.log(_this.telHide);
_this.modalShow1 = false; _this.modalShow1 = false;
_this.modalShow2 = true; _this.modalShow2 = true;
...@@ -274,9 +274,10 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'], functio ...@@ -274,9 +274,10 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'], functio
'agent_phone': _this.user_info_obj.phone, 'agent_phone': _this.user_info_obj.phone,
'agent_name': _this.user_info_obj.name, 'agent_name': _this.user_info_obj.name,
'house_id': _this.d.id, 'house_id': _this.d.id,
'follow_id': _this.tempFollowId,
'follow_up_info': _this.content, 'follow_up_info': _this.content,
'landlord_phone': _this.activeLandlordPhone, 'landlord_phone': _this.activeLandlord.phone,
'landlord_name': _this.activeLandlordName 'landlord_name': _this.activeLandlord.name
}, },
timeout: 30000, timeout: 30000,
dataType: 'json', dataType: 'json',
...@@ -312,7 +313,7 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'], functio ...@@ -312,7 +313,7 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'], functio
url: '/index/agentsUnBind', url: '/index/agentsUnBind',
data: { data: {
'phone_a': _this.selectPhone, //经纪人手机号 'phone_a': _this.selectPhone, //经纪人手机号
'phone_b': _this.activeLandlordPhone, //客户手机号 'phone_b': _this.activeLandlord.phone, //客户手机号
'phone_x': _this.telHide, //中间号 'phone_x': _this.telHide, //中间号
'AuthToken': _this.user_info_obj.AuthToken 'AuthToken': _this.user_info_obj.AuthToken
}, },
......
...@@ -19,7 +19,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -19,7 +19,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
_userPhone = user_info_obj.phone,//当前用户的手机号 _userPhone = user_info_obj.phone,//当前用户的手机号
_selectPhone = '',//拨号列表里选择的号码,也是当前用户对应的手机号,可能和_userPhone是一样的 _selectPhone = '',//拨号列表里选择的号码,也是当前用户对应的手机号,可能和_userPhone是一样的
_customerPhone = '',//当前客户的手机号 _customerPhone = '',//当前客户的手机号
_backPhone = '';//绑定之后返回的号码 _backPhone = '',//绑定之后返回的号码
_temp_follow_id = '';//临时的跟进id
var user = { var user = {
pageNo: 1, pageNo: 1,
...@@ -540,6 +541,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -540,6 +541,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
}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{
...@@ -596,7 +598,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -596,7 +598,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
function freePhone(obj){ function freePhone(obj){
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: ServerHostTempC + '/index/agentsUnBind', url: ServerHostTempC + '/broker/agentsUnBind',
data: { data: {
'AuthToken': _token, 'AuthToken': _token,
'phone_x': _backPhone, 'phone_x': _backPhone,
...@@ -813,7 +815,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -813,7 +815,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
if(_selectPhone && user.customerInfo.user_phone){ if(_selectPhone && user.customerInfo.user_phone){
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: '/index/bindAXB', url: '/broker/bindAXB',
data: { data: {
'AuthToken': _token, 'AuthToken': _token,
'phone_a': _selectPhone, 'phone_a': _selectPhone,
...@@ -830,6 +832,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -830,6 +832,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
if(typeof data === 'object') { if(typeof data === 'object') {
if (data.code == 200) { if (data.code == 200) {
_backPhone = data['data']['data']['phone']; _backPhone = data['data']['data']['phone'];
_temp_follow_id = data['data']['follow_id'];//临时的跟进id
console.log(_backPhone); console.log(_backPhone);
$('.call-hide-area>p:nth-of-type(1)>span').html(_selectPhone); $('.call-hide-area>p:nth-of-type(1)>span').html(_selectPhone);
$('.call-hide-area>p:nth-of-type(3)').html(_backPhone); $('.call-hide-area>p:nth-of-type(3)').html(_backPhone);
...@@ -1089,7 +1092,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -1089,7 +1092,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
console.log(params); console.log(params);
$.ajax({ $.ajax({
'type': 'POST', 'type': 'POST',
'url': '/index/agentsUnBind', 'url': '/broker/agentsUnBind',
data: params, data: params,
dataType: "json", dataType: "json",
success: function(data) { success: function(data) {
......
...@@ -19,7 +19,8 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home ...@@ -19,7 +19,8 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
_userPhone = user_info_obj.phone,//当前用户的手机号 _userPhone = user_info_obj.phone,//当前用户的手机号
_selectPhone = '',//拨号列表里选择的号码,也是当前用户对应的手机号,可能和_userPhone是一样的 _selectPhone = '',//拨号列表里选择的号码,也是当前用户对应的手机号,可能和_userPhone是一样的
_customerPhone = '',//当前客户的手机号 _customerPhone = '',//当前客户的手机号
_backPhone = '';//绑定之后返回的号码 _backPhone = '',//绑定之后返回的号码
_temp_follow_id = '';//临时的跟进id
var user = { var user = {
pageNo: 1, pageNo: 1,
...@@ -552,6 +553,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home ...@@ -552,6 +553,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
}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{
...@@ -608,7 +610,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home ...@@ -608,7 +610,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
function freePhone(obj){ function freePhone(obj){
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: ServerHostTempC + '/index/agentsUnBind', url: ServerHostTempC + '/broker/agentsUnBind',
data: { data: {
'AuthToken': _token, 'AuthToken': _token,
'phone_x': _backPhone, 'phone_x': _backPhone,
...@@ -825,7 +827,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home ...@@ -825,7 +827,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
if(_selectPhone && user.customerInfo.user_phone){ if(_selectPhone && user.customerInfo.user_phone){
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: '/index/bindAXB', url: '/broker/bindAXB',
data: { data: {
'AuthToken': _token, 'AuthToken': _token,
'phone_a': _selectPhone, 'phone_a': _selectPhone,
...@@ -842,6 +844,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home ...@@ -842,6 +844,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
if(typeof data === 'object') { if(typeof data === 'object') {
if (data.code == 200) { if (data.code == 200) {
_backPhone = data['data']['data']['phone']; _backPhone = data['data']['data']['phone'];
_temp_follow_id = data['data']['follow_id'];//临时的跟进id
console.log(_backPhone); console.log(_backPhone);
$('.call-hide-area>p:nth-of-type(1)>span').html(_selectPhone); $('.call-hide-area>p:nth-of-type(1)>span').html(_selectPhone);
$('.call-hide-area>p:nth-of-type(3)').html(_backPhone); $('.call-hide-area>p:nth-of-type(3)').html(_backPhone);
...@@ -1098,7 +1101,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home ...@@ -1098,7 +1101,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
console.log(params); console.log(params);
$.ajax({ $.ajax({
'type': 'POST', 'type': 'POST',
'url': '/index/agentsUnBind', 'url': '/broker/agentsUnBind',
data: params, data: params,
dataType: "json", dataType: "json",
success: function(data) { success: function(data) {
......
...@@ -18,7 +18,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -18,7 +18,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
_userPhone = user_info_obj.phone,//当前用户的手机号 _userPhone = user_info_obj.phone,//当前用户的手机号
_selectPhone = '',//拨号列表里选择的号码,也是当前用户对应的手机号,可能和_userPhone是一样的 _selectPhone = '',//拨号列表里选择的号码,也是当前用户对应的手机号,可能和_userPhone是一样的
_customerPhone = '',//当前客户的手机号 _customerPhone = '',//当前客户的手机号
_backPhone = '';//绑定之后返回的号码 _backPhone = '',//绑定之后返回的号码
_temp_follow_id = '';//临时的跟进id
var user = { var user = {
...@@ -679,6 +680,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -679,6 +680,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}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{
...@@ -735,7 +737,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -735,7 +737,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
function freePhone(obj){ function freePhone(obj){
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: '/index/agentsUnBind', url: '/broker/agentsUnBind',
data: { data: {
'AuthToken': _token, 'AuthToken': _token,
'phone_x': _backPhone, 'phone_x': _backPhone,
...@@ -952,7 +954,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -952,7 +954,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
if(_selectPhone && user.customerInfo.user_phone){ if(_selectPhone && user.customerInfo.user_phone){
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: '/index/bindAXB', url: '/broker/bindAXB',
data: { data: {
'AuthToken': _token, 'AuthToken': _token,
'phone_a': _selectPhone, 'phone_a': _selectPhone,
...@@ -969,6 +971,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -969,6 +971,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
if(typeof data === 'object') { if(typeof data === 'object') {
if (data.code == 200) { if (data.code == 200) {
_backPhone = data['data']['data']['phone']; _backPhone = data['data']['data']['phone'];
_temp_follow_id = data['data']['follow_id'];//临时的跟进id
console.log(_backPhone); console.log(_backPhone);
$('.call-hide-area>p:nth-of-type(1)>span').html(_selectPhone); $('.call-hide-area>p:nth-of-type(1)>span').html(_selectPhone);
$('.call-hide-area>p:nth-of-type(3)').html(_backPhone); $('.call-hide-area>p:nth-of-type(3)').html(_backPhone);
...@@ -1247,7 +1250,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -1247,7 +1250,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
console.log(params); console.log(params);
$.ajax({ $.ajax({
'type': 'POST', 'type': 'POST',
'url': '/index/bindAXB', 'url': '/broker/bindAXB',
data: params, data: params,
dataType: "json", dataType: "json",
success: function(data) { success: function(data) {
...@@ -1272,7 +1275,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -1272,7 +1275,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
console.log(params); console.log(params);
$.ajax({ $.ajax({
'type': 'POST', 'type': 'POST',
'url': '/index/agentsUnBind', 'url': '/broker/agentsUnBind',
data: params, data: params,
dataType: "json", dataType: "json",
success: function(data) { success: function(data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment