Authored by mali

二手图片描述为空的兼容显示

... ... @@ -98,7 +98,7 @@
$("#desc").html(result.data.desc);
var imageStr = "<table><tbody><tr>";
for (var i = 0 ;i < result.data.imageInfoList.length; i++){
var descStr = result.data.imageInfoList[i].imageDesc ? result.data.imageInfoList[i].imageDesc : '';
var descStr = result.data.imageInfoList[i].imageDesc ? result.data.imageInfoList[i].imageDesc : '其他';
imageStr += "<td><img height='100px;' width='100px;' class='pimg' src='"+result.data.imageInfoList[i].imageUrl+"'/><div style='height:21px;' title='" + descStr + "'>" + descStr + "</div></td>";
if(i % 7 == 0 && 0 != i && i != (result.data.imageInfoList.length - 1)) {
... ...
... ... @@ -301,7 +301,7 @@ $(function() {
$("#secondDesc").html(result.data.desc);
var imageStr = "<table><tbody><tr>";
for (var i = 0 ;i < result.data.imageInfoList.length; i++){
var imageDesc = result.data.imageInfoList[i].imageDesc ? result.data.imageInfoList[i].imageDesc : '&nbsp;';
var imageDesc = result.data.imageInfoList[i].imageDesc ? result.data.imageInfoList[i].imageDesc : '其他';
imageStr += "<td><img height='100px;' width='100px;' class='pimg1' src='"+result.data.imageInfoList[i].imageUrl+"'/><div title='" + imageDesc + "'>" + imageDesc + "</div></td>";
if(i % 8 == 0 && 0 != i && i != (result.data.imageInfoList.length - 1)) {
imageStr += "</tr><tr>";
... ...