iPhone现阶段非常时兴或是一直时兴,可是与人一样,人很时兴,物品也很时兴。因此我们在买苹果手机的情况下,都喜爱探听何时哪儿出去的,可是或是需看许多材料,四处登录查看,有一些更恶心想吐。在对你说我是果酵以前,你要注意什么微信号码,因此我搜了iPhone手机序列号的标准,决策做一个。今日一起做一个吧!

实际效果浏览:苹果案例编号查询进度-apple案例进度查询-第1张图片实际效果浏览:

实际效果浏览

大家先简短说说构思:

最先,大家必须了解怎样完成这一点。大家必须掌握iPhone的机器码是依照哪些标准排序的。

标准:第一个英文字母:深圳市以c开头,成都市以d开头,郑州市以f开始。

系列号的第四位数字意思生产制造年代,由20个英文字母表明(A,B,E,I,O和U不包括在26个英文字母中)。留意每六个月是小数位后一位。在其中m意味着2014年上半年度,n代表2014年后半年,p意味着2015年上半年度,q意味着2015年后半年,依此类推。

编号的第五位数据由数据(即1至9,没有0)和英文字母(从26个英文字母中没有A,B,E,I,O,U,S和Z)表明,共27位,表明周数,从1逐渐,计算字数和英文字母数,半年一次。比如,系列号N1和N9各自意味着2014年后半年第一周和第九周的生产量。

必须特别注意的是,1到9意味着第1到9周,以后是c,意味着第10周,依此类推。

这也是他的标准。这儿必须确立的是,他以大半年为间距,因此编号第五位也以大半年为间距。因此要先分辨是上半年度或是后半年,再确定实际日期。

不,看一下编码,非常简单:

CSS:

