总浏览次数支持单位万

This commit is contained in:
LingZhaoHui 2020-10-06 13:27:29 +08:00
parent a8ce1b85c5
commit 5236fe7f00

View File

@ -68,7 +68,13 @@ box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1);">
浏览
</p>
<p class="title has-text-weight-normal">
${statistic.statisticBlogViewCount}
<#if statistic.statisticBlogViewCount?length gt 5>
<#assign viewCount=statistic.statisticBlogViewCount?number/>
<#assign viewCountWan=viewCount/10000 />
${viewCountWan?string('#.##')}万
<#else>
${statistic.statisticBlogViewCount}
</#if>
</p>
</div>
</div>