src/ZKEACMS.WebHost/wwwroot/js/PageDesign.js
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*! http://www.zkea.net/
* Copyright (c) ZKEASOFT. All rights reserved.
* http://www.zkea.net/licenses */
$(function () {
$(".zone").sortable({
items: ">div:not(.zoneName)",
placeholder: "sorting",
handle: ".sort-handle",
tolerance: "pointer",
connectWith: ".zone",
stop: function (event, ui) {
var target = ui.item.parent();
if (ui.item.data("add")) {
$.ajax({
type: "POST",
url: $("#append-widget-url").val(),
dataType: 'html',
async: false,
data: {
ID: ui.item.data("id"),
ZoneId: $("input.zoneId", this).val(),
PageId: $("#pageId").val(),
AssemblyName: ui.item.data("assemblyname"),
ServiceTypeName: ui.item.data("servicetypename"),
Position: 1
},
success: function (data) {
ui.item.replaceWith(data);
}
});
}
var widgets = [];
target.find(".widget-design").each(function (i, ui) {
widgets.push({
ID: $(ui).data("widgetid"),
ZoneId: $(".zoneId", target).val(),
Position: i + 1
});
});
$.ajax({
type: "POST",
url: $("#save-widget-zone-url").val(),
dataType: 'json',
contentType: "application/json;charset=utf-8",
async: false,
data: JSON.stringify(widgets),
success: function () {
}
});
return true;
}
});
$(".templates ul li").draggable({ helper: "clone", connectToSortable: ".zone" });
$(document).on("click", ".zoneToolbar .delete", function () {
var th = $(this);
$.post(th.data("url"), { ID: th.data("id") }, function (data) {
if (data) {
后面还有 80 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。