{if ($info['uid'].mob_yz) ==1} <a href="javascript:;" style="color:blue;" title="手机已验证" class="layui-icon layui-icon-cellphone"></a> {else} <a href="javascript:;" style="color:#ccc;" title="验证,即可点亮" class="layui-icon layui-icon-cellphone"></a> {/if}
当用户已经验证手机就点亮 未验证就是灰色。。
{if ($info['uid']['mob_yz']) ==1} <a href="javascript:;" style="color:blue;" title="手机已验证" class="layui-icon layui-icon-cellphone"></a> {else} <a href="javascript:;" style="color:#ccc;" title="验证,即可点亮" class="layui-icon layui-icon-cellphone"></a> {/if}
{if (:get_user($info['uid'])['mob_yz']) ==1} <a href="javascript:;" style="color:blue;" title="手机已验证" class="layui-icon layui-icon-cellphone"></a> {else} <a href="javascript:;" style="color:#ccc;" title="验证,即可点亮" class="layui-icon layui-icon-cellphone"></a> {/if}
试了几种方式都不行的呢?