作者 开飞机的舒克

后台活动详情新增多张图片

@@ -3,6 +3,7 @@ @@ -3,6 +3,7 @@
3 return [ 3 return [
4 'Title' => '活动名称', 4 'Title' => '活动名称',
5 'Image' => '活动图片', 5 'Image' => '活动图片',
  6 + 'Images' => '详情中图片',
6 'Depict' => '描述', 7 'Depict' => '描述',
7 'Createtime' => '创建时间', 8 'Createtime' => '创建时间',
8 'Updatetime' => '修改时间' 9 'Updatetime' => '修改时间'
@@ -23,7 +23,7 @@ class Active extends Model @@ -23,7 +23,7 @@ class Active extends Model
23 return $value; 23 return $value;
24 } 24 }
25 25
26 - public function getDepictAttr($value,$data){ 26 + public function getDepictAttr ($value,$data){
27 $value = strip_tags($data['depict']); 27 $value = strip_tags($data['depict']);
28 return $value; 28 return $value;
29 } 29 }
@@ -35,6 +35,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin @@ -35,6 +35,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
35 {field: 'id', title: __('ID'), operate: false}, 35 {field: 'id', title: __('ID'), operate: false},
36 {field: 'title', title: __('Title'), operate: 'LIKE'}, 36 {field: 'title', title: __('Title'), operate: 'LIKE'},
37 {field: 'image', title: __('Image'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.image}, 37 {field: 'image', title: __('Image'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.image},
  38 + {field: 'images', title: __('Images'), operate: false, events: Table.api.events.images, formatter: Table.api.formatter.images},
38 {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} 39 {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
39 ] 40 ]
40 ] 41 ]