diff --git a/public/assets/js/require-backend.js b/public/assets/js/require-backend.js index 03aaa73fcbe263374858fef07f168c5277256898..760b77e6b89b721281546d08c80aef3756bfc937 100644 --- a/public/assets/js/require-backend.js +++ b/public/assets/js/require-backend.js @@ -146,7 +146,13 @@ require(['jquery', 'bootstrap'], function ($, undefined) { //加载相应模块 if (Config.jsname) { 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) { console.error(e); // 这里可捕获模块加载的错误 diff --git a/public/assets/js/require-table.js b/public/assets/js/require-table.js index e259ec32419a178363d1dd79e24f3585b7ecf8ee..ecd310af65726b003881b3bd45fdc11392245ed3 100644 --- a/public/assets/js/require-table.js +++ b/public/assets/js/require-table.js @@ -409,6 +409,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table }); Layer.photos({ photos: { + "start":$(this).index(".img-center"), "data": data }, anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)