"})}function timeago(t){var e=(new Date).getTime()-t;if(!(e<0)){var n=e/6e4,a=e/36e5,r=e/864e5,i=e/6048e5,p=e/2592e6;return result=1<=p&&p<=3?" "+parseInt(p)+" 月前":1<=i&&i<=3?" "+parseInt(i)+" 周前":1<=r&&r<=6?" "+parseInt(r)+" 天前":1<=a&&a<=23?" "+parseInt(a)+" 小时前":1<=n&&n<=59?" "+parseInt(n)+" 分钟前":0<=e&&e<=6e4?"刚刚":((e=new Date).setTime(t),(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-"+(e.getDate()<10?"0"+e.getDate():e.getDate())),result}}function getData(t=0){query.descending("createdAt").skip(10*t).limit(10).find().then(function(t){0==t.length?alert("之前没发表过说说了"):(reqData=!1,t.forEach(t=>{var e=new Date(t.createdAt);t.attributes.time=timeago(e),t.attributes.content=urlToLink(t.attributes.content),app.contents.push(t)}))},function(t){})}getData(0),query.count().then(function(t){app.count=t},function(t){})