🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## **6. detail:内容详情** **参数** | 参数名 | 类型 | 默认值 | 说明 | | --- | --- | --- | --- | | id | int | `必填` | 内容id | **字段** | 说明| 调用代码 | | --- | --- | | 标题 | `{$detail.title}` | | 自定义标题 | `{$detail.custom_title}` | | 展示图 | `{$detail.img}` | | seo标题 | `{{$detail.seo_title}` | | seo关键字 | `{$detail.seo_keywords}` | | seo描述 | `{$detail.seo_describe}` | | 浏览量 | `{$detail.browse}` | | 链接 | `{$detail.url}` | | 创建时间 | `{$detail.time}` | | 最后编辑时间 | `{$detail.edit_time}` | | tag标签 | `{$detail.tag}` | | 上一篇标题 | `{$detail.prev_title}` | | 上一篇链接 | `{$detail.prev_url}` | | 下一篇标题 | `{$detail.next_title}` | | 下一篇链接 | `{$detail.next_url}` | | 当前分类名称 | `{$detail.cat_name}` | **注意** 自定义模型字段在 后台的 **模型管理- 中查看** **示例** ``` {jidu:detail id="$content_id"} <div class="contents"> <h1 class="contents_title"> {$detail.title} </h1> <div> {$detail.detail} </div> </div> <div class="point"> <span class="to_prev col-xs-12 col-sm-6 col-md-6"> 上一条: <a href="{$detail.prev_url}"> {$detail.prev_title} </a> </span> <span class="to_next col-xs-12 col-sm-6 col-md-6"> 下一条: <a href="{$detail.next_url}"> {$detail.next_title} </a> </span> </div> {/jidu:detail} ``` **说明** $content_id 为内容id,已定义,直接使用即可