mirror of https://gitee.com/karson/fastadmin.git
commit
830dd7a20d
|
|
@ -146,7 +146,13 @@ require(['jquery', 'bootstrap'], function ($, undefined) {
|
||||||
//加载相应模块
|
//加载相应模块
|
||||||
if (Config.jsname) {
|
if (Config.jsname) {
|
||||||
require([Config.jsname], function (Controller) {
|
require([Config.jsname], function (Controller) {
|
||||||
Controller[Config.actionname] != undefined && Controller[Config.actionname]();
|
if (Controller.hasOwnProperty(Config.actionname)) {
|
||||||
|
Controller[Config.actionname]();
|
||||||
|
} else {
|
||||||
|
if (Controller.hasOwnProperty("_empty")) {
|
||||||
|
Controller._empty();
|
||||||
|
}
|
||||||
|
}
|
||||||
}, function (e) {
|
}, function (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
// 这里可捕获模块加载的错误
|
// 这里可捕获模块加载的错误
|
||||||
|
|
|
||||||
|
|
@ -409,6 +409,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
|
||||||
});
|
});
|
||||||
Layer.photos({
|
Layer.photos({
|
||||||
photos: {
|
photos: {
|
||||||
|
"start":$(this).index(".img-center"),
|
||||||
"data": data
|
"data": data
|
||||||
},
|
},
|
||||||
anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
|
anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue