SourceCode/jiouosdp/Scripts/div/div-shop.js
(开头部分) 20KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/// <reference path="../jquery-1.5.1-vsdoc.js" />
$(function () {
$("#catalog").accordion();
$("#catalog h6").draggable({
cursor: 'move',
revert: "invalid",
appendTo: "parent",
helper: "clone",
revertDuration: 500,
cancel: ".zhezhaoIn",
addClasses: false,
connectToSortable: "#cart ol",
});
$("#cart ol").droppable({
activeClass: "ui-state-default",
hoverClass: "state-hover",
accept: ":not(.ui-sortable-helper)", /*还原*/
drop: function (event, ui) {
if ($("#cart ol .inin").first().length <= 0) return;
var json = new Object();
json.PageID = newGuid();
json.Type = $(ui.draggable.context).attr("type");
json.IsShow = true;
//$("<h6 class='mid_li_controls' onclick='midControl(event)' submit='0' type='" + json.Type + "' data-id='" + json.PageID + "' id='component_" + json.PageID + "' style='background:#a9a9a9'></h6>").html($('.ui-widget-content ol h6').html()).appendTo(this);
$("#cart ol .inin").first().parent().attr("data-id", json.PageID);
$("#cart ol .inin").first().parent().attr("id", "component_" + json.PageID);
$("#cart ol .inin").remove();
$("#cart ol .catalogIn").css("display", "block");
layer.load();
$.ajax({
url: "/divshop/page/settingpage",
data: { type: json.Type, json: JSON.stringify(json) },
type: "post",
success: function (context) {
layer.closeAll();
$(".mainRight li").hide();
$(".mainRight").append(context);
},
error: function () { layer.closeAll(); }
});
// hover事件
$(".phoneIn").hover(function (event) {
$(this).children('.phoneIn-del').stop().animate({ "top": "0" }, 100);
$(this).css("border", "1px dashed blue");
}, function () {
$(".phoneIn").children('.phoneIn-del').stop().animate({ "top": "-32px" }, 100);
$(this).css("border", "none")
});
$(".touming").click(function (event) {
$(".zhezhao").hide();
$(".zhezhaoIn").stop().animate({ "top": "-180px" }, 300);
后面还有 508 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。