Song.Site/Manage/Sys/Scripts/SysMenu.js
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//默认信息
var defvalue = {
//根节点id
rootid: function () {
var def = 103;
var root = $().getPara("id");
root = isNaN(root) ? -1 : Number(root);
root = parseInt(root) <= 0 ? def : parseInt(root);
return root;
},
//菜单类型,func为功能菜单,sys为系统菜单
type: "sys",
//图标默认位置
ico: { x: 90, y: 101 }
}
//分类的根节点
var rootid = defvalue.rootid();
//
$(function () {
setTimeout("initloyout()", 100);
setEditPanel("root");
icoEvent();
$().SoapAjax("ManageMenu", "Order", { result: "", rootid: rootid, type: defvalue.type }, funcc, loading, unloading);
});
//页面初始化布局
function initloyout() {
$("input[type='text']").addClass("TextBox");
//左侧菜单树区域 //右侧编辑区域
var h = document.documentElement.clientHeight - 20;
$("#MenuTreePanel").height(h - 120);
$("#Panel").height(h - 153);
//右侧编辑区事件
$("#EditPanelTitle div").click(function () {
var type = $(this).attr("type");
setEditPanel(type);
});
//保存按钮
$("input[name$='btnEnter']").click(function () {
if (!Verify.IsPass($("form:visible"))) {
return false;
};
update.submit(); //提交编辑数据
return false;
});
}
//图示事件
function icoEvent() {
$(".ico").click(function () {
var panel = $("#icoPanel");
var off = $(this).offset();
panel.css({ left: off.left - panel.width() / 2, top: off.top + $(this).height() });
panel.show();
panel.mousemove(function (elem, e) {
var ico = $(".ico:visible");
var xy = $().Mouse(e);
var off = $("#icoPanel").offset();
var x = xy.x - off.left - 8;
var y = xy.y - off.top - 9;
ico.attr("left", x).attr("top", y);
后面还有 243 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
