function g_ad_kwd_r(kwd){ var kwdArr=kwd.split(","); var urls=location.href,keyArr="",type; if(urls.match(/show_product1/)) {keyArr=[$("b"),$("span"),$("a"),$("title")];type=1;} else if(urls.match(/show_product/)) {keyArr=[$("a"),$(".cpzslist_class td").eq(3),$(".cpzslist_class2 td").eq(3),$(".spvip_detail"),$("title")];type=2;} else if(urls.match(/www\.[\w]+\.cn/)||urls.indexOf(".goepe.com")==-1) {keyArr=[$("a"),$(".gsjj_big"),$(".cp_contenttl"),$(".cp_contenth2"),$(".cpnr_ctn"),$(".cot_title"),$(".cot_body"),$(".wztl_tw8_gsjs"),$("title")];type=3;} else if(urls.match(/\/m\.goepe\.com/)) {keyArr=[$(".cp_head_n1"),$("span"),$(".xq_content"),$("#canshu"),$(".wp_jp_n1"),$(".anli_head1"),$(".anli_content"),$("title")];type=4;} else {keyArr=[$(".wz_map"),$(".sppp_bodcol"),$(".sppp_cpsx td"),$(".gsda2016_jjboxin_content"),$(".gsda2016_jjbox"),$(".cpxq_sale2014_boxtl .left"),$(".maplink"),$(".cpnr_ctn"),$(".spvip_detail"),$(".gsjj_big"),$(".gsjj_big p"),$(".gycp_big_sbox_a"),$("a"),$(".gsjjdeswds"),$(".cot_title"),$(".cot_body"),$("#jsboder"),$("#dongshowboder"),$("#productshowboder #cpms p"),$("p"),$("b"),$("title"),$(".cpsx_boxli1 li"),$("#djlx_title"),$("span"),$(".detail_left")];type=5;} for (var k=0;k]+>/)) return true; if(cont.match(/]+>/)){ //if((type==5&&(k==7||k==5))||(type==1&&k==2)||(type==3&&(k==0||k==1))) return true; } // if(type==5&&k==7&&cont.match('Browser')) return true; str+=cont+"^^$$"; }); // if(!str||str.match(/]+>/)) continue; str=str.substr(0,str.length-4); var zui=false,max=false,edit=false; for (var j=0;j]+>/)) return true; if(cont.match(/]+>/)){ //if((type==5&&(k==7||k==5))||(type==1&&k==2)||(type==3&&(k==0||k==1))) return true; } // if(type==5&&k==7&&cont.match('Browser')) return true; $(this).html(arr[index]); index++; if(typeof doaft_g_ad_kwd_ri!="undefined")doaft_g_ad_kwd_ri($(this)); }); if(typeof doaft_g_ad_kwd_r!="undefined")doaft_g_ad_kwd_r(); } } $(function(){ _g_.wjkwd="最,最佳,最具,最爱,最赚,最优,最优秀,最好,最大,最大程度,最高,最高级,最高端,最奢侈,最低,最低级,最低价,最底,最便宜,史上最低价,最流行,最受欢迎,最时尚,最聚拢,最符合,最舒适,最先,最先进,最先进科学,最后,最新,最新技术,最新科学,中国第一,全网第一,销量第一,排名第一,唯一,第一品牌,NO.1,TOP1,独一,无二,全国第一,遗留,仅此,销冠,X大,一流,第一,一级,首家,独有,国家级,国际级,世界级,千万级,百万级,星级,5A,甲级,超甲级,顶级,顶尖,尖端,高级,极品,极佳,绝佳,绝对,终极,极致,致极,极具,完美,绝佳,极佳,至,臻品,臻致,臻席,压轴,问鼎,空前,绝后,绝版,无双,非此莫属,巅峰,前所未有,无人能及,鼎级,鼎冠,定鼎,完美,翘楚之作,不可复制,绝无仅有,寸土寸金,淋漓尽致,无与伦比,唯一,卓越,卓著,前无古人后无来者,绝版,珍稀,臻稀,稀少,绝无仅有,绝不在有,稀世珍宝,千金难求,世所罕见,不可多得,空前绝后,寥寥无几,屈指可数,独家,独创,独据,开发者,缔造者,创始者,发明者,首个,首选,独家,首发,首席,首府,首选,首屈一指,全国首家,国家领导人,国门,国宅,首次,填补国内空白,国际品质,黄金旺铺,黄金价值,黄金地段,金钱,大牌,金牌,名牌,王牌,领先上市,巨星,著名,掌门人,至尊,冠军,xxx王xxx,之王,王者楼王,墅王,皇家,领先,领导者,领袖,引领,创领,领航,耀领,史无前例,前无古人,永久,万能,百分之百,特供,专供,专家推荐,领导人推荐,点击领奖,恭喜获奖,全民免单,点击有惊喜,点击获取,点击转身,领取奖品,抽奖,售罄,售空,再不抢就没了,史上最低价,不会再便宜,没有他就xx,错过,未曾有过的,万人疯抢,全民疯抢,抢购,免费领,免费住,0首付,免首付,零距离,价格你来定,升学,教育护航,九年制教育,一站式教育,入住学区房,优先入学,12年教育无忧,全程无忧,让孩子赢在起跑线上,户口,买房,移民,帝都,皇城,皇室领地,皇家,皇室,皇族,殿堂,白宫,王府,府邸,皇室住所,政府机关,行政大楼,XX使馆,XX境线,贵族,高贵,隐贵,上流,层峰,富人区,名门,XX阶层,XX阶级,冬奥会,奥林匹克运动会,世界杯,双十一,双11,11.11,升值价值,价值洼地,价值天成,千亿价值,投资回报,众筹,抄涨,炒股不如买房,升值潜力无线,买到即赚到,倒计时,趁现在,仅限,周年庆,特惠趴,购物大趴,闪购,品牌团,随时结束,随时涨价,马上降价"; _g_.wjkwdx=""; try{ g_ad_kwd_r("最,最佳,最具,最爱,最赚,最优,最优秀,最好,最大,最大程度,最高,最高级,最高端,最奢侈,最低,最低级,最低价,最底,最便宜,史上最低价,最流行,最受欢迎,最时尚,最聚拢,最符合,最舒适,最先,最先进,最先进科学,最后,最新,最新技术,最新科学,中国第一,全网第一,销量第一,排名第一,唯一,第一品牌,NO.1,TOP1,独一,无二,全国第一,遗留,仅此,销冠,X大,一流,第一,一级,首家,独有,国家级,国际级,世界级,千万级,百万级,星级,5A,甲级,超甲级,顶级,顶尖,尖端,高级,极品,极佳,绝佳,绝对,终极,极致,致极,极具,完美,绝佳,极佳,至,臻品,臻致,臻席,压轴,问鼎,空前,绝后,绝版,无双,非此莫属,巅峰,前所未有,无人能及,鼎级,鼎冠,定鼎,完美,翘楚之作,不可复制,绝无仅有,寸土寸金,淋漓尽致,无与伦比,唯一,卓越,卓著,前无古人后无来者,绝版,珍稀,臻稀,稀少,绝无仅有,绝不在有,稀世珍宝,千金难求,世所罕见,不可多得,空前绝后,寥寥无几,屈指可数,独家,独创,独据,开发者,缔造者,创始者,发明者,首个,首选,独家,首发,首席,首府,首选,首屈一指,全国首家,国家领导人,国门,国宅,首次,填补国内空白,国际品质,黄金旺铺,黄金价值,黄金地段,金钱,大牌,金牌,名牌,王牌,领先上市,巨星,著名,掌门人,至尊,冠军,xxx王xxx,之王,王者楼王,墅王,皇家,领先,领导者,领袖,引领,创领,领航,耀领,史无前例,前无古人,永久,万能,百分之百,特供,专供,专家推荐,领导人推荐,点击领奖,恭喜获奖,全民免单,点击有惊喜,点击获取,点击转身,领取奖品,抽奖,售罄,售空,再不抢就没了,史上最低价,不会再便宜,没有他就xx,错过,未曾有过的,万人疯抢,全民疯抢,抢购,免费领,免费住,0首付,免首付,零距离,价格你来定,升学,教育护航,九年制教育,一站式教育,入住学区房,优先入学,12年教育无忧,全程无忧,让孩子赢在起跑线上,户口,买房,移民,帝都,皇城,皇室领地,皇家,皇室,皇族,殿堂,白宫,王府,府邸,皇室住所,政府机关,行政大楼,XX使馆,XX境线,贵族,高贵,隐贵,上流,层峰,富人区,名门,XX阶层,XX阶级,冬奥会,奥林匹克运动会,世界杯,双十一,双11,11.11,升值价值,价值洼地,价值天成,千亿价值,投资回报,众筹,抄涨,炒股不如买房,升值潜力无线,买到即赚到,倒计时,趁现在,仅限,周年庆,特惠趴,购物大趴,闪购,品牌团,随时结束,随时涨价,马上降价"); } catch(e){} });var feiyu_var={"fyclose1":"0","fyclose2":"0","fyclose3":"0","fyclose4":"0","userid":"borris","hyclass":"8","loginuid":"1127749364","showset":false,"showtype":"2","expand":"328337","mainuid":"328337","wcwords":"\u6b22\u8fce\u65b0\u8001\u5ba2\u6237\u54a8\u8be2\u6d3d\u8c08\uff01","qq":[],"users":[{"uid":"328337","name":"\u50a8\u68a6\u519b","logo":"201701\/2_1484879372_6536.jpg","namemore":"\u5e02\u573a\u90e8","isonline":0}]};var sessionid='8mi0dihlrprfd71v9a73mqj5a2';if($("#freeclose").size())$("#freeclose").remove();if($(".newqq_close").size()&&$(".newqq_open").size()){$(".newqq_open").remove();$(".newqq_close").remove();$(".newqq").remove();$(".newqqclear").remove();}_g_.getCookie=function(name){ var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)"); if(arr=document.cookie.match(reg))return unescape(arr[2]); else return ""; } _g_.codei=function(dataobj){ for(var i in dataobj){ if(typeof dataobj[i]=="string"||typeof dataobj[i]=="String")dataobj[i]=dataobj[i].replace(/[\d\D]/g, function($0) {var codei=$0.charCodeAt(0); if(codei=="13221"||codei=="179"||codei=="165"||codei=="1200"||codei=="1201")return "&#" + $0.charCodeAt(0) + ";";else return $0;}); if(typeof dataobj[i]=="object"||typeof dataobj[i]=="Object")dataobj[i]=this.codei(dataobj[i]); } return dataobj; } _g_.ajax = function(do_action,dataobj,callback_success,callback_error){ var timeoutms=15000; if(dataobj.tm_ot)timeoutms=parseInt(dataobj.tm_ot); else dataobj.tm_ot=timeoutms; if(_g_._get("SS_ID"))dataobj['SS_ID']=_g_._get("SS_ID"); var tp_i1=do_action.split("."); var jsonpcb=""; if(parent.window!=window&&parent._g_&&parent._g_.jsonp)jsonpcb=parent._g_.jsonp; if(dataobj.jsonp)jsonpcb=dataobj.jsonp; if(jsonpcb==""&&tp_i1.length!=2)return false; else if(tp_i1.length==1)tp_i1[1]==""; if(typeof callback_success!='function')return false; if(typeof dataobj!='object')return false; try{ dataobj=this.codei(dataobj); } catch (e){} var ajaxdata={url:ajaxurl(tp_i1[0],tp_i1[1])+"&inajax=1",type:"post",timeout:timeoutms,dataType: "json",data:dataobj,success:callback_success}; if(jsonpcb){ ajaxdata['type']="GET"; ajaxdata['dataType']="jsonp"; ajaxdata['jsonp']="jsoncallback"; } if(tp_i1[0].indexOf("/")!=-1)ajaxdata['url']=jsonpcb; if(typeof callback_error=='function')ajaxdata.error=callback_error; $.ajax(ajaxdata); return true; } _g_.jsonp=1; var hexcase = 0; var b64pad = ""; var chrsz = 8; _g_.live=function(){}; function hex_md5(s){ return binl2hex(core_md5(str2binl(s), s.length * chrsz));} function b64_md5(s){ return binl2b64(core_md5(str2binl(s), s.length * chrsz));} function str_md5(s){ return binl2str(core_md5(str2binl(s), s.length * chrsz));} function hex_hmac_md5(key, data) { return binl2hex(core_hmac_md5(key, data)); } function b64_hmac_md5(key, data) { return binl2b64(core_hmac_md5(key, data)); } function str_hmac_md5(key, data) { return binl2str(core_hmac_md5(key, data)); } _g_.runfy=function(msg){ if(msg){ if(msg.substr(0,6)=="msgto:"){ var uid = msg.substr(6); if(_g_.fappy.lon<=0)_g_.fappy.popinit=uid; else { try { $("#fy_app_box")[0].contentWindow.fylist_pop(uid); } catch (e) { _g_.fappy.popinit=uid; } } } } _g_.fappy.open(); } function md5_vm_test() { return hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72"; } function core_md5(x, len) { x[len >> 5] |= 0x80 << ((len) % 32); x[(((len + 64) >>> 9) << 4) + 14] = len; var a = 1732584193,b = -271733879,c = -1732584194,d = 271733878; for(var i = 0; i < x.length; i += 16){ var olda = a;var oldb = b;var oldc = c;var oldd = d; a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936); d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586); c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819); b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330); a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897); d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426); c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341); b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983); a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416); d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417); c = md5_ff(c, d, a, b, x[i+10], 17, -42063); b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162); a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682); d = md5_ff(d, a, b, c, x[i+13], 12, -40341101); c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290); b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329); a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510); d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632); c = md5_gg(c, d, a, b, x[i+11], 14, 643717713); b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302); a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691); d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083); c = md5_gg(c, d, a, b, x[i+15], 14, -660478335); b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848); a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438); d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690); c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961); b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501); a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467); d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784); c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473); b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734); a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558); d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463); c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562); b = md5_hh(b, c, d, a, x[i+14], 23, -35309556); a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060); d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353); c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632); b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640); a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174); d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222); c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979); b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189); a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487); d = md5_hh(d, a, b, c, x[i+12], 11, -421815835); c = md5_hh(c, d, a, b, x[i+15], 16, 530742520); b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651); a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844); d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415); c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905); b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055); a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571); d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606); c = md5_ii(c, d, a, b, x[i+10], 15, -1051523); b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799); a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359); d = md5_ii(d, a, b, c, x[i+15], 10, -30611744); c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380); b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649); a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070); d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379); c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259); b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551); a = safe_add(a, olda); b = safe_add(b, oldb); c = safe_add(c, oldc); d = safe_add(d, oldd); } return Array(a, b, c, d); } function md5_cmn(q, a, b, x, s, t) { return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b); } function md5_ff(a, b, c, d, x, s, t) { return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t); } function md5_gg(a, b, c, d, x, s, t) { return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t); } function md5_hh(a, b, c, d, x, s, t) { return md5_cmn(b ^ c ^ d, a, b, x, s, t); } function md5_ii(a, b, c, d, x, s, t) { return md5_cmn(c ^ (b | (~d)), a, b, x, s, t); } function core_hmac_md5(key, data) { var bkey = str2binl(key); if(bkey.length > 16) bkey = core_md5(bkey, key.length * chrsz); var ipad = Array(16), opad = Array(16); for(var i = 0; i < 16; i++) { ipad[i] = bkey[i] ^ 0x36363636; opad[i] = bkey[i] ^ 0x5C5C5C5C; } var hash = core_md5(ipad.concat(str2binl(data)), 512 + data.length * chrsz); return core_md5(opad.concat(hash), 512 + 128); } function safe_add(x, y) { var lsw = (x & 0xFFFF) + (y & 0xFFFF); var msw = (x >> 16) + (y >> 16) + (lsw >> 16); return (msw << 16) | (lsw & 0xFFFF); } function bit_rol(num, cnt) { return (num << cnt) | (num >>> (32 - cnt)); } function str2binl(str) { var bin = Array(); var mask = (1 << chrsz) - 1; for(var i = 0; i < str.length * chrsz; i += chrsz) bin[i>>5] |= (str.charCodeAt(i / chrsz) & mask) << (i%32); return bin; } function binl2str(bin) { var str = ""; var mask = (1 << chrsz) - 1; for(var i = 0; i < bin.length * 32; i += chrsz) str += String.fromCharCode((bin[i>>5] >>> (i % 32)) & mask); return str; } function binl2hex(binarray) { var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef"; var str = ""; for(var i = 0; i < binarray.length * 4; i++) { str += hex_tab.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) + hex_tab.charAt((binarray[i>>2] >> ((i%4)*8 )) & 0xF); } return str; } function binl2b64(binarray) { var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var str = ""; for(var i = 0; i < binarray.length * 4; i += 3) { var triplet = (((binarray[i >> 2] >> 8 * ( i %4)) & 0xFF) << 16) | (((binarray[i+1 >> 2] >> 8 * ((i+1)%4)) & 0xFF) << 8 ) | ((binarray[i+2 >> 2] >> 8 * ((i+2)%4)) & 0xFF); for(var j = 0; j < 4; j++) { if(i * 8 + j * 6 > binarray.length * 32) str += b64pad; else str += tab.charAt((triplet >> 6*(3-j)) & 0x3F); } } return str; } function ex_sendcutimg( src ){ try { if(_g_.fappy.tabnowid){ $("#fappy_"+_g_.fappy.tabnowid)[0].contentWindow.fydetail_shot(src); } } catch (e){} } function ex_logout(){ var timet = (new Date()).getTime().toString().substr(0,10); var ksession = hex_md5(g_kfile+timet); if(_g_.fappy.tabnowid){ try { $('#fappy_'+_g_.fappy.tabnowid)[0].contentWindow.fydetail_retlist(); } catch (e) { } } $.ajax({ url: ajaxurl("fastyu", "apis"), dataType: "jsonp", jsonp: "jsoncallback", data:{act:'logout',kid: g_kid,ksession: ksession,time: timet,uid: g_myuserid,SS_ID:_g_._get("SS_ID")}, success: function(data){ window.external.quit(); } }); } _g_.appkid=""; _g_.appkfile=""; _g_.appformdata=function(){ var ret={} ret['kid']=_g_.appkid; ret['time']=new Date().getTime(); ret['ksession']=hex_md5(_g_.appkfile+ret['time']); ret['SS_ID']=_g_._get("SS_ID"); ret['canvisit']=0; ret['host']=window.location.hostname; if(_g_._get("gv")=="www")ret['canvisit']=1; return ret; } var reposss=function(){ try { var off=$("#fastyu_mini_user").offset(); $(".fappy_pop").css("left",off.left-$(".fappy_pop").outerWidth()-3).css("top",off.top+5); } catch (e){} }; $(document).scroll(reposss); function dbglog(logs){ if(typeof console!="undefined"&&typeof console.log!="undefined"){ console.log(logs); } } _g_.memlogstat=1; if(_g_.callm){} else _g_.callm={}; _g_.callm["fybrig_mini"]=function(){ _g_.fappy.open(1); }; if(!_g_.fappy_set_v)_g_.fappy_set_v={audio:0,vib:1,visit:1}; _g_.fappy_set=function(v){ if(v){ _g_.fappy_set_v=v; var fm=_g_.appformdata(); _g_.ajax("fastyu.pollset",{jsonpcb:"jsoncallback",kid:fm.kid,kid:fm.kid,time:fm.time,ksession:fm.ksession,set:v},function(data){}); } return _g_.fappy_set_v; }; _g_.fappy={}; _g_.fappy.unkidi=_g_.appkid+"_"+Math.random().toString(36).substr(2,5); _g_.fappy.unkidj=0; _g_.fappy.unkid=function(){ _g_.fappy.unkidj++; return ""; }; _g_.fappy.taburl="http://www.goepe.com/chat/fydetail_mini.php?inajax=1"; _g_.fappy.topurl="http://"+location.host+"/chat/fylist_mini.php?canvisit=1&initchatuid="+_g_._get("initchatuid"); _g_.fappy.tabs={}; _g_.fappy.tabsid=0; _g_.fappy.tabnowid=0; _g_.fappy.tabnowfy=0; _g_.fappy.tabnowmax=0; _g_.fappy.tabnowmaxa={}; _g_.fappy.tabq=[]; _g_.fappy.msgn=0; _g_.fappy.popd=""; _g_.fappy.nn=0; _g_.fappy.popinit=0; _g_.fappy.nn1=0; _g_.fappy.nn2=0; _g_.fappy.myuid=0; _g_.fappy.lon=0; _g_.fappy.send_=[]; _g_.fappy.send_ing=0; _g_.fappy.send_ingb=0; _g_.fappy.send_ingt=0; _g_.fappy.send_upid={}; _g_.fappy.send_presend=function(id,data){ if(_g_.fappy.send_.length>=8)return false; else { _g_.fappy.send_.push([id,data]); return true; } }; _g_.fappy.retlist=function(){ try { $('#fappy_'+_g_.fappy.tabnowid)[0].contentWindow.fydetail_retlist(); } catch (e) { } }; _g_.fappy.send_upti=function(id1,id2){ if(_g_.fappy.send_upid[id1]&&_g_.fappy.send_upid[id1]>id2){} else _g_.fappy.send_upid[id1]=id2; }; _g_.fappy.send_tabid=function(id){ var uidnow=-1; for(var i in _g_.fappy.send_){ var adata=_g_.fappy.send_[i]; if(adata[0]==id){ uidnow=adata[1]['uidnow']; break; } } if(uidnow!=-1){ var nowtabsid=-1; for(var i in _g_.fappy.tabs){ if(_g_.fappy.tabs[i]==uidnow){ nowtabsid=i; break; } } } return nowtabsid; }; _g_.fappy.send_ajstat=function(id,stat){ if(stat==1){ _g_.fappy.send_ing=0; var tabid=_g_.fappy.send_tabid(id); if(tabid>=0){ var adata=_g_.fappy.send_.shift(); dbglog("成功"+adata[0]+"/"+id); try { $("#fappy_"+tabid)[0].contentWindow.fydetail_icostat(id,1); } catch (e){dbglog("ok:id ico err"+id);} } } else { _g_.fappy.send_ing=-1; _g_.fappy.upnowidt=0; } _g_.fappy.send_ingt=new Date().getTime(); }; _g_.fappy.callback={ uploadFile_1:function(callback){ if(_g_.fappy.tabnowid){ $("#fappy_"+_g_.fappy.tabnowid)[0].contentWindow.fydetail_fileup1(callback); } }, uploadFile_2:function(callback){ if(_g_.fappy.tabnowid){ $("#fappy_"+_g_.fappy.tabnowid)[0].contentWindow.fydetail_fileup2(callback); } } }; _g_.fappy.notifydel=function(){ try { if(_g_.android==1)cordova.Bootservice.qq("notifydel","123",function(){}); _g_.zddd_pop=0; } catch (e){} }; var popddd__=0; var updatenumii=0; var int_1000s=0; setInterval(function(){ var upnowidt=new Date().getTime(); if(_g_.fappy.send_ing==0&&_g_.fappy.send_.length>0){ try { //if(_g_.appkid=="12584")alert("1"); var adata=_g_.fappy.send_.shift(); dbglog("发送"+adata[0]); _g_.fappy.send_.unshift(adata); var tabid=_g_.fappy.send_tabid(adata[0]); adata[1]=_g_.codei(adata[1]); var r=$("#fappy_"+tabid)[0].contentWindow.fydetail_send(adata[0],adata[1]); if(r=="ok"){ _g_.fappy.send_ing=1; _g_.fappy.send_ingt=0; _g_.fappy.send_ingb=upnowidt; } } catch (e){dbglog(e);} } if(upnowidt-int_1000s<1000)return; for(var i in _g_.fappy.tabT){ if(i!=_g_.fappy.tabnowid&&_g_.fappy.tabT[i]=0){ var nowfy=_g_.fappy.tabs[tabid]; if(_g_.fappy.send_upid[nowfy]&&_g_.fappy.send_upid[nowfy]>_g_.fappy.send_ingt+8000){ _g_.fappy.send_ing=0; var adata=_g_.fappy.send_.shift(); try { dbglog("失败!"+adata[0]); var rstat=$("#fappy_"+tabid)[0].contentWindow.fydetail_icostat(adata[0],-1); if(rstat==1)_g_.fappy.send_.unshift(adata); } catch (e){dbglog("err id ico err");} _g_.fappy.upnowidt2=0; } else if(upnowidt-_g_.fappy.upnowidt2>=3000){ _g_.fappy.upnowidt2=upnowidt; var rstat=$("#fappy_"+tabid)[0].contentWindow.fydetail_icostat(adata[0],-1); if(rstat==0){ _g_.fappy.upnowidt2=0; var adata=_g_.fappy.send_.shift(); _g_.fappy.send_ing=0; } else { if(_g_.fappy.tabnowid==tabid){ _g_.fappy.upnowidt=upnowidt; _g_.fappy.upnowid=_g_.fappy.tabnowfy; } $("#fappy_"+tabid)[0].contentWindow.fydetail_update(new Date().getTime()); updatenumii++; } } } } if(_g_.fappy.tabnowid){ if(_g_.fappy.msgn>0||_g_.fappy.send_ing==-1){ if(upnowidt-_g_.fappy.upnowidt>=3000||_g_.fappy.upnowid!=_g_.fappy.tabnowfy){ _g_.fappy.upnowidt=upnowidt; _g_.fappy.upnowid=_g_.fappy.tabnowfy; $("#fappy_"+_g_.fappy.tabnowid)[0].contentWindow.fydetail_update(new Date().getTime()); updatenumii++; } } if(_g_.fappy.tabnowmax>$("#fappy_"+_g_.fappy.tabnowid)[0].contentWindow.fydetail_maxid()){ if(upnowidt-_g_.fappy.upnowidt>=3000||_g_.fappy.upnowid!=_g_.fappy.tabnowfy){ _g_.fappy.upnowidt=upnowidt; _g_.fappy.upnowid=_g_.fappy.tabnowfy; $("#fappy_"+_g_.fappy.tabnowid)[0].contentWindow.fydetail_update(new Date().getTime()); updatenumii++; } } else _g_.fappy.msgn=0; } if(_g_.fappy.popd==""&&_g_.fappy.lon){ popddd__++; if(popddd__<10){ $.ajax({ url: _g_.fappy.taburl, data: {rdjson:"all"}, dataType: "jsonp", jsonp: "jsoncallback", timeout:10000, success: function (msg) { _g_.fappy.popd=msg.all; } }); } } if(_g_.fappy.myuid=="12526"||_g_.fappy.myuid=="78"||_g_.fappy.myuid=="515195"||_g_.fappy.myuid=="170738"){ if(!$("#debgfsds").size()){ $("body").append('
'); } if(_g_.fappy.tabnowid)$("#debgfsds").html("工号:"+_g_.fappy.myuid+"
外:"+_g_.fappy.tabnowmax+"
内:"+$("#fappy_"+_g_.fappy.tabnowid)[0].contentWindow.fydetail_maxid()+"
后台更新:"+updatenumii+"
状态:"+_g_.fappy.send_ing+"
发送:"+_g_.fappy.send_ingb+"
回执:"+_g_.fappy.send_ingt+"
读取:"+_g_.fappy.send_upid[_g_.fappy.tabnowfy]); } reposss(); },300); function fy_app_clean(){}; _g_.fappy.switchlogin=function(){ try { var t0wd=$("#fy_app_box")[0].contentWindow; t0wd.fylist_switchlogin(); } catch (e) { } }; _g_.zddda=0; _g_.ontop=1; setInterval(function(){ if(_g_.zddda>0){ _g_.zddda--; try { if (navigator.vibrate) { if(_g_.fappy_set_v.vib>0)cordova.Bootservice.vib("300",function(){}); } else if(navigator.webkitVibrate) { if(_g_.fappy_set_v.vib>0)cordova.Bootservice.vib("300",function(){}); } } catch (e) {} } },300); _g_.zddd_pop=0; _g_.zddd=function(num,msg){ if(_g_.appneedupdate)return; if(_g_.zddda<2)_g_.zddda+=num; $("#fy_pop_mp3").remove(); if(!_g_.ontop||_g_.livet0)$("body").append(''); } else { if(_g_.fappy_set_v.audio>0)$("body").append(''); } if(_g_.android==1){ //cordova.Bootservice.stop(); //cordova.Bootservice.start(); } if(_g_.android==1&&_g_.appneedupdate==0){ try { var vibt="0"; if(_g_.fappy_set_v.vib>0)vibt="1"; _g_.fappy.open(); if(msg==-2){ var tz=["谷瀑飞语提醒您","飞语已退出登录","0","0","0",vibt,"0","0","123"]; cordova.Bootservice.qq("notifyadd",tz.join("_._"),function(){}); } else if(msg==-1){ var tz=["谷瀑飞语提醒您","飞语已成功登录","0","0","0",vibt,"0","0","123"]; cordova.Bootservice.qq("notifyadd",tz.join("_._"),function(){}); } else if(_g_.fappy.nn1>0&&_g_.fappy.nn2>0){ var tz=["谷瀑飞语提醒您","您有新的消息和访客,请注意查看!","0","0","0",vibt,"0","0","123"]; cordova.Bootservice.qq("notifyadd",tz.join("_._"),function(){}); } else if(_g_.fappy.nn1>0){ var tz=["谷瀑飞语提醒您","您有新的消息,请注意查看!","0","0","0",vibt,"0","0","123"]; cordova.Bootservice.qq("notifyadd",tz.join("_._"),function(){}); } else if(_g_.fappy_set_v.visit>0){ var tz=["谷瀑飞语提醒您","您有新的访客,请注意查看!","0","0","0",vibt,"0","0","123"]; cordova.Bootservice.qq("notifyadd",tz.join("_._"),function(){}); } var swtab="visit"; if(msg)swtab="recent"; $("#fy_app_box")[0].contentWindow.fylist_tabto(swtab); _g_.zddd_pop=1; } catch (e){} } } }; _g_.fappy.open=function(showmod){ if(_g_.appneedupdate)return; if(!$("#fy_app_box").size()){ $("body").append(''); $("#fy_app_box").load(function(){ var t0wd=$(this)[0].contentWindow; /* t0wd.onerror=function(e){ alert("listbox run err!"); alert(e); return true; }; */ if(t0wd._g_&&typeof t0wd._g_.fappy=="undefined")t0wd._g_.fappy={}; else if(t0wd._g_){} else return; t0wd._g_.fappy.msgnum=function(a,b){ if(a==0&&b==0){ $(".t_index_messgenews2").hide(); $(".t_index_messgenews").hide(); if(_g_.zddd_pop==1)_g_.fappy.notifydel(); } else{ $(".t_index_messgenews2").show(); $(".t_index_messgenews").show(); } _g_.fappy.nn=a+b; if(_g_.fappy.nn10){ try { var vismsg=$("#fy_app_box")[0].contentWindow.fylist_msgnum(_g_.fappy.tabnowfy); console.log(vismsg); var t0wd=$("#fappy_"+_g_.fappy.tabnowid)[0].contentWindow; if(vismsg[0]==0&&vismsg[1]==0){ t0wd.$(".t_index_messgenews2").hide(); t0wd.$(".t_index_messgenews").hide(); } else{ t0wd.$(".t_index_messgenews2").show(); t0wd.$(".t_index_messgenews").show(); } } catch (e) { alert("错误.2"); } } }; t0wd._g_.go=function(a){ _g_.go(a); }; t0wd._g_.fappy.newmsg=function(myid,fyid,msg){ try { if(msg['id']&&fyid){ if(_g_.fappy.tabnowmaxa[fyid]&&_g_.fappy.tabnowmaxa[fyid]>parseInt(msg['id'],10)){} else _g_.fappy.tabnowmaxa[fyid]=parseInt(msg['id'],10); } if(msg&&msg.pop_isme&&fyid)$("#fy_app_box")[0].contentWindow.fylist_read(fyid); if(msg&&msg.pop_isme){} else if(msg&&msg.cshow&&fyid!=_g_.fappy.tabnowfy&&fyid!=myid&&fyid!=_g_.fappy.popinit){ var tip_r=1; if(msg['msg'].indexOf("")!=-1&&_g_.getCookie("uid").length)tip_r=0; if(tip_r){ fastyu_tip({msg:msg['msg'].replace(/<\/?.*?>/g,""),cshow:msg['cshow']+"//",id:fyid}); $("#fastyu_tipdig").css("z-index","9999"); } } if(_g_.fappy.tabnowfy){ if(fyid==_g_.fappy.tabnowfy){ _g_.fappy.msgn++; if(msg['id']&&parseInt(msg['id'],10)>_g_.fappy.tabnowmax)_g_.fappy.tabnowmax=msg['id']; } else { if(msg&&msg.pop_isme){} else { var t0wd=$("#fappy_"+_g_.fappy.tabnowid)[0].contentWindow; t0wd.fydetail_newmsg(msg); } } } } catch (e){} }; t0wd._g_.fappy.switchuid=function(myid,on){ fastyu_tip("close"); if(_g_.fappy.tabnowid){ try { $('#fappy_'+_g_.fappy.tabnowid)[0].contentWindow.fydetail_retlist(); } catch (e) { } } if(myid<=0)_g_.fappy.open(); _g_.fappy.msgn=0; _g_.fappy.nn=0; _g_.fappy.nn1=0; _g_.fappy.nn2=0; _g_.fappy.tabnowmax=0; _g_.fappy.tabnowmaxa={}; $("#fappy_"+_g_.fappy.poping).hide(); if(myid!=_g_.fappy.myuid){ if(myid>0&&myid<900000000){ var fm=_g_.appformdata(); _g_.ajax("fastyu.pollinit",{jsonp:"jsoncallback",kid:fm.kid,time:fm.time,ksession:fm.ksession},function(data){ _g_.fappy_set_v=data.set; }); _g_.zddd(2,-1); _g_.memlogstat=3; } else { _g_.zddd(2,-2); if(_g_.memlogstat!=2){ var fm=_g_.appformdata(); _g_.ajax("fastyu.pollinit",{jsonp:"jsoncallback",kid:fm.kid,time:fm.time,ksession:fm.ksession,auto:1},function(data){ _g_.fappy_set_v=data.set; }); } } _g_.fappy.send_=[]; _g_.fappy.send_ing=0; _g_.fappy.send_ingt=0; _g_.fappy.send_upid={}; } else if(_g_.fappy.lon!=on){ if(on)_g_.zddd(2,-1); else _g_.zddd(2,-2); } _g_.fappy.myuid=myid; _g_.fappy.lon=on; $(".fappy_pop").remove(); _g_.fappy.tabq=[]; _g_.fappy.tabs={}; _g_.fappy.tabT={}; if(_g_.fappy.popinit&&_g_.fappy.lon>0)$("#fy_app_box")[0].contentWindow.fylist_pop(_g_.fappy.popinit); /* for(var tabsid in _g_.fappy.tabs){ _g_.fappy.tabq.push(tabsid); _g_.fappy.tabs[tabsid]=0; } */ }; t0wd._g_.appformdata=_g_.appformdata; t0wd._g_.fylist_stopaudio=_g_.live; t0wd._g_.fappy.pop=function(myid,fyid,dom){ if(_g_.fappy.tabnowid)_g_.fappy.tabT[_g_.fappy.tabnowid]=new Date().getTime(); if(fyid==-1){ var rid=_g_.fappy.tabnowfy; try { if(_g_.fappy.tabnowid)$('#fappy_'+_g_.fappy.tabnowid)[0].contentWindow.fydetail_retlist(); } catch (e) { } return rid; } else if(fyid==0){ _g_.fappy.tabsid++; var nowtabsid=_g_.fappy.tabsid; _g_.fappy.tabs[nowtabsid]=fyid; var fid='fappy_'+nowtabsid; if(0&&_g_.appkid!="18785"&&_g_._get("test20180925")!=2){ } else if(_g_.fappy.popd){ $("body").append(''); $("#"+fid)[0].contentWindow.document.open(); $("#"+fid)[0].contentWindow.document.write(_g_.fappy.popd.replace("common.js?","common.js?ab")); $("#"+fid)[0].contentWindow.document.close(); var isload=0; var loadf=function(){ if(isload)return false; isload=1; var t1wd=$("#"+fid)[0].contentWindow; var resizfff=function(){ try{ t1wd.fydetail_resize(); } catch (e){} }; $(window).resize(resizfff); if(typeof t1wd._g_!="undefined"&&typeof t1wd._g_.fydetail_clear!="undefined"){ t1wd.fydetail_clear=t1wd._g_.fydetail_clear; t1wd.fydetail_init=t1wd._g_.fydetail_init; t1wd.fydetail_retlist=t1wd._g_.fydetail_retlist; t1wd.fydetail_update=t1wd._g_.fydetail_update; t1wd.fydetail_maxid=t1wd._g_.fydetail_maxid; t1wd.fydetail_newmsg=t1wd._g_.fydetail_newmsg; t1wd.fydetail_fileup1=t1wd._g_.fydetail_fileup1; t1wd.fydetail_fileup2=t1wd._g_.fydetail_fileup2; t1wd.fydetail_send=t1wd._g_.fydetail_send; t1wd.fydetail_icostat=t1wd._g_.fydetail_icostat; t1wd.fydetail_msgc=_g_.fappy.unkid; t1wd.fydetail_presend=_g_.fappy.send_presend; t1wd.fydetail_ajstat=_g_.fappy.send_ajstat; t1wd.fydetail_upti=_g_.fappy.send_upti; if(!t1wd._g_.fappy){ t1wd._g_.fappy={}; } t1wd._g_.fappy.retlist=function(fyid,lastidnow,msg){ _g_.live(); $("#"+fid).hide(); $.ajax({ url: "http://www.goepe.com/chat/index.php?act=closetab&uidnow="+fyid+"&lastidnow="+lastidnow, data: {}, dataType: "jsonp", jsonp: "jsoncallback", timeout:10000, success: function (msg) { } }); var ffffd=0; for(var tabqi in _g_.fappy.tabq){ if(_g_.fappy.tabq[tabqi]==nowtabsid){ ffffd=1; } } for(var i in _g_.fappy.send_){ var adata=_g_.fappy.send_[i]; if(adata[1]['uidnow']==fyid){ ffffd=1; } } if(!ffffd){ //_g_.fappy.tabq.unshift(nowtabsid); } _g_.fappy.tabnowid=0; _g_.fappy.tabnowfy=0; _g_.fappy.tabnowmax=0; if(lastidnow>0)$("#fy_app_box")[0].contentWindow.fylist_read(fyid,msg); //if(lastidnow<=0)alert("读取错误:"+lastidnow); }; t1wd._g_.fappy.fydetail_pop=function(uid){ $("#fy_app_box")[0].contentWindow.fylist_pop(uid); }; t1wd._g_.go=function(a){ _g_.live(); _g_.go(a); }; t1wd._g_.fydetail_stopaudio=_g_.live; if(_g_.gapp_api)t1wd._g_.gapp_api=_g_.gapp_api; t1wd.$("body").bind("touchdown",_g_.live); t1wd.$("body").bind("touchstart",_g_.live); if(_g_.android==2){ } if(_g_.fappy.poping==0){ reposss(); _g_.fappy.poping=nowtabsid; return; } _g_.fappy.tabq.push(nowtabsid); if(_g_.fappy.popinit&&_g_.fappy.lon>0)$("#fy_app_box")[0].contentWindow.fylist_pop(_g_.fappy.popinit); } else { if(_g_.appkid=="18785"){ //alert(t1wd.$("body").html()); //alert(_g_.fappy.popd); var str=""; for(var i in t1wd._g_){ str+=i+"\n" } alert(str); var str=""; for(var i in t1wd.window){ str+=i+"\n" } alert(str); } $("#"+fid).remove(); } }; $("#"+fid).load(loadf); setTimeout(function(){ if(!isload){ loadf(); isload=1; } },1000); } else { popddd__++; if(popddd__<20){ $.ajax({ url: _g_.fappy.taburl, data: {rdjson:"all"}, dataType: "jsonp", jsonp: "jsoncallback", timeout:10000, success: function (msg) { _g_.fappy.popd=msg.all; } }); } } } else if(dom){ _g_.fappy.popinit=0; if(fyid==_g_.fappy.tabnowfy)return; _g_.live(); if(fyid==-1){ _g_.fappy.retlist(); return; } var nowtabsid=-1; for(var i in _g_.fappy.tabs){ if(_g_.fappy.tabs[i]==fyid){ nowtabsid=i; break; } } if(nowtabsid==-1){ $("#fappy_"+_g_.fappy.poping).show(); _g_.fappy.retlist(); if(_g_.fappy.tabq.length){ nowtabsid=_g_.fappy.tabq.pop(); var catcherr=0; if($("#fappy_"+nowtabsid).size()){ try { $("#fappy_"+nowtabsid)[0].contentWindow.fydetail_clear(); } catch (e){ console.log(e); alert("fydetail_c err:"+nowtabsid); catcherr=1; } try { $("#fappy_"+nowtabsid)[0].contentWindow.fydetail_init(myid,fyid); } catch (e){ console.log(e); alert("fydetail_i err:"+nowtabsid); catcherr=2; } } else catcherr=-1; if(catcherr){ if(!$("#fappy_"+nowtabsid).size()){ alert(_g_.fappy.tabq); } alert("请再次点击!刚刚窗口错误:"+catcherr); $("#fappy_"+nowtabsid).remove(); return; } else { _g_.fappy.tabs[nowtabsid]=fyid; _g_.fappy.tabT[nowtabsid]=new Date().getTime(); } } else { _g_.fappy.popinit=fyid; return; } } else { $("#fappy_"+nowtabsid).show(); _g_.fappy.retlist(); _g_.fappy.tabT[nowtabsid]=new Date().getTime(); try { $("#fappy_"+nowtabsid)[0].contentWindow.fydetail_update(new Date().getTime()); } catch (e) { var strsss="窗口错误"+e; if(typeof e=="object"){ for(var i in e){ strsss+="\n"+i+":"+e[i]; } } alert(strsss); } } _g_.fappy.msgn=0; setTimeout(function(){ reposss(); if(_g_.fappy.tabnowid){ var fid='fappy_'+_g_.fappy.tabnowid; $("#"+fid).show(); $("#fappy_"+_g_.fappy.poping).hide(); } },200); _g_.fappy.tabnowid=nowtabsid; _g_.fappy.tabnowfy=fyid; if(_g_.fappy.tabnowmaxa[fyid])_g_.fappy.tabnowmax=_g_.fappy.tabnowmaxa[fyid]; var t0wd=$("#fappy_"+_g_.fappy.tabnowid)[0].contentWindow; t0wd.fydetail_newmsg({type:0}); _g_.fappy.notifydel(); if(_g_.fappy.tabnowid>0){ try { var vismsg=$("#fy_app_box")[0].contentWindow.fylist_msgnum(_g_.fappy.tabnowfy); var t0wd=$("#fappy_"+_g_.fappy.tabnowid)[0].contentWindow; if(vismsg[0]==0&&vismsg[1]==0){ t0wd.$(".t_index_messgenews2").hide(); t0wd.$(".t_index_messgenews").hide(); } else{ t0wd.$(".t_index_messgenews2").show(); t0wd.$(".t_index_messgenews").show(); } } catch (e) { alert("错误.1"); } } } }; t0wd.$("body").bind("touchdown",_g_.live); t0wd.$("body").bind("touchstart",_g_.live); setInterval(function(){ if(_g_.fappy.tabq.length<2&&$("iframe").size()<30)t0wd._g_.fappy.pop(0,0); },2000); }); } if(showmod&&showmod==1){ $("#fy_app_box").hide(); } else { $(".big_moblie").hide(); $("#fy_app_box").css("width","20%").css("height","50%").css("left",$("body").offset().left); //$("#fy_app_box").show(); if(_g_.android==0)history.pushState({}, "谷瀑飞语", location.href); } _g_.fappy.notifydel(); }; _g_.fappy.close=function(a){ if(a&&a=="auto"){ if(_g_.fappy.tabnowid){ try { $('#fappy_'+_g_.fappy.tabnowid)[0].contentWindow.fydetail_retlist(); history.pushState({page: 2}, "谷瀑飞语", location.href); } catch (e) { $(".fappy_pop").hide(); $(".big_moblie").show(); $("#fy_app_box").hide(); return -1; } } else { $(".big_moblie").show(); $("#fy_app_box").hide(); } } else { $(".fappy_pop").hide(); $(".big_moblie").show(); $("#fy_app_box").hide(); } return 1; }; //_g_.callm["fybrig_mini"](); _g_.fappy.open(0);if(typeof g_apollov == "undefined") g_apollov = {}; if(typeof g_apollov['class'] !='undefined'&&typeof feiyu_var !='undefined'){ if(Number(g_apollov['class'])<=2){ feiyu_var['wcwords']="欢迎新老客户咨询洽谈!"; } } $.setvars = function( hstr,vars ){ for( var k in vars ){ hstr = hstr.replace("%"+k+"%",vars[k]); } return hstr; } var fastyu_datamainp = {}; (function(dm){ var FMODE={ NORMAL :1, CROSS_DOMAIN :2 }; var DEFINED_STR = { HISMSG_URL_NOR : "http://www.goepe.com/chat/?act=hismsg", HISMSG_URL_GUEST : "http://www.goepe.com/chat/?act=hismsg", USER_SET_URL : "http://www.goepe.com/member/?src=/chat/member/fy_set.php" }; var SYSTEM_MSG ={ UID_CHANGE:"您已经切换到新的工号", UID_CHANGE_GUST:"您已切换到访客身份", MSG_NUM_OUT:"发送消息内容超长,请您分多条发送∩_∩!", MSG_RATE_OUT:"您发送消息的频率过快,请稍后发送", IS_BAN : "您好,您已被举报,暂时不能发言,若有疑问,请联系客服:0571-86845505" }; var MAX_MSG_CHARNUM = 1000, WRM_TIME = 60000, SEND_RATE = 500, SYSTEM_MSG_TYPE = -50, URL_REG = /((https?|ftp|mms):\/\/)?((www|[A-Za-z0-9])+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"\u4e00-\u9fa5\s])*)/g, URL_REG_CB=function(a,s1,s2,s3,s4,s5){ return s1 ? ''+a+'' : s4 == "www" ? ''+a+'' : a; }; var //我的消息dom DOM_MSG_MYITEM ='
  • '+ ' '+ ' '+ ' '+ ' '+ ' '+ '
    '+ '
    %msg%
    '+ '
    '+ '
    '+ '
  • ', //对方的消息dom DOM_MSG_OTITEM ='
  • '+ ' '+ ' '+ ' '+ ' '+ ' '+ '
    '+ '
    '+ '
    %msg%
    '+ '
  • ', //消息列表时间 DOM_MSG_TIME = '
  • %time%
  • ', //消息时间显示间隔 ms CGF_SHOWTIME_RATE = 3*60*1000; var badWords={ words : '抢购,奖金,获奖,抽中,抽奖,中奖,大奖,颁奖号,获獎,奖品,獎品,您已成为,赚钱,投资,包月,群发,诚征,刷钻,基金,上市,代发,代开,代购,代刷,无需回复', reg:null, check : function( str ){ if( typeof str == "string"){ ( !this.reg ) && this.initArr(); return this.reg.test(str); //return str.replace(this.reg,"$1"+"888"); } return false; }, initArr:function(){ var w = this.words.split(","); var rt = "("; for( var i = 0; i < w.length;i++ ){ rt += w[i]; ( i < w.length -1 ) && ( rt += "|" ); } rt +=")"; this.reg = new RegExp(rt,"i"); } } var ajaxdata ={ ajax : 1, lastid : 0, lastidnow : 0, myuid : -1, tabnum : -1, activestatus : 1, uidnow : 0 }; var config ={ server : "", servo : "", mail : "http://www.goepe.com/member/mail.php", currMode : FMODE.NORMAL, cb_showmsg:null }; var timeOffset=0, banTime = 0, sendTime =0, ajaxOn = false, isBan = false, retryTime = 5, hasTryTime = 0, myLastid = 0, myStatus = 0; //0正常 -1 ~ -10 常规停止活动 -21禁止发言 function g_parseTime( timeStr,otime ){ if( /\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}/.test( timeStr ) ){ var tarr = timeStr.split(' '); var d = tarr[0].split('-'); var t = tarr[1].split(':'); var date = new Date(); date.setFullYear(d[0],d[1]-1,d[2]); date.setHours(t[0],t[1],t[2],0); var time = date.getTime(); if( !otime || Math.abs( time-otime ) > CGF_SHOWTIME_RATE ){ //检测时间间隔 var now = new Date(); now.setHours(0,0,0,0); var sptime = time - now.getTime(); if( sptime > 0 )timeStr = tarr[1]; otime = time; }else{ timeStr = null; } } return { str:timeStr,time:otime }; } function isStr( s ){ return typeof s == "string"; } function isObj( o ){ return typeof o == "object"; } function hasVal( v ){ return typeof v != "undefined"; } function checkUrl( msg ){ var ic = -1,imgi=[]; msg = msg.replace(/<\s*(img|a)[^<>]*>/ig,function(a){ ic++; imgi[ic]=a; return ''; }); msg = msg.replace(URL_REG,URL_REG_CB); msg = msg.replace(/<\s*img_(\d)[^<>]*>/g,function( a,s1 ){ return imgi[s1]; }); return msg; } function creatFileMsg( msg, isSend){ msg = $(msg); var fname = msg.text(), fico = msg.attr("ico"), fsrc = msg.attr("href"), fsize= msg.attr("size"), tiph = isSend ? "成功发送文件" : "对方发送了文件"; var fmsg = '
    '+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ '
    '+tiph+'"'+fname+'"
    '+fname+'
    '+fsize+'
    下载文件
    '+ '
    '; return fmsg; } function getTimeNow( ms ){ if(typeof(Date.prototype.format)=="undefined"){ Date.prototype.format = function(format) { var o = { "M+" : this.getMonth()+1, "d+" : this.getDate(), "h+" : this.getHours(), "m+" : this.getMinutes(), "s+" : this.getSeconds(), "q+" : Math.floor((this.getMonth()+3)/3), //quarter "S" : this.getMilliseconds() } if( /(y+)/.test(format) ) format = format.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length)); for( var k in o )if(new RegExp("("+ k +")").test(format)) format = format.replace(RegExp.$1, RegExp.$1.length==1 ? o[k] :("00"+ o[k]).substr((""+ o[k]).length)); return format; } } var nd = new Date(); if( ms ) return nd.getTime(); nd.setTime( nd.getTime() + timeOffset ); return nd.format("yyyy-MM-dd hh:mm:ss"); } function createSysMsg( msg ){ return createMsgDom( msg, "sys", "","","http://style.goepe.com/css/1307/21fastyuwin/images/logo_systip.png"); } function createWrmMsg( uid ){ var wrmmsg = '
  • '+ ''+ ''+ '安全提示:聊天内容中如有涉及广告信息,您可以'+ ''+ '点击举报'+ '
  • ' return wrmmsg; } function creatMyMsg( msg ){ return createMsgDom( msg, "send", "我","now",config.currMode == FMODE.NORMAL? fastyu_main.myLogo():""); } //type sys 系统,send 发送,rev 接收 function createMsgDom( msg, type, title, time,logo){ var msgli = "",sty1="",sty2="",tl="he"; if( msg ){ if( config.currMode == FMODE.CROSS_DOMAIN ){ time == "now" && ( time = getTimeNow() ); if( type == "sys" ){ title = "飞语提示"; sty1 = ' style="color:#f77600;"'; sty2 = ' style="padding-top:5px;"'; } type == "send" && ( tl = "me" ); config.currMode == FMODE.CROSS_DOMAIN && ( tl="he" ); msgli = $('
  • '+ '
    '+ '
     
    '+ '
    '+ '
     
    '+ '
    '+ '
     
    '+ '
  • '); msgli.find('.fastyu_msg_title_'+tl).html(title+' '+time); msgli.find('.fastyu_msg_msg_'+tl).html( msg ); }else{ if( type!="sys" ) logo+="_35x35.png"; if( type == "send" ){ msgli = $($.setvars(DOM_MSG_MYITEM,{msg:msg,logo:logo})); }else{ msgli = $($.setvars(DOM_MSG_OTITEM,{msg:msg,logo:logo})); } } } return msgli; } function showOnWin( msgdom,mid,issys,mtip,tabid,tabname,isnew){ config.cb_showmsg && config.cb_showmsg.call(null,msgdom,mid,issys,mtip,tabid,tabname,isnew); } function showSystemMsg( msg,tabid ){ showOnWin(createSysMsg(msg),-1,true,false,tabid); } function parseJSON( d ){ var rd = null; try{ eval( "rd="+d ); } catch(e){ rd = null; } return rd; } function mdata( o,k,v ){ if( isObj( o ) && isStr( k ) ){ if( hasVal( v ) ){ o[k] = v; }else{ return o[k]; } } } function checkFile( msg ,creat){ var filemsg =[]; try{ filemsg = $(msg).find("a:[isfile=1]"); }catch(e){ filemsg =[]; } return filemsg.length ? (creat ? creatFileMsg(filemsg,true) : filemsg) : ( creat ? msg : false ); } function checkMsg( msg ){ } function cfmAjaxdata( msg ){ msg ? ajaxdata["msg"] = msg : delete ajaxdata["msg"]; ajaxdata["refresh"] = Math.random(); return ajaxdata; } function parseMsg( msgin ){ var status = 0, uidonline, recent, msgs={}; while( msgin ){ var msgdata = typeof msgin == "object" ? msgin : parseJSON( msgin ); if ( !msgdata ) break; if( msgdata["myuid"] ){ var t_uid = parseInt(msgdata["myuid"]); if( ajaxdata.myuid != -1 && ajaxdata.myuid != t_uid ){ msgs = t_uid < 900000000 ? SYSTEM_MSG.UID_CHANGE + t_uid : SYSTEM_MSG.UID_CHANGE_GUST; status = -20; // -20 uid changed ajaxdata.myuid = t_uid; ajaxdata.lastid = 0; ajaxdata.lastidnow = 0; ajaxdata.activestatus = 1; break; } ajaxdata.myuid = t_uid; $("#fastyu_user_set").css("display",ajaxdata.myuid < 10000 ? "":"none"); } msgdata["tabnum"] && ( ajaxdata.tabnum = msgdata["tabnum"] ); recent = msgdata["recent"] || null; var tmp_id = parseInt(msgdata["lastid"]), msgs = msgdata.msg; if( tmp_id < 0 ){ ( isBan = tmp_id == -9 ) ? showSystemMsg(SYSTEM_MSG.IS_BAN,"tab"+ajaxdata.uidnow):status = tmp_id; break; } isBan = !!msgdata["bd"]; ajaxdata.lastid = Math.max(tmp_id, ajaxdata.lastid); var mi, mit, wrm, cq, rt, tarr=[], u1, u2, myuid = ajaxdata.myuid, heuid = -100,suid,filemsg=null,type,isnew=false,mtip; for(var id in msgs){ mi = msgs[id]; mit = mi["msg"]; mtip = mi["msgtips"]; suid = parseInt( mi["uid"] ); rt = parseInt( mi["receivetime"] ); wrm = parseInt( mi["iswarned"] ) > 0; //check file and wrming ( filemsg = checkFile(mit) ) ? mit = creatFileMsg( filemsg, suid == myuid ):( !wrm ) && ( wrm = badWords.check(mit) ); //parse uids cq = mi["channelq"]; tarr = cq ? cq.split("_") : []; heuid = -100; if( tarr.length == 3 ){ u1 = parseInt(tarr[1]); u2 = parseInt(tarr[2]); heuid = u1 == myuid ? u2 : u2 == myuid ? u1 : -100; } if( heuid == -100 || heuid == 2147483647) continue; //check msg type type = suid == heuid ? "rev":"send"; isnew = rt == 0 && type =="rev"; if( type == "send" && myLastid > id ) continue; myLastid = Math.max(id,myLastid); if(myuid < 900000000 && wrm && type == "rev" && getTimeNow(true) > ( WRM_TIME + banTime)){ mit += createWrmMsg( heuid ); banTime = getTimeNow(true); } //fill tip msg mtip = mi["msgtips"]?{id:heuid,time:mi["time"],msg:mi["msgtips"],cshow:mi["cshow"]}:null; if( config.currMode == FMODE.NORMAL ){ var tobj = g_parseTime(mi["time"],fastyu_ui_tabs.lastShowTime(heuid)); if( tobj.str ){ showOnWin($($.setvars( DOM_MSG_TIME,{time:tobj.str} )), -1,true,null,"tab"+heuid,type == "send"? heuid :mi["name"],false); fastyu_ui_tabs.lastShowTime(heuid,tobj.time); } } //show msg in win showOnWin(createMsgDom(mit,type,type == "send"? "我" :mi["name"],mi["time"],mi["logo"]), id,false,mtip,"tab"+heuid,type == "send"? heuid :mi["name"],isnew); } break; } return { status:status, recent:recent, uidonline:uidonline, msgs:msgs }; } $.extend(dm, { getServerTime:function( cb ){ var timeS = new Date(); this.syncUserInfo({act:"gettime"},function( rd ){ if( rd && rd.time ){ var timeE =new Date(); timeOffset = ( timeE.getTime() - timeS.getTime() )/2 + parseInt(rd.time)*1000 - timeE.getTime(); hasTryTime = 0; cb && cb.call(null,null); }else if( hasTryTime < retryTime ){ hasTryTime++; setTimeout(function(){fastyu_datamainp.getServerTime(cb)},3000*hasTryTime); }else{ hasTryTime = 0; cb && cb.call(null,null); } }) }, config:function(k,v){ return mdata(config,k,v); }, getDefined:function( name ){ return DEFINED_STR[name]; }, isGuest:function(){ return ajaxdata.myuid >= 900000000; }, getHismsgUrl:function(){ var touid = ajaxdata.uidnow,myuid = ajaxdata.myuid,url=null; myuid && ( url = myuid < 900000000 ? DEFINED_STR.HISMSG_URL_NOR : touid ? ( DEFINED_STR.HISMSG_URL_GUEST + "&touid="+touid ):null ); return url; }, createSysMsg:function( msg ){ return createSysMsg( msg ); }, report:function( uid ){ this.userConfig("report",{buid:uid},function( rd ){ if( rd ){ rd.status == "success" && alert("您已经成功举报该用户,对方将不能继续给您发送消息!"); rd.status == "some" && alert("您已经举报过该用户,请不要重复举报!"); } }); }, ajaxdata:function(k,v,d){ if(d) { delete ajaxdata[k]; return;} if( typeof k == "object"){ for( var ki in k){ mdata(ajaxdata,ki,k[ki]); } }else{ return mdata(ajaxdata,k,v); } }, userConfig:function( act, data, cb ){ var da = typeof data == "object" ? data : {}; act == "leavewords"? da["source"] = "fy":da.act = act; this.syncUserInfo( da,cb); }, syncUserInfo:function( data,cb ){ this.ajax( data.act?(data.act=="closetab" ? config.server:config.servo):config.mail,data,function( rd ){ cb && cb.call( null, typeof rd == "object" ? rd : parseJSON( rd ) ); },function( tp ){ cb && cb.call( null, null ); },"GET" ); }, ajax:function( url, data, success, error, type){ config.currMode == FMODE.CROSS_DOMAIN && ( data["jsoncallback"] = "jsoncallback" ); var rdata = { url:url, type:type ? type : config.currMode == FMODE.NORMAL ? "POST" : "GET", success:success, error:error, data:data }; return config.currMode == FMODE.NORMAL ? $.ajax( rdata ) : $.jsonp( rdata ); } }); })(fastyu_datamainp);(function($) { var count = 0,countr=0,counti=0,countm=0,countt=0; var scrollButtom,sContent; var testdiv; var bybottom =false; $.feiyu_scrollPanel={ init:function(scrollLeft,scrollRight,scrollBar,scrollCon,minBarHeight){ scrollButtom = $("#fastyu_scroll_buttom"); sContent = $("#feiyu_mini_scollPanel"); //test /* testdiv = $("
    "); testdiv.css("position","absolute"); testdiv.css("z-index",9999); testdiv.css("top","0px"); testdiv.css("left","0px"); $("body").append(testdiv);*/ //bybottom = !( location.href.indexOf("nofrm")>0 || fastyu_datamainp.config("currMode")==2); return; }, update:function(toend,me){ //test /* switch(me){ case "img": counti++; break; case "resize": countr++; break; case "msg": countm++; break; case "tab": countt++; break; } count ++;*/ sContent.scrollTop(sContent[0].scrollHeight); return ; bybottom ? scrollButtom && scrollButtom[0].scrollIntoView() : sContent.scrollTop(sContent[0].scrollHeight); }, setup:function( settings ){ return; } }; })(jQuery);// V = 20190301 // JavaScript Document Fastyu_Mini v1.0 2013-03-27 var feiyu_bs_ie6 =false; var feiyu_ie6_top = 205; //jsonp Class ( function( $ ) { function noop() { } function genericCallback( data ) { lastValue = [ data ]; } function callIfDefined( method , object , parameters ) { return method && method.apply( object.context || object , parameters ); } function qMarkOrAmp( url ) { return /\?/ .test( url ) ? "&" : "?"; } var STR_ASYNC = "async", STR_CHARSET = "charset", STR_EMPTY = "", STR_ERROR = "error", STR_INSERT_BEFORE = "insertBefore", STR_JQUERY_JSONP = "jsoncallback", STR_ON = "on", STR_ON_CLICK = STR_ON + "click", STR_ON_ERROR = STR_ON + STR_ERROR, STR_ON_LOAD = STR_ON + "load", STR_ON_READY_STATE_CHANGE = STR_ON + "readystatechange", STR_READY_STATE = "readyState", STR_REMOVE_CHILD = "removeChild", STR_SCRIPT_TAG = "