Commit b88bf465 authored by xishifeng's avatar xishifeng

跟进3

parent d684813b
......@@ -162,6 +162,8 @@
margin-left: 0rem!important;
}
#business_area{
display: block;
clear: both;
height: .6rem;
width: 5rem;
border-radius: 0.14rem;
......
......@@ -65,6 +65,75 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
var _this = this;
clearInterval(_this.testBtn);
},
loadMain: function() {
var _this = this;
_this.userid = localStorage.getItem('id');
$.ajax({
url: ServerHostTempC + "/broker/getFollowUpList",
type: 'POST',
data: {
'report_id': _applyId
},
timeout: 30000,
beforeSend: function() {},
dataType: "json",
cache: false,
success: function(data) {
if(typeof data === 'object') {
if(data['code'] == '200'|| data['code'] == '300') {
_this.user_type = data.data[0]['user_type'];
_this.decision_maker = data.data[0]['decision_maker'];
_this.industry_type = data.data[0]['industry_type'];
_this.area_requirement = data.data[0]['area_requirement'];
_this.price_requirement = data.data[0]['price_requirement'];
_this.business_area = data.data[0]['business_area'];
_this.other_area = data.data[0]['other_area'];
_this.explain = data.data[0]['explain'];
_this.imgShowList.push({
'name': data.data[0]['explain_img']
});
//区域自动获取,并赋值
_this.getArea({
'getType': 'province'
},function(_data){
_this.provinceList = _data;
_this.province = data.data[0]['province']?data.data[0]['province']:'310000';
_this.getArea({
'getType': 'city',
'code': _this.province
},function(_data2){
_this.cityList = _data2;
_this.city = data.data[0]['city']?data.data[0]['city']:_data2[0]['code'];
_this.getArea({
'getType': 'district',
'code': _this.city
},function(_data3){
_this.districtList = _data3;
_this.district = data.data[0]['district']?data.data[0]['district']:_data3[0]['code'];
});
});
});
} else {
layerTipsX(data['msg']);
}
} else {
layerTipsX('数据错误');
};
},
error: function() {
layerTipsX('上传失败,请重试');
},
complete: function(xhr, textStatus) {
if(textStatus === "timeout") {
//处理超时的逻辑
layerTipsX('请求超时,请重试');
};
_this.uploadImgFlag = false;
}
});
},
getArea: function(_obj, fn){
var _this = this,
_data = {};
......@@ -133,154 +202,6 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
_this.district = _data3[0]['code'];
});
},
loadMain: function() {
var _this = this;
_this.userid = localStorage.getItem('id');
$.ajax({
url: ServerHostTempC + "/broker/getFollowUpList",
type: 'POST',
data: {
'report_id': _applyId
},
timeout: 30000,
beforeSend: function() {},
dataType: "json",
cache: false,
success: function(data) {
if(typeof data === 'object') {
if(data['code'] == '200') {
_this.user_type = data.data[0]['user_type'];
_this.decision_maker = data.data[0]['decision_maker'];
_this.industry_type = data.data[0]['industry_type'];
_this.area_requirement = data.data[0]['area_requirement'];
_this.price_requirement = data.data[0]['price_requirement'];
_this.business_area = data.data[0]['business_area'];
_this.other_area = data.data[0]['other_area'];
_this.explain = data.data[0]['explain'];
_this.imgShowList.push({
'name': data.data[0]['explain_img']
});
//区域自动获取,并赋值
_this.getArea({
'getType': 'province'
},function(_data){
_this.provinceList = _data;
_this.province = data.data[0]['province']?data.data[0]['province']:'310000';
_this.getArea({
'getType': 'city',
'code': _this.province
},function(_data2){
_this.cityList = _data2;
_this.city = data.data[0]['city']?data.data[0]['city']:_data2[0]['code'];
_this.getArea({
'getType': 'district',
'code': _this.city
},function(_data3){
_this.districtList = _data3;
_this.district = data.data[0]['district']?data.data[0]['district']:_data3[0]['code'];
});
});
});
} else {
layerTipsX(data['msg']);
}
} else {
layerTipsX('数据错误');
};
},
error: function() {
layerTipsX('上传失败,请重试');
},
complete: function(xhr, textStatus) {
if(textStatus === "timeout") {
//处理超时的逻辑
layerTipsX('请求超时,请重试');
};
_this.uploadImgFlag = false;
}
});
// $.ajax({
// url: ServerHostTempC + "/applies/genjing_get",
// data: {
// "apply_id": _applyId,
// "token":_token
// },
// type: "POST",
// dataType: "json",
// beforeSend: function () {},
// success: function (response){
// $("#content1").val(response.data.username);//第一决策人
// //$("#area_city").val(response.data.ctiy);//请输入居住信息
// //$("#area_area").val(response.data.district);//请输入居住信息
// //$("#area_q").val(response.data.business);//请输入居住信息
// $("#content_area").val(response.data.content_area);//请输入居住信息
// $("#content_area1").val(response.data.other);//补充说明
// each_city=response.data.business;//商圈信息
//
// if(response.data.client=='A类(成交意愿较强)'){
// $('#btn1').attr("checked",true);
// }
// if(response.data.client=='B类(成交意愿中等)'){
// $('#btn2').attr("checked",true);
// }
// if(response.data.client=='C类(成交意愿较弱)'){
// $('#btn3').attr("checked",true);
// }
// if(response.data.use=='轻餐饮'){
// $('#btn4').attr("checked",true);
// }
// if(response.data.use=='重餐饮'){
// $('#btn5').attr("checked",true);
// }
// if(response.data.use=='百货零售'){
// $('#btn6').attr("checked",true);
// }
// if(response.data.use=='服装'){
// $('#btn7').attr("checked",true);
// }
// if(response.data.use=='亲子教育'){
// $('#btn8').attr("checked",true);
// }
// if(response.data.use=='休闲娱乐'){
// $('#btn9').attr("checked",true);
// }
// if(response.data.area=='30㎡以内'){
// $('#area1').attr("checked",true);
// }
// if(response.data.area=='30-60㎡'){
// $('#area2').attr("checked",true);
// }
// if(response.data.area=='60-100㎡'){
// $('#area3').attr("checked",true);
// }
// if(response.data.area=='100㎡以上'){
// $('#area4').attr("checked",true);
// }
// if(response.data.supplement=='月租金10000以内'){
// $('#money1').attr("checked",true);
// }
// if(response.data.supplement=='月租金10000-30000元'){
// $('#money2').attr("checked",true);
// }
// if(response.data.supplement=='月租金30000元以上'){
// $('#money3').attr("checked",true);
// }
// if(response.data.ctiy){
// getArea(response.data.ctiy, response.data.district);//获取市和区列表
// }else{
// getArea("上海市","黄浦区");//获取市和区列表
// $("#area_q").val(each_city);
// }
// },
// error: function (XMLHttpRequest, textStatus, errorThrown) {
// console.info("XMLHttpRequest.status:"+XMLHttpRequest.status);
// console.info("XMLHttpRequest.readyState:"+XMLHttpRequest.readyState);
// console.info("textStatus:"+textStatus);
// }
// });
},
deleteimgMain: function(payload){
console.log(payload);
this.imgShowList = this.imgShowList.filter(function(item, index, array){
......
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