SourceCode/jiouosdp/Scripts/expend/control.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//控件扩展
(function ($) {
//点击事件里面包含初始化
//$.headportrait(function (guid) {
// alert(guid);
//});
////获取小孩GUID方法
//$.getCurrheadportraitGuid();
////设置定位的方法
//$.setCurrMethod("mbr");
$.extend($, {
headportrait: function (func) {
//初始化
var onlineStateTimes = setInterval(function () {
$.ajax({
type: "post",
url: "/WeiXin/GetUserChildListIsOnlineState",
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (context) {
if (context.Result == "OK") {
$.each(context.Data, function () {
if (this.IsOnline)
$('#' + this.ChildGuid).prev(".headportraitdiv").removeClass("offline").addClass("online");
else {
$('#' + this.ChildGuid).prev(".headportraitdiv").removeClass("online").addClass("offline");
}
});
}
}
});
}, 2000);
//点击事件
$(".headportrait .headportraitdiv").click(function () {
//选中图像高亮
$(".headportraitdiv").removeClass("headportraitSelect");
$(this).addClass("headportraitSelect");
var guid = $(this).find('img').attr("ChildGuid");
func(guid);
});
$(".headportrait .headportraitdiv:first").click();
},
getCurrheadportrait: function () {
var $Info = $(".headportraitSelect").next();
return { DeviceNo: $Info.attr("DeviceNo"), Name: $Info.attr("Name"), ChildGuid: $Info.attr("id") };
},
getCurrheadportraitGuid: function () {
var $Info = $(".headportraitSelect").next();
return $Info.attr("id");
},
后面还有 25 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。