Commit 54d6403c authored by xishifeng's avatar xishifeng

跟进4

parent fc14cf16
......@@ -163,7 +163,7 @@
}
#business_area{
display: block;
clear: both;
float: left;
height: .6rem;
width: 5rem;
border-radius: 0.14rem;
......
......@@ -82,15 +82,16 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
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({
var _len = data.data.length;
_this.user_type = (_len===0)?'':data.data[0]['user_type'];
_this.decision_maker = (_len===0)?'':data.data[0]['decision_maker'];
_this.industry_type = (_len===0)?'':data.data[0]['industry_type'];
_this.area_requirement = (_len===0)?'':data.data[0]['area_requirement'];
_this.price_requirement = (_len===0)?'':data.data[0]['price_requirement'];
_this.business_area = (_len===0)?'':data.data[0]['business_area'];
_this.other_area = (_len===0)?'':data.data[0]['other_area'];
_this.explain = (_len===0)?'':data.data[0]['explain'];
(_len>0) && _this.imgShowList.push({
'name': data.data[0]['explain_img']
});
//区域自动获取,并赋值
......@@ -98,19 +99,19 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
'getType': 'province'
},function(_data){
_this.provinceList = _data;
_this.province = data.data[0]['province']?data.data[0]['province']:'310000';
_this.province = (_len>0 && 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.city = (_len>0 && 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'];
_this.district = (_len>0 && data.data[0]['district'])?data.data[0]['district']:_data3[0]['code'];
});
});
});
......
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