*{margin:0;padding:0;list-style-type:none;}a,img{border:0;}body{background: #000;color: #DDD;font-family: 'Helvetica', 'Lucida Grande', 'Arial', sans-serif;}.border,.rain{width: 320px;}.rain{ padding: 10px 12px 12px 10px; -moz-box-shadow: 10px 10px 10px rgba(0,0,0,1) inset, -9px -9px 8px rgba(0,0,0,1) inset; -webkit-box-shadow: 8px 8px 8px rgba(0,0,0,1) inset, -9px -9px 8px rgba(0,0,0,1) inset; box-shadow: 8px 8px 8px rgba(0,0,0,1) inset, -9px -9px 8px rgba(0,0,0,1) inset; margin: 100px auto;}.border{padding: 1px;-moz-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px;}.border,.rain,.border.start,.rain.start{background-repeat: repeat-x, repeat-x, repeat-x, repeat-x;background-position: 0 0, 0 0, 0 0, 0 0; background-image: -moz-linear-gradient(left, #09BA5E 0%, #00C7CE 15%, #3472CF 26%, #00C7CE 48%, #0CCF91 91%, #09BA5E 100%); background-image: -webkit-gradient(linear, left top, right top, color-stop(1%,rgba(0,0,0,.3)), color-stop(23%,rgba(0,0,0,.1)), color-stop(40%,rgba(255,231,87,.1)), color-stop(61%,rgba(255,231,87,.2)), color-stop(70%,rgba(255,231,87,.1)), color-stop(80%,rgba(0,0,0,.1)), color-stop(100%,rgba(0,0,0,.25))); background-color: #39f; filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00BA1B', endColorstr='#00BA1B',GradientType=1 );} .border.end,.rain.end{-moz-transition-property: background-position; -moz-transition-duration: 30s;-moz-transition-timing-function: linear;-webkit-transition-property: background-position; -webkit-transition-duration: 30s; -webkit-transition-timing-function: linear;-o-transition-property: background-position; -o-transition-duration: 30s; -o-transition-timing-function: linear;transition-property: background-position; transition-duration: 30s; transition-timing-function: linear;background-position: -5400px 0, -4600px 0, -3800px 0, -3000px 0; } @-webkit-keyframes colors {0% {background-color: #39f;}15% {background-color: #F246C9;}30% {background-color: #4453F2;}45% {background-color: #44F262;}60% {background-color: #F257D4;}75% {background-color: #EDF255;}90% {background-color: #F20006;}100% {background-color: #39f;}}.border,.rain{-webkit-animation-direction: normal;-webkit-animation-duration: 20s;-webkit-animation-iteration-count: infinite;-webkit-animation-name: colors;-webkit-animation-timing-function: ease;} .border.unfocus{background: #333 !important; -moz-box-shadow: 0px 0px 15px rgba(255,255,255,.2); -webkit-box-shadow: 0px 0px 15px rgba(255,255,255,.2); box-shadow: 0px 0px 15px rgba(255,255,255,.2); -webkit-animation-name: none;}.rain.unfocus{background: #000 !important; -webkit-animation-name: none;} form{background: #212121;-moz-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px;height:220px;width: 100%;background: -moz-radial-gradient(50% 46% 90deg,circle closest-corner, #242424, #090909);background: -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 150, from(#242424), to(#090909));}form label{display: block;padding: 10px 10px 5px 15px;font-size: 11px;color: #777;}form input{display: block;margin: 5px 10px 10px 15px;width: 85%;background: #111;-moz-box-shadow: 0px 0px 4px #000 inset;-webkit-box-shadow: 0px 0px 4px #000 inset;box-shadow: 0px 0px 4px #000 inset;outline: 1px solid #333;border: 1px solid #000;padding: 5px;color: #444;font-size: 16px;}form input:focus{outline: 1px solid #555;color: #FFF;}input[type="button"]{color: #999;padding: 5px 10px;border: 1px solid #000;font-weight: lighter;-moz-border-radius: 15px;-webkit-border-radius: 15px;border-radius: 15px;background: #45484d;background: -moz-linear-gradient(top, #222 0%, #111 100%);background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#222), color-stop(100%,#111));filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#22222', endColorstr='#11111',GradientType=0 );-moz-box-shadow: 0px 1px 1px #000, 0px 1px 0px rgba(255,255,255,.3) inset;-webkit-box-shadow: 0px 1px 1px #000, 0px 1px 0px rgba(255,255,255,.3) inset;box-shadow: 0px 1px 1px #000,0px 1px 0px rgba(255,255,255,.3) inset;text-shadow: 0 1px 1px #000;outline: none;width:80px;margin-top:20px;float: left;}

你能绕过css,它很美。

参照:

JS:

$(function(){var $form_inputs = $('form input');var $rainbow_and_border = $('.rain, .border');$form_inputs.bind('focus', function(){$rainbow_and_border.addClass('end').removeClass('unfocus start');});$form_inputs.bind('blur', function(){$rainbow_and_border.addClass('unfocus start').removeClass('end');});$form_inputs.first().delay(800).queue(function(){$(this).focus();});});var address;//生产制造地var years;//生产制造年代var dates;//生产制造日期function checkappleId(){/* 提取到第一位标识符,用于分辨的是生产制造详细地址 */var ID = $("#checkapple").val();var apple_adress = ID.substr(0,1); //提取的是第一位的字符串数组,随后提取的长短是一位/* 提取到第四位的标识符,用于分辨的是生产制造年代 */var Year = ID.substr(3,1);/* 提取到第五位的标识符,用于分辨生产制造日期 */var Dateflag = ID.substr(4,1);//提取到第五位/* 先分辨是否正确的是系列号 */if(ID.length != 12){layer.msg("系列号不正确!请核查对后再次查看");}else{if(apple_adress == 'C'){address = '深圳市';}else if(apple_adress == 'D'){address = '成都市'}else if(apple_adress == 'F'){address = '郑州市'}else{layer.msg("系列号不正确!请核查对后再次查看");return false;} console.log("生产制造地是:" address);console.log("第四位是:" Year);console.log("第五位是:" Dateflag);if(Year == 'M'){years = '2014上半年度';check_before(Dateflag);}else if(Year == 'N'){years = '2014后半年';check_after(Dateflag);}else if(Year == 'P'){years = '2015上半年度';check_before(Dateflag);}else if(Year == 'Q'){years = '2015后半年';check_after(Dateflag);}else if(Year == 'R'){years = '2016上半年度';check_before(Dateflag);}else if(Year == 'S'){years = '2016后半年';check_after(Dateflag);}else if(Year == 'T'){years = '2017上半年度';check_before(Dateflag);}else if(Year == 'V'){years = '2017后半年';check_after(Dateflag);}else if(Year == 'W'){years = '2018上半年度';check_before(Dateflag);}else if(Year == 'X'){years = '2018后半年';check_after(Dateflag);}else if(Year == 'Y'){years = '2019上半年度';check_before(Dateflag);}else if(Year == 'Z'){years = '2019后半年';check_after(Dateflag);}else{layer.msg("系列号不正确!请核查对后再次查看");return false;}console.log("年代是:" years);console.log("日期是:" dates);layer.open({ type: 1, title:'查看結果', skin: 'layui-layer-rim', //再加上外框 area: ['600px', '400px'], //高宽 btn:['关掉'], content: '您的机器码是:' ID '
' '应是手机上生产制造地是:' address '
' '应是手机上生产制造年代是:' years '
' '应是手机上生产制造日期是:' dates '
' '提醒:假如您查看的激话日期早于生产制造日期,表明您的手机上是官换机!',});}} /* 分辨的是每一年的后半年的日期 */ function check_before(Dateflag){ if(Dateflag == '1'){ dates = '1月1日-1月7日'; }else if(Dateflag == '2'){ dates = '1月8日-1月14日'; }else if(Dateflag == '3'){ dates = '1月15日-1月21日'; }else if(Dateflag == '4'){ dates = '1月22日-1月28日'; }else if(Dateflag == '5'){ dates = '1月29日-2月4日'; }else if(Dateflag == '6'){ dates = '2月5日-2月11日'; }else if(Dateflag == '7'){ dates = '2月12日-2月18日'; }else if(Dateflag == '8'){ dates = '2月19日-2月25日'; }else if(Dateflag == '9'){ dates = '2月26日-3月1日'; }else if(Dateflag == 'C'){ dates = '3月2日-3月8日'; }else if(Dateflag == 'D'){ dates = '3月9日-3月15日'; }else if(Dateflag == 'F'){ dates = '3月16日-3月22日'; }else if(Dateflag == 'G'){ dates = '3月23日-3月29日'; }else if(Dateflag == 'H'){ dates = '4月30日-4月6日'; }else if(Dateflag == 'J'){ dates = '4月7日-4月13日'; }else if(Dateflag == 'K'){ dates = '4月14日-4月20日'; }else if(Dateflag == 'L'){ dates = '4月21日-4月27日'; }else if(Dateflag == 'M'){ dates = '4月28日-5月3日'; }else if(Dateflag == 'N'){ dates = '5月4日-5月10日'; }else if(Dateflag == 'P'){ dates = '5月11日-5月17日'; }else if(Dateflag == 'Q'){ dates = '5月18日-5月24日'; }else if(Dateflag == 'R'){ dates = '5月25日-6月1日'; }else if(Dateflag == 'T'){ dates = '6月2日-6月8日'; }else if(Dateflag == 'V'){ dates = '6月9日-6月15日'; }else if(Dateflag == 'W'){ dates = '6月16日-6月22日'; }else if(Dateflag == 'X'){ dates = '6月23日-6月29日'; }else if(Dateflag == 'Y'){ dates = '6月30日'; }else{ layer.msg("系列号不正确!请核查对后再次查看"); return false; } }/* 分辨的是后半年实际日期 */ function check_after(Dateflag){ if(Dateflag == '1'){dates = '7月1日-7月7日';}else if(Dateflag == '2'){dates = '7月8日-7月14日';}else if(Dateflag == '3'){dates = '7月15日-7月21日';}else if(Dateflag == '4'){dates = '7月22日-7月28日';}else if(Dateflag == '5'){dates = '7月29日-8月4日';}else if(Dateflag == '6'){dates = '8月5日-8月11日';}else if(Dateflag == '7'){dates = '8月12日-8月18日';}else if(Dateflag == '8'){dates = '8月19日-8月25日';}else if(Dateflag == '9'){dates = '8月26日-9月1日';}else if(Dateflag == 'C'){dates = '9月2日-9月8日';}else if(Dateflag == 'D'){dates = '9月9日-9月15日';}else if(Dateflag == 'F'){dates = '9月16日-9月22日';}else if(Dateflag == 'G'){dates = '9月23日-9月29日';}else if(Dateflag == 'H'){dates = '9月30日-10月6日';}else if(Dateflag == 'J'){dates = '10月7日-10月13日';}else if(Dateflag == 'K'){dates = '10月14日-10月20日';}else if(Dateflag == 'L'){dates = '10月21日-10月27日';}else if(Dateflag == 'M'){dates = '10月28日-11月3日';}else if(Dateflag == 'N'){dates = '11月4日-11月10日';}else if(Dateflag == 'P'){dates = '11月11日-11月17日';}else if(Dateflag == 'Q'){dates = '11月18日-11月24日';}else if(Dateflag == 'R'){dates = '11月25日-12月1日';}else if(Dateflag == 'T'){dates = '12月2日-12月8日';}else if(Dateflag == 'V'){dates = '12月9日-12月15日';}else if(Dateflag == 'W'){dates = '12月16日-12月22日';}else if(Dateflag == 'X'){dates = '12月23日-12月29日';}else if(Dateflag == 'Y'){dates = '12月30日-12月31日';}else{layer.msg("系列号不正确!请核查对后再次查看");return false;} } /*iPhone的系列产品商品 */ function apple_info(){layer.open({ type: 1,title:'iPhone全系列产品',skin: 'layui-layer-rim', //再加上外框area: ['600px', '400px'], //高宽btn:['关掉'],content:'型号规格:IPHONE第一代,公布日期:2007年1月9日
' '型号规格:3G,公布日期:2008年06月10日
' '型号规格:3GS,公布日期:2009年6月9日
' '型号规格:4,公布日期:2010年6月8日
' '型号规格:4S,公布日期:2011年10月04日
' '型号规格:5,公布日期:2012年9月13日
' '型号规格:5C,公布日期:2013年9月10日
' '型号规格:5S,公布日期:2013年9月10日
' '型号规格:6,公布日期:2014年9月10日
' '型号规格:6P,公布日期:2014年9月10日
' '型号规格:6S,公布日期:2015年9月10日
' '型号规格:6SP,公布日期:2015年9月10日
' '型号规格:7,公布日期:2016年9月8日
' '型号规格:7P,公布日期:2016年9月8日
' '型号规格:8,公布日期:2017年9月13日
' '型号规格:8P,公布日期:2017年9月13日
' '型号规格:X,公布日期:2017年9月13日
' '官方网网站地址:点击查看',});} function reload(){location.reload();}

自然,这儿可以用switch case来写,终究如果其他很不便,并且书写如下所示:

/* 分辨详细地址 */switch (apple_adress){case 'C': address = '深圳市';break;case 'D':address = '成都市';break;case 'F':address = '郑州市';break;default:layer.msg("系列号不正确!请核查对后再次查看"); return false;}

H5:

iPhone序列号查询

这一事情是:

获得客户键入的系列号-提取第一个,第四个和第五个值-依据标准分辨值-给相对应的主要参数取值。

喜爱的能够关注我一起学习。尽管创作上沒有科技含量,但或是很适用的。终究条理清晰是培育出的,因此累积一点吧!

评论(0条)

刀客源码 游客评论