This commit is contained in:
2020-04-07 13:50:11 +08:00
parent c12a265034
commit 804846a4b9
17 changed files with 105 additions and 7622 deletions

View File

@@ -15,7 +15,7 @@ class Upload extends Base {
// 使用内置PHP模板引擎渲染模板输出
protected $tpl_config = [
'view_dir_name' => 'viewlte',
'view_dir_name' => 'view',
'tpl_replace_string' => [
'__static__' => '/static',
'__img__' => '/static/admin/images',
@@ -65,7 +65,7 @@ class Upload extends Base {
}
public function upload(){
$upload_type = $this->request->get('filename', 'images', 'trim');
$upload_type = $this->request->get('filename', 'image', 'trim');
$config = $this->$upload_type();
// 获取表单上传文件 例如上传了001.jpg
$file = request()->file('file');

View File

@@ -21,14 +21,4 @@
</div>
</div>
{/volist}
</div>
<script type="text/javascript">
$(function(){
$('.form-group #{$name}_sort').boards({
drop: function(e){
var group = e.target.closest('.board').find('.board-list').attr('data-group');
e.element.find('input').attr('name','{$name}[' + group + '][]')
}
})
})
</script>
</div>