图文列表数据
用法示例
点此复制
<getArticleList name="$List" page="$.Q.page" limit="$.Q.limit" keyword="$.Q.keyword" random="false" categoryPid="$.Q.type_id" categoryId="$.U.cate_id" order="1"> <foreach name="$item" index="$index" data="$List.List"> <li index="{{$index}}">{{$item.Name}}</li> </foreach> </getArticleList>
标签参数
标签参数(路由参数) | ||||
---|---|---|---|---|
字段名 | 字段类型 | 字段说明 | 必填项 | 默认值 |
limit | int | 条数 | false | |
offset | int | 偏移量 | false | |
random | bool | 随机 | false | |
categoryId | int | 分类id(二级id) | false | |
categoryPid | int | 分类父id(一级id) | false | |
keyword | string | 关键字 | false | |
page | int | 页码 | false | |
hots | bool | 热门 | false | |
order | string | 排序 1:人气倒序 2人气正序 | false | |
name | string | 变量名 | false | $List |
响应示例
200
响应成功
{
-- Total:0, // 总数
-- List:[ // 数据
---- {
------ Id:0
------ Name:""
------ SurfacePlot:""
------ Category:{
-------- ID:0, // id
-------- Name:"", // 名称
------ }
------ CategoryChild:{
-------- Category:{
---------- ID:0, // id
---------- Name:"", // 名称
-------- }
------ }
------ CategoryPid:0
------ CategoryChildId:0
------ Popularity:0, // 人气
------ UpdateAt:0, // 更新时间
------ Introduce:"", // 简介
---- }
-- ]
-- Update:0, // 更新
-- Count:0, // 当前页返回条数
}