帮助

前端模板页面如何调用会员列表

2023-12-20 08:48 标签调用

易优cms前端模板页面需要以列表形式调用全站会员信息时,该如何使用标签调用呢?

请参考下面代码。

{eyou:memberlist row='10' orderby='logintime' id='userslist'}
    <div id="{$userslist.txtid}">
            <div>会员字段:</div>
            <span>用户id:{$userslist.users_id}</span>
            <span>用户头像:<img src="{$userslist.head_pic}" style="width: 60px; height: 60px;"></span>
            <span>用户昵称:{$userslist.nickname}</span>
            <span>用户名称:{$userslist.username}</span>
            <span>手机号码:{$userslist.mobile}</span>
            <span>邮箱地址:{$userslist.email}</span>
            <span>会员级别:{$userslist.level}</span>
            <span>会员天数:{$userslist.level_maturity_days}</span>
            <span>积分:{$userslist.scores}</span>

            <div>自定义字段:</div>
            <!-- 自定义字段需要后台审查元素查看字段ID -->
            <span>{$userslist.para_3}</span>
            <span>{$userslist.para_4}</span>
            <span>{$userslist.para_5}</span>
            <span>{$userslist.para_6}</span>
    </div>
    {$userslist.hidden}
{/eyou:memberlist}



QQ在线咨询