"}))).replace(/^http:\/\/mmbiz\.qpic\.cn[^\s]*/g,(function(t){return" "}))}function getData1(t=0){query.descending("createdAt").skip(10*t).limit(10).find().then((function(t){if(0==t.length)alert("男生之前没发表过哔哔");else{reqData=!1,t.forEach(t=>{let e=new Date(t.createdAt);datetime=e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate(),t.attributes.time=datetime,t.attributes.content=urlToLink(t.attributes.content),app.contents.push(t)})}}),(function(t){}))}function getData2(t=0){query2.descending("createdAt").skip(10*t).limit(10).find().then((function(t){if(0==t.length)alert("女生之前没发表过哔哔");else{reqData=!1,t.forEach(t=>{let e=new Date(t.createdAt);datetime=e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate(),t.attributes.time=datetime,t.attributes.content=urlToLink(t.attributes.content),app2.contents.push(t)})}}),(function(t){}))}function timeago(t){var e=864e5,n=(new Date).getTime()-t,a=n/(7*e),r=n/e,i=n/36e5%24,p=n/36e5,c=n/6e4%60,u=n/6e4,o=n/1e3%60;return result=n/2592e6>=1?getLocalTime(t/1e3):a>=1?parseInt(a)+"周前":r>=1?parseInt(r)+"天"+parseInt(i)+"小时前":p>=1?parseInt(p)+"小时"+parseInt(c)+"分钟前":u>=1?parseInt(u)+"分钟"+parseInt(o)+"秒前":"刚刚发表",result}function getLocalTime(t){return new Date(1e3*parseInt(t)).toLocaleString().replace(/:\d{1,2}$/," ")}query2.count().then((function(t){app2.count=t}),(function(t){})),getData2(0)