//lang function lang(str, re){ if(typeof langs == 'undefined') langs = false; if(langs && typeof langs[str] != 'undefined'){ str = langs[str]; } if(re) for(var r in re){ str = str.replace(r, re[r]); } return str; } //格式化保留2位 function formatCount(count){ var countokuu=(count/100000000).toFixed(3); var countwan = (count/10000).toFixed(3); if(count> 100000000) return countokuu.substring(0,countokuu.lastIndexOf('.')+3) + '亿'; if(count > 10000) return countwan.substring(0,countwan.lastIndexOf('.')+3)+'万'; else return count } // 格式化时间戳 function dateformat(d){ if(!d) return '刚刚'; var time = new Date((parseInt(d)+28800)*1000); var ymd = time.getUTCFullYear() + "-" + (time.getUTCMonth()+1) + "-" + time.getUTCDate() + ' '; var his = time.getUTCHours() + ":" + (time.getUTCMinutes()<10?'0':'') + time.getUTCMinutes(); return ymd + his; } //谷歌验证时间提示 function timer(timestamp){ setInterval(function(){ timestamp+=1; $('#bjtime').html(t(timestamp)); },1000) } //时间戳函数 function t(timestamp, ymd) { var d= new Date((parseInt(timestamp)+28800)*1000); var time =d.getUTCFullYear()+"-"+p((d.getUTCMonth()+1))+"-"+p(d.getUTCDate())+" "+p(d.getUTCHours())+":"+p(d.getUTCMinutes())+":"+p(d.getUTCSeconds()); if(ymd) return ymd = d.getUTCFullYear() + "-" + (d.getUTCMonth()+1) + "-" + d.getUTCDate() + ' '; return time; } //补0函数 function p(s) { return s < 10 ? '0' + s: s; } //弹出时间提示 function timealert(){ return alert(lang('双重密码错误,确保您的手机时间与北京时间\n{time}一致',{'{time}':t(timestamp)})); } //获取价格间隔时间 ALLCOIN = {btc:[lang('比特币')],ltc:[lang('莱特币')],doge:[lang('狗狗币')],ybc:[lang('元宝币')],eth:[lang('以太币')]}; rate_timer = 10; IS_LOGIN = 0; title = document.title; titleprice = 0; coin = {name: 'btc', sign: ''}; pricemsg = lang('此出价为1个币的价格'); nice_price = {sale: pricemsg, buy: pricemsg}; BSConfig = { limit:50, sort:0, timeid:0,size:(coin.name=='doge'?5:2), setlimit:function(){ var html = '
您好!
' html += '感谢您一直以来对BtcTrade的支持!根据您在BtcTrade充值、交易等状况及活跃程度,祝贺您已升级为比特币 交易网VIP用户!
' html += '您的BtcTrade账号将增加标识,同时您将享受到以下所有VIP待遇:
' html += '感谢您一直以来对比特币交易网的支持,我们会用优质与专业的服务回馈您对我们的信任。如有疑问请随时咨询客服,电话:400-990-8880
' html += '