public/static/js/admin/storage.js

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/**
 * 人人站CMS
 * ============================================================================
 * 版权所有 2015-2030 山东康程信息科技有限公司,并保留所有权利。
 * 网站地址: http://www.rrzcms.com
 * ----------------------------------------------------------------------------
 * 如果商业用途务必到官方购买正版授权, 以免引起不必要的法律纠纷.
 * ============================================================================
 */
(function ($) {

    var H5Upload = function (el) {
        this.uploadStatus = 0; // 上传状态 0:等待上传  1:上传成功  2:上传中
        this.uploadLimitSize = 1024 * 1024 * 2; // 上传限制字节
        this.uploadList = []; // 上传列表
    };
    H5Upload.prototype = {
        uploadList: [],
        upload_file: function (fileStart, index) {
            // 开始上传
            if (fileStart == undefined && this.uploadList.length == 0) {
                fileStart = 0, index = 0;
            }
            // 结束上传
            if (this.fileList.length === index) {
                return false;
            }
        }
    };


    var FileStorage = function (callback, multiple) {
        var options = $.isPlainObject(callback) ? callback : {};
        if ($.isFunction(callback)) {
            options.callback = callback;
            options.multiple = multiple || false;
        }

        if (this === window) {
            return new FileStorage(options);
        }
        this.init(options);
        return this;
    };
    FileStorage.prototype = {
        $elem: $(window),
        isAll: false,
        multiple: false,
        type: 'other',
        watermark: true,
        url: window._global.root + '/Index/storage?type=other',
        uploadInst: null,
        platform: 'local',//存储类型
        uploadUrl: window._global.root + '/Upload/index?type=other',
        callback: function (url) {
            $('[lay-upvalue]', this).val(url);
            $('[lay-uphref]', this).attr('href', url);
            $('[lay-upsrc]', this).attr('src', url);
        },
        init: function (options) {

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。