作者 郭盛
1 个管道 的构建 通过 耗费 3 秒

修改图片详情

... ... @@ -14,6 +14,12 @@
<ul class="row list-inline plupload-preview" id="p-thumbnail"></ul>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
<div class="col-xs-12 col-sm-8">
<textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
</div>
</div>
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">
... ...
... ... @@ -14,6 +14,12 @@
<ul class="row list-inline plupload-preview" id="p-thumbnail"></ul>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
<div class="col-xs-12 col-sm-8">
<textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
</div>
</div>
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">
... ...
... ... @@ -46,6 +46,35 @@ class Index extends Api
}
/**
* @ApiTitle (轮播图详情)
* @ApiSummary (轮播图详情)
* @ApiMethod (POST)
* @ApiRoute (/api/index/picdetail)
*
* @ApiParams (name="id", type="int", required=false, description="图片id")
*
* @ApiReturn({
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"content"://内容
}
})
*/
public function picdetail()
{
$id = $this->request->param('id');
if(empty($id)){
$this->error('缺少必要参数');
}
$data = Db::name('pic')
->where('id',$id)
->find();
$this->success('success',$data);
}
/**
* @ApiTitle (首页咨询分类列表)
* @ApiSummary (首页咨询分类列表)
* @ApiMethod (POST)
... ...
此 diff 太大无法显示。