PageSourceSearch

https://nanrenwa.com/min/f=_js/2.0/account.js&0.1789563687

js nanrenwa.com collected 2026-10-08 00:06:05 UTC 5,731 bytes, 13 lines download raw bytes

1$(function(){$.NRW.alert2=function(msg){return $(".error_wrap").hide().html("<div class='error'>"+msg+"</div>").fadeIn();};if($(window).width()>=48*16){var iTop=(window.screen.availHeight-30-600)/2;var iLeft=(window.screen.availWidth-10-600)/2;$('#snslogin_weibo').click(function(){window.open("/account/snslogin/weibo/pop",'login','height=600,width=770,left='+iLeft+',top='+iTop);return false;});$('#snslogin_weixin').click(function(){window.open("/account/snslogin/weixinweb/pop",'login','height=600,width=600,left='+iLeft+',top='+iTop);return false;});$('#snslogin_qq').click(function(){window.open("/account/snslogin/qq/pop",'login','height=600,width=600,left='+iLeft+',top='+iTop);return false;});}
2$('.snslogin_unlink').click(function(){var sns_name=$(this).attr('data-sns');return confirm('解绑'+sns_name+'后,你将无法使用'+sns_name+'登录男人袜,确定要解绑吗?');});$('#sms_link').click(function(){$('#loginform .input_password').removeClass('pure-u-1').addClass('pure-u-14-24');$('#loginform .input_code').addClass('pure-u-10-24').show();$('#loginform #email').attr('placeholder','手机号码').attr('type','tel').attr('maxlength',11).focus();$('#loginform #password').attr('placeholder','6 位验证码').attr('type','tel').attr('maxlength',6);$(this).hide();return false;});$('#sms_button').click(function(){var timer;var countdown=120;var button=$(this);$(".error_wrap").hide();if(/^1\d{10}$/.test($('#email').val())==false){$.NRW.alert2('请输入正确手机号码');$('#loginform #email').select().focus();return false;}
3button.text('请稍候...').prop("disabled",true);$.get('/account/smslogin/'+$('#email').val()).done(function(response){$('#loginform #password').focus();if(response.msg=='success'){button.countdown(new Date().getTime()+59*1000,function(event){button.text(event.strftime('%S 秒后重发'));}).on('finish.countdown',function(){button.text('重发验证码').prop("disabled",false);});}
4if(response.msg=='limit'){$.NRW.alert2('短信重试次数过多,请稍候再试');button.text('发送验证码').prop("disabled",false);}
5if(response.msg=='fail'){$.NRW.alert2('该手机号码不是会员');$('#loginform #email').select().focus();button.text('发送验证码').prop("disabled",false);}});});$('body').on('submit','#pwdform',function(){var pass0=$('input[name=old_password]').val();var pass1=$('input[name=password]').val();var pass2=$('input[name=password_confirm]').val();if(pass0===''){alert('请输入旧密码');$('input[name=old_password]').focus();return false;}else if(pass1===''){alert('请输入新密码');$('input[name=password]').focus();return false;}else if(pass2===''){alert('请再次输入新密码');$('input[name=password_confirm]').focus();return false;}else if(pass1.length<4){alert('新密码至少为 4 位');$('input[name=password]').focus();return false;}else if(pass1!=pass2){alert('确认密码与新密码不相同');$('input[name=password]').focus();return false;}else{$.post("/account/changepwd",$(this).serialize(),function(data){if(data.error){alert(data.error);}else{$('#pwdform').html('<div class="loading"><b>'+data.msg+'</b></div>');setTimeout(function(){$.fancybox.close();},2000);}});}
6return false;});$('body').on('submit','#mailform',function(){var email=$('input[name=email]').val();if(email===''){alert('请输入新邮箱');$('input[name=email]').focus();return false;}else if(/^\w+([\\+\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email)===false){alert('邮箱格式不对哦,亲!');$('input[name=email]').focus();return false;}else{$('#submit').hide();$('#loading').show();$.post("/account/changemail",$(this).serialize(),function(data){if(data.error){$('#submit').show();$('#loading').hide();alert(data.error);}else{$('#mailform').html('<div class="loading"><b>'+data.msg+'</b></div>');setTimeout(function(){$.fancybox.close();},2000);}});}
7return false;});$("#referral_code").click(function(){$('#referral_code').select();});$("#shipnow").click(function(){return confirm('请确认您需要马上发出您的下批产品吗?');});$('.info-form input[type=file]').on('change',function(event){var file=event.target.files;var label=$('.avatar_label>span').text();var form_data;$('.avatar_label>span').text('上传中...');try{form_data=new FormData();form_data.append('avatar',file[0]);}catch(e){return false;}
8$.ajax({url:'/account/info/avatar',type:'POST',data:form_data,cache:false,dataType:'json',processData:false,contentType:false,success:function(data){if(typeof data.error==='undefined'){if($(window).width()<48*16){$.post('/account/info/avatar',{'tmp_name':data.tmp_name,'size':{'x':0,'y':0,'w':data.w,'h':data.w}}).done(function(response){if(response.src)$('.avatar-img').attr('src',response.src);});}else{var html='<div class="avatar_crop">';html+="<img id='jcrop' class='pure-img2' src='"+data.tmp_name+"'>";html+="<button class='pure-button button-main button-small'>保存头像</button>";html+="</div>";var instance=$.fancybox.open(html,{'modal':false});var jcrop;$('#jcrop').Jcrop({'aspectRatio':1,trueSize:[data.w,data.h]}
8,function(){instance.update();jcrop=this;if(data.h>data.w)
9jcrop.setSelect([0,(data.h-data.w)/2,data.w,data.w]);else
10jcrop.setSelect([(data.w-data.h)/2,0,data.w,data.w]);});}
11$('.avatar_crop button').click(function(){$.post('/account/info/avatar',{'tmp_name':data.tmp_name,'size':jcrop.tellSelect()}).done(function(response){if(response.src){$('.avatar-img').attr('src',response.src);$('.avatar img').attr('src',response.src);}
12$.fancybox.close();});});}else{alert('上传失败,图片不能超过 2M');}
13$('.avatar_label>span').text(label);},error:function(jqXHR,textStatus,errorThrown){alert('上传失败,请稍候再试');$('.avatar_label>span').text(label);}});});});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.