更新页面文件

This commit is contained in:
2019-07-06 21:14:19 +08:00
parent 79615defdb
commit 1b2fc10502
56 changed files with 3847 additions and 103 deletions

View File

@@ -128,29 +128,27 @@ require.config({
charset: 'utf-8' // 文件编码
});
require(['jquery', 'nanoscroller', 'bootstrap'], function($){
require(['jquery', 'nanoscroller', 'bootstrap', 'sent'], function($, undefined, undefined, Sent){
$(function($) {
require(['sent'], function(Sent){
require(['backend', 'backend-init', 'addons'], function (Backend, undefined, Addons) {
// 避免目录冲突
require.config({baseUrl: '/static/admin/js/module/'});
require(['backend', 'backend-init', 'addons'], function (Backend, undefined, Addons) {
// 避免目录冲突
require.config({baseUrl: '/static/admin/js/module/'});
var current_url = (window.location.pathname).split('/');
if (typeof(isLoadModule) != "undefined" && isLoadModule) {
require([current_url[2]], function(Controller){
var action = current_url[3].split('.');
if (Controller.hasOwnProperty(action[0])) {
Controller[action[0]]();
} else {
if (Controller.hasOwnProperty("_empty")) {
Controller._empty();
}
var current_url = (window.location.pathname).split('/');
if (typeof(isLoadModule) != "undefined" && isLoadModule) {
require([current_url[2]], function(Controller){
var action = current_url[3].split('.');
if (Controller.hasOwnProperty(action[0])) {
Controller[action[0]]();
} else {
if (Controller.hasOwnProperty("_empty")) {
Controller._empty();
}
}, function (e) {
console.error(e); // 这里可捕获模块加载的错误
})
}
})
}
}, function (e) {
console.error(e); // 这里可捕获模块加载的错误
})
}
})
$.fn.removeClassPrefix = function(prefix) {