Commit 54d6403c authored by xishifeng's avatar xishifeng

跟进4

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