define(['md5', 'notify'], function (SparkMD5, Notify, allowMime) { allowMime = JSON.parse('
Warning: Undefined variable $exts in /www/wwwroot/wicv2408/public/wicvtouch/runtime/temp/0bc8588477feea1b40f9cc719e1497ca.php on line 3
'); function UploadAdapter(elem, done) { return new (function (elem, done) { let that = this; /*! 初始化变量 */ this.option = {elem: $(elem), exts: [], mimes: []}; this.option.size = this.option.elem.data('size') || 0; this.option.safe = this.option.elem.data('safe') ? 1 : 0; this.option.hide = this.option.elem.data('hload') ? 1 : 0; this.option.mult = this.option.elem.data('multiple') > 0; this.option.path = (this.option.elem.data('path') || '').replace(/\W/g, ''); this.option.type = this.option.safe ? 'local' : this.option.elem.attr('data-uptype') || ''; this.option.quality = parseFloat(this.option.elem.data('quality') || '1.0'); this.option.maxWidth = parseInt(this.option.elem.data('max-width') || '0'); this.option.maxHeight = parseInt(this.option.elem.data('max-height') || '0'); this.option.cutWidth = parseInt(this.option.elem.data('cut-width') || '0'); this.option.cutHeight = parseInt(this.option.elem.data('cut-height') || '0'); /*! 查找表单元素, 如果没有找到将不会自动写值 */ if (!this.option.elem.data('input') && this.option.elem.data('field')) { this.$input = $('input[name="' + this.option.elem.data('field') + '"]:not([type=file])'); this.option.elem.data('input', this.$input.size() > 0 ? this.$input.get(0) : null); } /*! 文件选择筛选,使用 MIME 规则过滤文件列表 */ $((this.option.elem.data('type') || '').split(',')).map(function (i, e) { if (allowMime[e]) that.option.exts.push(e), that.option.mimes.push(allowMime[e]); }); /*! 初始化上传组件 */ this.adapter = new Adapter(this.option, layui.upload.render({ url: '
Fatal error: Uncaught Error: Call to undefined function url() in /www/wwwroot/wicv2408/public/wicvtouch/runtime/temp/0bc8588477feea1b40f9cc719e1497ca.php:36 Stack trace: #0 {main} thrown in /www/wwwroot/wicv2408/public/wicvtouch/runtime/temp/0bc8588477feea1b40f9cc719e1497ca.php on line 36