模板手册

模板指令(标签)

<@cms_member_follow>

<@cms_member_follow>

会员关注/粉丝列表标签

标签名

<@cms_member_follow>

标签描述

获取关注/粉丝数据列表,内嵌 <#list DataList as member>${member.displayName}</#list> 遍历数据

标签属性

属性名类型必填可用值描述
pageBOOLEANtrue=是
false=否
是否分页获取数据
默认:false
sizeINTEGER分页数据条数,默认:20
conditionSTRING扩展sql条件语句,例如:title like 'a%'
uidINTEGER用户ID
typeSTRINGfollow=关注
follower=粉丝
类型

用法示例

示例1

使用场景:

<@cms_member_follow uid="${Member.memberId}" type="follow" page="true" size="16">
<#list DataList as member>
  <li class="follow-item">
    <div class="follow-item-avatar">
      <a href="${accountUrl(member.memberId, '', false)}" target="_blank">
          <img src="${((member.avatar!'')=='')?then(Prefix+'images/default_avatar.png',MemberResourcePrefix + member.avatar!!)}" />
      </a>
    </div>
    <div class="follow-item-text">
      <h2 class="follow-item-name">
        <a href="${accountUrl(member.memberId, '', false)}" target="_blank">${member.displayName}</a></h2>
      <div class="follow-item-desc">${member.slogan!'这个人很懒,什么都没有留下~'}</div>
    </div>
    <div class="follow-item-action">
      <button type="button" data-user="${member.memberId}">关注</button>
    </div>
  </li>
</#list>
</@cms_member_follow>