精选 AI 工具、自学平台、素材资源、实用工具等优质网站 / 资源,帮你高效找对所需~。
';
html += '';
html += '';
html += '
';
html += '未找到分类,请先创建默认分类
');
}
},
error: function(xhr, status, error) {
console.error("AJAX error:", status, error, xhr.responseText);
$("#post-items-container").html('加载失败,请刷新重试
');
}
});
}
// 渲染链接列表
function renderLinks(links) {
var html = "";
if (links.length === 0) {
html = '暂无链接,点击"添加"按钮添加
';
} else {
links.forEach(function(link) {
var icon = link.icon || "https://www.9eip.com/wp-content/uploads/2025/08/24gl-pictureSplit-1.png";
var editClass = isEditMode ? " edit-mode" : "";
html += '';
if (isEditMode) {
html += '
';
html += '
';
});
}
$("#post-items-container").html(html);
// 如果在编辑模式,初始化拖拽
if (isEditMode) {
initLinkDragAndDrop();
}
}
// 加载导航链接
window.loadNavLinks = function(categoryId) {
console.log("Loading links for category:", categoryId);
currentCategoryId = categoryId;
$.ajax({
url: "https://www.9eip.com/wp-admin/admin-ajax.php",
type: "POST",
data: {
action: "get_nav_links",
category_id: categoryId
},
success: function(response) {
console.log("Links response:", response);
if (response.success) {
var links = response.data;
// 缓存链接数据
cachedLinks[categoryId] = links;
renderLinks(links);
}
},
error: function(xhr, status, error) {
console.error("AJAX error loading links:", status, error);
$("#post-items-container").html('';
html += '
';
}
html += '';
html += '';
html += '
';
html += '
';
html += '
';
html += '' + link.title + '
'; html += '' + (link.description || "") + '
'; html += '加载失败,请刷新重试
');
}
});
};
// 加载最新文章
function loadLatestPosts() {
var posts = [{"type":"sites","title":"GPT Image 2","link":"https:\/\/www.9eip.com\/sites\/168094.html","thumbnail":"https:\/\/www.9eip.com\/wp-content\/uploads\/2026\/04\/image.webp","description":"aigptimage.com \u662f\u4e00\u4e2a\u57fa\u4e8e GPT Image 2 \u7684 AI \u56fe\u50cf\u751f\u6210\u7f51\u7ad9\uff0c\u53ef\u4ee5\u901a\u8fc7\u8f93\u5165\u6587\u5b57\u5feb\u901f\u751f\u6210\u9ad8\u8d28\u91cf\u56fe\u7247\u3002","date":1777324929,"post_id":168094},{"type":"sites","title":"IP\u6570\u636e\u4e91","link":"https:\/\/www.9eip.com\/sites\/168086.html","thumbnail":"https:\/\/a.iwoqi.com\/upload\/ico\/\/b3yms7w3o9okj6e.png","description":"IP\u5730\u5740\u67e5\u8be2\u5de5\u5177\uff0c\u8857\u9053\u7ea7IP\u5f52\u5c5e\u5730\u67e5\u8be2-\u7cbe\u51c6\u5b89\u5168\u5feb\u901f\u7684IP\u5730\u5740\u67e5\u8be2\u7f51\u7ad9-\u652f\u6301IPv4\/IPv6\u4fe1\u606f\u67e5\u8be2\u7f51\u7ad9","date":1776256140,"post_id":168086},{"type":"sites","title":"\u6e9c\u58f0\u97f3\u4e50","link":"https:\/\/www.9eip.com\/sites\/168076.html","thumbnail":"https:\/\/www.9eip.com\/wp-content\/uploads\/2026\/04\/Clip_20260409_194646.png","description":" \u514d\u8d39\u63d0\u4f9b\u6700\u65b0\u3001\u70ed\u95e8\u97f3\u4e50\u4e0b\u8f7d\uff0c\u5305\u542b\u7ecf\u5178\u8001\u6b4c\u3001\u7f51\u7ea2\u70ed\u95e8\u3001\u4e00\u4eba\u4e00\u9996\u6210\u540d\u66f2\u7b49\u591a\u79cd\u5206\u7c7b\uff0c\u8ba9\u60a8\u7545\u542c\u9ad8\u54c1\u8d28\u97f3\u4e50\u3002","date":1775764023,"post_id":168076},{"type":"sites","title":"\u5929\u7a7a\u5f71\u89c6","link":"https:\/\/www.9eip.com\/sites\/168073.html","thumbnail":"https:\/\/ad.tkys.shop\/img\/ico.png","description":"\u514d\u4f1a\u5458\uff0c\u65e0\u5e7f\u544a\uff0c\u7f51\u9875H5\/\u5b89\u5353\/ios\u901a\u7528","date":1775632973,"post_id":168073},{"type":"sites","title":"\u8fb0\u5b89\u56fe\u5e8a","link":"https:\/\/www.9eip.com\/sites\/168070.html","thumbnail":"https:\/\/www.9eip.com\/favicon\/get.php?url=https%3A%2F%2Fimg.luoca.net","description":"\u6c38\u4e45\u514d\u8d39\u5728\u7ebf\u56fe\u5e8a","date":1774818250,"post_id":168070},{"type":"sites","title":"01Agent","link":"https:\/\/www.9eip.com\/sites\/168066.html","thumbnail":"https:\/\/oss.cakegrowth.com\/cake-growth\/product\/2026\/01\/1hc9b211000dfvp0q0ifgg9400927860.png","description":"\u5168\u6d41\u7a0b\u5185\u5bb9\u521b\u4f5c\u667a\u80fd\u4f53\uff0c\u6253\u901a\u201c\u9009\u9898-\u751f\u6210-\u7f16\u8f91-\u5206\u53d1\u201d\u95ed\u73af\u3002","date":1774817462,"post_id":168066},{"type":"sites","title":"\u6930\u5b50\u5f71\u89c6","link":"https:\/\/www.9eip.com\/sites\/168055.html","thumbnail":"https:\/\/www.9eip.com\/wp-content\/uploads\/2026\/03\/Clip_20260328_222908.png","description":"1080P\u5f71\u89c6APP\uff0c\u6240\u6709\u8d44\u6e90\u5747\u4e3a\u6b63\u7248\u6388\u6743\uff0c\u753b\u8d28\u6e05\u6670\u65e0\u5361\u987f\uff0c\u652f\u6301\u6807\u6e05\u3001\u9ad8\u6e05\u30014K\u8d85\u6e05\u591a\u6863\u4f4d\u5207\u6362\uff0c\u642d\u914d\u65e0\u635f\u97f3\u8d28\uff0c\u544a\u522b\u6a21\u7cca\u753b\u8d28\u548c\u5e7f\u544a\u56f0\u6270\uff0c\u5728\u5bb6\u4e5f\u80fd\u4eab\u53d7\u5f71\u9662\u7ea7\u89c2\u5f71\u4f53\u9a8c\u3002","date":1774736961,"post_id":168055},{"type":"sites","title":"TG\u7eb8\u98de\u673a\u8d26\u53f7\u8d2d\u4e70\u5e73\u53f0","link":"https:\/\/www.9eip.com\/sites\/168053.html","thumbnail":"https:\/\/www.9eip.com\/wp-content\/uploads\/2026\/03\/Clip_20260325_214824.png","description":"\u63d0\u4f9b\u98de\u673a\u8d26\u53f7\u8d2d\u4e70\u3001TG\u8d26\u53f7\u3001\u7535\u62a5\u8d26\u53f7\u3001\u6210\u54c1\u53f7\u548c\u8001\u53f7\u5c0f\u53f7\u6279\u53d1\u51fa\u552e\uff0c\u5305\u542b\u4e86\u7f8e\u56fd\u3001\u52a0\u62ff\u5927\u3001\u5370\u5ea6\u3001\u83f2\u5f8b\u5bbe\u3001\u5370\u5c3c\u7b49\u6d77\u5916\u5404\u4e2a\u56fd\u5bb6\u7684\u8d26\u53f7\uff0c\u8d28\u91cf\u7a33\u5b9a\u53ef\u9760\uff0c24\u5c0f\u65f6\u81ea\u52a9\u4e0b\u5355\uff0c\u79d2\u53d1\u8d27\uff0c\u6b22\u8fce\u524d\u6765\u9009\u8d2d\u3002","date":1774475381,"post_id":168053},{"type":"post","title":"Seedream 4.6-5.0\u65b0\u6a21\u578b\uff0c\u5bf9\u6807Nano Banana Pro \u672c\u6708\u514d\u8d39\u3002","link":"https:\/\/www.9eip.com\/167217.html","thumbnail":"https:\/\/www.9eip.com\/wp-content\/uploads\/2026\/02\/Clip_20260211_001340-1.png","description":"\u8fd9\u4e24\u5929\u5b57\u8282\u771f\u7684\u706b\u529b\u5168\u5f00\uff0c\u63a5\u8fde\u653e\u51fa\u4e24\u5927\u738b\u70b8\u6a21\u578b\uff1aSeedance 2.0\uff08\u5f53\u524d\u6700\u5f3a\u89c6\u9891\u751f\u6210\u6a21\u578b\uff09\u3001Se...","date":1770769583,"post_id":167217},{"type":"ai-tool","title":"Seedance 2.0","link":"https:\/\/www.9eip.com\/ai-tool\/seedance-20","thumbnail":"https:\/\/www.9eip.com\/wp-content\/uploads\/2026\/02\/4b037983_5ff5e5d.jpg","description":"\u7531\u5b57\u8282\u8df3\u52a8 Seedance V2 \u6a21\u578b\u9a71\u52a8\uff0c\u4e00\u952e\u521b\u4f5c 1080p \u7535\u5f71\u7ea7\u591a\u955c\u5934\u53d9\u4e8b\u89c6\u9891\u3002","date":1770732891,"post_id":167145},{"type":"sites","title":"OpenCode \u4e2d\u6587\u6559\u7a0b","link":"https:\/\/www.9eip.com\/sites\/167141.html","thumbnail":"https:\/\/www.9eip.com\/favicon\/get.php?url=https%3A%2F%2Flearnopencode.com","description":"AI\u7f16\u7a0b\u4ece\u96f6\u57fa\u7840\u5230\u8fdb\u9636\uff0c\u624b\u628a\u624b\u6559\u4f60\u7528 AI \u7f16\u7a0b\u52a9\u624b\u5199\u4ee3\u7801\u3001\u6539 Bug\u3001\u81ea\u52a8\u5316\u529e\u516c\u3002\u652f\u6301\u667a\u8c31\u3001DeepSeek \u7b49\u56fd\u4ea7\u6a21\u578b\u3002","date":1770731152,"post_id":167141},{"type":"direct-url","title":"[\u5b89\u5353] Jivo\u8da3\u8138\uff0cAI\u89c6\u9891\u6362\u8138\uff01","link":"https:\/\/9eip.com\/words\/44","thumbnail":"https:\/\/www.9eip.com\/wp-content\/uploads\/2026\/02\/Clip_20260209_164907.png","description":"\u53ea\u9700\u7b80\u5355\u51e0\u6b65\u5373\u53ef\u5236\u4f5c\u51fa\u6ee1\u610f\u7684\u6362\u8138\u4f5c\u54c1\u3002\u65e0\u9700\u6ce8\u518c\u767b\u5f55\uff0c\u624b\u673a\u914d\u7f6e\u65e0\u8981\u6c42\uff0c\u66f4\u65e0\u9700\u7ffb\u5899\uff0c\u5373\u53ef\u8ba9\u60a8\u7545\u4eab\u6362\u8138\u7684\u4e50...","date":1770655781,"post_id":167040},{"type":"sites","title":"\u4e50\u5154\u5f71\u89c6","link":"https:\/\/www.9eip.com\/sites\/167036.html","thumbnail":"https:\/\/www.9eip.com\/favicon\/get.php?url=https%3A%2F%2Fwww.letu.me","description":"\u6700\u65b0Netflix\u65b0\u5267_\u9ad8\u6e05\u7535\u5f71\u7535\u89c6\u5267\u514d\u8d39\u5728\u7ebf\u89c2\u770b","date":1770655026,"post_id":167036},{"type":"ai-tool","title":"\u81ea\u7136\u79d1\u5b66\u57fa\u91d1","link":"https:\/\/www.9eip.com\/ai-tool\/zirankexuejijin","thumbnail":"https:\/\/www.9eip.com\/wp-content\/uploads\/2026\/02\/a4ea88fae683d6f1882a988616928114.jpg","description":"75\u4e07 +\u83b7\u6279\u9879\u76ee\u6570\u636e\uff0c\u667a\u80fd\u6790\u70ed\u70b9\uff0c\u4e00\u952e\u751f\u6210\u9ad8\u8d28\u91cf\u7533\u8bf7\u4e66\u3002","date":1770648877,"post_id":167014},{"type":"sites","title":"\u65e5\u5e38\u804a\u5929\u5ba4","link":"https:\/\/www.9eip.com\/sites\/166890.html","thumbnail":"https:\/\/www.9eip.com\/favicon\/get.php?url=https%3A%2F%2Fnichijou.cn","description":"\u4e00\u4e2a\u4ee5\u300a\u65e5\u5e38\u300b\u4e3b\u9898\u7684\u5c0f\u4f17\u7f51\u7ad9\uff0c\u80fd\u4e0e\u597d\u53cb\u4e00\u8d77\u804a\u5929\u3001\u542c\u6b4c\u770b\u7535\u5f71\u3002","date":1770570693,"post_id":166890},{"type":"direct-url","title":"Sweezy-cursors","link":"https:\/\/9eip.com\/words\/40","thumbnail":"https:\/\/www.9eip.com\/wp-content\/uploads\/2026\/02\/get.png","description":"\u4e2a\u6027\u5316\u9f20\u6807\u6307\u9488\u514d\u8d39\u4e0b\u8f7d\uff0c\u4e3b\u6253\u52a8\u6f2b\u3001\u6e38\u620f\u3001\u8da3\u5473 meme \u98ce\u683c\u5149\u6807\uff0c\u542b\u9759\u6001 \/ \u52a8\u6001\u6b3e\uff0c\u9002\u914d Robl...","date":1770568646,"post_id":166882},{"type":"sites","title":"Wolfcha\uff08\u7339\u6740\uff09","link":"https:\/\/www.9eip.com\/sites\/166793.html","thumbnail":"https:\/\/www.9eip.com\/favicon\/get.php?url=https%3A%2F%2Fwww.wolf-cha.com","description":"AI \u72fc\u4eba\u6740\uff0c\u53ef\u7ec3\u903b\u8f91\u548c\u53d1\u8a00\uff0c\u76ee\u524d\u53ef\u514d\u8d39\u4f53\u9a8c\uff0c\u6ce8\u518c\u8d60\u90013\u6b21\uff0c\u6bcf\u5929\u8d60\u90011\u6b21\uff0c\u793e\u6050\u73a9\u5bb6\u7684\u798f\u97f3\u3002","date":1770518874,"post_id":166793},{"type":"direct-url","title":"CS1.6","link":"https:\/\/9eip.com\/words\/33","thumbnail":"https:\/\/www.9eip.com\/wp-content\/uploads\/2026\/02\/Clip_20260208_003556.png","description":"\u7f51\u9875\u7248 \u8de8\u5e73\u53f0\u8054\u673a\u5bf9\u6218\uff0c\u65e0\u9700\u4e0b\u8f7d\u5ba2\u6237\u7aef\u5373\u5f00\u5373\u73a9\u3002...","date":1770510971,"post_id":166781},{"type":"sites","title":"AI\u4ea7\u54c1\u699c","link":"https:\/\/www.9eip.com\/sites\/166728.html","thumbnail":"https:\/\/www.9eip.com\/favicon\/get.php?url=https%3A%2F%2Fwww.aicpb.com","description":"\u5168\u7403 AI \u6392\u540d\u6807\u51c6\uff0c\u5b9a\u671f\u53d1\u5e03 AI \u5e94\u7528\u3001AI \u7f51\u7ad9\u4e0e AI \u6a21\u578b\u7684\u5168\u7403\u6392\u884c\u699c\u3002\u699c\u5355\u57fa\u4e8e\u7edf\u4e00\u7684\u65b9\u6cd5\u8bba\uff0c\u8986\u76d6\u7528\u6237\u89c4\u6a21\u3001\u6d41\u91cf\u3001\u8425\u6536\uff0c\u4ee5\u53ca\u6a21\u578b\u7684\u4ef7\u683c\u3001\u6027\u80fd\u4e0e\u7a33\u5b9a\u6027\u7b49\u6307\u6807\u3002","date":1770480217,"post_id":166728},{"type":"sites","title":"sotvla","link":"https:\/\/www.9eip.com\/sites\/166107.html","thumbnail":"https:\/\/www.9eip.com\/wp-content\/uploads\/2026\/02\/Clip_20260203_133558.png","description":"\u514d\u8d39\u5f71\u89c6\u641c\u7d22\u5f15\u64ce","date":1770125684,"post_id":166107},{"type":"ai-tool","title":"\u7b80\u56feAI","link":"https:\/\/www.9eip.com\/ai-tool\/jiantuai","thumbnail":"https:\/\/www.9eip.com\/wp-content\/uploads\/2026\/01\/logoxico.png","description":"\u63a5\u8fd1 0 \u6210\u672c\u7684\u9ad8\u6548\u521b\u4f5c\u80fd\u529b\uff0c\u53ef\u4e00\u952e\u751f\u6210\u9ad8\u8d28\u91cf\u670d\u9970\u4e0a\u8eab\u56fe\u4e0e 3D \u670d\u88c5 AI \u56fe\uff0c\u4e13\u4e1a\u7ea7\u7535\u5546\u8425\u9500\u5185\u5bb9\u521b\u4f5c\u5e73\u53f0\uff0c\u8ba9\u4f60\u7684\u5546\u54c1\u66f4\u597d\u5356\u3002","date":1769376651,"post_id":164576},{"type":"sites","title":"\u4e0d\u5361\u987f\u5f71\u89c6","link":"https:\/\/www.9eip.com\/sites\/163043.html","thumbnail":"https:\/\/www.9eip.com\/favicon\/get.php?url=https%3A%2F%2Fwww.yingshiso.top","description":"\u9ad8\u5cf0\u4e0d\u5361\uff0c\u65e0\u5e7f\u544a\uff0c\u9ad8\u6e05\u7247\u6e90\uff0c\u6bcf\u65e5\u66f4\u65b0","date":1768384202,"post_id":163043},{"type":"sites","title":"\u9cb8\u97f3\u65e0\u635f\u97f3\u4e50","link":"https:\/\/www.9eip.com\/sites\/162285.html","thumbnail":"https:\/\/www.jywav.com\/views\/index\/news\/common\/static\/images\/jywav_icon.png","description":"\u5168\u7f51MP3\u3001\u65e0\u635f\u97f3\u4e50\u4e0b\u8f7d\u7f51\u7ad9","date":1767905272,"post_id":162285},{"type":"sites","title":"\u7231\u8ffd\u5267","link":"https:\/\/www.9eip.com\/sites\/160809.html","thumbnail":"https:\/\/www.9eip.com\/favicon\/get.php?url=https%3A%2F%2Fwww.aizju.com","description":"2025\u6700\u65b0\u6700\u70ed\u7535\u5f71\u3001\u7535\u89c6\u5267\u3001\u7efc\u827a\u3001\u52a8\u6f2b \u9ad8\u6e05\u514d\u8d39\u5728\u7ebf\u89c2\u770b","date":1767029661,"post_id":160809},{"type":"ai-tool","title":"MIMO Studio","link":"https:\/\/www.9eip.com\/ai-tool\/mimo-studio","thumbnail":"https:\/\/www.9eip.com\/wp-content\/uploads\/2025\/12\/favicon.0619b0d2.jpg","description":"Xiaomi MiMo \u5927\u6a21\u578b\u7684\u5f3a\u5927\u80fd\u529b\uff0c\u966a\u60a8\u804a\u5929\u3001\u521b\u4f5c\u6216\u8111\u6d1e\u5927\u5f00\uff0c\u63a2\u7d22 AI \u7684\u65e0\u9650\u53ef\u80fd\u3002","date":1766763749,"post_id":160366},{"type":"sites","title":"HiFiNi\u97f3\u4e50\u78c1\u573a","link":"https:\/\/www.9eip.com\/sites\/160224.html","thumbnail":"https:\/\/www.hifini.xyz\/view\/img\/logo.png","description":"HiFiNi - \u97f3\u4e50\u78c1\u573a \u662f\u4e00\u4e2a\u7531\u97f3\u4e50\u7231\u597d\u8005\u7ef4\u62a4\u7684\u5206\u4eab\u5e73\u53f0,\u4e5f\u662f\u4e00\u4e2a\u6c38\u4e45\u514d\u8d39\u7684\u6d77\u91cf\u65e0\u635f\u97f3\u4e50\u4e0b\u8f7d\u7f51\u7ad9\u3002\u5728\u8fd9\u91cc\uff0c\u60a8\u53ef\u4ee5\u200b\u200b\u63a2\u7d22\u3001\u8046\u542c\u3001\u5206\u4eab\u5e76\u4ea4\u6d41\u200b\u200b\u5168\u7403\u591a\u5143\u97f3\u4e50\u3002hifini.xyz","date":1766673718,"post_id":160224},{"type":"sites","title":"play-cs","link":"https:\/\/www.9eip.com\/sites\/159626.html","thumbnail":"https:\/\/www.9eip.com\/wp-content\/uploads\/2025\/12\/Clip_20251215_180622-1.png","description":"\u5728\u7ebf\u73a9 \u53cd\u6050\u7cbe\u82f1 CS1.6 \u514d\u6ce8\u518c\u514d\u4e0b\u8f7d\uff0c\u9996\u6b21\u52a0\u8f7d\u6709\u70b9\u6162\u3002","date":1765822004,"post_id":159626},{"type":"sites","title":"\u65b0\u65b0\u9b54\u5854","link":"https:\/\/www.9eip.com\/sites\/159623.html","thumbnail":"https:\/\/www.9eip.com\/wp-content\/uploads\/2025\/12\/Clip_20251215_175857.png","description":"\u7ecf\u5178\u7684\u65b0\u65b0\u9b54\u5854H5\u590d\u523b\u7248\uff0c\u5feb\u6765\u56de\u5fc6\u7ae5\u5e74\u5427\uff01","date":1765821583,"post_id":159623},{"type":"ai-tool","title":"Open-AutoGLM","link":"https:\/\/www.9eip.com\/ai-tool\/open-autoglm","thumbnail":"https:\/\/www.9eip.com\/wp-content\/uploads\/2025\/12\/Clip_20asd251212_161837.png","description":"\u667a\u8c31\u5f00\u6e90\u7684\u624b\u673a\u7aefAI Agent\u6846\u67b6","date":1765556696,"post_id":159550},{"type":"sites","title":"\u4e2d\u56fd\u8272 AI \u989c\u8272\u751f\u6210\u5668","link":"https:\/\/www.9eip.com\/sites\/159546.html","thumbnail":"https:\/\/www.9eip.com\/favicon\/get.php?url=https%3A%2F%2Fzhongguose.com","description":"\u57fa\u4e8e\u4e2d\u56fd\u4f20\u7edf\u8272\u7684 AI \u5de5\u5177\uff0c\u53ef\u6784\u5efa 50-950 \u8272\u9636\u5355\u8272\u4f53\u7cfb\uff0c\u63d0\u4f9b\u7cbe\u51c6\u8272\u503c\uff0c\u9644 PPT \u7b49\u573a\u666f\u914d\u8272\u793a\u4f8b\u3002","date":1765315791,"post_id":159546},{"type":"sites","title":"FB\u957f\u671f\u7eff\u8272\u9879\u76ee","link":"https:\/\/www.9eip.com\/sites\/159544.html","thumbnail":"https:\/\/www.9eip.com\/wp-content\/uploads\/2025\/12\/bae21f2430acbb6141da08cafd39f11c_720-1.jpg","description":"\u4eba\u4eba\u7686\u53ef\u52a0\u5165Facebook&Meta\u4eab\u53d7\u6d41\u91cf\u65f6\u4ee3\u5e26\u6765\u7684\u7ea2\u5229\uff0c\u5168\u7a0b\u50bb\u74dc\u5f0f\u64cd\u4f5c\uff0c\u4e00\u5bf9\u4e00\u4e13\u9879\u6307\u5bfc\u3002","date":1765296037,"post_id":159544},{"type":"sites","title":"BGSweep","link":"https:\/\/www.9eip.com\/sites\/159112.html","thumbnail":"https:\/\/www.9eip.com\/favicon\/get.php?url=https%3A%2F%2Fbgsweep.com","description":"\u514d\u8d39\u5728\u7ebfAI\u6279\u91cf\u80cc\u666f\u53bb\u9664\u5de5\u5177\uff0c\u65e0\u9700\u767b\u5f55\u53ef\u6279\u91cf\u5904\u740620\u5f20\u56fe\u7247\uff0c\u5feb\u901f\u751f\u6210\u900f\u660ePNG\u683c\u5f0f\u3002","date":1765115323,"post_id":159112}];
var html = "";
posts.forEach(function(post) {
html += '';
});
$("#post-items-container").html(html);
}
// 刷新导航栏分类(用于创建分类后立即更新)
window.refreshNavCategories = function() {
if (isNavMode) {
$.ajax({
url: "https://www.9eip.com/wp-admin/admin-ajax.php",
type: "POST",
data: {
action: "get_nav_categories"
},
success: function(response) {
if (response.success && response.data && response.data.length > 0) {
var categories = response.data;
var html = "";
categories.forEach(function(cat) {
var activeClass = (cat.id == currentCategoryId) ? " active" : "";
html += '';
});
html += '';
var editText = isEditMode ? "完成" : "编辑";
html += '';
$(".nav-categories-wrap").html('';
actionsHtml += '
';
jQuery(this).prepend(actionsHtml);
}
});
initLinkDragAndDrop();
} else {
btn.text("编辑");
// 保存排序
saveLinkOrder();
// 直接移除编辑元素,不重新加载
jQuery(".post-item").removeClass("edit-mode").attr("draggable", "false").find(".post-item-actions").remove();
}
}
// 初始化链接拖拽功能
function initLinkDragAndDrop() {
var items = document.querySelectorAll(".post-item.edit-mode");
items.forEach(function(item) {
item.addEventListener("dragstart", function(e) {
draggedLinkElement = this;
this.classList.add("dragging");
e.dataTransfer.effectAllowed = "move";
});
item.addEventListener("dragend", function(e) {
this.classList.remove("dragging");
draggedLinkElement = null;
});
item.addEventListener("dragover", function(e) {
e.preventDefault();
if (draggedLinkElement !== this) {
var rect = this.getBoundingClientRect();
var midpoint = rect.top + rect.height / 2;
if (e.clientY < midpoint) {
this.parentNode.insertBefore(draggedLinkElement, this);
} else {
this.parentNode.insertBefore(draggedLinkElement, this.nextSibling);
}
}
});
item.addEventListener("drop", function(e) {
e.preventDefault();
});
});
}
// 保存链接排序
function saveLinkOrder() {
var items = document.querySelectorAll(".post-item[data-link-id]");
var order = [];
items.forEach(function(item) {
order.push(item.getAttribute("data-link-id"));
});
jQuery.ajax({
url: "https://www.9eip.com/wp-admin/admin-ajax.php",
type: "POST",
data: {
action: "update_link_order",
nonce: "7a28d6574a",
order: JSON.stringify(order)
},
success: function(response) {
if (response.success) {
console.log("链接排序已保存");
// 更新缓存
delete cachedLinks[currentCategoryId];
}
}
});
}
// 编辑链接
function editLink(linkId) {
if (!isUserLoggedIn) {
alert("请先登录");
return;
}
jQuery.ajax({
url: "https://www.9eip.com/wp-admin/admin-ajax.php",
type: "POST",
data: {
action: "get_single_link",
nonce: "7a28d6574a",
link_id: linkId
},
success: function(response) {
if (response.success) {
var link = response.data;
document.getElementById("modalTitle").textContent = "编辑链接";
document.getElementById("linkFormTitle").textContent = "编辑链接";
document.getElementById("editLinkId").value = link.id;
document.getElementById("linkCategorySelect").value = link.category_id;
document.getElementById("linkTitle").value = link.title;
document.getElementById("linkDescription").value = link.description || "";
document.getElementById("linkUrl").value = link.url;
document.getElementById("linkIcon").value = link.icon || "";
document.getElementById("linkSubmitBtn").textContent = "确认更新链接";
openNavModal();
}
}
});
}
// 从列表中删除链接
function deleteLinkFromList(linkId) {
if (!isUserLoggedIn) {
alert("请先登录");
return;
}
if (!confirm("确定要删除这个链接吗?")) {
return;
}
jQuery.ajax({
url: "https://www.9eip.com/wp-admin/admin-ajax.php",
type: "POST",
data: {
action: "delete_nav_link",
nonce: "7a28d6574a",
link_id: linkId
},
success: function(response) {
if (response.success) {
// 清除缓存并重新加载
delete cachedLinks[currentCategoryId];
loadNavLinks(currentCategoryId);
}
}
});
}
// 打开弹窗
function openNavModal() {
if (!isUserLoggedIn) {
alert("请先登录后再进行添加网址");
return;
}
document.getElementById("navModal").classList.add("active");
loadCategoriesInModal();
}
// 关闭弹窗
function closeNavModal() {
document.getElementById("navModal").classList.remove("active");
// 重置表单
document.getElementById("modalTitle").textContent = "管理我的导航";
document.getElementById("linkFormTitle").textContent = "添加链接";
document.getElementById("editLinkId").value = "";
document.getElementById("linkTitle").value = "";
document.getElementById("linkDescription").value = "";
document.getElementById("linkUrl").value = "";
document.getElementById("linkIcon").value = "";
document.getElementById("linkSubmitBtn").textContent = "添加链接";
}
// 在弹窗中加载分类
function loadCategoriesInModal() {
jQuery.ajax({
url: "https://www.9eip.com/wp-admin/admin-ajax.php",
type: "POST",
data: {
action: "get_nav_categories"
},
success: function(response) {
console.log("Modal categories response:", response);
if (response.success && response.data) {
var categories = response.data;
var listHtml = "";
var selectHtml = '';
categories.forEach(function(cat) {
listHtml += '';
selectHtml += '';
});
document.getElementById("categoryListModal").innerHTML = listHtml;
document.getElementById("linkCategorySelect").innerHTML = selectHtml;
// 如果是编辑模式,选中对应分类
var editLinkId = document.getElementById("editLinkId").value;
if (editLinkId) {
// 分类选择在editLink函数中已设置
}
// 初始化拖拽
initDragAndDrop();
}
}
});
}
// 初始化拖拽功能
function initDragAndDrop() {
var items = document.querySelectorAll(".nav-category-item");
items.forEach(function(item) {
item.addEventListener("dragstart", function(e) {
draggedElement = this;
this.classList.add("dragging");
e.dataTransfer.effectAllowed = "move";
});
item.addEventListener("dragend", function(e) {
this.classList.remove("dragging");
draggedElement = null;
});
item.addEventListener("dragover", function(e) {
e.preventDefault();
if (draggedElement !== this) {
var rect = this.getBoundingClientRect();
var midpoint = rect.top + rect.height / 2;
if (e.clientY < midpoint) {
this.parentNode.insertBefore(draggedElement, this);
} else {
this.parentNode.insertBefore(draggedElement, this.nextSibling);
}
}
});
item.addEventListener("drop", function(e) {
e.preventDefault();
saveCategoryOrder();
});
});
}
// 保存分类排序
function saveCategoryOrder() {
var items = document.querySelectorAll(".nav-category-item");
var order = [];
items.forEach(function(item) {
order.push(item.getAttribute("data-id"));
});
jQuery.ajax({
url: "https://www.9eip.com/wp-admin/admin-ajax.php",
type: "POST",
data: {
action: "update_category_order",
nonce: "7a28d6574a",
order: JSON.stringify(order)
},
success: function(response) {
if (response.success) {
console.log("分类排序已保存");
// 刷新导航栏的分类显示
if (typeof refreshNavCategories === "function") {
refreshNavCategories();
}
}
}
});
}
// 添加分类
function addCategory() {
if (!isUserLoggedIn) {
alert("请先登录");
return;
}
var name = document.getElementById("newCategoryName").value.trim();
if (!name) {
alert("请输入分类名称");
return;
}
var btn = event.target;
btn.disabled = true;
btn.textContent = "创建中...";
jQuery.ajax({
url: "https://www.9eip.com/wp-admin/admin-ajax.php",
type: "POST",
data: {
action: "add_nav_category",
nonce: "7a28d6574a",
name: name
},
success: function(response) {
console.log("Add category response:", response);
if (response.success) {
alert("分类添加成功");
document.getElementById("newCategoryName").value = "";
loadCategoriesInModal();
// 立即刷新导航栏的分类显示
if (typeof refreshNavCategories === "function") {
refreshNavCategories();
}
} else {
alert("添加失败:" + (response.data || "未知错误"));
}
},
error: function(xhr, status, error) {
console.error("AJAX error:", status, error, xhr.responseText);
alert("添加失败:" + error);
},
complete: function() {
btn.disabled = false;
btn.textContent = "创建分类";
}
});
}
// 删除分类
function deleteCategory(categoryId) {
if (!isUserLoggedIn) {
alert("请先登录");
return;
}
if (!confirm("确定要删除这个分类吗?分类下的所有链接也会被删除。")) {
return;
}
jQuery.ajax({
url: "https://www.9eip.com/wp-admin/admin-ajax.php",
type: "POST",
data: {
action: "delete_nav_category",
nonce: "7a28d6574a",
category_id: categoryId
},
success: function(response) {
if (response.success) {
alert("分类已删除");
loadCategoriesInModal();
// 刷新导航栏的分类显示
if (typeof refreshNavCategories === "function") {
refreshNavCategories();
}
// 清除缓存
delete cachedLinks[categoryId];
}
}
});
}
// 提交链接(添加或更新)
function submitLink() {
if (!isUserLoggedIn) {
alert("请先登录");
return;
}
var editLinkId = document.getElementById("editLinkId").value;
var categoryId = document.getElementById("linkCategorySelect").value;
var title = document.getElementById("linkTitle").value.trim();
var description = document.getElementById("linkDescription").value.trim();
var url = document.getElementById("linkUrl").value.trim();
var icon = document.getElementById("linkIcon").value.trim();
if (!categoryId) {
alert("请选择分类");
return;
}
if (!title || !url) {
alert("标题和链接不能为空");
return;
}
// 如果没有填写图标,自动生成
if (!icon) {
try {
var urlObj = new URL(url);
icon = "https://www.9eip.com/favicon/get.php?url=" + encodeURIComponent(urlObj.protocol + "//" + urlObj.host);
} catch (e) {
console.error("无法解析URL:", e);
}
}
var btn = event.target;
btn.disabled = true;
var isEdit = editLinkId !== "";
btn.textContent = isEdit ? "更新中..." : "添加中...";
var ajaxData = {
action: isEdit ? "update_nav_link" : "add_nav_link",
nonce: "7a28d6574a",
category_id: categoryId,
title: title,
description: description,
url: url,
icon: icon
};
if (isEdit) {
ajaxData.link_id = editLinkId;
}
jQuery.ajax({
url: "https://www.9eip.com/wp-admin/admin-ajax.php",
type: "POST",
data: ajaxData,
success: function(response) {
console.log("Submit link response:", response);
if (response.success) {
alert(isEdit ? "链接更新成功" : "链接添加成功");
closeNavModal();
// 清除缓存并重新加载
delete cachedLinks[categoryId];
if (currentCategoryId == categoryId) {
loadNavLinks(categoryId);
}
} else {
alert((isEdit ? "更新" : "添加") + "失败:" + (response.data || "未知错误"));
}
},
complete: function() {
btn.disabled = false;
btn.textContent = isEdit ? "确认更新链接" : "确认添加链接";
}
});
}
';
actionsHtml += '
';
actionsHtml += '
AI工具
该菜单内容不是分类,请到菜单删除并重新添加正确的内容。
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
课程学习
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
实用工具
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
素材模板
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
创意灵感
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
常用下载
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
影视播放
加载中...
加载中...
加载中...
加载中...
加载中...
小说漫画
加载中...
加载中...
音乐MV
加载中...
加载中...
加载中...
加载中...
加载中...
游戏专区
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
动漫专区
加载中...
加载中...
加载中...
加载中...
新闻资讯
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
生活常用
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
其他推荐
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...
加载中...













![[安卓] Jivo趣脸,AI视频换脸!](https://www.9eip.com/wp-content/uploads/2026/02/Clip_20260209_164907.png)











