modified 完成文档主图片显示

This commit is contained in:
zhaoxiang 2018-03-04 22:59:36 +08:00
parent ea1cae1d54
commit 147067f70b
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
<div class="ui items"> <div class="ui items">
<div class="item"> <div class="item">
<div class="image"> <div class="image">
<img src="http://static10.photo.sina.com.cn/middle/5a3ab1b1x9961016a8699&690"> <img src="{$groupInfo['image'] ? $groupInfo['image'] : '/static/defaultImg.jpg'}">
</div> </div>
<div class="content"> <div class="content">
<span class="header">{$groupInfo['name']}</span> <span class="header">{$groupInfo['name']}</span>
@ -191,7 +191,7 @@
imgExpanded: "__STATIC__/jsonFormater/Expanded.gif" imgExpanded: "__STATIC__/jsonFormater/Expanded.gif"
}; };
window.jf = new JsonFormater(options); window.jf = new JsonFormater(options);
jf.doFormat('{$detail["returnStr"]}'); jf.doFormat({$detail["returnStr"]});
}(); }();
}); });
$('.ui .vertical').css('max-height', $('#detail').outerHeight(true)); $('.ui .vertical').css('max-height', $('#detail').outerHeight(true));

View File

@ -32,7 +32,7 @@
{if condition="$apiLength"} {if condition="$apiLength"}
<div class="card column"> <div class="card column">
<a class="image" href="{:url('/wiki/detail/' . $key)}"> <a class="image" href="{:url('/wiki/detail/' . $key)}">
<img src="http://static10.photo.sina.com.cn/middle/5a3ab1b1x9961016a8699&690"> <img src="{$groupInfo[$key]['image'] ? $groupInfo[$key]['image'] : '/static/defaultImg.jpg'}">
</a> </a>
<div class="content"> <div class="content">
<a class="header" href="{:url('/wiki/detail/' . $key)}"> <a class="header" href="{:url('/wiki/detail/' . $key)}">

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB