\u8cbc\u4e3b:\u4ead\u5b50\u9593\u6587\u4eba\u65bc2021_04_19 7:01:35\u7de8\u8f2f
\u7248\u4e3b:\u9752\u9752\u7684\u4e16\u754c\u65bc2021_04_24 14:16:26\u7de8\u8f2f<\/b><\/p>","flag":6,"status":1,"tags":null,"author":"\u4ead\u5b50\u9593\u6587\u4eba","updated":"2021-05-16 10:09:34","deleted":0,"hits":0,"views":0,"likes":0,"score":0,"created":"2021-04-19","refer_hits":0,"tried":0,"url":"https:\/\/www.cool18.com\/bbs4\/index.php?app=forum&act=threadview&tid=14174872","fixed":1} , likedNodes: localStorage.getObject("liked"), visitedNodes: localStorage.getObject("visited"), fontsize: null }, mounted: function() { this.node.updated = new Date().getTime(); this.visitedNodes[this.node.id] = this.node; localStorage.setObject("visited", this.visitedNodes); this.fontsize = parseInt(localStorage.getItem("fontsize")) || 18; setTimeout(function() { $.get("/node/hit?id=3186&attr=hits", { increment: 1}); }, 10000); }, watch: { fontsize: function(val) { $("#content").css("font-size", val + "px"); localStorage.setItem("fontsize", val); } }, methods: { liked: function() { return this.likedNodes[this.node.id] != undefined; }, likeToggle: function() { if (this.liked()) { delete(this.likedNodes[this.node.id]); this.node.likes--; } else { this.likedNodes[this.node.id] = this.node; this.node.likes++; } localStorage.setObject("liked", this.likedNodes); $.get("/node/hit?id=3186&attr=likes", {increment: this.liked() ? 1 : -1 }); }, fontPlus: function() { this.fontsize += 3; }, fontMinus: function() { this.fontsize -= 3; } } });});