Commit c6370c14 authored by xishifeng's avatar xishifeng

详情页修改

parent 0fbc2010
......@@ -71,12 +71,18 @@ function loadMain(){
if(typeof data === 'object') {
if (data.code == 200) {
$('#customer_code').html(data['data']['user_info']['user_id']);
$('#customer_name, #name').html(data['data']['user_info']['user_name']+(data['data']['user_info']['user_nick']?('('+data['data']['user_info']['user_nick']+')'):''));
$('#customer_name, #name').html((data['data']['user_info']['user_name'] == null?'':data['data']['user_info']['user_name'])+(data['data']['user_info']['user_nick']?('('+data['data']['user_info']['user_nick']+')'):''));
if(data['data']['user_info']['sex']==2){
$('.sex-icon').attr('src','/app/images/girl_ic@2x.png');
};
$('#industry_type').html(data['data']['user_info']['industry_type']);
//如果业态没有则隐藏这个span
if(data['data']['user_info']['industry_type']){
$('#industry_type').html(data['data']['user_info']['industry_type']);
}else{
$('#industry_type').hide();
}
$('#price_demand').html(data['data']['user_info']['price_demand']+'元/月');
$('#area_demand').html(data['data']['user_info']['area_demand']+'㎡');
......
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