注意, ‘7’ 是字符串, 7是数字
{if condition="substr($vo['status'],0,1) eq '7'"} <button type="button" class="btn btn-link" style="color:green!important;text-decoration: none;">正常订单</button> {elseif condition="substr($vo['status'],1,1) neq '7'"} <button type="button" class="btn btn-link" style="color:red!important;text-decoration: none;">异常订单</button> {/if}