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