获取产品列表指令
指令介绍
productList,获取产品列表。
方法参数
参数名称 | 参数说明 | 参数类型 | 是否必须 |
categoryUUID | 分类uuid | String | 否 |
count | 数量 | Integer | 否 |
searchProperty | 搜索属性 | String | 否 |
searchValue | 搜索值 | String | 否 |
orderProperty | 排序属性 | String | 否 |
orderDirection | 排序方式(asc,desc) | String | 否 |
使用方法
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<@productList count=2>
<#list products as data>
<h3>${data.title}</h3>
</#list>
</@productList>
</body>
</html>
效果展示