Description: Used to obtain user group detail data
Usage:{% userGroupDetail 变量名称 with name="字段名称" id="1" %}The variable name is not required. After setting the variable name, it can be called later by the variable name, and if the variable name is not set, it is output directly.
The 'userGroupDetail' supports the following parameters:
- User group ID
id.idChoose level or id to specify which user group ID details to retrieve. - User group level
level.levelChoose either level or id to specify which user group level details to retrieve.
The fields available for the name parameter are:
- User group ID
Id - User group name
Title - User group introduction
Description - User group level
Level - Group purchase price
Price - Discount price
FavorablePrice - Group settings
SettingGroup settings are set as key-value pairs.
User group IDId
Label usage:{% userGroupDetail with name="Id" %}
{# 默认用法,自动获取当前当前页面用户组ID #}
<div>UserID:{% userGroupDetail with name="Id" %}</div>
{# 获取指定用户组ID #}
<div>UserID:{% userGroupDetail with name="Id" id="1" %}</div>
{# 自定义字段名称 #}
<div>UserID:{% userGroupDetail getId with name="Id" %}{{getId}}</div>
<div>UserID:{% userGroupDetail getId with name="Id" id="1" %}{{getId}}</div>
User group nameTitle
Label usage:{% userGroupDetail with name="Title" %}
{# 默认用法,自动获取当前当前页面用户组ID #}
<div>用户组名称:{% userGroupDetail with name="Title" %}</div>
{# 获取指定Tagid的Tag字段 #}
<div>用户组名称:{% userGroupDetail with name="Title" id="1" %}</div>
{# 自定义字段名称 #}
<div>用户组名称:{% userGroupDetail groupName with name="Title" %}{{groupName}}</div>
<div>用户组名称:{% userGroupDetail groupName with name="Title" id="1" %}{{groupName}}</div>
User group introductionDescription
Label usage:{% userGroupDetail with name="Description" %}
{# 默认用法,自动获取当前当前页面用户组ID #}
<div>用户组介绍:{% userGroupDetail with name="Description" %}</div>
{# 获取指定Tagid的Tag字段 #}
<div>用户组介绍:{% userGroupDetail with name="Description" id="1" %}</div>
{# 自定义字段名称 #}
<div>用户组介绍:{% userGroupDetail groupDescription with name="Description" %}{{groupDescription}}</div>
<div>用户组介绍:{% userGroupDetail groupDescription with name="Description" id="1" %}{{groupDescription}}</div>