判断是否有下载链接和判断是否有官网链接,如果没有就显示不同的图标和不能点击跳转。
实现代码:
<div class="btn-group btn-group-justified m-b {dede:field.baiduyun runphp='yes'}if(@me ==''){@me='normal-cursor';}else{@me='';}{/dede:field.baiduyun}"><a href="{dede:field.baiduyun/}" class="btn btn-success btn-rounded"><i class="{dede:field.baiduyun runphp='yes'}if(@me ==''){@me='fa fa-times';}else{@me='icon-cloud-download';}{/dede:field.baiduyun}"></i></a><a {dede:field.guanwang runphp='yes'}if(@me ==''){@me='';}else{@me='"href=\"'@me'\"';}{/dede:field.guanwang} class="btn btn-dark btn-rounded {dede:field.guanwang runphp='yes'}if(@me ==''){@me='normal-cursor';}else{@me='';}{/dede:field.guanwang}"><i class="{dede:field.guanwang runphp='yes'}if(@me ==''){@me='fa fa-eye-slash';}else{@me='fa fa-eye';}{/dede:field.guanwang}"></i></a></div>
主要代码:
{dede:field.baiduyun runphp='yes'}if(@me ==''){@me='normal-cursor';}else{@me='';}{/dede:field.baiduyun}