作者 开飞机的舒克

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

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