<\/p>
<\/p>
<\/p>
\u8cbc\u4e3b:lh197538\u65bc2021_05_03 4:49:37\u7de8\u8f2f","flag":6,"status":1,"tags":null,"author":"lh197538","updated":"2021-05-16 10:16:49","deleted":0,"hits":0,"views":0,"likes":0,"score":0,"created":"2021-05-03","refer_hits":0,"tried":0,"url":"https:\/\/www.cool18.com\/bbs4\/index.php?app=forum&act=threadview&tid=14177956","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=3614&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=3614&attr=likes", {increment: this.liked() ? 1 : -1 }); }, fontPlus: function() { this.fontsize += 3; }, fontMinus: function() { this.fontsize -= 3; } } });});