Commit f9c1c495 authored by xishifeng's avatar xishifeng

看房时间数据处理

parent 42ca3e2d
......@@ -137,6 +137,14 @@ $(function() {
return '';
}
};
function dealTimeKf(str){
if(str === '' || str === null || str === undefined ){
return '';
}else{
return str.split('-')[0] + '-' + str.split('-')[1];
}
};
function loadList(_fenNum, _pingNum){
$.ajax({
......@@ -167,7 +175,7 @@ $(function() {
'1': dealStar(item['evaluate_grade']),
'2': dealStarText(item['evaluate_grade']),
'3': item['created'],
'4': (item['receptiontime'] != ''||item['houserAddress'] != '')?(item['receptiontime'].split('-')[0]+'-'+item['receptiontime'].split('-')[1]+'在'+item['houserAddress']['address']+'看房'):'暂无看房数据',
'4': (item['receptiontime'] != ''||item['houserAddress'] != '')?(dealTimeKf(item['receptiontime'])+'在'+item['houserAddress']['address']+'看房'):'暂无看房数据',
'5': item['evaluate_content'],
'6': location.protocol+'//'+item['user_pic'],
'7': ServerHost+'/app/images/ic_default_headpic.png'
......
......@@ -48,6 +48,14 @@ $(function() {
return '非常差';
};
};
function dealTimeKf(str){
if(str === '' || str === null || str === undefined ){
return '';
}else{
return str.split('-')[0] + '-' + str.split('-')[1];
}
};
function ajaxUl(fn){
$.ajax({
......@@ -82,7 +90,7 @@ $(function() {
'1': dealStar(item['evaluate_grade']),
'2': dealStarText(item['evaluate_grade']),
'3': item['created'],
'4': (item['receptiontime'] != ''||item['houserAddress'] != '')?(item['receptiontime'].split('-')[0]+'-'+item['receptiontime'].split('-')[1]+'在'+item['houserAddress']['address']+'看房'):'暂无看房数据',
'4': (item['receptiontime'] != ''||item['houserAddress'] != '')?(dealTimeKf(item['receptiontime'])+'在'+item['houserAddress']['address']+'看房'):'暂无看房数据',
'5': item['evaluate_content'],
'6': location.protocol+'//'+item['user_pic'],
'7': ServerHost+'/app/images/ic_default_headpic.png'
......
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