module/flk/themes/index/js/app.js

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

$(document).on("click",".js-fav-toggle",function(){
	var tablename=$(this).attr("tablename");
	var objectid=$(this).attr("objectid");
	var that=$(this);
	$.get("/index.php?m=fav&a=toggle&ajax=1",{
		tablename:tablename,
		objectid:objectid
	},function(res){
		skyToast(res.message);
		if(res.error==1000){
			window.location="/index.php?m=login";
			return false;
		}else{
			if(res.data=='add'){
				that.addClass("btn-fav-active");
			}else{
				that.removeClass("btn-fav-active");
			}
		}
		
	},"json")
})
$(document).on("click",".js-love-toggle",function(){
	var tablename=$(this).attr("tablename");
	var objectid=$(this).attr("objectid");
	var that=$(this);
	$.get("/index.php?m=love&a=toggle&ajax=1",{
		tablename:tablename,
		objectid:objectid
	},function(res){
		skyToast(res.message);
		if(res.error==1000){
			window.location="/index.php?m=login";
			return false;
		}else{
			if(res.data=='add'){
				that.addClass("btn-love-active");
			}else{
				that.removeClass("btn-love-active");
			}
		}
		
	},"json")
})

$(document).on("click",".js-follow-toggle",function(){
	var userid=$(this).attr("data-userid");
	var obj=$(this);
	$.get("/index.php?m=follow&a=toggle&ajax=1&t_userid="+userid,function(res){
		if(res.error==1000){
			loginBoxShow();
			return false;
		}
		if(res.error){
			skyToast(res.message);
			return false;
		}
		if(res.follow==1){
			obj.html("已关注");
		}else{
后面还有 4 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。