正在显示
4 个修改的文件
包含
41 行增加
和
0 行删除
@@ -14,6 +14,12 @@ | @@ -14,6 +14,12 @@ | ||
14 | <ul class="row list-inline plupload-preview" id="p-thumbnail"></ul> | 14 | <ul class="row list-inline plupload-preview" id="p-thumbnail"></ul> |
15 | </div> | 15 | </div> |
16 | </div> | 16 | </div> |
17 | + <div class="form-group"> | ||
18 | + <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label> | ||
19 | + <div class="col-xs-12 col-sm-8"> | ||
20 | + <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea> | ||
21 | + </div> | ||
22 | + </div> | ||
17 | <div class="form-group layer-footer"> | 23 | <div class="form-group layer-footer"> |
18 | <label class="control-label col-xs-12 col-sm-2"></label> | 24 | <label class="control-label col-xs-12 col-sm-2"></label> |
19 | <div class="col-xs-12 col-sm-8"> | 25 | <div class="col-xs-12 col-sm-8"> |
@@ -14,6 +14,12 @@ | @@ -14,6 +14,12 @@ | ||
14 | <ul class="row list-inline plupload-preview" id="p-thumbnail"></ul> | 14 | <ul class="row list-inline plupload-preview" id="p-thumbnail"></ul> |
15 | </div> | 15 | </div> |
16 | </div> | 16 | </div> |
17 | + <div class="form-group"> | ||
18 | + <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label> | ||
19 | + <div class="col-xs-12 col-sm-8"> | ||
20 | + <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea> | ||
21 | + </div> | ||
22 | + </div> | ||
17 | <div class="form-group layer-footer"> | 23 | <div class="form-group layer-footer"> |
18 | <label class="control-label col-xs-12 col-sm-2"></label> | 24 | <label class="control-label col-xs-12 col-sm-2"></label> |
19 | <div class="col-xs-12 col-sm-8"> | 25 | <div class="col-xs-12 col-sm-8"> |
@@ -46,6 +46,35 @@ class Index extends Api | @@ -46,6 +46,35 @@ class Index extends Api | ||
46 | } | 46 | } |
47 | 47 | ||
48 | /** | 48 | /** |
49 | + * @ApiTitle (轮播图详情) | ||
50 | + * @ApiSummary (轮播图详情) | ||
51 | + * @ApiMethod (POST) | ||
52 | + * @ApiRoute (/api/index/picdetail) | ||
53 | + * | ||
54 | + * @ApiParams (name="id", type="int", required=false, description="图片id") | ||
55 | + * | ||
56 | + * @ApiReturn({ | ||
57 | + "code": 1, | ||
58 | + "msg": "成功", | ||
59 | + "time": "1571492001", | ||
60 | + "data": { | ||
61 | + "content"://内容 | ||
62 | + } | ||
63 | + }) | ||
64 | + */ | ||
65 | + public function picdetail() | ||
66 | + { | ||
67 | + $id = $this->request->param('id'); | ||
68 | + if(empty($id)){ | ||
69 | + $this->error('缺少必要参数'); | ||
70 | + } | ||
71 | + $data = Db::name('pic') | ||
72 | + ->where('id',$id) | ||
73 | + ->find(); | ||
74 | + $this->success('success',$data); | ||
75 | + } | ||
76 | + | ||
77 | + /** | ||
49 | * @ApiTitle (首页咨询分类列表) | 78 | * @ApiTitle (首页咨询分类列表) |
50 | * @ApiSummary (首页咨询分类列表) | 79 | * @ApiSummary (首页咨询分类列表) |
51 | * @ApiMethod (POST) | 80 | * @ApiMethod (POST) |
此 diff 太大无法显示。
-
请 注册 或 登录 后发表评论