nction returnback() { var ref = window.document.referrer.toLowerCase(); if (ref == "" || back.length >0 && ref.indexOf(back)>-1) { window.location.href = "/search.html"; } else { history.go(-1); } } var zcdarr = ['极低','暂无数据','正常','很高','非常高']; $('.new_zcd_cx').click(function(){ if($(this).data('djcs') > 0){ return false; } var _this = $(this); var kcx = $(this).data('kcx'); var kxd = $(this).data('kxd'); var djcs = $(this).data('djcs'); _this.data('djcs','1'); if(kcx == 1){ cxzcd(_this); }else{ if(kxd==1){ var title='可信'; }else{ var title='真诚'; } if(myuser.vip > 0){ $.confirm('

'+title+'度查询仅限VIP会员使用


您是VIP1会员,不能免费查看非开通省份用户'+title+'度

',[{no:'取消'},{yes:"点击升级VIP"}]); }else{ $.confirm('

'+title+'度查询仅限VIP会员使用

',[{no:'取消'},{yes:"成为VIP"}]); } $('.ui-submit').click(function(){ window.location.href="/Vip/index" }) $('.js-dialog-close').click(function(){ _this.data('djcs','0'); }) } }) function cxzcd(obj){ $.post('/User/getzcd',{uid:'1987948'},function(data){ if(data.code==200){ obj.data('djcs','1'); $('.u-usercf').html('真诚度:' + zcdarr[data.data.status]); }else{ obj.data('djcs','0'); setTimeout(function(){$.alert(data.data)},500); } }) } $('.f-db').click(function(){ if($(this).find('img').attr("src") == "/Public/Home/image/nan.gif" || $(this).find('img').attr("src") == "/Public/Home/image/nv.gif"){ return false; } var _this = $(this); var domobj = $('
'); domobj.ready(function(){ var domImg = $(this).find(".tImg"); var location = _this.offset(); domImg.css(location); }) domobj.click(function(){ $(this).fadeOut(300,function(){ $(this).remove(); }); }) $('body').append(domobj); domobj.ready(function(){ var domImg = $(this).find(".tImg"); var location = _this.offset(); location.top = location.top - $(document).scrollTop(); domImg.css(location); var mHW = $(window).width(); var newLocation = {height:mHW,width:mHW,top:($(window).height()-mHW)/2,left:0} setTimeout(function(){domImg.css(newLocation);},100); }) })//gfhn_yes $(window).ready(function(){ var hav =true; $('.gifttchavname').click(function(){ if(hav){ $(this).find('i').removeClass('gfhn_yes').addClass('gfhn_no'); hav = false; }else{ $(this).find('i').removeClass('gfhn_no').addClass('gfhn_yes'); hav = true; } }) })