main.js 1.78 KB
requirejs.config({
    baseUrl: 'js/views',
    paths: {
        jquery: '../jquery.min',
        css: '../require.css.min',
        i18n: '../require.i18n',
        json2: '../json2',
        cls: '../plugin/rs.class',
        rs_load: '../plugin/rs.load',
        rs_toolbar: '../plugin/rs.toolbar',
        rs_condfield: '../../query/js/plugin/rs.condfield',
        rs_condition: '../../query/js/plugin/rs.condition',
        rs_condobject: '../../query/js/plugin/rs.condobject',
        rs_treeobject: '../../query/js/plugin/rs.treeobject',
        rs_condfield_ext: '../../query/js/plugin/rs.condfield.ext',
        cookie: '../third/jquery/jquery.cookie',
        easyui: '../third/easyui/jquery.easyui.min',
        'easyui_zh-CN': '../third/easyui/locale/easyui-lang-zh_CN',
        moment:'../third/moment/moment.min',
        lodash:'../third/lodash/lodash.min',
        qrcode: '../third/jquery/jquery.qrcode',
        jspdf: '../third/pdf/jspdf.min',
        echarts: '../third/echarts/echarts-all',
        ckeditor: '../third/ckeditor/ckeditor',
        uploadify: '../third/uploadify/jquery.uploadify.min',
        qiniu: '../third/qiniu/qiniu.min',
        plupload: '../third/plupload/plupload.full.min'
    },
    shim: {
        easyui: ['jquery'],
        'easyui_zh-CN': ['easyui'],
        rs_condfield: ['easyui'],
        rs_condfield_ext: ['rs_condfield'],
        rs_condition: ['rs_condfield_ext'],
        rs_condobject: ['rs_condition'],
        rs_treeobject: ['easyui'],
        uploadify: ['jquery'],
        ckeditor: ['css!../third/ckeditor/skins/moono/editor.css']
    },
    map: {
        '*': {
            easyui_locale: 'easyui_zh-CN'
        }
    },
    config: {
        i18n: {
            locale: 'zh-CN'
        }
    },
    waitSeconds: 15
});
requirejs(['index/index']);