var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); jQuery.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options.expires=-1}var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000))}else{date=options.expires}expires='; expires='+date.toUTCString()}var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('')}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;iparameter error'); return false; } if(f_x.toString().lastIndexOf('.')!==-1){ f_x=f_x.toFixed(2); } return f_x; } function changeTwoDecimal2(x){//保留两位小数,不四舍五入 var f_x = parseFloat(x); if (isNaN(f_x)){ console.info('function:changeTwoDecimal->parameter error'); return false; } f_x=f_x.toFixed(3); f_x = f_x.substring(0,f_x.lastIndexOf('.')+3); return f_x; } /*选项卡切换 对象属性{选项卡序号|按钮序号||选项卡总数量} */ function Show_TabADSMenu(tabadid_num,tabadnum,tabNums){ for(var i=0;i\"\"":''; var wxImg = !!hasWXs?"
  • \"\"
  • ":''; var sj_btn = ""; if(typeof siteUrl !== 'undefined'){window['siteUrl'] = siteUrl;} if(typeof tplPath !== 'undefined'){window['tplPath'] = tplPath;} $.getJSON(url,function(data){ if(data[0].islogin==="1"){ if(data[0].jibie === '1'||data[0].jibie === '2'||parseInt(data[0].manageshopid)>0){ sj_btn = " 商家平台"; } txt="

    "+data[0].name+",您好!管理"+sj_btn+" 退出

    "; txt+=""; loadWEBmessage();//消息系统 if(typeof getUserState !== 'undefined'){ window['userDate'] = data[0]; getUserState(); } }else if(data[0].islogin==="2"){ MSGwindowShow('login','1','请先绑定手机号,再继续浏览本站内容!',data[0].url,''); }else{ txt=""; if(typeof getUserState !== 'undefined'){ window['userDate'] = {}; getUserState(); } } node.prepend(txt); }).error(function(err){ //alert(err); }); } function is_login2(siteUrl,tplPath,hasQQ,hasWX,source){ var sourceS = source || ''; var url = siteUrl+"request.ashx?action=islogin&tempid="+sourceS+"&json=1&jsoncallback=?&date=" + new Date(), node = $("#login_info"),txt=''; var hash = window.location.href.indexOf("from=")<0?'from='+encodeURIComponent(window.location.href):''; var hasQQs = hasQQ === '1'; var hasWXs = hasWX === '1' var qqImg = !!hasQQs?"
  • \"\"
  • ":''; var wxImg = !!hasWXs?"
  • \"\"
  • ":''; var sj_btn = ""; if(typeof siteUrl !== 'undefined'){window['siteUrl'] = siteUrl;} if(typeof tplPath !== 'undefined'){window['tplPath'] = tplPath;} $.getJSON(url,function(data) { if(data[0].islogin==="1"){ if(data[0].jibie === '1'||data[0].jibie === '2'||parseInt(data[0].manageshopid)>0){ //sj_btn = " 商家平台"; } txt="
  • "+data[0].name+",您好! 管理"+sj_btn+" 退出

  • "; txt+=""; loadWEBmessage();//消息系统 if(typeof getUserState !== 'undefined'){ window['userDate'] = data[0]; getUserState(); } }else{ txt="
  • 免费注册
  • 登录
  • 忘记密码
  • "+qqImg+wxImg+""; if(typeof getUserState !== 'undefined'){ window['userDate'] = {}; getUserState(); } } node.prepend(txt); }).error(function(err){ //alert(err); });; } function is_login3(siteUrl,tplPath,hasQQ,hasWX,source){ var sourceS = source || ''; var url = siteUrl+"request.ashx?action=islogin&tempid="+sourceS+"&json=1&jsoncallback=?&date=" + new Date(), node = $("#login_info"),txt=''; var hash = window.location.href.indexOf("from=")<0?'from='+encodeURIComponent(window.location.href):''; var hasQQs = hasQQ === '1'; var hasWXs = hasWX === '1' var qqImg = !!hasQQs?'
    QQ登录
    ':''; var wxImg = !!hasWXs?'
    微信登录
    ':''; var sj_btn = ""; if(typeof siteUrl !== 'undefined'){window['siteUrl'] = siteUrl;} if(typeof tplPath !== 'undefined'){window['tplPath'] = tplPath;} $.getJSON(url,function(data) { if(data[0].islogin==="1"){ txt="

    "+data[0].name+",您好! 管理 退出

    "; txt+=""; loadWEBmessage();//消息系统 if(typeof getUserState !== 'undefined'){ window['userDate'] = data[0]; getUserState(); } }else{ txt='
    '+ '
    你好,请登录
    '+ '
    '+ '
    免费注册
    '+ '
    '+qqImg+wxImg+ ''; if(typeof getUserState !== 'undefined'){ window['userDate'] = {}; getUserState(); } } node.prepend(txt); }).error(function(err){ //alert(err); });; } function getLoginUserInfo(siteUrl,tplPath,hasQQ,hasWX,source){ var sourceS = source || ''; var node = $("#login_info"),LoginUserInfo = $('#LoginUserInfo'),txt=''; var hash = window.location.href.indexOf("from=")<0?'from='+encodeURIComponent(window.location.href):''; var hasQQs = hasQQ === '1'; var hasWXs = hasWX === '1' var qqImg = !!hasQQs?'
    QQ登录
    ':''; var wxImg = !!hasWXs?'
    微信登录
    ':''; if(typeof siteUrl !== 'undefined'){window['siteUrl'] = siteUrl;} if(typeof tplPath !== 'undefined'){window['tplPath'] = tplPath;} var LoginUserInfo_userid = LoginUserInfo.val(); if(LoginUserInfo_userid !== ''){ var LoginUserInfo_chrname = LoginUserInfo.attr('data-chrname'), LoginUserInfo_chrpic = LoginUserInfo.attr('data-chrpic'), LoginUserInfo_isadmin = LoginUserInfo.attr('data-isadmin'), LoginUserInfo_styleid = LoginUserInfo.attr('data-styleid'); txt="

    "+LoginUserInfo_chrname+",您好! 管理 退出

    "; txt+=""; loadWEBmessage();//消息系统 }else{ txt='
    '+ '
    你好,请登录
    '+ '
    '+ '
    免费注册
    '+ '
    '+qqImg+wxImg+ ''; } node.prepend(txt); } /*var orderPollingFrame = (function(){ return function(callback,speed){ window.setTimeout(callback, speed); }; })();*/ var message_pid="-1"; var message_isstop = false;//页面是否丢失服务权 var message_isforced = false;//是否被强制拉回服务权页面,被丢失时又强制拉回权时,完全停止弱探测 function loadWEBmessage(){ var url = window['siteUrl']+'api/request.ashx?pid=' +message_pid + '&jsoncallback=?'; $.getJSON(url,function(data){ if(data[0].islogin === '1'){WebMessageShow(data);} if(data[0].islogin === '1' || data[0].islogin === '0'){ /*if( message_pid != '-1' && message_pid != data[0].pid){ $('#message_show').html('活动页面丢失,被重新找回连接权'); }*/ message_pid=data[0].pid; window.setTimeout(function(){loadWEBmessage()},200);//高速探测:间隔时间短100-200毫秒,弱探测:间隔1-2分钟以上 }else{ /*$('#message_show').html('信息获取被另一页面取代,本页面抓取信息进入弱探测');*/ message_isstop = true; if(message_isforced){ message_isforced=false; }else{ if( message_pid === '-1' )message_pid='0'; window.setTimeout(function(){loadWEBmessage()},1*60000);////被取代后每2分钟尝试一次连接,检测活动页面是否丢失 } } }).error(function(err){//失败2分钟后尝试一次 window.setTimeout(function(){loadWEBmessage()},2*60000); }); /* data[0].islogin:0无信息,1:有信息MSG,2:停止高速探测,改为弱探测区别是间隔时间. */ /*$(window).blur(function(){ RunOnunload(); }); $(window).focus(function(){ newloadWEBmessage(); });*/ } function newloadWEBmessage(){ //当页面发生任何刷新或鼠标动作或任意操作时,表示前活动页面已经不是焦点页面,当前页面重新初始参数强行抓回信息获取权 //问题:如何防止本页面并行执行loadWEBmessage(),自动执行一次,强制执行一次. if(message_isstop){ message_isstop = false; message_isforced =true; message_pid="-1"; loadWEBmessage(); } } function RunOnunload(){//当前页面关闭时执行,将程序里当前链接关闭,无需返回任何数据 var url = window['siteUrl']+'api/request.ashx?action=close&pid=' +message_pid + '&jsoncallback=?'; $.getJSON(url,function(data){}); } function WebMessageShow(data){ var idata = data[0]['MSG']; var newOrderId='webMessage'; function countItem(){ var len = $('#'+newOrderId).find('.item').length; $('#WebMessageNum').html(len); if(len === 0){ $('#'+newOrderId).hide(); } } if(typeof idata['mp3'] !== 'undefined' && idata['mp3'] !==''){ WebMessageMusic(idata['mp3']); } if(!$('#'+newOrderId)[0]){ var divs = document.createElement('div'); divs.id = newOrderId; $('body').append(divs); divs.innerHTML = '
    您有0条新信息
    收起移除'; $('#'+newOrderId).find('.close').click(function(e){ e.preventDefault(); $('#WebMessageInner').slideToggle(); $(this).toggleClass('open'); }).end().find('.remove').click(function(e){ e.preventDefault(); $('#'+newOrderId).hide(); }).end().on( "click", ".view", function(e){ if(typeof idata['notViewCloseALL'] !=='undefined' && idata['notViewCloseALL'] === '1'){//点击查看移除全部同类型消息 $(this).parent().parent().remove(); }else{ $('#'+newOrderId).find('.tplid_'+$(this).attr('data-tplid')).remove(); } countItem(); }).on( "click", ".del", function(e){ e.preventDefault(); $(this).parent().parent().remove(); countItem(); }); }else{ $('#'+newOrderId).show(); $('#WebMessageInner').slideDown(); } var txt = $('
    '+idata.title+'

    '+idata.dtappenddate+'

    查看详细 忽略
    '); var WebMessageInner = $('#WebMessageInner'); setTimeout(function(){WebMessageInner.append(txt);WebMessageInner[0].scrollTop = WebMessageInner[0].scrollHeight;},50); $('#WebMessageNum').html(parseInt($('#WebMessageNum').html())+1); } function WebMessageMusic(file){ if(typeof window['my_jPlayer'] === 'undefined'){ $.ajax({url:window['tplPath']+"js/jquery.jplayer.min.js",dataType:'script'}).done(function(){ setTimeout(function(){ $('body').append('
    '); window['my_jPlayer'] = $("#jquery_jplayer"); my_jPlayer.jPlayer({ ready: function (event) { $(this).jPlayer("setMedia",{mp3: file}); if(typeof notplay === 'undefined'){window['my_jPlayer'].jPlayer('play');} }, swfPath: window['tplPath']+"js", // jquery.jplayer.swf 文件存放的位置 supplied: "mp3", wmode: "window" }); },200); }); }else{ window['my_jPlayer'].jPlayer("setMedia",{mp3: file}); window['my_jPlayer'].jPlayer('play'); } return false; } function get_user_isOnline(sid){ var url = window['siteUrl']+'api/request.ashx?action=useronline&userids='+sid + '&jsoncallback=?'; $.getJSON(url,function(data){ var res = data[0]; if(res.islogin === '1'){ for(var i=0;ii&&typeof item.id!=='undefined'){txt+='
  • ['+item.cat+'] '+item.title+''+item.sdate+'
  • ';} }); node.attr('data-success','1').html(txt).removeClass('loadding'); } } function get_other(otherUrl,cat,num,node){ var timer=Math.random(), arr_c = cat.split('_'), moban = 'index_'+arr_c[0]+'.html', ids = arr_c[1], url = '../request.ashx?action=getdata&timer='+timer+'&tempid=20&template='+moban+'&id='+ids+'&jsoncallback=?', i=0, txt=''; $.get(url,function(result){ dataArr = eval('('+result+')'); showData(dataArr[0].arr); }); function showData(dataArr){ $.each(dataArr,function(i,item){ if(num>i&&typeof item.id!=='undefined'){txt+='
  • '+item.title+''+item.price+'
  • ';} }); node.attr('data-success','1').html(txt).removeClass('loadding'); } } $.fn.confirmForm = function(){ this.each(function(){ var list = $(this).find('.gx_confirm'); var forname = $(this).attr('data-name'); var sid=$('input[name="'+forname+'"]:checked').attr('value'); if(sid ==='1'){ $(this).find('.gx_confirm').addClass('current').attr('data-val','1'); } list.click(function(e){ e.preventDefault(); if($(this).attr('data-val') === '0'){ $(this).attr('data-val','1'); $(this).addClass('current'); $('input[name="'+forname+'"][value="1"]').prop('checked',true); }else{ $(this).attr('data-val','0'); $(this).removeClass('current'); $('input[name="'+forname+'"][value="0"]').prop('checked',true); } }); }); } $.fn.radioForm = function(){ this.each(function(){ var list = $(this).find('.gx_radio'); var forname = $(this).attr('data-name'); var sid=$('input[name="'+forname+'"]:checked').attr('value'); if(sid !=='' && !!sid){ $(this).find('.gx_radio').removeClass('current'); $(this).find('.gx_radio[data-val="'+sid+'"]').addClass('current'); } list.click(function(e){ e.preventDefault(); var target = $('input[name="'+forname+'"][value="'+$(this).attr('data-val')+'"]'); if(!!target.prop('disabled')){return false;} target.prop('checked',true); list.removeClass('current'); $(this).addClass('current'); }); }); } $.fn.checkboxForm = function(){ this.each(function(){ var t = $(this); var list = $(this).find('.gx_check'); var forname = $(this).attr('data-name'); var form_list = $(this).find('input[name="'+forname+'"]:checked'); form_list.each(function(){ var sid = $(this).attr('value'); t.find('.gx_check[data-val="'+sid+'"]').addClass('current'); }); list.click(function(e){ e.preventDefault(); var target = $('input[name="'+forname+'"][value="'+$(this).attr('data-val')+'"]'); if(!!target.prop('disabled')){return false;} target.prop('checked',!target.prop('checked')); $(this).toggleClass('current'); }); }); } $.fn.TabADS_tieba = function(){ var obj = $(this); var currentClass = "current"; var tabs = obj.find(".hd-inner").find("a"); var conts = obj.find(".news"); var t; tabs.eq(0).addClass(currentClass); conts.hide(); conts.eq(0).show(); tabs.each(function(i){ $(this).bind("mouseover",function(){ t = setTimeout(function(){ conts.hide().eq(i).show(); tabs.removeClass(currentClass).eq(i).addClass(currentClass); },300); }).bind("mouseout",function(){ clearTimeout(t); }); }); } $.fn.TabADS4 = function(thisUrl,num,callback,isGO){ var obj = $(this), currentClass = "selected", tabs = obj.find(".tab-hd").find(".item"), conts = obj.find(".tab-cont"), tab,cat,cont,is_success,t; callback = callback==='bbs'?get_bbs:(callback==='live'?get_live:get_other); tabs.eq(0).addClass(currentClass); conts.hide(); conts.eq(0).show(); isGO&&callback.call(this,thisUrl,tabs.eq(0).attr('data-cat'),num,conts.eq(0)) tabs.each(function(i){ $(this).bind("mouseover",function(){ t = setTimeout(function(){ tab=tabs.eq(i); cont=conts.eq(i); conts.hide(); cont.show(); tabs.removeClass(currentClass); tab.addClass(currentClass); is_success=cont.attr('data-success')==='1'?true:false; cat=tab.attr('data-cat'); !is_success&&callback.call(obj,thisUrl,cat,num,cont); },300); }).bind("mouseout",function(){ clearTimeout(t); }); }); } $.fn.TabADS3 = function(thisUrl,num,callback,isGO){ var obj = $(this), currentClass = "current", tabs = obj.find(".hd-inner").find("a"), conts = obj.find(".news"), tab,cat,cont,is_success,t; callback = callback==='bbs'?get_bbs:(callback==='live'?get_live:get_other); tabs.eq(0).addClass(currentClass); conts.hide(); conts.eq(0).show(); isGO&&callback.call(this,thisUrl,tabs.eq(0).attr('data-cat'),num,conts.eq(0)) tabs.each(function(i){ $(this).bind("mouseover",function(){ t = setTimeout(function(){ tab=tabs.eq(i); cont=conts.eq(i); conts.hide(); cont.show(); tabs.removeClass(currentClass); tab.addClass(currentClass); is_success=cont.attr('data-success')==='1'?true:false; cat=tab.attr('data-cat'); !is_success&&callback.call(obj,thisUrl,cat,num,cont); },300); }).bind("mouseout",function(){ clearTimeout(t); }); }); } $.fn.TabADS2 = function(thisUrl,num,callback,isGO){ var obj = $(this), currentClass = "selected", tabs = obj.find(".tab-hd").find("li"), conts = obj.find(".tab-cont"), tab,cat,cont,is_success,t; callback = callback==='bbs'?get_bbs:(callback==='live'?get_live:get_other); tabs.eq(0).addClass(currentClass); conts.hide(); conts.eq(0).show(); isGO&&callback.call(this,thisUrl,tabs.eq(0).attr('data-cat'),num,conts.eq(0)) tabs.each(function(i){ $(this).bind("mouseover",function(){ t = setTimeout(function(){ tab=tabs.eq(i); cont=conts.eq(i); conts.hide(); cont.show(); tabs.removeClass(currentClass); tab.addClass(currentClass); is_success=cont.attr('data-success')==='1'?true:false; cat=tab.attr('data-cat'); !is_success&&callback.call(obj,thisUrl,cat,num,cont); },300); }).bind("mouseout",function(){ clearTimeout(t); }); }); } $.fn.TabADS = function(selector){ var obj = $(this); var currentClass = "selected"; if(typeof selector !== 'undefined'){ var tabs = obj.find(".tab-hd").find(selector); }else{ var tabs = obj.find(".tab-hd").find("li"); } var conts = obj.find(".tab-cont"); var t; tabs.eq(0).addClass(currentClass); conts.hide(); conts.eq(0).show(); tabs.each(function(i){ $(this).bind("mouseover",function(){ t = setTimeout(function(){ conts.hide().eq(i).show(); tabs.removeClass(currentClass).eq(i).addClass(currentClass); },300); }).bind("mouseout",function(){ clearTimeout(t); }); }); } $.fn.modCity = function(){ var selectBox = $('#modCity_link'); var dropDown = $('#modCity'); dropDown.bind('show',function(){ if(dropDown.is(':animated')){ return false; } selectBox.addClass('expanded'); dropDown.fadeIn(); }).bind('hide',function(){ if(dropDown.is(':animated')){ return false; } selectBox.removeClass('expanded'); dropDown.fadeOut(); }).bind('toggle',function(){ if(selectBox.hasClass('expanded')){ dropDown.trigger('hide'); }else{ dropDown.trigger('show'); } }); selectBox.click(function(event){ dropDown.trigger('toggle'); event.preventDefault(); }); $(document).click(function(e){ dropDown.trigger('hide'); }); } $.fn.showMore = function(){ var $this = $(this),$po = $this.find('.po'); $this.hover(function(){ $po.toggleClass('show') }); } $.fn.showMore2 = function(){ var $this = $(this); $this.hover(function(){ $this.toggleClass('show') }); } $.returnTop=function(node){ var node = $('返回顶端'); $(document).ready(function(){$('body').append(node)}); var b = node.click(function(event){ event.preventDefault(); $("html,body").animate({scrollTop: 0},300); }), c = null; $(window).bind("scroll",function(){ var d = $(document).scrollTop(), e = $(window).height(); 0 < d ? b.css("bottom", "45px") : b.css("bottom", "-200px"); isIE6() && (b.hide(),clearTimeout(c),c = setTimeout(function(){ 0 < d ? b.show() : b.hide(); clearTimeout(c); }, 300), b.css("top", d + e - 51)) }); } $.fn.returnTop2014=function(node){ var iGo2Top = $('#iGo2Top'); var find_serv = $('#find_serv'); var iExtraction = $('#iExtraction'); find_serv.hover(function(){ find_serv.addClass('open'); iExtraction.show().animate({width: "184px"}, 300 ); },function(){ find_serv.removeClass('open'); iExtraction.css({width: "0px"}).hide(); }); iGo2Top.click(function(event){ event.preventDefault(); $("html,body").animate({scrollTop: 0},300); }); $(window).bind("scroll",function(){ var d = $(document).scrollTop(); 0 < d ? iGo2Top.show() : iGo2Top.hide(); }); } $.fn.listNav = function(){ var $this = $(this); $this.delegate('.t','click',function(e){ $(this).parent().toggleClass('open'); }); } $.fn.listNav2 = function(){ var $this = $(this); $this.delegate('.hd','click',function(e){ //$this.find('.open').removeClass('open'); //$this.find('.hd_open').removeClass('hd_open'); $(this).toggleClass('hd_open'); $(this).next().toggleClass('open'); //e.preventDefault(); }); } $.fn.fixed = function(can){ if(isIE6()){return false;} var b = $(this),h = b.height(),offset = b.offset(),top = offset.top,bottom = $('#footer').outerHeight(true),w_h = $(window).height(); if(can.height()(s_h - d)){ b.css({'position':'absolute','top':s_b}); }else{ b.css({'position':'fixed','top':'0'}); } }else{ b.css({'position':'static'}); } }); } $.fn.changeList = function(){ var _this = $(this),list=_this.find('li'); list.bind('mouseover',function(){list.removeClass('frist');list.children('.img').hide();$(this).addClass('frist');$(this).children('.img').show();}); list.eq(0).trigger('mouseover'); } $('#channel_nav').ready(function(){ var that=$('#channel_nav'), url = window.location.href, url_L = url.toLowerCase(), channel = that.find('a'), forlink; if(typeof window['isKuaiDianNav'] !== 'undefined'){ url_L = window['isKuaiDianUrl'].toLowerCase(); } channel.each(function(){ forlink = $(this).attr("href").toLowerCase(); if(url_L.indexOf(forlink)>=0){ that.find('.select').removeClass(); $(this).addClass("select"); } }); if(typeof window['istiebaNav'] !== 'undefined'){ that.find('.select').removeClass(); that.find('a[href*="tieba"]').addClass("select"); } }); $.fn.reviewTgImg = function(){ var $this = $(this),imgs=$this.find('img'); imgs.each(function(){ var txt = $(this).attr('data-img-src'); var arr1 = txt.split('/'); var imgName = arr1.pop(); var arr2 = imgName.split('.'); var filename = arr2[0]; var filetype = '.'+arr2[1]; var new_name = arr1.join('/')+'/'+imgName.slice(0,filename.length-1)+'2'+filetype; $(this).attr('src',new_name); }); } $.fn.get_TG_num = function(selector){ var _t = $(this),list = _t.find(selector),arr_id = [],txt_id=''; list.each(function(index,item){ arr_id.push($(item).attr('data-tgid')); }); txt_id = arr_id.join(','); var url = window['siteUrl']+'request.ashx?action=chrnum&key=tg&jsoncallback=?&id='+txt_id; $.getJSON(url, function(data){ if(data[0]['islogin'] === '1'){ for(var i=0;i0){ imgList.each(function(i,item){ $(item).imagesLoaded(function(){ if(item.width 5){window.location.href=url;} } function MSGwindowShow(action,showid,str,url,formcode){ var sys_tips = ''; if(!$('#sys_tips')[0]){ $('body').append(sys_tips); } var pay_tips = $('#pay_tips'),sys_tips = $('#sys_tips'),sys_tips_title = $('#sys_tips_title'),sys_tips_info = $('#sys_tips_info'),sys_tips_submit = $('#sys_tips_submit'); if(action === "pay"){ $('#have_login').hide(); if(showid=="2"){//正常提交 if(document.getElementById('formcode')){ document.getElementById('formcode').value=formcode;//赋值code document.forms['submitpay'].submit();//提交支付 //这里添加支付中信息提示窗口 pay_tips.show(); var w_h = $(window).height(),d_h = pay_tips.height(),s_h = $(document).scrollTop(),top_val = (w_h-d_h)/2+s_h; pay_tips.css({'top':top_val+'px'}); } }else if(showid=="1"){//成功提示加跳转 if(!!win){win.close();} showConsole('恭喜您!',!0); }else if(showid=="0"){//提示不跳转 if(!!win){win.close();} showConsole('温馨提示',!1); }else if(showid=="4"){//错误提示不跳转 if(!!win){win.close();} showConsole('出错了',!1); }else{//提示加跳转 if(!!win){win.close();} showConsole('温馨提示',!0); } if(document.getElementById('formcode')){ document.getElementById('formcode').value="payok";//设置默认值防止二次提交 } }else if(action === "jifen"){ if(typeof formcode !== 'undefined' && formcode!=='0' && formcode!==0){ str = str + ',增加'+formcode +window['jifenneme']+'!'; } showConsole('提示',true); }else if(action === "jiaoyou_buy"){ if(typeof getPageInfo !== 'undefined'){ getPageInfo(); } }else if(action === "jiaoyou_keep"){ $('#keeptxt').html('已收藏'); $('#keepnum').html(formcode); }else if(action === "jiaoyou_flowers"){ $('#flowernum').html(formcode); $('#flower').find('.closes').trigger('click'); showConsole('提示',false); }else{ if(showid=="7"){ //不提示,成功并调用上层页面的对应方法 if(typeof MSGwindowShow_curPage !== 'undefined'){MSGwindowShow_curPage.call(this,url);} return false; } if(showid=="0"){ //只提示不跳转 showConsole('提示',false); }else if(showid=="1"){ //提示加跳转 showConsole('提示',true); }else if(showid=="2"){ //直接跳转 windowlocationhref(url); }else if(showid=="3"){ //错误信息加跳转 showConsole('出错了',true); }else if(showid=="4"){ //错误信息加只提示不跳转 showConsole('出错了',false); }else if(showid=="5"){//成功并由页面刷上层页面 showConsole('提示',false); }else if(showid=="6"){ //成功并调用上层页面的对应方法 showConsole('提示',false); }else{ return false; } } function showConsole(tit,isredirect){ sys_tips_info.html(str); sys_tips_title.html(tit); sys_tips_submit.bind('click',function(e){ e.preventDefault(); sys_tips.hide(); isredirect&&windowlocationhref(url); if(showid === '5'){ window.parent.location.href=window.parent.location.href; } if(showid === '6'){ if(typeof MSGwindowShow_curPage !== 'undefined'){MSGwindowShow_curPage.call(this);} } }); sys_tips.show(); var w_h = $(window).height(),d_h = sys_tips.height(),s_h = $(document).scrollTop(),top_val = (w_h-d_h)/2+s_h; sys_tips.css({'top':top_val+'px'}); } } //春节效果 /*$(document).ready(function(){ $('.wrapper').wrap('
    '); var btnStr = '关闭'; $('.wrapper').append(btnStr); var btn = $('#close_year'); btn.bind('click',function(e){ e.preventDefault(); $('#sp_year').removeClass('sp_year'); }) });*/ //优惠券 function getQuan(shopid){ var o_quan = $('#o_quan'); var url = siteUrl+'request.ashx?action=getshopcard&shopid='+shopid+'&jsoncallback=?'; $.getJSON(url,function(data){ if(data[0].islogin === '1'){ var arr = data[0].MSG; for(var i=0;i 0){ arr[i].disable = ''; }else{ if(arr[i].ismycard === 0){ arr[i].disable = 'disable'; }else{ arr[i].disable = ''; } } var TPL=$('#tp').html().replace(/[\n\t\r]/g, ''); $('#o_quan').append(Mustache.to_html(TPL, data[0].MSG[i])); } o_quan.show(); o_quan.on('click','.btn',function(e){ e.preventDefault(); if(!!$(this).parent().hasClass('success1') || !!$(this).parent().hasClass('disable')){return false;} lingQuan($(this),$(this).attr('data-picinum'),$(this).attr('data-styleid')); }); }else{ //MSGwindowShow('lingQuan','0',data[0].error,'',''); } }); } function lingQuan(o,picinum,styleid){ if($('#isLogin').val()!=='1'){ MSGwindowShow('lingQuan','1','您还没有登录哦!',siteUrl+'member/login.html?from='+encodeURIComponent(window.location.href),''); return false; } var url = siteUrl+'request.ashx?action=setusercard&picinum='+picinum+'&styleid='+styleid+'&jsoncallback=?'; $.getJSON(url,function(data){ if(data[0].islogin === '1'){ o.parent().addClass('success1'); }else{ MSGwindowShow('lingQuan','0',data[0].error,'',''); } }); } function getHongbao(){ if($.cookie("pc_hongbao") === '1'){ return false; } var url = window['siteUrl']+'request.ashx?action=ismyhongbao&ishtml=1&jsoncallback=?'; //moban:pc/main/default/member/IsMyHongbao.html $.getJSON(url,function(data){ if(data[0].islogin === '1'){ $.cookie("pc_hongbao",'1',{domain:"."+window['SiteYuming'],path:'/',expiress:1}) $('body').append(data[0].MSG).on('click','#hongbaoNode .close',function(e){ e.preventDefault(); $('#hongbaoNode').hide(); $('#mask').hide(); }); $('#mask').show(); var node = $('#hongbaoNode'); node.css({'margin-top':'-'+parseInt(node.height()/2)+'px'}); node.find('li').each(function(){ if(parseInt($(this).attr('data-nousercardcount'))<1){ $(this).addClass('disable'); } if($(this).attr('data-moneymin') === '0'){ $(this).find('.moneymin').html('无门槛券'); } }); node.on('click','.btn',function(e){ e.preventDefault(); if(!!$(this).hasClass('success1') || !!$(this).hasClass('disable')){return false;} lingQuan($(this),$(this).attr('data-picinum'),$(this).attr('data-styleid')); }); } }); } function setStatenum(selector){ var statenum = Math.round(Math.random()*1E15); $(selector).val(statenum); } } /* FILE ARCHIVED ON 23:48:37 Aug 16, 2018 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 11:40:12 Oct 07, 2025. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 4.2 exclusion.robots: 0.048 exclusion.robots.policy: 0.028 esindex: 0.021 cdx.remote: 48.732 LoadShardBlock: 1931.797 (3) PetaboxLoader3.datanode: 1553.909 (4) load_resource: 654.898 PetaboxLoader3.resolve: 249.186 */