Showing
71 changed files
with
682 additions
and
75 deletions
No preview for this file type
publicAndroidSDK/assets/sdk/agreement.html
100644 → 100755
File mode changed
publicAndroidSDK/assets/sdk/center.html
100644 → 100755
File mode changed
publicAndroidSDK/assets/sdk/config.js
100644 → 100755
File mode changed
publicAndroidSDK/assets/sdk/font/iconfont.eot
100644 → 100755
No preview for this file type
publicAndroidSDK/assets/sdk/font/iconfont.svg
100644 → 100755
File mode changed
publicAndroidSDK/assets/sdk/font/iconfont.ttf
100644 → 100755
No preview for this file type
publicAndroidSDK/assets/sdk/font/iconfont.woff
100644 → 100755
No preview for this file type
publicAndroidSDK/assets/sdk/images/login_icon.png
100644 → 100755
publicAndroidSDK/assets/sdk/images/new-sdk-logo.png
100644 → 100755
publicAndroidSDK/assets/sdk/js/center.min.js
100644 → 100755
File mode changed
publicAndroidSDK/assets/sdk/js/core.min.js
100644 → 100755
... | @@ -34,7 +34,7 @@ function initMatching(){ | ... | @@ -34,7 +34,7 @@ function initMatching(){ |
34 | Core.isWeixin = userAgent.indexOf('MicroMessenger') != -1; | 34 | Core.isWeixin = userAgent.indexOf('MicroMessenger') != -1; |
35 | var ratio = window.devicePixelRatio; | 35 | var ratio = window.devicePixelRatio; |
36 | Core.ratio = ratio; | 36 | Core.ratio = ratio; |
37 | - | 37 | + Core.isShowIdentity = true; |
38 | 38 | ||
39 | var lastServer = localStorage.getItem('last_server'); | 39 | var lastServer = localStorage.getItem('last_server'); |
40 | if(lastServer && lastServer.indexOf('http:')==0){ | 40 | if(lastServer && lastServer.indexOf('http:')==0){ |
... | @@ -89,10 +89,12 @@ function initMatching(){ | ... | @@ -89,10 +89,12 @@ function initMatching(){ |
89 | if (!Core.sdk_w) Core.sdk_w = 600; | 89 | if (!Core.sdk_w) Core.sdk_w = 600; |
90 | _scale = 1; | 90 | _scale = 1; |
91 | if(ratio == 2){//5、6、6s(2.4) | 91 | if(ratio == 2){//5、6、6s(2.4) |
92 | - _scale = 2.4 / ratio; | 92 | + _scale = 2.2 / ratio; |
93 | if(userAgent.indexOf('iPad') != -1){ | 93 | if(userAgent.indexOf('iPad') != -1){ |
94 | _scale = 2 / ratio; | 94 | _scale = 2 / ratio; |
95 | } | 95 | } |
96 | + }else if(ratio ==3){//iphoneX | ||
97 | + _scale = 3.1 / ratio; | ||
96 | }else if(ratio >2.5){//6s plus | 98 | }else if(ratio >2.5){//6s plus |
97 | _scale = 2.7 / ratio; | 99 | _scale = 2.7 / ratio; |
98 | }else if (ratio < 1) { | 100 | }else if (ratio < 1) { | ... | ... |
publicAndroidSDK/assets/sdk/js/doT.min.js
100644 → 100755
File mode changed
publicAndroidSDK/assets/sdk/js/fastclick.min.1.0.js
100644 → 100755
File mode changed
publicAndroidSDK/assets/sdk/js/identity_id.js
100644 → 100755
File mode changed
1 | +var surname="\u8d75|\u94b1|\u5b59|\u674e|\u5468|\u5434|\u90d1|\u738b|\u51af|\u9648|\u891a|\u536b|\u848b|\u6c88|\u97e9|\u6768|\u6731|\u79e6|\u5c24|\u8bb8|\u4f55|\u5415|\u65bd|\u5f20|\u5b54|\u66f9|\u4e25|\u534e|\u91d1|\u9b4f|\u9676|\u59dc|\u621a|\u8c22|\u90b9|\u55bb|\u67cf|\u6c34|\u7aa6|\u7ae0|\u4e91|\u82cf|\u6f58|\u845b|\u595a|\u8303|\u5f6d|\u90ce|\u9c81|\u97e6|\u660c|\u9a6c|\u82d7|\u51e4|\u82b1|\u65b9|\u4fde|\u4efb|\u8881|\u67f3|\u9146|\u9c8d|\u53f2|\u5510|\u8d39|\u5ec9|\u5c91|\u859b|\u96f7|\u8d3a|\u502a|\u6c64|\u6ed5|\u6bb7|\u7f57|\u6bd5|\u90dd|\u90ac|\u5b89|\u5e38|\u4e50|\u4e8e|\u65f6|\u5085|\u76ae|\u535e|\u9f50|\u5eb7|\u4f0d|\u4f59|\u5143|\u535c|\u987e|\u5b5f|\u5e73|\u9ec4|\u548c|\u7a46|\u8427|\u5c39|\u59da|\u90b5|\u6e5b|\u6c6a|\u7941|\u6bdb|\u79b9|\u72c4|\u7c73|\u8d1d|\u660e|\u81e7|\u8ba1|\u4f0f|\u6210|\u6234|\u8c08|\u5b8b|\u8305|\u5e9e|\u718a|\u7eaa|\u8212|\u5c48|\u9879|\u795d|\u8463|\u6881|\u675c|\u962e|\u84dd|\u95f5|\u5e2d|\u5b63|\u9ebb|\u5f3a|\u8d3e|\u8def|\u5a04|\u5371|\u6c5f|\u7ae5|\u989c|\u90ed|\u6885|\u76db|\u6797|\u5201|\u953a|\u5f90|\u90b1|\u9a86|\u9ad8|\u590f|\u8521|\u7530|\u6a0a|\u80e1|\u51cc|\u970d|\u865e|\u4e07|\u652f|\u67ef|\u661d|\u7ba1|\u5362|\u83ab|\u7ecf|\u623f|\u88d8|\u7f2a|\u5e72|\u89e3|\u5e94|\u5b97|\u4e01|\u5ba3|\u8d32|\u9093|\u90c1|\u5355|\u676d|\u6d2a|\u5305|\u8bf8|\u5de6|\u77f3|\u5d14|\u5409|\u94ae|\u9f9a|\u7a0b|\u5d47|\u90a2|\u6ed1|\u88f4|\u9646|\u8363|\u7fc1|\u8340|\u7f8a|\u65bc|\u60e0|\u7504|\u9eb4|\u5bb6|\u5c01|\u82ae|\u7fbf|\u50a8|\u9773|\u6c72|\u90b4|\u7cdc|\u677e|\u4e95|\u6bb5|\u5bcc|\u5deb|\u4e4c|\u7126|\u5df4|\u5f13|\u7267|\u9697|\u5c71|\u8c37|\u8f66|\u4faf|\u5b93|\u84ec|\u5168|\u90d7|\u73ed|\u4ef0|\u79cb|\u4ef2|\u4f0a|\u5bab|\u5b81|\u4ec7|\u683e|\u66b4|\u7518|\u94ad|\u5386|\u620e|\u7956|\u6b66|\u7b26|\u5218|\u666f|\u8a79|\u675f|\u9f99|\u53f6|\u5e78|\u53f8|\u97f6|\u90dc|\u9ece|\u84df|\u6ea5|\u5370|\u5bbf|\u767d|\u6000|\u84b2|\u90b0|\u4ece|\u9102|\u7d22|\u54b8|\u7c4d|\u8d56|\u5353|\u853a|\u5c60|\u8499|\u6c60|\u4e54|\u9633|\u90c1|\u80e5|\u80fd|\u82cd|\u53cc|\u95fb|\u8398|\u515a|\u7fdf|\u8c2d|\u8d21|\u52b3|\u9004|\u59ec|\u7533|\u6276|\u5835|\u5189|\u5bb0|\u90e6|\u96cd|\u5374|\u74a9|\u6851|\u6842|\u6fee|\u725b|\u5bff|\u901a|\u8fb9|\u6248|\u71d5|\u5180|\u50ea|\u6d66|\u5c1a|\u519c|\u6e29|\u522b|\u5e84|\u664f|\u67f4|\u77bf|\u960e|\u5145|\u6155|\u8fde|\u8339|\u4e60|\u5ba6|\u827e|\u9c7c|\u5bb9|\u5411|\u53e4|\u6613|\u614e|\u6208|\u5ed6|\u5ebe|\u7ec8|\u66a8|\u5c45|\u8861|\u6b65|\u90fd|\u803f|\u6ee1|\u5f18|\u5321|\u56fd|\u6587|\u5bc7|\u5e7f|\u7984|\u9619|\u4e1c|\u6b27|\u6bb3|\u6c83|\u5229|\u851a|\u8d8a|\u5914|\u9686|\u5e08|\u5de9|\u538d|\u8042|\u6641|\u52fe|\u6556|\u878d|\u51b7|\u8a3e|\u8f9b|\u961a|\u90a3|\u7b80|\u9976|\u7a7a|\u66fe|\u6bcb|\u6c99|\u4e5c|\u517b|\u97a0|\u987b|\u4e30|\u5de2|\u5173|\u84af|\u76f8|\u67e5|\u540e|\u8346|\u7ea2|\u6e38|\u7afa|\u6743|\u902e|\u76cd|\u76ca|\u6853|\u516c|\u4e07\u4fdf|\u53f8\u9a6c|\u4e0a\u5b98|\u6b27\u9633|\u590f\u4faf|\u8bf8\u845b|\u95fb\u4eba|\u4e1c\u65b9|\u8d6b\u8fde|\u7687\u752b|\u5c09\u8fdf|\u516c\u7f8a|\u6fb9\u53f0|\u516c\u51b6|\u5b97\u653f|\u6fee\u9633|\u6df3\u4e8e|\u5355\u4e8e|\u592a\u53d4|\u7533\u5c60|\u516c\u5b59|\u4ef2\u5b59|\u8f69\u8f95|\u4ee4\u72d0|\u949f\u79bb|\u5b87\u6587|\u957f\u5b59|\u6155\u5bb9|\u53f8\u5f92|\u53f8\u7a7a|\u53ec|\u6709|\u821c|\u53f6\u8d6b\u90a3\u62c9|\u4e1b|\u5cb3|\u5bf8|\u8d30|\u7687|\u4fa8|\u5f64|\u7aed|\u7aef|\u8d6b|\u5b9e|\u752b|\u96c6|\u8c61|\u7fe0|\u72c2|\u8f9f|\u5178|\u826f|\u51fd|\u8292|\u82e6|\u5176|\u4eac|\u4e2d|\u5915|\u4e4b|\u7ae0\u4f73|\u90a3\u62c9|\u51a0|\u5bbe|\u9999|\u679c|\u4f9d\u5c14\u6839\u89c9\u7f57|\u4f9d\u5c14\u89c9\u7f57|\u8428\u561b\u5587|\u8d6b\u820d\u91cc|\u989d\u5c14\u5fb7\u7279|\u8428\u514b\u8fbe|\u94ae\u795c\u7984|\u4ed6\u5854\u5587|\u559c\u5854\u814a|\u8bb7\u6bb7\u5bcc\u5bdf|\u53f6\u8d6b\u90a3\u5170|\u5e93\u96c5\u5587|\u74dc\u5c14\u4f73|\u8212\u7a46\u7984|\u7231\u65b0\u89c9\u7f57|\u7d22\u7ef0\u7edc|\u7eb3\u5587|\u4e4c\u96c5|\u8303\u59dc|\u78a7\u9c81|\u5f20\u5ed6|\u5f20\u7b80|\u56fe\u95e8|\u592a\u53f2|\u516c\u53d4|\u4e4c\u5b59|\u5b8c\u989c|\u9a6c\u4f73|\u4f5f\u4f73|\u5bcc\u5bdf|\u8d39\u83ab|\u8e47|\u79f0|\u8bfa|\u6765|\u591a|\u7e41|\u620a|\u6734|\u56de|\u6bd3|\u7a0e|\u8364|\u9756|\u7eea|\u6108|\u7855|\u7262|\u4e70|\u4f46|\u5de7|\u679a|\u6492|\u6cf0|\u79d8|\u4ea5|\u7ecd|\u4ee5|\u58ec|\u68ee|\u658b|\u91ca|\u5955|\u59d2|\u670b|\u6c42|\u7fbd|\u7528|\u5360|\u771f|\u7a70|\u7fe6|\u95fe|\u6f06|\u8d35|\u4ee3|\u8d2f|\u65c1|\u5d07|\u680b|\u544a|\u4f11|\u8912|\u8c0f|\u9510|\u768b|\u95f3|\u5728|\u6b67|\u79be|\u793a|\u662f|\u59d4|\u948a|\u9891|\u5b34|\u547c|\u5927|\u5a01|\u6602|\u5f8b|\u5192|\u4fdd|\u7cfb|\u6284|\u5b9a|\u5316|\u83b1|\u6821|\u4e48|\u6297|\u7962|\u7da6|\u609f|\u5b8f|\u529f|\u5e9a|\u52a1|\u654f|\u6377|\u62f1|\u5146|\u4e11|\u4e19|\u7545|\u82df|\u968f|\u7c7b|\u536f|\u4fdf|\u53cb|\u7b54|\u4e59|\u5141|\u7532|\u7559|\u5c3e|\u4f7c|\u7384|\u4e58|\u88d4|\u5ef6|\u690d|\u73af|\u77eb|\u8d5b|\u6614|\u4f8d|\u5ea6|\u65f7|\u9047|\u5076|\u524d|\u7531|\u548e|\u585e|\u655b|\u53d7|\u6cf7|\u88ad|\u8845|\u53d4|\u5723|\u5fa1|\u592b|\u4ec6|\u9547|\u85e9|\u90b8|\u5e9c|\u638c|\u9996|\u5458|\u7109|\u620f|\u53ef|\u667a|\u5c14|\u51ed|\u6089|\u8fdb|\u7b03|\u539a|\u4ec1|\u4e1a|\u8087|\u8d44|\u5408|\u4ecd|\u4e5d|\u8877|\u54c0|\u5211|\u4fce|\u4ef5|\u572d|\u5937|\u5fad|\u86ee|\u6c57|\u5b5b|\u4e7e|\u5e16|\u7f55|\u6d1b|\u6de6|\u6d0b|\u90b6|\u90f8|\u90ef|\u9097|\u909b|\u5251|\u8662|\u968b|\u84bf|\u8306|\u83c5|\u82cc|\u6811|\u6850|\u9501|\u949f|\u673a|\u76d8|\u94ce|\u659b|\u7389|\u7ebf|\u9488|\u7b95|\u5eb9|\u7ef3|\u78e8|\u8489|\u74ee|\u5f2d|\u5200|\u758f|\u7275|\u6d51|\u607d|\u52bf|\u4e16|\u4edd|\u540c|\u8681|\u6b62|\u6222|\u7762|\u51bc|\u79cd|\u6d82|\u8096|\u5df1|\u6ce3|\u6f5c|\u5377|\u8131|\u8c2c|\u8e49|\u8d67|\u6d6e|\u987f|\u8bf4|\u6b21|\u9519|\u5ff5|\u5919|\u65af|\u5b8c|\u4e39|\u8868|\u804a|\u6e90|\u59d3|\u543e|\u5bfb|\u5c55|\u51fa|\u4e0d|\u6237|\u95ed|\u624d|\u65e0|\u4e66|\u5b66|\u611a|\u672c|\u6027|\u96ea|\u971c|\u70df|\u5bd2|\u5c11|\u5b57|\u6865|\u677f|\u6590|\u72ec|\u5343|\u8bd7|\u5609|\u626c|\u5584|\u63ed|\u7948|\u6790|\u8d64|\u7d2b|\u9752|\u67d4|\u521a|\u5947|\u62dc|\u4f5b|\u9640|\u5f25|\u963f|\u7d20|\u957f|\u50e7|\u9690|\u4ed9|\u96bd|\u5b87|\u796d|\u9152|\u6de1|\u5854|\u7426|\u95ea|\u59cb|\u661f|\u5357|\u5929|\u63a5|\u6ce2|\u78a7|\u901f|\u799a|\u817e|\u6f6e|\u955c|\u4f3c|\u6f84|\u6f6d|\u8b07|\u7eb5|\u6e20|\u5948|\u98ce|\u6625|\u6fef|\u6c90|\u8302|\u82f1|\u5170|\u6a80|\u85e4|\u679d|\u68c0|\u751f|\u6298|\u767b|\u9a79|\u9a91|\u8c8a|\u864e|\u80a5|\u9e7f|\u96c0|\u91ce|\u79bd|\u98de|\u8282|\u5b9c|\u9c9c|\u7c9f|\u6817|\u8c46|\u5e1b|\u5b98|\u5e03|\u8863|\u85cf|\u5b9d|\u949e|\u94f6|\u95e8|\u76c8|\u5e86|\u559c|\u53ca|\u666e|\u5efa|\u8425|\u5de8|\u671b|\u5e0c|\u9053|\u8f7d|\u58f0|\u6f2b|\u7281|\u529b|\u8d38|\u52e4|\u9769|\u6539|\u5174|\u4e93|\u7766|\u4fee|\u4fe1|\u95fd|\u5317|\u5b88|\u575a|\u52c7|\u6c49|\u7ec3|\u5c09|\u58eb|\u65c5|\u4e94|\u4ee4|\u5c06|\u65d7|\u519b|\u884c|\u5949|\u656c|\u606d|\u4eea|\u6bcd|\u5802|\u4e18|\u4e49|\u793c|\u6148|\u5b5d|\u7406|\u4f26|\u537f|\u95ee|\u6c38|\u8f89|\u4f4d|\u8ba9|\u5c27|\u4f9d|\u72b9|\u4ecb|\u627f|\u5e02|\u6240|\u82d1|\u675e|\u5267|\u7b2c|\u96f6|\u8c0c|\u62db|\u7eed|\u8fbe|\u5ffb|\u516d|\u911e|\u6218|\u8fdf|\u5019|\u5b9b|\u52b1|\u7c98|\u8428|\u909d|\u8983|\u8f9c|\u521d|\u697c|\u57ce|\u533a|\u5c40|\u53f0|\u539f|\u8003|\u59ab|\u7eb3|\u6cc9|\u8001|\u6e05|\u5fb7|\u5351|\u8fc7|\u9ea6|\u66f2|\u7af9|\u767e|\u798f|\u8a00|\u7b2c\u4e94|\u4f5f|\u7231|\u5e74|\u7b2a|\u8c2f|\u54c8|\u58a8|\u5357\u5bab|\u8d4f|\u4f2f|\u4f74|\u4f58|\u725f|\u5546|\u897f\u95e8|\u4e1c\u95e8|\u5de6\u4e18|\u6881\u4e18|\u7434|\u540e|\u51b5|\u4ea2|\u7f11|\u5e05|\u5fae\u751f|\u7f8a\u820c|\u6d77|\u5f52|\u547c\u5ef6|\u5357\u95e8|\u4e1c\u90ed|\u767e\u91cc|\u94a6|\u9122|\u6c5d|\u6cd5|\u95eb|\u695a|\u664b|\u8c37\u6881|\u5bb0\u7236|\u5939\u8c37|\u62d3\u8dcb|\u58e4\u9a77|\u4e50\u6b63|\u6f06\u96d5|\u516c\u897f|\u5deb\u9a6c|\u7aef\u6728|\u989b\u5b59|\u5b50\u8f66|\u7763|\u4ec9|\u53f8\u5bc7|\u4e93\u5b98|\u9c9c\u4e8e|\u953a\u79bb|\u76d6|\u902f|\u5e93|\u90cf|\u9022|\u9634|\u8584|\u5389|\u7a3d|\u95fe\u4e18|\u516c\u826f|\u6bb5\u5e72|\u5f00|\u5149|\u64cd|\u745e|\u772d|\u6ce5|\u8fd0|\u6469|\u4f1f|\u94c1|\u8fee|"; | ||
2 | + | ||
3 | +function IsIdCard(idcard) | ||
4 | +{ | ||
5 | + idcard = idcard.toUpperCase(); | ||
6 | + var area={11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江", | ||
7 | + 31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北", | ||
8 | + 43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏", | ||
9 | + 61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",91:"国外"}; | ||
10 | + var retflag=false; | ||
11 | + var idcard,Y,JYM; | ||
12 | + var S,M; | ||
13 | + var idcard_array = new Array(); | ||
14 | + idcard_array = idcard.split(""); | ||
15 | + //地区检验 | ||
16 | + if(area[parseInt(idcard.substr(0,2))]==null) return false; | ||
17 | + //身份号码位数及格式检验 | ||
18 | + switch(idcard.length) | ||
19 | + { | ||
20 | + case 15: | ||
21 | + if ((parseInt(idcard.substr(6,2))+1900) % 4 == 0 || | ||
22 | + ((parseInt(idcard.substr(6,2))+1900) % 100 == 0 && (parseInt(idcard.substr(6,2))+1900) % 4 == 0 )||(parseInt(idcard.substr(6,2))+2000) % 4 == 0 || | ||
23 | + ((parseInt(idcard.substr(6,2))+2000) % 100 == 0 && (parseInt(idcard.substr(6,2))+2000) % 4 == 0 )) | ||
24 | + { | ||
25 | + ereg=/^[1-9][0-9]{5}[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}$/;//测试出生日期的合法性 | ||
26 | + } | ||
27 | + else | ||
28 | + { | ||
29 | + ereg=/^[1-9][0-9]{5}[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8]))[0-9]{3}$/;//测试出生日期的合法性 | ||
30 | + } | ||
31 | + if(ereg.test(idcard)) return true; | ||
32 | + else return false; | ||
33 | + break; | ||
34 | + case 18: | ||
35 | + //18位身份号码检测 | ||
36 | + //出生日期的合法性检查 | ||
37 | + //闰年月日:((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9])) | ||
38 | + //平年月日:((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8])) | ||
39 | + if ( parseInt(idcard.substr(6,4)) % 4 == 0 || | ||
40 | + (parseInt(idcard.substr(6,4)) % 100 == 0 &&parseInt(idcard.substr(6,4))%4 == 0 )) | ||
41 | + { | ||
42 | + ereg=/^[1-9][0-9]{5}19[0-9]|20[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}[0-9Xx]$/;//闰年出生日期的合法性正则表达式 | ||
43 | + } | ||
44 | + else | ||
45 | + { | ||
46 | + ereg=/^[1-9][0-9]{5}19[0-9]|20[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8]))[0-9]{3}[0-9Xx]$/;//平年出生日期的合法性正则表达式 | ||
47 | + } | ||
48 | + if(ereg.test(idcard)) | ||
49 | + {//测试出生日期的合法性 | ||
50 | + //计算校验位 | ||
51 | + S = (parseInt(idcard_array[0]) + parseInt(idcard_array[10])) * 7 | ||
52 | + + (parseInt(idcard_array[1]) + parseInt(idcard_array[11])) * 9 | ||
53 | + + (parseInt(idcard_array[2]) + parseInt(idcard_array[12])) * 10 | ||
54 | + + (parseInt(idcard_array[3]) + parseInt(idcard_array[13])) * 5 | ||
55 | + + (parseInt(idcard_array[4]) + parseInt(idcard_array[14])) * 8 | ||
56 | + + (parseInt(idcard_array[5]) + parseInt(idcard_array[15])) * 4 | ||
57 | + + (parseInt(idcard_array[6]) + parseInt(idcard_array[16])) * 2 | ||
58 | + + parseInt(idcard_array[7]) * 1 | ||
59 | + + parseInt(idcard_array[8]) * 6 | ||
60 | + + parseInt(idcard_array[9]) * 3 ; | ||
61 | + Y = S % 11; | ||
62 | + M = "F"; | ||
63 | + JYM = "10X98765432"; | ||
64 | + M = JYM.substr(Y,1);//判断校验位 | ||
65 | + if(M == idcard_array[17]) true; //检测ID的校验位 | ||
66 | + else return false; | ||
67 | + } | ||
68 | + else return false; | ||
69 | + break; | ||
70 | + default: | ||
71 | + return false; | ||
72 | + break; | ||
73 | + } | ||
74 | + return true; | ||
75 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
publicAndroidSDK/assets/sdk/js/iscroll.min.1.0.js
100644 → 100755
File mode changed
publicAndroidSDK/assets/sdk/js/loader.min.js
100644 → 100755
File mode changed
publicAndroidSDK/assets/sdk/js/login.min.js
100644 → 100755
... | @@ -52,7 +52,9 @@ | ... | @@ -52,7 +52,9 @@ |
52 | that.$c.on("click",".js-enter-game",function(e){//强制进入实名认证界面 | 52 | that.$c.on("click",".js-enter-game",function(e){//强制进入实名认证界面 |
53 | e.stopPropagation(); | 53 | e.stopPropagation(); |
54 | Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!"); | 54 | Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!"); |
55 | + Core.isShowIdentity = false; | ||
55 | }); | 56 | }); |
57 | + | ||
56 | } | 58 | } |
57 | 59 | ||
58 | Home.prototype.logout_cb = function(data) { | 60 | Home.prototype.logout_cb = function(data) { |
... | @@ -1021,6 +1023,9 @@ | ... | @@ -1021,6 +1023,9 @@ |
1021 | }); | 1023 | }); |
1022 | } | 1024 | } |
1023 | IdentityCard.prototype.show_after = function(){ | 1025 | IdentityCard.prototype.show_after = function(){ |
1026 | + if(!Core.isShowIdentity){ | ||
1027 | + $(".js-return-game").attr("href","javascript:Core.finishLogin()"); | ||
1028 | + } | ||
1024 | 1029 | ||
1025 | } | 1030 | } |
1026 | Core.registerMod('identityCard', IdentityCard); | 1031 | Core.registerMod('identityCard', IdentityCard); |
... | @@ -1208,7 +1213,7 @@ | ... | @@ -1208,7 +1213,7 @@ |
1208 | if(Core.Data.is_guest == 1){ | 1213 | if(Core.Data.is_guest == 1){ |
1209 | //游客帐号转正 | 1214 | //游客帐号转正 |
1210 | localStorage.removeItem('guest_n'); | 1215 | localStorage.removeItem('guest_n'); |
1211 | - Core.showTips('升级账号成功!请妥善保管正式账号!', true); | 1216 | + Core.showTips('绑定账号成功!请妥善保管正式账号!', true); |
1212 | delete name_ary[Core.Data.nickname]; | 1217 | delete name_ary[Core.Data.nickname]; |
1213 | localStorage.setItem('user_names', JSON.stringify(name_ary)); | 1218 | localStorage.setItem('user_names', JSON.stringify(name_ary)); |
1214 | }else{ | 1219 | }else{ |
... | @@ -1254,6 +1259,7 @@ | ... | @@ -1254,6 +1259,7 @@ |
1254 | Core.Data.is_guest = msg.is_guest; | 1259 | Core.Data.is_guest = msg.is_guest; |
1255 | Core.Data.username = msg.username; | 1260 | Core.Data.username = msg.username; |
1256 | Core.Data.nickname = msg.nickname; | 1261 | Core.Data.nickname = msg.nickname; |
1262 | + Core.Data.login_key = msg.login_key; | ||
1257 | $("input[name='loginUserName']").val(Core.Data.username); | 1263 | $("input[name='loginUserName']").val(Core.Data.username); |
1258 | $("input[name='loginPassword']").val(Core.user_names[Core.Data.username]); | 1264 | $("input[name='loginPassword']").val(Core.user_names[Core.Data.username]); |
1259 | // 强制更新显示home模块,模块自刷新 | 1265 | // 强制更新显示home模块,模块自刷新 | ... | ... |
publicAndroidSDK/assets/sdk/js/pay.min.js
100644 → 100755
... | @@ -900,6 +900,59 @@ | ... | @@ -900,6 +900,59 @@ |
900 | } | 900 | } |
901 | 901 | ||
902 | Core.registerMod('question_detail', Question_detail); | 902 | Core.registerMod('question_detail', Question_detail); |
903 | + | ||
904 | + //实名认证 | ||
905 | + var IdentityCard = function(modId) { | ||
906 | + Module.call(this, modId); | ||
907 | + } | ||
908 | + // 继承基础模块 | ||
909 | + Core.inherit(IdentityCard, Module); | ||
910 | + IdentityCard.prototype.bind = function() { | ||
911 | + var that = this; | ||
912 | + this.$c.on('click', '.submit', function() { | ||
913 | + var identityCard = that.$c.find("input[name='identity_card']").val(),//身份证 | ||
914 | + compellationName = that.$c.find("input[name='compellation_name']").val(),//姓名 | ||
915 | + compellationNameReg = /^[\u4e00-\u9fa5]{2,10}$/i;//2-10位汉字 | ||
916 | + if($.trim(identityCard) == ""){ | ||
917 | + Core.showTips("请输入身份证号码",false); | ||
918 | + return false; | ||
919 | + }else if(IsIdCard(identityCard) == false){ | ||
920 | + Core.showTips("请输入正确的身份证信息",false); | ||
921 | + return false; | ||
922 | + }else if($.trim(compellationName) == ""){ | ||
923 | + Core.showTips("请输入姓名",false); | ||
924 | + return false; | ||
925 | + }else if(!compellationNameReg.test(compellationName)){ | ||
926 | + Core.showTips("请输入正确的中文姓名",false); | ||
927 | + return false; | ||
928 | + } | ||
929 | + Core.ajax({ | ||
930 | + type:"post", | ||
931 | + url:"/user/bind_identity_card?identity_card="+identityCard+"&compellation_name="+compellationName, | ||
932 | + data:{format:"json"}, | ||
933 | + dataType:"json", | ||
934 | + success:function(res){ | ||
935 | + if(res.code === 0){ | ||
936 | + Core.showTips('认证成功!', true); | ||
937 | + Core.Data.compellation_name = compellationName; | ||
938 | + Core.Data.identity_card = identityCard; | ||
939 | + setTimeout(function() { | ||
940 | + Core.updateMod('channel_list'); | ||
941 | + }, 500); | ||
942 | + }else{ | ||
943 | + Core.showTips(res.msg, true); | ||
944 | + } | ||
945 | + } | ||
946 | + }); | ||
947 | + }); | ||
948 | + } | ||
949 | + IdentityCard.prototype.show_after = function(){ | ||
950 | + if(Core.Data.force_auth == 1){ | ||
951 | + $(".js-return-game").attr("href","javascript:Core.finishLogin()"); | ||
952 | + } | ||
953 | + | ||
954 | + } | ||
955 | + Core.registerMod('identityCard', IdentityCard); | ||
903 | 956 | ||
904 | /** | 957 | /** |
905 | * enter_game_amount 进入sdk的要购买的游戏币 | 958 | * enter_game_amount 进入sdk的要购买的游戏币 |
... | @@ -924,7 +977,15 @@ | ... | @@ -924,7 +977,15 @@ |
924 | //} else | 977 | //} else |
925 | //if (Core.Data.enter_game_amount > 0) { | 978 | //if (Core.Data.enter_game_amount > 0) { |
926 | // 需要进入渠道充值页面 | 979 | // 需要进入渠道充值页面 |
927 | - Core.start_page = "channel_list"; | 980 | + if(Core.Data.identity_card == ""){ |
981 | + //游客登录则先让其实名验证 | ||
982 | + Core.start_page = "identityCard"; | ||
983 | + }else{ | ||
984 | + //正式用户直接跳到充值界面 | ||
985 | + Core.start_page = "channel_list"; | ||
986 | + } | ||
987 | + | ||
988 | + | ||
928 | Core.Data.game_amount = Core.Data.enter_game_amount; | 989 | Core.Data.game_amount = Core.Data.enter_game_amount; |
929 | Core.Data.youai_star = Core.Data.enter_amount; | 990 | Core.Data.youai_star = Core.Data.enter_amount; |
930 | Core.Data.money = Core.Data.youai_star / Core.Data.rate; | 991 | Core.Data.money = Core.Data.youai_star / Core.Data.rate; |
... | @@ -933,7 +994,7 @@ | ... | @@ -933,7 +994,7 @@ |
933 | //} | 994 | //} |
934 | } | 995 | } |
935 | 996 | ||
936 | -function onBridgeReady() { | 997 | + function onBridgeReady() { |
937 | var mainImgUrl = Core.Data.game_icon; | 998 | var mainImgUrl = Core.Data.game_icon; |
938 | var mainURL = Core.Data.invite_url;//'http://www.9133.com/game/' + Core.Data.app_id + '.html'; | 999 | var mainURL = Core.Data.invite_url;//'http://www.9133.com/game/' + Core.Data.app_id + '.html'; |
939 | var mainTitle= '一起玩' + Core.Data.game_name; | 1000 | var mainTitle= '一起玩' + Core.Data.game_name; | ... | ... |
publicAndroidSDK/assets/sdk/js/select2.min.js
100644 → 100755
File mode changed
publicAndroidSDK/assets/sdk/js/simpScroller-min.js
100644 → 100755
File mode changed
publicAndroidSDK/assets/sdk/js/zepto.min.js
100644 → 100755
File mode changed
publicAndroidSDK/assets/sdk/login.html
100644 → 100755
... | @@ -13,7 +13,6 @@ | ... | @@ -13,7 +13,6 @@ |
13 | <link href="skin/login.css?v=2016" type="text/css" rel="stylesheet" /> | 13 | <link href="skin/login.css?v=2016" type="text/css" rel="stylesheet" /> |
14 | <link id="skin" data-v="20150923001" type="text/css" rel="stylesheet" /> | 14 | <link id="skin" data-v="20150923001" type="text/css" rel="stylesheet" /> |
15 | 15 | ||
16 | - | ||
17 | <title> | 16 | <title> |
18 | 平台登录 | 17 | 平台登录 |
19 | </title> | 18 | </title> |
... | @@ -38,7 +37,9 @@ | ... | @@ -38,7 +37,9 @@ |
38 | <div class="new-container-box"> | 37 | <div class="new-container-box"> |
39 | <div class="SDK-titlebox"></div> | 38 | <div class="SDK-titlebox"></div> |
40 | <form action="/sdk/login" method="post" class="ajax align-left clearfix"> | 39 | <form action="/sdk/login" method="post" class="ajax align-left clearfix"> |
41 | - <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | 40 | + <div class="new-sdk-logo"><a href="#"> |
41 | + <!--<img src="images/new-sdk-logo.png">--> | ||
42 | + </a></div> | ||
42 | <div class="new-sdk-main"> | 43 | <div class="new-sdk-main"> |
43 | <div class="inputbox clearfix" style="position: relative;"> | 44 | <div class="inputbox clearfix" style="position: relative;"> |
44 | <div class="ileft">账号:</div> | 45 | <div class="ileft">账号:</div> |
... | @@ -61,7 +62,7 @@ | ... | @@ -61,7 +62,7 @@ |
61 | </div> | 62 | </div> |
62 | <div class="other-login clearfix"> | 63 | <div class="other-login clearfix"> |
63 | <p class="other-login-bx hide">第三方登录 | 64 | <p class="other-login-bx hide">第三方登录 |
64 | - <a title="新浪微博帐号登录" data-replace="href" href="/user/auth2/sina/login/?next=/static/sdk/login.html&app_id={app_id}" class="sina hide"> | 65 | + <a title="新浪微博账号登录" data-replace="href" href="/user/auth2/sina/login/?next=/static/sdk/login.html&app_id={app_id}" class="sina hide"> |
65 | <i class=" iconfont icon-unie61d"></i> | 66 | <i class=" iconfont icon-unie61d"></i> |
66 | </a> | 67 | </a> |
67 | 68 | ||
... | @@ -77,7 +78,7 @@ | ... | @@ -77,7 +78,7 @@ |
77 | 78 | ||
78 | <label onclick="" class="input-control pull-left hide" > | 79 | <label onclick="" class="input-control pull-left hide" > |
79 | <input type="checkbox" checked="checked" class="eg" ></input> | 80 | <input type="checkbox" checked="checked" class="eg" ></input> |
80 | - 进入帐号管理界面 | 81 | + 进入账号管理界面 |
81 | </label> | 82 | </label> |
82 | </div> | 83 | </div> |
83 | </div> | 84 | </div> |
... | @@ -103,12 +104,14 @@ | ... | @@ -103,12 +104,14 @@ |
103 | <div class="new-sdk-container"> | 104 | <div class="new-sdk-container"> |
104 | <div class="new-container-box"> | 105 | <div class="new-container-box"> |
105 | <div class="SDK-titlebox"></div> | 106 | <div class="SDK-titlebox"></div> |
106 | - <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | 107 | + <div class="new-sdk-logo"><a href="#"> |
108 | + <!--<img src="images/new-sdk-logo.png">--> | ||
109 | + </a></div> | ||
107 | <div class="login-third-list"> | 110 | <div class="login-third-list"> |
108 | <div class="title">请选择快速登录</div> | 111 | <div class="title">请选择快速登录</div> |
109 | <div class="third-list"> | 112 | <div class="third-list"> |
110 | <ul> | 113 | <ul> |
111 | - <li class="login_case_qq"><a title="QQ帐号登录" class="qq qq iframe" data-replace="href" href="/user/auth2/qq/login/?next=/sdk/login?app_id={app_id}"><div class="third-icon third-qq"></div><p>QQ登陆</p></a></li> | 114 | + <li class="login_case_qq"><a title="QQ账号登录" class="qq qq iframe" data-replace="href" href="/user/auth2/qq/login/?next=/sdk/login?app_id={app_id}"><div class="third-icon third-qq"></div><p>QQ登陆</p></a></li> |
112 | <li><a href="#register"><div class="third-icon third-guest"></div><p>游客登录</p></a></li> | 115 | <li><a href="#register"><div class="third-icon third-guest"></div><p>游客登录</p></a></li> |
113 | <div class="clear"></div> | 116 | <div class="clear"></div> |
114 | </ul> | 117 | </ul> |
... | @@ -128,13 +131,15 @@ | ... | @@ -128,13 +131,15 @@ |
128 | 131 | ||
129 | <div class="new-sdk-container"> | 132 | <div class="new-sdk-container"> |
130 | <div class="SDK-titlebox"></div> | 133 | <div class="SDK-titlebox"></div> |
131 | - <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | 134 | + <div class="new-sdk-logo"><a href="#"> |
135 | + <!--<img src="images/new-sdk-logo.png">--> | ||
136 | + </a></div> | ||
132 | <form action="/sdk/register" class="ajax clearfix"> | 137 | <form action="/sdk/register" class="ajax clearfix"> |
133 | <div class="new-sdk-main"> | 138 | <div class="new-sdk-main"> |
134 | <div class="inputbox clearfix"> | 139 | <div class="inputbox clearfix"> |
135 | <div class="ileft">账号:</div> | 140 | <div class="ileft">账号:</div> |
136 | <div class="iright"> | 141 | <div class="iright"> |
137 | - <input type="text" name="username" placeholder="帐号由3-18个英文、数字、点、减号、下划线组成" required> | 142 | + <input type="text" name="username" placeholder="账号由3-18个英文、数字、点、减号、下划线组成" required> |
138 | <!--<div class="bottom-icon drop-down"> | 143 | <!--<div class="bottom-icon drop-down"> |
139 | <i class="iconfont icon-xiangxia"></i> | 144 | <i class="iconfont icon-xiangxia"></i> |
140 | </div>--> | 145 | </div>--> |
... | @@ -169,7 +174,9 @@ | ... | @@ -169,7 +174,9 @@ |
169 | <section id="agreement" class="hide"> | 174 | <section id="agreement" class="hide"> |
170 | <div class="new-sdk-container"> | 175 | <div class="new-sdk-container"> |
171 | <div class="SDK-titlebox"></div> | 176 | <div class="SDK-titlebox"></div> |
172 | - <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | 177 | + <div class="new-sdk-logo"><a href="#"> |
178 | + <!--<img src="images/new-sdk-logo.png">--> | ||
179 | + </a></div> | ||
173 | <div class="new-sdk-content" style="overflow: hidden;"> | 180 | <div class="new-sdk-content" style="overflow: hidden;"> |
174 | <h3>海豹游戏服务协议</h3> | 181 | <h3>海豹游戏服务协议</h3> |
175 | <div class="content-main" style="height: 220px;"> | 182 | <div class="content-main" style="height: 220px;"> |
... | @@ -388,7 +395,9 @@ | ... | @@ -388,7 +395,9 @@ |
388 | <div class="new-sdk-container"> | 395 | <div class="new-sdk-container"> |
389 | <div class="SDK-titlebox"></div> | 396 | <div class="SDK-titlebox"></div> |
390 | <div class="new-sdk-logo" style="position: relative; margin-bottom: 25px;"> | 397 | <div class="new-sdk-logo" style="position: relative; margin-bottom: 25px;"> |
391 | - <a href="#"><img src="images/new-sdk-logo.png"></a> | 398 | + <a href="#"> |
399 | + <!--<img src="images/new-sdk-logo.png">--> | ||
400 | + </a> | ||
392 | <a href="#login" class="lefticon" style="position: absolute; left: 37px; top: 20px;"> | 401 | <a href="#login" class="lefticon" style="position: absolute; left: 37px; top: 20px;"> |
393 | <i class="iconfont icon-fanhui"></i> | 402 | <i class="iconfont icon-fanhui"></i> |
394 | </a> | 403 | </a> |
... | @@ -419,22 +428,24 @@ | ... | @@ -419,22 +428,24 @@ |
419 | <p>{{=Core.Data.nickname}}</p> | 428 | <p>{{=Core.Data.nickname}}</p> |
420 | </div> | 429 | </div> |
421 | <div class="inline-btn pull-right w_45"> | 430 | <div class="inline-btn pull-right w_45"> |
422 | - {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}} | 431 | + {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}} |
423 | <a href="#identityCard" class="btn btn-orange js-enter-game">进入游戏</a> | 432 | <a href="#identityCard" class="btn btn-orange js-enter-game">进入游戏</a> |
424 | {{??}} | 433 | {{??}} |
425 | <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | 434 | <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> |
426 | - {{?}} | 435 | + {{?}} |
427 | </div> | 436 | </div> |
428 | </div> | 437 | </div> |
429 | <div class="bind-user"> | 438 | <div class="bind-user"> |
430 | <div class="w_50 txt" style="display: inline-block; vertical-align: middle;"> | 439 | <div class="w_50 txt" style="display: inline-block; vertical-align: middle;"> |
431 | - 您当前还是游客,为保证账号安全,请升级账号! | 440 | + 您当前还是游客,为保证账号安全,请绑定账号! |
432 | </div> | 441 | </div> |
433 | <div class="inline-btn w_45" style="display: inline-block; vertical-align: ;"> | 442 | <div class="inline-btn w_45" style="display: inline-block; vertical-align: ;"> |
434 | - <a class="btn btn-bind" href="#modify_pwd">马上升级</a> | 443 | + <a class="btn btn-bind" href="#modify_pwd">绑定账号</a> |
435 | </div> | 444 | </div> |
436 | </div> | 445 | </div> |
446 | + {{? Core.Data.kefu_info != ""}} | ||
437 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> | 447 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> |
448 | + {{?}} | ||
438 | </div> | 449 | </div> |
439 | {{?? Core.Data.is_guest == 2}}<!--1:游客登录;2:第三方登录;0:正式用户登录--> | 450 | {{?? Core.Data.is_guest == 2}}<!--1:游客登录;2:第三方登录;0:正式用户登录--> |
440 | <div class="user-center-box"> | 451 | <div class="user-center-box"> |
... | @@ -444,11 +455,11 @@ | ... | @@ -444,11 +455,11 @@ |
444 | <p>{{=Core.Data.nickname}}</p> | 455 | <p>{{=Core.Data.nickname}}</p> |
445 | </div> | 456 | </div> |
446 | <div class="inline-btn pull-right w_45"> | 457 | <div class="inline-btn pull-right w_45"> |
447 | - {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}} | 458 | + {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}} |
448 | <a href="#identityCard" class="btn btn-orange js-enter-game">进入游戏</a> | 459 | <a href="#identityCard" class="btn btn-orange js-enter-game">进入游戏</a> |
449 | {{??}} | 460 | {{??}} |
450 | <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | 461 | <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> |
451 | - {{?}} | 462 | + {{?}} |
452 | </div> | 463 | </div> |
453 | </div> | 464 | </div> |
454 | {{? Core.Data.bind_phone === ""}} | 465 | {{? Core.Data.bind_phone === ""}} |
... | @@ -466,8 +477,10 @@ | ... | @@ -466,8 +477,10 @@ |
466 | <li style="width:50%;"><a href="#modify_pwd">修改密码</a></li> | 477 | <li style="width:50%;"><a href="#modify_pwd">修改密码</a></li> |
467 | <li style="width:50%;"><a href="#identityCard">实名认证</a></li> | 478 | <li style="width:50%;"><a href="#identityCard">实名认证</a></li> |
468 | </ul> | 479 | </ul> |
480 | + {{? Core.Data.kefu_info != ""}} | ||
469 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> | 481 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> |
470 | {{?}} | 482 | {{?}} |
483 | + {{?}} | ||
471 | </div> | 484 | </div> |
472 | {{?? Core.Data.is_guest == 0}} | 485 | {{?? Core.Data.is_guest == 0}} |
473 | <div class="user-center-box"> | 486 | <div class="user-center-box"> |
... | @@ -477,7 +490,7 @@ | ... | @@ -477,7 +490,7 @@ |
477 | <p>{{=Core.Data.nickname}}</p> | 490 | <p>{{=Core.Data.nickname}}</p> |
478 | </div> | 491 | </div> |
479 | <div class="inline-btn pull-right w_45"> | 492 | <div class="inline-btn pull-right w_45"> |
480 | - {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}} | 493 | + {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}} |
481 | <a href="#identityCard" class="btn btn-orange js-enter-game">进入游戏</a> | 494 | <a href="#identityCard" class="btn btn-orange js-enter-game">进入游戏</a> |
482 | {{??}} | 495 | {{??}} |
483 | <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | 496 | <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> |
... | @@ -504,7 +517,9 @@ | ... | @@ -504,7 +517,9 @@ |
504 | </a></li> | 517 | </a></li> |
505 | {{?}} | 518 | {{?}} |
506 | </ul> | 519 | </ul> |
520 | + {{? Core.Data.kefu_info != ""}} | ||
507 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> | 521 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> |
522 | + {{?}} | ||
508 | {{??}} | 523 | {{??}} |
509 | {{? Core.Data.bind_phone === ""}} | 524 | {{? Core.Data.bind_phone === ""}} |
510 | <ul class="list-item clearfix"> | 525 | <ul class="list-item clearfix"> |
... | @@ -512,7 +527,9 @@ | ... | @@ -512,7 +527,9 @@ |
512 | <li><a href="#mibao">设置密保</a></li> | 527 | <li><a href="#mibao">设置密保</a></li> |
513 | <li><a href="#modify_pwd">修改密码</a></li> | 528 | <li><a href="#modify_pwd">修改密码</a></li> |
514 | </ul> | 529 | </ul> |
530 | + {{? Core.Data.kefu_info != ""}} | ||
515 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 1em;left:0;">{{=Core.Data.kefu_info[0]}}</p> | 531 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 1em;left:0;">{{=Core.Data.kefu_info[0]}}</p> |
532 | + {{?}} | ||
516 | {{??}} | 533 | {{??}} |
517 | <ul class="list-item clearfix"> | 534 | <ul class="list-item clearfix"> |
518 | <li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li> | 535 | <li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li> |
... | @@ -528,8 +545,10 @@ | ... | @@ -528,8 +545,10 @@ |
528 | </a></li> | 545 | </a></li> |
529 | {{?}} | 546 | {{?}} |
530 | </ul> | 547 | </ul> |
548 | + {{? Core.Data.kefu_info != ""}} | ||
531 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> | 549 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> |
532 | {{?}} | 550 | {{?}} |
551 | + {{?}} | ||
533 | {{?}} | 552 | {{?}} |
534 | <!--<ul class="list-item clearfix"> | 553 | <!--<ul class="list-item clearfix"> |
535 | {{? Core.Data.bind_phone === ""}} | 554 | {{? Core.Data.bind_phone === ""}} |
... | @@ -634,15 +653,13 @@ | ... | @@ -634,15 +653,13 @@ |
634 | </div> | 653 | </div> |
635 | </script> | 654 | </script> |
636 | <script id="modify_pwd_template" type="text/x-jquery-tmpl"> | 655 | <script id="modify_pwd_template" type="text/x-jquery-tmpl"> |
637 | - | ||
638 | - | ||
639 | <div class="new-sdk-container"> | 656 | <div class="new-sdk-container"> |
640 | <div class="SDK-titlebox"></div> | 657 | <div class="SDK-titlebox"></div> |
641 | <div class="user-center"> | 658 | <div class="user-center"> |
642 | <a href="#home" class="lefticon"> | 659 | <a href="#home" class="lefticon"> |
643 | <i class="iconfont icon-fanhui"></i> | 660 | <i class="iconfont icon-fanhui"></i> |
644 | </a> | 661 | </a> |
645 | - {{? Core.Data.is_guest == 1}}升级账号{{??}}修改密码{{?}} | 662 | + {{? Core.Data.is_guest == 1}}绑定账号{{??}}修改密码{{?}} |
646 | </div> | 663 | </div> |
647 | <form action="/sdk/change_password" mthod="post" class="ajax " todo="modify_pwd_callback" > | 664 | <form action="/sdk/change_password" mthod="post" class="ajax " todo="modify_pwd_callback" > |
648 | <div class="new-sdk-box"> | 665 | <div class="new-sdk-box"> |
... | @@ -662,7 +679,7 @@ | ... | @@ -662,7 +679,7 @@ |
662 | 679 | ||
663 | </label> | 680 | </label> |
664 | </div> | 681 | </div> |
665 | - {{? Core.Data.is_guest == 1}}<p>升级账号成功之后,<span class="red">游客账号作废</span>,请妥善保管正式账号</p>{{??}}{{?}} | 682 | + {{? Core.Data.is_guest == 1}}<p>绑定账号成功之后,<span class="red">游客账号作废</span>,请妥善保管正式账号</p>{{??}}{{?}} |
666 | 683 | ||
667 | </div> | 684 | </div> |
668 | 685 | ||
... | @@ -681,16 +698,18 @@ | ... | @@ -681,16 +698,18 @@ |
681 | <div class="new-sdk-container"> | 698 | <div class="new-sdk-container"> |
682 | <div class="SDK-titlebox"></div> | 699 | <div class="SDK-titlebox"></div> |
683 | <div class="user-center"> | 700 | <div class="user-center"> |
684 | - <a href="#home" class="lefticon"> | 701 | + <a href="#home" class="lefticon js-return-game"> |
685 | <i class="iconfont icon-fanhui"></i> | 702 | <i class="iconfont icon-fanhui"></i> |
686 | </a> | 703 | </a> |
704 | + | ||
687 | 实名认证 | 705 | 实名认证 |
688 | </div> | 706 | </div> |
689 | <form action="/user/bind_identity_card" method="post" class="ajax" onkeydown="if(event.keyCode==13) return false;" > | 707 | <form action="/user/bind_identity_card" method="post" class="ajax" onkeydown="if(event.keyCode==13) return false;" > |
690 | <div class="new-sdk-box"> | 708 | <div class="new-sdk-box"> |
691 | - <div class="input" style="padding:0 25px;"><input type="text" name="identity_card" required placeholder="请输入注册身份证号码" style="text-align: left;"></div> | 709 | + <div class="input" style="padding:0 25px;"><input type="text" name="identity_card" required placeholder="请输入身份证号码" style="text-align: left;"></div> |
692 | <div class="input" style="padding:0 25px;"><input type="text" name="compellation_name" required placeholder="请输入姓名" style="text-align: left;"></div> | 710 | <div class="input" style="padding:0 25px;"><input type="text" name="compellation_name" required placeholder="请输入姓名" style="text-align: left;"></div> |
693 | - </div> | 711 | + <p style="font-size: 24px; text-indent: 1em; color: #999;text-align: left;">根据国家规定,为了保障您的权益,请登记本人实名信息</p> |
712 | + </div> | ||
694 | <ul class="inline-btn"> | 713 | <ul class="inline-btn"> |
695 | <li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">提交</a></li> | 714 | <li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">提交</a></li> |
696 | </ul> | 715 | </ul> |
... | @@ -1040,7 +1059,8 @@ FastClick.attach(document.body); | ... | @@ -1040,7 +1059,8 @@ FastClick.attach(document.body); |
1040 | <script type="text/javascript" src="js/login.min.js?2016111" ></script> | 1059 | <script type="text/javascript" src="js/login.min.js?2016111" ></script> |
1041 | <script type="text/javascript" src="js/loader.min.js?20150923001"></script> | 1060 | <script type="text/javascript" src="js/loader.min.js?20150923001"></script> |
1042 | <script type="text/javascript" src="js/simpScroller-min.js"></script> | 1061 | <script type="text/javascript" src="js/simpScroller-min.js"></script> |
1043 | -<script type="text/javascript" src="js/identity_id.js" ></script> | 1062 | +<!--身份证号码验证:2.0为没有限制年龄--> |
1063 | +<script type="text/javascript" src="js/identity_id_2.0.js" ></script> | ||
1044 | <script type="text/javascript"> | 1064 | <script type="text/javascript"> |
1045 | window.onload = window.onresize = initMatching; | 1065 | window.onload = window.onresize = initMatching; |
1046 | (function(){ | 1066 | (function(){ | ... | ... |
publicAndroidSDK/assets/sdk/makefile.js
100644 → 100755
File mode changed
publicAndroidSDK/assets/sdk/pay.html
100644 → 100755
... | @@ -34,6 +34,10 @@ | ... | @@ -34,6 +34,10 @@ |
34 | <!-- 首页模块 --> | 34 | <!-- 首页模块 --> |
35 | <section id="home" class="hide" data-attr="dot" data-auth="1"></section> | 35 | <section id="home" class="hide" data-attr="dot" data-auth="1"></section> |
36 | <!-- end --> | 36 | <!-- end --> |
37 | +<!--实名验证模块--> | ||
38 | +<section id="identityCard" class="hide" data-attr="dot"> | ||
39 | +</section> | ||
40 | +<!--end--> | ||
37 | <!-- 兑换元宝列表模块 --> | 41 | <!-- 兑换元宝列表模块 --> |
38 | <section id="exchange" class="hide" data-attr="dot" data-auth="1"></section> | 42 | <section id="exchange" class="hide" data-attr="dot" data-auth="1"></section> |
39 | <!-- end --> | 43 | <!-- end --> |
... | @@ -185,7 +189,27 @@ | ... | @@ -185,7 +189,27 @@ |
185 | </div> | 189 | </div> |
186 | </div> | 190 | </div> |
187 | </script> | 191 | </script> |
188 | - | 192 | +<script id="identityCard_template" type="text/x-jquery-tmpl" > |
193 | + <div class="new-sdk-container"> | ||
194 | + <div class="SDK-titlebox"></div> | ||
195 | + <div class="user-center"> | ||
196 | + <a href="#channel_list" class="lefticon js-return-game"> | ||
197 | + <i class="iconfont icon-fanhui"></i> | ||
198 | + </a> | ||
199 | + 实名认证 | ||
200 | + </div> | ||
201 | + <form action="/user/bind_identity_card" method="post" class="ajax" onkeydown="if(event.keyCode==13) return false;" > | ||
202 | + <div class="new-sdk-box"> | ||
203 | + <div class="input" style="padding:0 25px;"><input type="text" name="identity_card" required placeholder="请输入身份证号码" style="text-align: left;"></div> | ||
204 | + <div class="input" style="padding:0 25px;"><input type="text" name="compellation_name" required placeholder="请输入姓名" style="text-align: left;"></div> | ||
205 | + <p style="font-size: 24px; text-indent: 1em; color: #999;text-align: left;">根据国家规定,为了保障您的权益,请登记本人实名信息</p> | ||
206 | + </div> | ||
207 | + <ul class="inline-btn"> | ||
208 | + <li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">提交</a></li> | ||
209 | + </ul> | ||
210 | + </form> | ||
211 | + </div> | ||
212 | +</script> | ||
189 | <script id='modify_pwd_template' type='text/x-jquery-tmpl'> | 213 | <script id='modify_pwd_template' type='text/x-jquery-tmpl'> |
190 | <div class="header"> | 214 | <div class="header"> |
191 | <a class="iconfont icon-iconfontxiangyou poslft" href="##home"></a> | 215 | <a class="iconfont icon-iconfontxiangyou poslft" href="##home"></a> |
... | @@ -784,7 +808,8 @@ FastClick.attach(document.body); | ... | @@ -784,7 +808,8 @@ FastClick.attach(document.body); |
784 | <script type="text/javascript" src="js/core.min.js?201504218002" ></script> | 808 | <script type="text/javascript" src="js/core.min.js?201504218002" ></script> |
785 | <script type="text/javascript" src="js/pay.min.js?201504218001" ></script> | 809 | <script type="text/javascript" src="js/pay.min.js?201504218001" ></script> |
786 | <script type="text/javascript" src="js/loader.min.js?201504218001"></script> | 810 | <script type="text/javascript" src="js/loader.min.js?201504218001"></script> |
787 | - | 811 | +<!--身份证号码验证:2.0为没有限制年龄--> |
812 | +<script type="text/javascript" src="js/identity_id_2.0.js" ></script> | ||
788 | <script type="text/javascript"> | 813 | <script type="text/javascript"> |
789 | (function(){ | 814 | (function(){ |
790 | getData('/sdk/pay/json'); | 815 | getData('/sdk/pay/json'); | ... | ... |
publicAndroidSDK/assets/sdk/readyme.txt
100644 → 100755
File mode changed
publicAndroidSDK/assets/sdk/share.html
100644 → 100755
File mode changed
publicAndroidSDK/assets/sdk/skin/login.css
100644 → 100755
... | @@ -23,6 +23,7 @@ section{ | ... | @@ -23,6 +23,7 @@ section{ |
23 | a,input,textarea,select { | 23 | a,input,textarea,select { |
24 | outline: 0; | 24 | outline: 0; |
25 | } | 25 | } |
26 | +input[type=button],input[type=text],input[type=password]{-webkit-appearance:none;outline:none} | ||
26 | a:focus { | 27 | a:focus { |
27 | outline:thin dotted; /* 处理“outline”在Chrome浏览器中和其它浏览器之间的不一致 */ | 28 | outline:thin dotted; /* 处理“outline”在Chrome浏览器中和其它浏览器之间的不一致 */ |
28 | } | 29 | } | ... | ... |
publicAndroidSDK/assets/sdk/skin/pay.css
100644 → 100755
... | @@ -1324,4 +1324,117 @@ input:-ms-input-placeholder, textarea:-ms-input-placeholder { | ... | @@ -1324,4 +1324,117 @@ input:-ms-input-placeholder, textarea:-ms-input-placeholder { |
1324 | input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill { | 1324 | input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill { |
1325 | background-color: rgb(255, 255, 255) !important; | 1325 | background-color: rgb(255, 255, 255) !important; |
1326 | box-shadow: 0 0 0px 1000px white inset !important; | 1326 | box-shadow: 0 0 0px 1000px white inset !important; |
1327 | +} | ||
1328 | +/**------实名验证--------*/ | ||
1329 | + | ||
1330 | +.SDK-titlebox{ | ||
1331 | + height: 33px; | ||
1332 | + background: #00beef; | ||
1333 | +} | ||
1334 | +.user-center{ | ||
1335 | + position: relative; | ||
1336 | + text-align: center; | ||
1337 | + padding: 26px 0 18px; | ||
1338 | + border-bottom: 2px solid #fff; | ||
1339 | + color: #00beef; | ||
1340 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
1341 | + font-size: 36px; | ||
1342 | +} | ||
1343 | +.new-sdk-container .new-sdk-box { | ||
1344 | + padding: 20px 37px; | ||
1345 | + border-top: 1px solid #c4c3c3; | ||
1346 | + box-sizing: border-box; | ||
1347 | + -moz-box-sizing: border-box; | ||
1348 | + -webkit-box-sizing: border-box; | ||
1349 | +} | ||
1350 | +.new-sdk-container .new-sdk-box .input { | ||
1351 | + margin-bottom: 15px; | ||
1352 | + border: 1px solid #c0c0c0; | ||
1353 | + /* box-shadow: 1px 2px 2px #c2c2c2 inset; */ | ||
1354 | + border-radius: 10px; | ||
1355 | + -moz-border-radius: 10px; | ||
1356 | + -webkit-border-radius: 10px; | ||
1357 | + padding: 25px 0; | ||
1358 | + background: #fff; | ||
1359 | + box-sizing: border-box; | ||
1360 | + -webkit-box-sizing: border-box; | ||
1361 | + -moz-box-sizing: border-box; | ||
1362 | +} | ||
1363 | +.new-sdk-container .new-sdk-box .input input { | ||
1364 | + display: inline-block; | ||
1365 | + width: 100%; | ||
1366 | + background: none; | ||
1367 | + border: none; | ||
1368 | + color: #000; | ||
1369 | + font-size: 30px; | ||
1370 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
1371 | + white-space: nowrap; | ||
1372 | + text-overflow: ellipsis; | ||
1373 | + overflow: hidden; | ||
1374 | + word-break: break-all; | ||
1375 | + height: 45px; | ||
1376 | + line-height: 45px; | ||
1377 | + vertical-align: middle; | ||
1378 | + margin: 20px 0; | ||
1379 | + box-shadow: none; | ||
1380 | +} | ||
1381 | +ol, ul { | ||
1382 | + list-style: none; | ||
1383 | +} | ||
1384 | +.new-sdk-container .inline-btn { | ||
1385 | + overflow: auto; | ||
1386 | + zoom: 1; | ||
1387 | + width: 88%; | ||
1388 | + margin: 0px auto 25px auto; | ||
1389 | +} | ||
1390 | +.new-sdk-container .inline-btn li { | ||
1391 | + float: left; | ||
1392 | + width: 45%; | ||
1393 | + text-align: center; | ||
1394 | + background: #ff9600; | ||
1395 | + border-radius: 20px; | ||
1396 | + padding: 26px 0; | ||
1397 | +} | ||
1398 | +.new-sdk-container .inline-btn .btn { | ||
1399 | + display: inline-block; | ||
1400 | + border: 0; | ||
1401 | + background: #00beef; | ||
1402 | + color: #fff; | ||
1403 | + font-size: 30px; | ||
1404 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
1405 | + letter-spacing: 2px; | ||
1406 | + cursor: pointer; | ||
1407 | + width: 100%; | ||
1408 | + vertical-align: middle; | ||
1409 | + border-radius: 20px; | ||
1410 | + -moz-border-radius: 20px; | ||
1411 | + -webkit-border-radius: 20px; | ||
1412 | +} | ||
1413 | +.new-sdk-container .inline-btn .btn-orange { | ||
1414 | + background: #ff9600; | ||
1415 | +} | ||
1416 | +/*字体图标*/ | ||
1417 | +@font-face {font-family: "iconfont"; | ||
1418 | + src: url('../font/iconfont.eot?t=1468997064'); /* IE9*/ | ||
1419 | + src: url('../font/iconfont.eot?t=1468997064#iefix') format('embedded-opentype'), /* IE6-IE8 */ | ||
1420 | + url('../font/iconfont.woff?t=1468997064') format('woff'), /* chrome, firefox */ | ||
1421 | + url('../font/iconfont.ttf?t=1468997064') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ | ||
1422 | + url('../font/iconfont.svg?t=1468997064#iconfont') format('svg'); /* iOS 4.1- */ | ||
1423 | +} | ||
1424 | +.iconfont { | ||
1425 | + font-family:"iconfont" !important; | ||
1426 | + font-size:16px; | ||
1427 | + font-style:normal; | ||
1428 | + -webkit-font-smoothing: antialiased; | ||
1429 | + -webkit-text-stroke-width: 0.2px; | ||
1430 | + -moz-osx-font-smoothing: grayscale; | ||
1431 | +} | ||
1432 | +.icon-fanhui:before { content: "\e610"; color: #00beef; font-size: 36px;} | ||
1433 | +.user-center a { | ||
1434 | + position: absolute; | ||
1435 | + left: 37px; | ||
1436 | + bottom: 7px; | ||
1437 | + color: #ff9600; | ||
1438 | + font-size: 24px; | ||
1439 | + padding: 10px; | ||
1327 | } | 1440 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
publicAndroidSDK/assets/sdk/skin/sdk.manifest
100644 → 100755
File mode changed
publicAndroidSDK/assets/sdk/uglifyjs_sqwish.sh
100644 → 100755
publicAndroidSDK/assets/sdk/version.txt
100644 → 100755
No preview for this file type
... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
6 | 6 | ||
7 | <uses-sdk | 7 | <uses-sdk |
8 | android:minSdkVersion="8" | 8 | android:minSdkVersion="8" |
9 | - android:targetSdkVersion="19" /> | 9 | + android:targetSdkVersion="20" /> |
10 | 10 | ||
11 | <!-- SDK start --> | 11 | <!-- SDK start --> |
12 | <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | 12 | <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | ... | ... |
No preview for this file type
... | @@ -2,11 +2,12 @@ | ... | @@ -2,11 +2,12 @@ |
2 | <config> | 2 | <config> |
3 | 3 | ||
4 | <sdkconfig | 4 | <sdkconfig |
5 | - YA_APPID="58fd78a9834e7246b8dc0eac" | 5 | + YA_APPID="5a374e62f0d770280d72f021" |
6 | - YA_APPKEY="b06b86b79c25774ec758657a7203bae6" | 6 | + YA_APPKEY="181d78ad8378a2994f7f390b3f5bcd9c" |
7 | - gamesimplename="fytx_test" | 7 | + game_url="http://inter.fc65.cn/api/youai/login.php" |
8 | + gamesimplename="hmwz_hb" | ||
8 | sdksimplename="youyu" | 9 | sdksimplename="youyu" |
9 | - sdkversioncode="V1_1" | 10 | + sdkversioncode="V1_0" |
10 | channelparameter1="" | 11 | channelparameter1="" |
11 | channelparameter2="" | 12 | channelparameter2="" |
12 | custom="" | 13 | custom="" |
... | @@ -14,6 +15,6 @@ | ... | @@ -14,6 +15,6 @@ |
14 | logincheckurl="http://login.public.sdk.gzyouai.com/logincheck/check" | 15 | logincheckurl="http://login.public.sdk.gzyouai.com/logincheck/check" |
15 | paycheckurl="http://pay.public.sdk.gzyouai.com/paycheck/confirm" | 16 | paycheckurl="http://pay.public.sdk.gzyouai.com/paycheck/confirm" |
16 | payorderurl="http://pay.public.sdk.gzyouai.com/paycheck/create" | 17 | payorderurl="http://pay.public.sdk.gzyouai.com/paycheck/create" |
17 | - usertype="gssaXIIEiL0=" /> | 18 | + /> |
18 | 19 | ||
19 | </config> | 20 | </config> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
No preview for this file type
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/agreement.html
100644 → 100755
File mode changed
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/center.html
100644 → 100755
File mode changed
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/config.js
100644 → 100755
File mode changed
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/font/iconfont.eot
100644 → 100755
No preview for this file type
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/font/iconfont.svg
100644 → 100755
File mode changed
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/font/iconfont.ttf
100644 → 100755
No preview for this file type
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/font/iconfont.woff
100644 → 100755
No preview for this file type
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/js/center.min.js
100644 → 100755
File mode changed
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/js/core.min.js
100644 → 100755
... | @@ -34,7 +34,7 @@ function initMatching(){ | ... | @@ -34,7 +34,7 @@ function initMatching(){ |
34 | Core.isWeixin = userAgent.indexOf('MicroMessenger') != -1; | 34 | Core.isWeixin = userAgent.indexOf('MicroMessenger') != -1; |
35 | var ratio = window.devicePixelRatio; | 35 | var ratio = window.devicePixelRatio; |
36 | Core.ratio = ratio; | 36 | Core.ratio = ratio; |
37 | - | 37 | + Core.isShowIdentity = true; |
38 | 38 | ||
39 | var lastServer = localStorage.getItem('last_server'); | 39 | var lastServer = localStorage.getItem('last_server'); |
40 | if(lastServer && lastServer.indexOf('http:')==0){ | 40 | if(lastServer && lastServer.indexOf('http:')==0){ |
... | @@ -89,10 +89,12 @@ function initMatching(){ | ... | @@ -89,10 +89,12 @@ function initMatching(){ |
89 | if (!Core.sdk_w) Core.sdk_w = 600; | 89 | if (!Core.sdk_w) Core.sdk_w = 600; |
90 | _scale = 1; | 90 | _scale = 1; |
91 | if(ratio == 2){//5、6、6s(2.4) | 91 | if(ratio == 2){//5、6、6s(2.4) |
92 | - _scale = 2.4 / ratio; | 92 | + _scale = 2.2 / ratio; |
93 | if(userAgent.indexOf('iPad') != -1){ | 93 | if(userAgent.indexOf('iPad') != -1){ |
94 | _scale = 2 / ratio; | 94 | _scale = 2 / ratio; |
95 | } | 95 | } |
96 | + }else if(ratio ==3){//iphoneX | ||
97 | + _scale = 3.1 / ratio; | ||
96 | }else if(ratio >2.5){//6s plus | 98 | }else if(ratio >2.5){//6s plus |
97 | _scale = 2.7 / ratio; | 99 | _scale = 2.7 / ratio; |
98 | }else if (ratio < 1) { | 100 | }else if (ratio < 1) { | ... | ... |
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/js/doT.min.js
100644 → 100755
File mode changed
File mode changed
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/js/identity_id.js
100644 → 100755
File mode changed
1 | +var surname="\u8d75|\u94b1|\u5b59|\u674e|\u5468|\u5434|\u90d1|\u738b|\u51af|\u9648|\u891a|\u536b|\u848b|\u6c88|\u97e9|\u6768|\u6731|\u79e6|\u5c24|\u8bb8|\u4f55|\u5415|\u65bd|\u5f20|\u5b54|\u66f9|\u4e25|\u534e|\u91d1|\u9b4f|\u9676|\u59dc|\u621a|\u8c22|\u90b9|\u55bb|\u67cf|\u6c34|\u7aa6|\u7ae0|\u4e91|\u82cf|\u6f58|\u845b|\u595a|\u8303|\u5f6d|\u90ce|\u9c81|\u97e6|\u660c|\u9a6c|\u82d7|\u51e4|\u82b1|\u65b9|\u4fde|\u4efb|\u8881|\u67f3|\u9146|\u9c8d|\u53f2|\u5510|\u8d39|\u5ec9|\u5c91|\u859b|\u96f7|\u8d3a|\u502a|\u6c64|\u6ed5|\u6bb7|\u7f57|\u6bd5|\u90dd|\u90ac|\u5b89|\u5e38|\u4e50|\u4e8e|\u65f6|\u5085|\u76ae|\u535e|\u9f50|\u5eb7|\u4f0d|\u4f59|\u5143|\u535c|\u987e|\u5b5f|\u5e73|\u9ec4|\u548c|\u7a46|\u8427|\u5c39|\u59da|\u90b5|\u6e5b|\u6c6a|\u7941|\u6bdb|\u79b9|\u72c4|\u7c73|\u8d1d|\u660e|\u81e7|\u8ba1|\u4f0f|\u6210|\u6234|\u8c08|\u5b8b|\u8305|\u5e9e|\u718a|\u7eaa|\u8212|\u5c48|\u9879|\u795d|\u8463|\u6881|\u675c|\u962e|\u84dd|\u95f5|\u5e2d|\u5b63|\u9ebb|\u5f3a|\u8d3e|\u8def|\u5a04|\u5371|\u6c5f|\u7ae5|\u989c|\u90ed|\u6885|\u76db|\u6797|\u5201|\u953a|\u5f90|\u90b1|\u9a86|\u9ad8|\u590f|\u8521|\u7530|\u6a0a|\u80e1|\u51cc|\u970d|\u865e|\u4e07|\u652f|\u67ef|\u661d|\u7ba1|\u5362|\u83ab|\u7ecf|\u623f|\u88d8|\u7f2a|\u5e72|\u89e3|\u5e94|\u5b97|\u4e01|\u5ba3|\u8d32|\u9093|\u90c1|\u5355|\u676d|\u6d2a|\u5305|\u8bf8|\u5de6|\u77f3|\u5d14|\u5409|\u94ae|\u9f9a|\u7a0b|\u5d47|\u90a2|\u6ed1|\u88f4|\u9646|\u8363|\u7fc1|\u8340|\u7f8a|\u65bc|\u60e0|\u7504|\u9eb4|\u5bb6|\u5c01|\u82ae|\u7fbf|\u50a8|\u9773|\u6c72|\u90b4|\u7cdc|\u677e|\u4e95|\u6bb5|\u5bcc|\u5deb|\u4e4c|\u7126|\u5df4|\u5f13|\u7267|\u9697|\u5c71|\u8c37|\u8f66|\u4faf|\u5b93|\u84ec|\u5168|\u90d7|\u73ed|\u4ef0|\u79cb|\u4ef2|\u4f0a|\u5bab|\u5b81|\u4ec7|\u683e|\u66b4|\u7518|\u94ad|\u5386|\u620e|\u7956|\u6b66|\u7b26|\u5218|\u666f|\u8a79|\u675f|\u9f99|\u53f6|\u5e78|\u53f8|\u97f6|\u90dc|\u9ece|\u84df|\u6ea5|\u5370|\u5bbf|\u767d|\u6000|\u84b2|\u90b0|\u4ece|\u9102|\u7d22|\u54b8|\u7c4d|\u8d56|\u5353|\u853a|\u5c60|\u8499|\u6c60|\u4e54|\u9633|\u90c1|\u80e5|\u80fd|\u82cd|\u53cc|\u95fb|\u8398|\u515a|\u7fdf|\u8c2d|\u8d21|\u52b3|\u9004|\u59ec|\u7533|\u6276|\u5835|\u5189|\u5bb0|\u90e6|\u96cd|\u5374|\u74a9|\u6851|\u6842|\u6fee|\u725b|\u5bff|\u901a|\u8fb9|\u6248|\u71d5|\u5180|\u50ea|\u6d66|\u5c1a|\u519c|\u6e29|\u522b|\u5e84|\u664f|\u67f4|\u77bf|\u960e|\u5145|\u6155|\u8fde|\u8339|\u4e60|\u5ba6|\u827e|\u9c7c|\u5bb9|\u5411|\u53e4|\u6613|\u614e|\u6208|\u5ed6|\u5ebe|\u7ec8|\u66a8|\u5c45|\u8861|\u6b65|\u90fd|\u803f|\u6ee1|\u5f18|\u5321|\u56fd|\u6587|\u5bc7|\u5e7f|\u7984|\u9619|\u4e1c|\u6b27|\u6bb3|\u6c83|\u5229|\u851a|\u8d8a|\u5914|\u9686|\u5e08|\u5de9|\u538d|\u8042|\u6641|\u52fe|\u6556|\u878d|\u51b7|\u8a3e|\u8f9b|\u961a|\u90a3|\u7b80|\u9976|\u7a7a|\u66fe|\u6bcb|\u6c99|\u4e5c|\u517b|\u97a0|\u987b|\u4e30|\u5de2|\u5173|\u84af|\u76f8|\u67e5|\u540e|\u8346|\u7ea2|\u6e38|\u7afa|\u6743|\u902e|\u76cd|\u76ca|\u6853|\u516c|\u4e07\u4fdf|\u53f8\u9a6c|\u4e0a\u5b98|\u6b27\u9633|\u590f\u4faf|\u8bf8\u845b|\u95fb\u4eba|\u4e1c\u65b9|\u8d6b\u8fde|\u7687\u752b|\u5c09\u8fdf|\u516c\u7f8a|\u6fb9\u53f0|\u516c\u51b6|\u5b97\u653f|\u6fee\u9633|\u6df3\u4e8e|\u5355\u4e8e|\u592a\u53d4|\u7533\u5c60|\u516c\u5b59|\u4ef2\u5b59|\u8f69\u8f95|\u4ee4\u72d0|\u949f\u79bb|\u5b87\u6587|\u957f\u5b59|\u6155\u5bb9|\u53f8\u5f92|\u53f8\u7a7a|\u53ec|\u6709|\u821c|\u53f6\u8d6b\u90a3\u62c9|\u4e1b|\u5cb3|\u5bf8|\u8d30|\u7687|\u4fa8|\u5f64|\u7aed|\u7aef|\u8d6b|\u5b9e|\u752b|\u96c6|\u8c61|\u7fe0|\u72c2|\u8f9f|\u5178|\u826f|\u51fd|\u8292|\u82e6|\u5176|\u4eac|\u4e2d|\u5915|\u4e4b|\u7ae0\u4f73|\u90a3\u62c9|\u51a0|\u5bbe|\u9999|\u679c|\u4f9d\u5c14\u6839\u89c9\u7f57|\u4f9d\u5c14\u89c9\u7f57|\u8428\u561b\u5587|\u8d6b\u820d\u91cc|\u989d\u5c14\u5fb7\u7279|\u8428\u514b\u8fbe|\u94ae\u795c\u7984|\u4ed6\u5854\u5587|\u559c\u5854\u814a|\u8bb7\u6bb7\u5bcc\u5bdf|\u53f6\u8d6b\u90a3\u5170|\u5e93\u96c5\u5587|\u74dc\u5c14\u4f73|\u8212\u7a46\u7984|\u7231\u65b0\u89c9\u7f57|\u7d22\u7ef0\u7edc|\u7eb3\u5587|\u4e4c\u96c5|\u8303\u59dc|\u78a7\u9c81|\u5f20\u5ed6|\u5f20\u7b80|\u56fe\u95e8|\u592a\u53f2|\u516c\u53d4|\u4e4c\u5b59|\u5b8c\u989c|\u9a6c\u4f73|\u4f5f\u4f73|\u5bcc\u5bdf|\u8d39\u83ab|\u8e47|\u79f0|\u8bfa|\u6765|\u591a|\u7e41|\u620a|\u6734|\u56de|\u6bd3|\u7a0e|\u8364|\u9756|\u7eea|\u6108|\u7855|\u7262|\u4e70|\u4f46|\u5de7|\u679a|\u6492|\u6cf0|\u79d8|\u4ea5|\u7ecd|\u4ee5|\u58ec|\u68ee|\u658b|\u91ca|\u5955|\u59d2|\u670b|\u6c42|\u7fbd|\u7528|\u5360|\u771f|\u7a70|\u7fe6|\u95fe|\u6f06|\u8d35|\u4ee3|\u8d2f|\u65c1|\u5d07|\u680b|\u544a|\u4f11|\u8912|\u8c0f|\u9510|\u768b|\u95f3|\u5728|\u6b67|\u79be|\u793a|\u662f|\u59d4|\u948a|\u9891|\u5b34|\u547c|\u5927|\u5a01|\u6602|\u5f8b|\u5192|\u4fdd|\u7cfb|\u6284|\u5b9a|\u5316|\u83b1|\u6821|\u4e48|\u6297|\u7962|\u7da6|\u609f|\u5b8f|\u529f|\u5e9a|\u52a1|\u654f|\u6377|\u62f1|\u5146|\u4e11|\u4e19|\u7545|\u82df|\u968f|\u7c7b|\u536f|\u4fdf|\u53cb|\u7b54|\u4e59|\u5141|\u7532|\u7559|\u5c3e|\u4f7c|\u7384|\u4e58|\u88d4|\u5ef6|\u690d|\u73af|\u77eb|\u8d5b|\u6614|\u4f8d|\u5ea6|\u65f7|\u9047|\u5076|\u524d|\u7531|\u548e|\u585e|\u655b|\u53d7|\u6cf7|\u88ad|\u8845|\u53d4|\u5723|\u5fa1|\u592b|\u4ec6|\u9547|\u85e9|\u90b8|\u5e9c|\u638c|\u9996|\u5458|\u7109|\u620f|\u53ef|\u667a|\u5c14|\u51ed|\u6089|\u8fdb|\u7b03|\u539a|\u4ec1|\u4e1a|\u8087|\u8d44|\u5408|\u4ecd|\u4e5d|\u8877|\u54c0|\u5211|\u4fce|\u4ef5|\u572d|\u5937|\u5fad|\u86ee|\u6c57|\u5b5b|\u4e7e|\u5e16|\u7f55|\u6d1b|\u6de6|\u6d0b|\u90b6|\u90f8|\u90ef|\u9097|\u909b|\u5251|\u8662|\u968b|\u84bf|\u8306|\u83c5|\u82cc|\u6811|\u6850|\u9501|\u949f|\u673a|\u76d8|\u94ce|\u659b|\u7389|\u7ebf|\u9488|\u7b95|\u5eb9|\u7ef3|\u78e8|\u8489|\u74ee|\u5f2d|\u5200|\u758f|\u7275|\u6d51|\u607d|\u52bf|\u4e16|\u4edd|\u540c|\u8681|\u6b62|\u6222|\u7762|\u51bc|\u79cd|\u6d82|\u8096|\u5df1|\u6ce3|\u6f5c|\u5377|\u8131|\u8c2c|\u8e49|\u8d67|\u6d6e|\u987f|\u8bf4|\u6b21|\u9519|\u5ff5|\u5919|\u65af|\u5b8c|\u4e39|\u8868|\u804a|\u6e90|\u59d3|\u543e|\u5bfb|\u5c55|\u51fa|\u4e0d|\u6237|\u95ed|\u624d|\u65e0|\u4e66|\u5b66|\u611a|\u672c|\u6027|\u96ea|\u971c|\u70df|\u5bd2|\u5c11|\u5b57|\u6865|\u677f|\u6590|\u72ec|\u5343|\u8bd7|\u5609|\u626c|\u5584|\u63ed|\u7948|\u6790|\u8d64|\u7d2b|\u9752|\u67d4|\u521a|\u5947|\u62dc|\u4f5b|\u9640|\u5f25|\u963f|\u7d20|\u957f|\u50e7|\u9690|\u4ed9|\u96bd|\u5b87|\u796d|\u9152|\u6de1|\u5854|\u7426|\u95ea|\u59cb|\u661f|\u5357|\u5929|\u63a5|\u6ce2|\u78a7|\u901f|\u799a|\u817e|\u6f6e|\u955c|\u4f3c|\u6f84|\u6f6d|\u8b07|\u7eb5|\u6e20|\u5948|\u98ce|\u6625|\u6fef|\u6c90|\u8302|\u82f1|\u5170|\u6a80|\u85e4|\u679d|\u68c0|\u751f|\u6298|\u767b|\u9a79|\u9a91|\u8c8a|\u864e|\u80a5|\u9e7f|\u96c0|\u91ce|\u79bd|\u98de|\u8282|\u5b9c|\u9c9c|\u7c9f|\u6817|\u8c46|\u5e1b|\u5b98|\u5e03|\u8863|\u85cf|\u5b9d|\u949e|\u94f6|\u95e8|\u76c8|\u5e86|\u559c|\u53ca|\u666e|\u5efa|\u8425|\u5de8|\u671b|\u5e0c|\u9053|\u8f7d|\u58f0|\u6f2b|\u7281|\u529b|\u8d38|\u52e4|\u9769|\u6539|\u5174|\u4e93|\u7766|\u4fee|\u4fe1|\u95fd|\u5317|\u5b88|\u575a|\u52c7|\u6c49|\u7ec3|\u5c09|\u58eb|\u65c5|\u4e94|\u4ee4|\u5c06|\u65d7|\u519b|\u884c|\u5949|\u656c|\u606d|\u4eea|\u6bcd|\u5802|\u4e18|\u4e49|\u793c|\u6148|\u5b5d|\u7406|\u4f26|\u537f|\u95ee|\u6c38|\u8f89|\u4f4d|\u8ba9|\u5c27|\u4f9d|\u72b9|\u4ecb|\u627f|\u5e02|\u6240|\u82d1|\u675e|\u5267|\u7b2c|\u96f6|\u8c0c|\u62db|\u7eed|\u8fbe|\u5ffb|\u516d|\u911e|\u6218|\u8fdf|\u5019|\u5b9b|\u52b1|\u7c98|\u8428|\u909d|\u8983|\u8f9c|\u521d|\u697c|\u57ce|\u533a|\u5c40|\u53f0|\u539f|\u8003|\u59ab|\u7eb3|\u6cc9|\u8001|\u6e05|\u5fb7|\u5351|\u8fc7|\u9ea6|\u66f2|\u7af9|\u767e|\u798f|\u8a00|\u7b2c\u4e94|\u4f5f|\u7231|\u5e74|\u7b2a|\u8c2f|\u54c8|\u58a8|\u5357\u5bab|\u8d4f|\u4f2f|\u4f74|\u4f58|\u725f|\u5546|\u897f\u95e8|\u4e1c\u95e8|\u5de6\u4e18|\u6881\u4e18|\u7434|\u540e|\u51b5|\u4ea2|\u7f11|\u5e05|\u5fae\u751f|\u7f8a\u820c|\u6d77|\u5f52|\u547c\u5ef6|\u5357\u95e8|\u4e1c\u90ed|\u767e\u91cc|\u94a6|\u9122|\u6c5d|\u6cd5|\u95eb|\u695a|\u664b|\u8c37\u6881|\u5bb0\u7236|\u5939\u8c37|\u62d3\u8dcb|\u58e4\u9a77|\u4e50\u6b63|\u6f06\u96d5|\u516c\u897f|\u5deb\u9a6c|\u7aef\u6728|\u989b\u5b59|\u5b50\u8f66|\u7763|\u4ec9|\u53f8\u5bc7|\u4e93\u5b98|\u9c9c\u4e8e|\u953a\u79bb|\u76d6|\u902f|\u5e93|\u90cf|\u9022|\u9634|\u8584|\u5389|\u7a3d|\u95fe\u4e18|\u516c\u826f|\u6bb5\u5e72|\u5f00|\u5149|\u64cd|\u745e|\u772d|\u6ce5|\u8fd0|\u6469|\u4f1f|\u94c1|\u8fee|"; | ||
2 | + | ||
3 | +function IsIdCard(idcard) | ||
4 | +{ | ||
5 | + idcard = idcard.toUpperCase(); | ||
6 | + var area={11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江", | ||
7 | + 31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北", | ||
8 | + 43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏", | ||
9 | + 61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",91:"国外"}; | ||
10 | + var retflag=false; | ||
11 | + var idcard,Y,JYM; | ||
12 | + var S,M; | ||
13 | + var idcard_array = new Array(); | ||
14 | + idcard_array = idcard.split(""); | ||
15 | + //地区检验 | ||
16 | + if(area[parseInt(idcard.substr(0,2))]==null) return false; | ||
17 | + //身份号码位数及格式检验 | ||
18 | + switch(idcard.length) | ||
19 | + { | ||
20 | + case 15: | ||
21 | + if ((parseInt(idcard.substr(6,2))+1900) % 4 == 0 || | ||
22 | + ((parseInt(idcard.substr(6,2))+1900) % 100 == 0 && (parseInt(idcard.substr(6,2))+1900) % 4 == 0 )||(parseInt(idcard.substr(6,2))+2000) % 4 == 0 || | ||
23 | + ((parseInt(idcard.substr(6,2))+2000) % 100 == 0 && (parseInt(idcard.substr(6,2))+2000) % 4 == 0 )) | ||
24 | + { | ||
25 | + ereg=/^[1-9][0-9]{5}[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}$/;//测试出生日期的合法性 | ||
26 | + } | ||
27 | + else | ||
28 | + { | ||
29 | + ereg=/^[1-9][0-9]{5}[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8]))[0-9]{3}$/;//测试出生日期的合法性 | ||
30 | + } | ||
31 | + if(ereg.test(idcard)) return true; | ||
32 | + else return false; | ||
33 | + break; | ||
34 | + case 18: | ||
35 | + //18位身份号码检测 | ||
36 | + //出生日期的合法性检查 | ||
37 | + //闰年月日:((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9])) | ||
38 | + //平年月日:((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8])) | ||
39 | + if ( parseInt(idcard.substr(6,4)) % 4 == 0 || | ||
40 | + (parseInt(idcard.substr(6,4)) % 100 == 0 &&parseInt(idcard.substr(6,4))%4 == 0 )) | ||
41 | + { | ||
42 | + ereg=/^[1-9][0-9]{5}19[0-9]|20[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}[0-9Xx]$/;//闰年出生日期的合法性正则表达式 | ||
43 | + } | ||
44 | + else | ||
45 | + { | ||
46 | + ereg=/^[1-9][0-9]{5}19[0-9]|20[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8]))[0-9]{3}[0-9Xx]$/;//平年出生日期的合法性正则表达式 | ||
47 | + } | ||
48 | + if(ereg.test(idcard)) | ||
49 | + {//测试出生日期的合法性 | ||
50 | + //计算校验位 | ||
51 | + S = (parseInt(idcard_array[0]) + parseInt(idcard_array[10])) * 7 | ||
52 | + + (parseInt(idcard_array[1]) + parseInt(idcard_array[11])) * 9 | ||
53 | + + (parseInt(idcard_array[2]) + parseInt(idcard_array[12])) * 10 | ||
54 | + + (parseInt(idcard_array[3]) + parseInt(idcard_array[13])) * 5 | ||
55 | + + (parseInt(idcard_array[4]) + parseInt(idcard_array[14])) * 8 | ||
56 | + + (parseInt(idcard_array[5]) + parseInt(idcard_array[15])) * 4 | ||
57 | + + (parseInt(idcard_array[6]) + parseInt(idcard_array[16])) * 2 | ||
58 | + + parseInt(idcard_array[7]) * 1 | ||
59 | + + parseInt(idcard_array[8]) * 6 | ||
60 | + + parseInt(idcard_array[9]) * 3 ; | ||
61 | + Y = S % 11; | ||
62 | + M = "F"; | ||
63 | + JYM = "10X98765432"; | ||
64 | + M = JYM.substr(Y,1);//判断校验位 | ||
65 | + if(M == idcard_array[17]) true; //检测ID的校验位 | ||
66 | + else return false; | ||
67 | + } | ||
68 | + else return false; | ||
69 | + break; | ||
70 | + default: | ||
71 | + return false; | ||
72 | + break; | ||
73 | + } | ||
74 | + return true; | ||
75 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
File mode changed
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/js/loader.min.js
100644 → 100755
File mode changed
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/js/login.min.js
100644 → 100755
... | @@ -52,7 +52,9 @@ | ... | @@ -52,7 +52,9 @@ |
52 | that.$c.on("click",".js-enter-game",function(e){//强制进入实名认证界面 | 52 | that.$c.on("click",".js-enter-game",function(e){//强制进入实名认证界面 |
53 | e.stopPropagation(); | 53 | e.stopPropagation(); |
54 | Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!"); | 54 | Core.showTips("根据政策规定,通过实名认证才能进入游戏哦!"); |
55 | + Core.isShowIdentity = false; | ||
55 | }); | 56 | }); |
57 | + | ||
56 | } | 58 | } |
57 | 59 | ||
58 | Home.prototype.logout_cb = function(data) { | 60 | Home.prototype.logout_cb = function(data) { |
... | @@ -1021,6 +1023,9 @@ | ... | @@ -1021,6 +1023,9 @@ |
1021 | }); | 1023 | }); |
1022 | } | 1024 | } |
1023 | IdentityCard.prototype.show_after = function(){ | 1025 | IdentityCard.prototype.show_after = function(){ |
1026 | + if(!Core.isShowIdentity){ | ||
1027 | + $(".js-return-game").attr("href","javascript:Core.finishLogin()"); | ||
1028 | + } | ||
1024 | 1029 | ||
1025 | } | 1030 | } |
1026 | Core.registerMod('identityCard', IdentityCard); | 1031 | Core.registerMod('identityCard', IdentityCard); |
... | @@ -1208,7 +1213,7 @@ | ... | @@ -1208,7 +1213,7 @@ |
1208 | if(Core.Data.is_guest == 1){ | 1213 | if(Core.Data.is_guest == 1){ |
1209 | //游客帐号转正 | 1214 | //游客帐号转正 |
1210 | localStorage.removeItem('guest_n'); | 1215 | localStorage.removeItem('guest_n'); |
1211 | - Core.showTips('升级账号成功!请妥善保管正式账号!', true); | 1216 | + Core.showTips('绑定账号成功!请妥善保管正式账号!', true); |
1212 | delete name_ary[Core.Data.nickname]; | 1217 | delete name_ary[Core.Data.nickname]; |
1213 | localStorage.setItem('user_names', JSON.stringify(name_ary)); | 1218 | localStorage.setItem('user_names', JSON.stringify(name_ary)); |
1214 | }else{ | 1219 | }else{ |
... | @@ -1254,6 +1259,7 @@ | ... | @@ -1254,6 +1259,7 @@ |
1254 | Core.Data.is_guest = msg.is_guest; | 1259 | Core.Data.is_guest = msg.is_guest; |
1255 | Core.Data.username = msg.username; | 1260 | Core.Data.username = msg.username; |
1256 | Core.Data.nickname = msg.nickname; | 1261 | Core.Data.nickname = msg.nickname; |
1262 | + Core.Data.login_key = msg.login_key; | ||
1257 | $("input[name='loginUserName']").val(Core.Data.username); | 1263 | $("input[name='loginUserName']").val(Core.Data.username); |
1258 | $("input[name='loginPassword']").val(Core.user_names[Core.Data.username]); | 1264 | $("input[name='loginPassword']").val(Core.user_names[Core.Data.username]); |
1259 | // 强制更新显示home模块,模块自刷新 | 1265 | // 强制更新显示home模块,模块自刷新 | ... | ... |
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/js/pay.min.js
100644 → 100755
... | @@ -900,6 +900,59 @@ | ... | @@ -900,6 +900,59 @@ |
900 | } | 900 | } |
901 | 901 | ||
902 | Core.registerMod('question_detail', Question_detail); | 902 | Core.registerMod('question_detail', Question_detail); |
903 | + | ||
904 | + //实名认证 | ||
905 | + var IdentityCard = function(modId) { | ||
906 | + Module.call(this, modId); | ||
907 | + } | ||
908 | + // 继承基础模块 | ||
909 | + Core.inherit(IdentityCard, Module); | ||
910 | + IdentityCard.prototype.bind = function() { | ||
911 | + var that = this; | ||
912 | + this.$c.on('click', '.submit', function() { | ||
913 | + var identityCard = that.$c.find("input[name='identity_card']").val(),//身份证 | ||
914 | + compellationName = that.$c.find("input[name='compellation_name']").val(),//姓名 | ||
915 | + compellationNameReg = /^[\u4e00-\u9fa5]{2,10}$/i;//2-10位汉字 | ||
916 | + if($.trim(identityCard) == ""){ | ||
917 | + Core.showTips("请输入身份证号码",false); | ||
918 | + return false; | ||
919 | + }else if(IsIdCard(identityCard) == false){ | ||
920 | + Core.showTips("请输入正确的身份证信息",false); | ||
921 | + return false; | ||
922 | + }else if($.trim(compellationName) == ""){ | ||
923 | + Core.showTips("请输入姓名",false); | ||
924 | + return false; | ||
925 | + }else if(!compellationNameReg.test(compellationName)){ | ||
926 | + Core.showTips("请输入正确的中文姓名",false); | ||
927 | + return false; | ||
928 | + } | ||
929 | + Core.ajax({ | ||
930 | + type:"post", | ||
931 | + url:"/user/bind_identity_card?identity_card="+identityCard+"&compellation_name="+compellationName, | ||
932 | + data:{format:"json"}, | ||
933 | + dataType:"json", | ||
934 | + success:function(res){ | ||
935 | + if(res.code === 0){ | ||
936 | + Core.showTips('认证成功!', true); | ||
937 | + Core.Data.compellation_name = compellationName; | ||
938 | + Core.Data.identity_card = identityCard; | ||
939 | + setTimeout(function() { | ||
940 | + Core.updateMod('channel_list'); | ||
941 | + }, 500); | ||
942 | + }else{ | ||
943 | + Core.showTips(res.msg, true); | ||
944 | + } | ||
945 | + } | ||
946 | + }); | ||
947 | + }); | ||
948 | + } | ||
949 | + IdentityCard.prototype.show_after = function(){ | ||
950 | + if(Core.Data.force_auth == 1){ | ||
951 | + $(".js-return-game").attr("href","javascript:Core.finishLogin()"); | ||
952 | + } | ||
953 | + | ||
954 | + } | ||
955 | + Core.registerMod('identityCard', IdentityCard); | ||
903 | 956 | ||
904 | /** | 957 | /** |
905 | * enter_game_amount 进入sdk的要购买的游戏币 | 958 | * enter_game_amount 进入sdk的要购买的游戏币 |
... | @@ -924,7 +977,15 @@ | ... | @@ -924,7 +977,15 @@ |
924 | //} else | 977 | //} else |
925 | //if (Core.Data.enter_game_amount > 0) { | 978 | //if (Core.Data.enter_game_amount > 0) { |
926 | // 需要进入渠道充值页面 | 979 | // 需要进入渠道充值页面 |
927 | - Core.start_page = "channel_list"; | 980 | + if(Core.Data.identity_card == ""){ |
981 | + //游客登录则先让其实名验证 | ||
982 | + Core.start_page = "identityCard"; | ||
983 | + }else{ | ||
984 | + //正式用户直接跳到充值界面 | ||
985 | + Core.start_page = "channel_list"; | ||
986 | + } | ||
987 | + | ||
988 | + | ||
928 | Core.Data.game_amount = Core.Data.enter_game_amount; | 989 | Core.Data.game_amount = Core.Data.enter_game_amount; |
929 | Core.Data.youai_star = Core.Data.enter_amount; | 990 | Core.Data.youai_star = Core.Data.enter_amount; |
930 | Core.Data.money = Core.Data.youai_star / Core.Data.rate; | 991 | Core.Data.money = Core.Data.youai_star / Core.Data.rate; |
... | @@ -933,7 +994,7 @@ | ... | @@ -933,7 +994,7 @@ |
933 | //} | 994 | //} |
934 | } | 995 | } |
935 | 996 | ||
936 | -function onBridgeReady() { | 997 | + function onBridgeReady() { |
937 | var mainImgUrl = Core.Data.game_icon; | 998 | var mainImgUrl = Core.Data.game_icon; |
938 | var mainURL = Core.Data.invite_url;//'http://www.9133.com/game/' + Core.Data.app_id + '.html'; | 999 | var mainURL = Core.Data.invite_url;//'http://www.9133.com/game/' + Core.Data.app_id + '.html'; |
939 | var mainTitle= '一起玩' + Core.Data.game_name; | 1000 | var mainTitle= '一起玩' + Core.Data.game_name; | ... | ... |
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/js/select2.min.js
100644 → 100755
File mode changed
File mode changed
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/js/zepto.min.js
100644 → 100755
File mode changed
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/login.html
100644 → 100755
... | @@ -13,7 +13,6 @@ | ... | @@ -13,7 +13,6 @@ |
13 | <link href="skin/login.css?v=2016" type="text/css" rel="stylesheet" /> | 13 | <link href="skin/login.css?v=2016" type="text/css" rel="stylesheet" /> |
14 | <link id="skin" data-v="20150923001" type="text/css" rel="stylesheet" /> | 14 | <link id="skin" data-v="20150923001" type="text/css" rel="stylesheet" /> |
15 | 15 | ||
16 | - | ||
17 | <title> | 16 | <title> |
18 | 平台登录 | 17 | 平台登录 |
19 | </title> | 18 | </title> |
... | @@ -38,7 +37,9 @@ | ... | @@ -38,7 +37,9 @@ |
38 | <div class="new-container-box"> | 37 | <div class="new-container-box"> |
39 | <div class="SDK-titlebox"></div> | 38 | <div class="SDK-titlebox"></div> |
40 | <form action="/sdk/login" method="post" class="ajax align-left clearfix"> | 39 | <form action="/sdk/login" method="post" class="ajax align-left clearfix"> |
41 | - <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | 40 | + <div class="new-sdk-logo"><a href="#"> |
41 | + <!--<img src="images/new-sdk-logo.png">--> | ||
42 | + </a></div> | ||
42 | <div class="new-sdk-main"> | 43 | <div class="new-sdk-main"> |
43 | <div class="inputbox clearfix" style="position: relative;"> | 44 | <div class="inputbox clearfix" style="position: relative;"> |
44 | <div class="ileft">账号:</div> | 45 | <div class="ileft">账号:</div> |
... | @@ -61,7 +62,7 @@ | ... | @@ -61,7 +62,7 @@ |
61 | </div> | 62 | </div> |
62 | <div class="other-login clearfix"> | 63 | <div class="other-login clearfix"> |
63 | <p class="other-login-bx hide">第三方登录 | 64 | <p class="other-login-bx hide">第三方登录 |
64 | - <a title="新浪微博帐号登录" data-replace="href" href="/user/auth2/sina/login/?next=/static/sdk/login.html&app_id={app_id}" class="sina hide"> | 65 | + <a title="新浪微博账号登录" data-replace="href" href="/user/auth2/sina/login/?next=/static/sdk/login.html&app_id={app_id}" class="sina hide"> |
65 | <i class=" iconfont icon-unie61d"></i> | 66 | <i class=" iconfont icon-unie61d"></i> |
66 | </a> | 67 | </a> |
67 | 68 | ||
... | @@ -77,7 +78,7 @@ | ... | @@ -77,7 +78,7 @@ |
77 | 78 | ||
78 | <label onclick="" class="input-control pull-left hide" > | 79 | <label onclick="" class="input-control pull-left hide" > |
79 | <input type="checkbox" checked="checked" class="eg" ></input> | 80 | <input type="checkbox" checked="checked" class="eg" ></input> |
80 | - 进入帐号管理界面 | 81 | + 进入账号管理界面 |
81 | </label> | 82 | </label> |
82 | </div> | 83 | </div> |
83 | </div> | 84 | </div> |
... | @@ -103,12 +104,14 @@ | ... | @@ -103,12 +104,14 @@ |
103 | <div class="new-sdk-container"> | 104 | <div class="new-sdk-container"> |
104 | <div class="new-container-box"> | 105 | <div class="new-container-box"> |
105 | <div class="SDK-titlebox"></div> | 106 | <div class="SDK-titlebox"></div> |
106 | - <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | 107 | + <div class="new-sdk-logo"><a href="#"> |
108 | + <!--<img src="images/new-sdk-logo.png">--> | ||
109 | + </a></div> | ||
107 | <div class="login-third-list"> | 110 | <div class="login-third-list"> |
108 | <div class="title">请选择快速登录</div> | 111 | <div class="title">请选择快速登录</div> |
109 | <div class="third-list"> | 112 | <div class="third-list"> |
110 | <ul> | 113 | <ul> |
111 | - <li class="login_case_qq"><a title="QQ帐号登录" class="qq qq iframe" data-replace="href" href="/user/auth2/qq/login/?next=/sdk/login?app_id={app_id}"><div class="third-icon third-qq"></div><p>QQ登陆</p></a></li> | 114 | + <li class="login_case_qq"><a title="QQ账号登录" class="qq qq iframe" data-replace="href" href="/user/auth2/qq/login/?next=/sdk/login?app_id={app_id}"><div class="third-icon third-qq"></div><p>QQ登陆</p></a></li> |
112 | <li><a href="#register"><div class="third-icon third-guest"></div><p>游客登录</p></a></li> | 115 | <li><a href="#register"><div class="third-icon third-guest"></div><p>游客登录</p></a></li> |
113 | <div class="clear"></div> | 116 | <div class="clear"></div> |
114 | </ul> | 117 | </ul> |
... | @@ -128,13 +131,15 @@ | ... | @@ -128,13 +131,15 @@ |
128 | 131 | ||
129 | <div class="new-sdk-container"> | 132 | <div class="new-sdk-container"> |
130 | <div class="SDK-titlebox"></div> | 133 | <div class="SDK-titlebox"></div> |
131 | - <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | 134 | + <div class="new-sdk-logo"><a href="#"> |
135 | + <!--<img src="images/new-sdk-logo.png">--> | ||
136 | + </a></div> | ||
132 | <form action="/sdk/register" class="ajax clearfix"> | 137 | <form action="/sdk/register" class="ajax clearfix"> |
133 | <div class="new-sdk-main"> | 138 | <div class="new-sdk-main"> |
134 | <div class="inputbox clearfix"> | 139 | <div class="inputbox clearfix"> |
135 | <div class="ileft">账号:</div> | 140 | <div class="ileft">账号:</div> |
136 | <div class="iright"> | 141 | <div class="iright"> |
137 | - <input type="text" name="username" placeholder="帐号由3-18个英文、数字、点、减号、下划线组成" required> | 142 | + <input type="text" name="username" placeholder="账号由3-18个英文、数字、点、减号、下划线组成" required> |
138 | <!--<div class="bottom-icon drop-down"> | 143 | <!--<div class="bottom-icon drop-down"> |
139 | <i class="iconfont icon-xiangxia"></i> | 144 | <i class="iconfont icon-xiangxia"></i> |
140 | </div>--> | 145 | </div>--> |
... | @@ -169,7 +174,9 @@ | ... | @@ -169,7 +174,9 @@ |
169 | <section id="agreement" class="hide"> | 174 | <section id="agreement" class="hide"> |
170 | <div class="new-sdk-container"> | 175 | <div class="new-sdk-container"> |
171 | <div class="SDK-titlebox"></div> | 176 | <div class="SDK-titlebox"></div> |
172 | - <div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div> | 177 | + <div class="new-sdk-logo"><a href="#"> |
178 | + <!--<img src="images/new-sdk-logo.png">--> | ||
179 | + </a></div> | ||
173 | <div class="new-sdk-content" style="overflow: hidden;"> | 180 | <div class="new-sdk-content" style="overflow: hidden;"> |
174 | <h3>海豹游戏服务协议</h3> | 181 | <h3>海豹游戏服务协议</h3> |
175 | <div class="content-main" style="height: 220px;"> | 182 | <div class="content-main" style="height: 220px;"> |
... | @@ -388,7 +395,9 @@ | ... | @@ -388,7 +395,9 @@ |
388 | <div class="new-sdk-container"> | 395 | <div class="new-sdk-container"> |
389 | <div class="SDK-titlebox"></div> | 396 | <div class="SDK-titlebox"></div> |
390 | <div class="new-sdk-logo" style="position: relative; margin-bottom: 25px;"> | 397 | <div class="new-sdk-logo" style="position: relative; margin-bottom: 25px;"> |
391 | - <a href="#"><img src="images/new-sdk-logo.png"></a> | 398 | + <a href="#"> |
399 | + <!--<img src="images/new-sdk-logo.png">--> | ||
400 | + </a> | ||
392 | <a href="#login" class="lefticon" style="position: absolute; left: 37px; top: 20px;"> | 401 | <a href="#login" class="lefticon" style="position: absolute; left: 37px; top: 20px;"> |
393 | <i class="iconfont icon-fanhui"></i> | 402 | <i class="iconfont icon-fanhui"></i> |
394 | </a> | 403 | </a> |
... | @@ -419,22 +428,24 @@ | ... | @@ -419,22 +428,24 @@ |
419 | <p>{{=Core.Data.nickname}}</p> | 428 | <p>{{=Core.Data.nickname}}</p> |
420 | </div> | 429 | </div> |
421 | <div class="inline-btn pull-right w_45"> | 430 | <div class="inline-btn pull-right w_45"> |
422 | - {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}} | 431 | + {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}} |
423 | <a href="#identityCard" class="btn btn-orange js-enter-game">进入游戏</a> | 432 | <a href="#identityCard" class="btn btn-orange js-enter-game">进入游戏</a> |
424 | {{??}} | 433 | {{??}} |
425 | <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | 434 | <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> |
426 | - {{?}} | 435 | + {{?}} |
427 | </div> | 436 | </div> |
428 | </div> | 437 | </div> |
429 | <div class="bind-user"> | 438 | <div class="bind-user"> |
430 | <div class="w_50 txt" style="display: inline-block; vertical-align: middle;"> | 439 | <div class="w_50 txt" style="display: inline-block; vertical-align: middle;"> |
431 | - 您当前还是游客,为保证账号安全,请升级账号! | 440 | + 您当前还是游客,为保证账号安全,请绑定账号! |
432 | </div> | 441 | </div> |
433 | <div class="inline-btn w_45" style="display: inline-block; vertical-align: ;"> | 442 | <div class="inline-btn w_45" style="display: inline-block; vertical-align: ;"> |
434 | - <a class="btn btn-bind" href="#modify_pwd">马上升级</a> | 443 | + <a class="btn btn-bind" href="#modify_pwd">绑定账号</a> |
435 | </div> | 444 | </div> |
436 | </div> | 445 | </div> |
446 | + {{? Core.Data.kefu_info != ""}} | ||
437 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> | 447 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> |
448 | + {{?}} | ||
438 | </div> | 449 | </div> |
439 | {{?? Core.Data.is_guest == 2}}<!--1:游客登录;2:第三方登录;0:正式用户登录--> | 450 | {{?? Core.Data.is_guest == 2}}<!--1:游客登录;2:第三方登录;0:正式用户登录--> |
440 | <div class="user-center-box"> | 451 | <div class="user-center-box"> |
... | @@ -444,11 +455,11 @@ | ... | @@ -444,11 +455,11 @@ |
444 | <p>{{=Core.Data.nickname}}</p> | 455 | <p>{{=Core.Data.nickname}}</p> |
445 | </div> | 456 | </div> |
446 | <div class="inline-btn pull-right w_45"> | 457 | <div class="inline-btn pull-right w_45"> |
447 | - {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}} | 458 | + {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}} |
448 | <a href="#identityCard" class="btn btn-orange js-enter-game">进入游戏</a> | 459 | <a href="#identityCard" class="btn btn-orange js-enter-game">进入游戏</a> |
449 | {{??}} | 460 | {{??}} |
450 | <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | 461 | <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> |
451 | - {{?}} | 462 | + {{?}} |
452 | </div> | 463 | </div> |
453 | </div> | 464 | </div> |
454 | {{? Core.Data.bind_phone === ""}} | 465 | {{? Core.Data.bind_phone === ""}} |
... | @@ -466,8 +477,10 @@ | ... | @@ -466,8 +477,10 @@ |
466 | <li style="width:50%;"><a href="#modify_pwd">修改密码</a></li> | 477 | <li style="width:50%;"><a href="#modify_pwd">修改密码</a></li> |
467 | <li style="width:50%;"><a href="#identityCard">实名认证</a></li> | 478 | <li style="width:50%;"><a href="#identityCard">实名认证</a></li> |
468 | </ul> | 479 | </ul> |
480 | + {{? Core.Data.kefu_info != ""}} | ||
469 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> | 481 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> |
470 | {{?}} | 482 | {{?}} |
483 | + {{?}} | ||
471 | </div> | 484 | </div> |
472 | {{?? Core.Data.is_guest == 0}} | 485 | {{?? Core.Data.is_guest == 0}} |
473 | <div class="user-center-box"> | 486 | <div class="user-center-box"> |
... | @@ -477,7 +490,7 @@ | ... | @@ -477,7 +490,7 @@ |
477 | <p>{{=Core.Data.nickname}}</p> | 490 | <p>{{=Core.Data.nickname}}</p> |
478 | </div> | 491 | </div> |
479 | <div class="inline-btn pull-right w_45"> | 492 | <div class="inline-btn pull-right w_45"> |
480 | - {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}} | 493 | + {{? Core.Data.force_auth == 1 && Core.Data.compellation_name == "" && Core.Data.identity_card == ""}} |
481 | <a href="#identityCard" class="btn btn-orange js-enter-game">进入游戏</a> | 494 | <a href="#identityCard" class="btn btn-orange js-enter-game">进入游戏</a> |
482 | {{??}} | 495 | {{??}} |
483 | <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> | 496 | <a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a> |
... | @@ -504,7 +517,9 @@ | ... | @@ -504,7 +517,9 @@ |
504 | </a></li> | 517 | </a></li> |
505 | {{?}} | 518 | {{?}} |
506 | </ul> | 519 | </ul> |
520 | + {{? Core.Data.kefu_info != ""}} | ||
507 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> | 521 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> |
522 | + {{?}} | ||
508 | {{??}} | 523 | {{??}} |
509 | {{? Core.Data.bind_phone === ""}} | 524 | {{? Core.Data.bind_phone === ""}} |
510 | <ul class="list-item clearfix"> | 525 | <ul class="list-item clearfix"> |
... | @@ -512,7 +527,9 @@ | ... | @@ -512,7 +527,9 @@ |
512 | <li><a href="#mibao">设置密保</a></li> | 527 | <li><a href="#mibao">设置密保</a></li> |
513 | <li><a href="#modify_pwd">修改密码</a></li> | 528 | <li><a href="#modify_pwd">修改密码</a></li> |
514 | </ul> | 529 | </ul> |
530 | + {{? Core.Data.kefu_info != ""}} | ||
515 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 1em;left:0;">{{=Core.Data.kefu_info[0]}}</p> | 531 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 1em;left:0;">{{=Core.Data.kefu_info[0]}}</p> |
532 | + {{?}} | ||
516 | {{??}} | 533 | {{??}} |
517 | <ul class="list-item clearfix"> | 534 | <ul class="list-item clearfix"> |
518 | <li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li> | 535 | <li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li> |
... | @@ -528,8 +545,10 @@ | ... | @@ -528,8 +545,10 @@ |
528 | </a></li> | 545 | </a></li> |
529 | {{?}} | 546 | {{?}} |
530 | </ul> | 547 | </ul> |
548 | + {{? Core.Data.kefu_info != ""}} | ||
531 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> | 549 | <p style="text-align: center;font-size: 20px; color: #ff0000; position: absolute; width: 100%; bottom: 10px;left:0;">{{=Core.Data.kefu_info[0]}}</p> |
532 | {{?}} | 550 | {{?}} |
551 | + {{?}} | ||
533 | {{?}} | 552 | {{?}} |
534 | <!--<ul class="list-item clearfix"> | 553 | <!--<ul class="list-item clearfix"> |
535 | {{? Core.Data.bind_phone === ""}} | 554 | {{? Core.Data.bind_phone === ""}} |
... | @@ -634,15 +653,13 @@ | ... | @@ -634,15 +653,13 @@ |
634 | </div> | 653 | </div> |
635 | </script> | 654 | </script> |
636 | <script id="modify_pwd_template" type="text/x-jquery-tmpl"> | 655 | <script id="modify_pwd_template" type="text/x-jquery-tmpl"> |
637 | - | ||
638 | - | ||
639 | <div class="new-sdk-container"> | 656 | <div class="new-sdk-container"> |
640 | <div class="SDK-titlebox"></div> | 657 | <div class="SDK-titlebox"></div> |
641 | <div class="user-center"> | 658 | <div class="user-center"> |
642 | <a href="#home" class="lefticon"> | 659 | <a href="#home" class="lefticon"> |
643 | <i class="iconfont icon-fanhui"></i> | 660 | <i class="iconfont icon-fanhui"></i> |
644 | </a> | 661 | </a> |
645 | - {{? Core.Data.is_guest == 1}}升级账号{{??}}修改密码{{?}} | 662 | + {{? Core.Data.is_guest == 1}}绑定账号{{??}}修改密码{{?}} |
646 | </div> | 663 | </div> |
647 | <form action="/sdk/change_password" mthod="post" class="ajax " todo="modify_pwd_callback" > | 664 | <form action="/sdk/change_password" mthod="post" class="ajax " todo="modify_pwd_callback" > |
648 | <div class="new-sdk-box"> | 665 | <div class="new-sdk-box"> |
... | @@ -662,7 +679,7 @@ | ... | @@ -662,7 +679,7 @@ |
662 | 679 | ||
663 | </label> | 680 | </label> |
664 | </div> | 681 | </div> |
665 | - {{? Core.Data.is_guest == 1}}<p>升级账号成功之后,<span class="red">游客账号作废</span>,请妥善保管正式账号</p>{{??}}{{?}} | 682 | + {{? Core.Data.is_guest == 1}}<p>绑定账号成功之后,<span class="red">游客账号作废</span>,请妥善保管正式账号</p>{{??}}{{?}} |
666 | 683 | ||
667 | </div> | 684 | </div> |
668 | 685 | ||
... | @@ -681,16 +698,18 @@ | ... | @@ -681,16 +698,18 @@ |
681 | <div class="new-sdk-container"> | 698 | <div class="new-sdk-container"> |
682 | <div class="SDK-titlebox"></div> | 699 | <div class="SDK-titlebox"></div> |
683 | <div class="user-center"> | 700 | <div class="user-center"> |
684 | - <a href="#home" class="lefticon"> | 701 | + <a href="#home" class="lefticon js-return-game"> |
685 | <i class="iconfont icon-fanhui"></i> | 702 | <i class="iconfont icon-fanhui"></i> |
686 | </a> | 703 | </a> |
704 | + | ||
687 | 实名认证 | 705 | 实名认证 |
688 | </div> | 706 | </div> |
689 | <form action="/user/bind_identity_card" method="post" class="ajax" onkeydown="if(event.keyCode==13) return false;" > | 707 | <form action="/user/bind_identity_card" method="post" class="ajax" onkeydown="if(event.keyCode==13) return false;" > |
690 | <div class="new-sdk-box"> | 708 | <div class="new-sdk-box"> |
691 | - <div class="input" style="padding:0 25px;"><input type="text" name="identity_card" required placeholder="请输入注册身份证号码" style="text-align: left;"></div> | 709 | + <div class="input" style="padding:0 25px;"><input type="text" name="identity_card" required placeholder="请输入身份证号码" style="text-align: left;"></div> |
692 | <div class="input" style="padding:0 25px;"><input type="text" name="compellation_name" required placeholder="请输入姓名" style="text-align: left;"></div> | 710 | <div class="input" style="padding:0 25px;"><input type="text" name="compellation_name" required placeholder="请输入姓名" style="text-align: left;"></div> |
693 | - </div> | 711 | + <p style="font-size: 24px; text-indent: 1em; color: #999;text-align: left;">根据国家规定,为了保障您的权益,请登记本人实名信息</p> |
712 | + </div> | ||
694 | <ul class="inline-btn"> | 713 | <ul class="inline-btn"> |
695 | <li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">提交</a></li> | 714 | <li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">提交</a></li> |
696 | </ul> | 715 | </ul> |
... | @@ -1040,7 +1059,8 @@ FastClick.attach(document.body); | ... | @@ -1040,7 +1059,8 @@ FastClick.attach(document.body); |
1040 | <script type="text/javascript" src="js/login.min.js?2016111" ></script> | 1059 | <script type="text/javascript" src="js/login.min.js?2016111" ></script> |
1041 | <script type="text/javascript" src="js/loader.min.js?20150923001"></script> | 1060 | <script type="text/javascript" src="js/loader.min.js?20150923001"></script> |
1042 | <script type="text/javascript" src="js/simpScroller-min.js"></script> | 1061 | <script type="text/javascript" src="js/simpScroller-min.js"></script> |
1043 | -<script type="text/javascript" src="js/identity_id.js" ></script> | 1062 | +<!--身份证号码验证:2.0为没有限制年龄--> |
1063 | +<script type="text/javascript" src="js/identity_id_2.0.js" ></script> | ||
1044 | <script type="text/javascript"> | 1064 | <script type="text/javascript"> |
1045 | window.onload = window.onresize = initMatching; | 1065 | window.onload = window.onresize = initMatching; |
1046 | (function(){ | 1066 | (function(){ | ... | ... |
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/makefile.js
100644 → 100755
File mode changed
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/pay.html
100644 → 100755
... | @@ -34,6 +34,10 @@ | ... | @@ -34,6 +34,10 @@ |
34 | <!-- 首页模块 --> | 34 | <!-- 首页模块 --> |
35 | <section id="home" class="hide" data-attr="dot" data-auth="1"></section> | 35 | <section id="home" class="hide" data-attr="dot" data-auth="1"></section> |
36 | <!-- end --> | 36 | <!-- end --> |
37 | +<!--实名验证模块--> | ||
38 | +<section id="identityCard" class="hide" data-attr="dot"> | ||
39 | +</section> | ||
40 | +<!--end--> | ||
37 | <!-- 兑换元宝列表模块 --> | 41 | <!-- 兑换元宝列表模块 --> |
38 | <section id="exchange" class="hide" data-attr="dot" data-auth="1"></section> | 42 | <section id="exchange" class="hide" data-attr="dot" data-auth="1"></section> |
39 | <!-- end --> | 43 | <!-- end --> |
... | @@ -185,7 +189,27 @@ | ... | @@ -185,7 +189,27 @@ |
185 | </div> | 189 | </div> |
186 | </div> | 190 | </div> |
187 | </script> | 191 | </script> |
188 | - | 192 | +<script id="identityCard_template" type="text/x-jquery-tmpl" > |
193 | + <div class="new-sdk-container"> | ||
194 | + <div class="SDK-titlebox"></div> | ||
195 | + <div class="user-center"> | ||
196 | + <a href="#channel_list" class="lefticon js-return-game"> | ||
197 | + <i class="iconfont icon-fanhui"></i> | ||
198 | + </a> | ||
199 | + 实名认证 | ||
200 | + </div> | ||
201 | + <form action="/user/bind_identity_card" method="post" class="ajax" onkeydown="if(event.keyCode==13) return false;" > | ||
202 | + <div class="new-sdk-box"> | ||
203 | + <div class="input" style="padding:0 25px;"><input type="text" name="identity_card" required placeholder="请输入身份证号码" style="text-align: left;"></div> | ||
204 | + <div class="input" style="padding:0 25px;"><input type="text" name="compellation_name" required placeholder="请输入姓名" style="text-align: left;"></div> | ||
205 | + <p style="font-size: 24px; text-indent: 1em; color: #999;text-align: left;">根据国家规定,为了保障您的权益,请登记本人实名信息</p> | ||
206 | + </div> | ||
207 | + <ul class="inline-btn"> | ||
208 | + <li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">提交</a></li> | ||
209 | + </ul> | ||
210 | + </form> | ||
211 | + </div> | ||
212 | +</script> | ||
189 | <script id='modify_pwd_template' type='text/x-jquery-tmpl'> | 213 | <script id='modify_pwd_template' type='text/x-jquery-tmpl'> |
190 | <div class="header"> | 214 | <div class="header"> |
191 | <a class="iconfont icon-iconfontxiangyou poslft" href="##home"></a> | 215 | <a class="iconfont icon-iconfontxiangyou poslft" href="##home"></a> |
... | @@ -784,7 +808,8 @@ FastClick.attach(document.body); | ... | @@ -784,7 +808,8 @@ FastClick.attach(document.body); |
784 | <script type="text/javascript" src="js/core.min.js?201504218002" ></script> | 808 | <script type="text/javascript" src="js/core.min.js?201504218002" ></script> |
785 | <script type="text/javascript" src="js/pay.min.js?201504218001" ></script> | 809 | <script type="text/javascript" src="js/pay.min.js?201504218001" ></script> |
786 | <script type="text/javascript" src="js/loader.min.js?201504218001"></script> | 810 | <script type="text/javascript" src="js/loader.min.js?201504218001"></script> |
787 | - | 811 | +<!--身份证号码验证:2.0为没有限制年龄--> |
812 | +<script type="text/javascript" src="js/identity_id_2.0.js" ></script> | ||
788 | <script type="text/javascript"> | 813 | <script type="text/javascript"> |
789 | (function(){ | 814 | (function(){ |
790 | getData('/sdk/pay/json'); | 815 | getData('/sdk/pay/json'); | ... | ... |
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/readyme.txt
100644 → 100755
File mode changed
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/share.html
100644 → 100755
File mode changed
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/skin/login.css
100644 → 100755
... | @@ -23,6 +23,7 @@ section{ | ... | @@ -23,6 +23,7 @@ section{ |
23 | a,input,textarea,select { | 23 | a,input,textarea,select { |
24 | outline: 0; | 24 | outline: 0; |
25 | } | 25 | } |
26 | +input[type=button],input[type=text],input[type=password]{-webkit-appearance:none;outline:none} | ||
26 | a:focus { | 27 | a:focus { |
27 | outline:thin dotted; /* 处理“outline”在Chrome浏览器中和其它浏览器之间的不一致 */ | 28 | outline:thin dotted; /* 处理“outline”在Chrome浏览器中和其它浏览器之间的不一致 */ |
28 | } | 29 | } | ... | ... |
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/skin/pay.css
100644 → 100755
... | @@ -1324,4 +1324,117 @@ input:-ms-input-placeholder, textarea:-ms-input-placeholder { | ... | @@ -1324,4 +1324,117 @@ input:-ms-input-placeholder, textarea:-ms-input-placeholder { |
1324 | input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill { | 1324 | input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill { |
1325 | background-color: rgb(255, 255, 255) !important; | 1325 | background-color: rgb(255, 255, 255) !important; |
1326 | box-shadow: 0 0 0px 1000px white inset !important; | 1326 | box-shadow: 0 0 0px 1000px white inset !important; |
1327 | +} | ||
1328 | +/**------实名验证--------*/ | ||
1329 | + | ||
1330 | +.SDK-titlebox{ | ||
1331 | + height: 33px; | ||
1332 | + background: #00beef; | ||
1333 | +} | ||
1334 | +.user-center{ | ||
1335 | + position: relative; | ||
1336 | + text-align: center; | ||
1337 | + padding: 26px 0 18px; | ||
1338 | + border-bottom: 2px solid #fff; | ||
1339 | + color: #00beef; | ||
1340 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
1341 | + font-size: 36px; | ||
1342 | +} | ||
1343 | +.new-sdk-container .new-sdk-box { | ||
1344 | + padding: 20px 37px; | ||
1345 | + border-top: 1px solid #c4c3c3; | ||
1346 | + box-sizing: border-box; | ||
1347 | + -moz-box-sizing: border-box; | ||
1348 | + -webkit-box-sizing: border-box; | ||
1349 | +} | ||
1350 | +.new-sdk-container .new-sdk-box .input { | ||
1351 | + margin-bottom: 15px; | ||
1352 | + border: 1px solid #c0c0c0; | ||
1353 | + /* box-shadow: 1px 2px 2px #c2c2c2 inset; */ | ||
1354 | + border-radius: 10px; | ||
1355 | + -moz-border-radius: 10px; | ||
1356 | + -webkit-border-radius: 10px; | ||
1357 | + padding: 25px 0; | ||
1358 | + background: #fff; | ||
1359 | + box-sizing: border-box; | ||
1360 | + -webkit-box-sizing: border-box; | ||
1361 | + -moz-box-sizing: border-box; | ||
1362 | +} | ||
1363 | +.new-sdk-container .new-sdk-box .input input { | ||
1364 | + display: inline-block; | ||
1365 | + width: 100%; | ||
1366 | + background: none; | ||
1367 | + border: none; | ||
1368 | + color: #000; | ||
1369 | + font-size: 30px; | ||
1370 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
1371 | + white-space: nowrap; | ||
1372 | + text-overflow: ellipsis; | ||
1373 | + overflow: hidden; | ||
1374 | + word-break: break-all; | ||
1375 | + height: 45px; | ||
1376 | + line-height: 45px; | ||
1377 | + vertical-align: middle; | ||
1378 | + margin: 20px 0; | ||
1379 | + box-shadow: none; | ||
1380 | +} | ||
1381 | +ol, ul { | ||
1382 | + list-style: none; | ||
1383 | +} | ||
1384 | +.new-sdk-container .inline-btn { | ||
1385 | + overflow: auto; | ||
1386 | + zoom: 1; | ||
1387 | + width: 88%; | ||
1388 | + margin: 0px auto 25px auto; | ||
1389 | +} | ||
1390 | +.new-sdk-container .inline-btn li { | ||
1391 | + float: left; | ||
1392 | + width: 45%; | ||
1393 | + text-align: center; | ||
1394 | + background: #ff9600; | ||
1395 | + border-radius: 20px; | ||
1396 | + padding: 26px 0; | ||
1397 | +} | ||
1398 | +.new-sdk-container .inline-btn .btn { | ||
1399 | + display: inline-block; | ||
1400 | + border: 0; | ||
1401 | + background: #00beef; | ||
1402 | + color: #fff; | ||
1403 | + font-size: 30px; | ||
1404 | + font-family: "Microsoft YaHei","微软雅黑"; | ||
1405 | + letter-spacing: 2px; | ||
1406 | + cursor: pointer; | ||
1407 | + width: 100%; | ||
1408 | + vertical-align: middle; | ||
1409 | + border-radius: 20px; | ||
1410 | + -moz-border-radius: 20px; | ||
1411 | + -webkit-border-radius: 20px; | ||
1412 | +} | ||
1413 | +.new-sdk-container .inline-btn .btn-orange { | ||
1414 | + background: #ff9600; | ||
1415 | +} | ||
1416 | +/*字体图标*/ | ||
1417 | +@font-face {font-family: "iconfont"; | ||
1418 | + src: url('../font/iconfont.eot?t=1468997064'); /* IE9*/ | ||
1419 | + src: url('../font/iconfont.eot?t=1468997064#iefix') format('embedded-opentype'), /* IE6-IE8 */ | ||
1420 | + url('../font/iconfont.woff?t=1468997064') format('woff'), /* chrome, firefox */ | ||
1421 | + url('../font/iconfont.ttf?t=1468997064') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ | ||
1422 | + url('../font/iconfont.svg?t=1468997064#iconfont') format('svg'); /* iOS 4.1- */ | ||
1423 | +} | ||
1424 | +.iconfont { | ||
1425 | + font-family:"iconfont" !important; | ||
1426 | + font-size:16px; | ||
1427 | + font-style:normal; | ||
1428 | + -webkit-font-smoothing: antialiased; | ||
1429 | + -webkit-text-stroke-width: 0.2px; | ||
1430 | + -moz-osx-font-smoothing: grayscale; | ||
1431 | +} | ||
1432 | +.icon-fanhui:before { content: "\e610"; color: #00beef; font-size: 36px;} | ||
1433 | +.user-center a { | ||
1434 | + position: absolute; | ||
1435 | + left: 37px; | ||
1436 | + bottom: 7px; | ||
1437 | + color: #ff9600; | ||
1438 | + font-size: 24px; | ||
1439 | + padding: 10px; | ||
1327 | } | 1440 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/skin/sdk.manifest
100644 → 100755
File mode changed
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/uglifyjs_sqwish.sh
100644 → 100755
publicAndroidSDK/demo/Demo_PoolSdk/assets/sdk/version.txt
100644 → 100755
... | @@ -11,4 +11,4 @@ | ... | @@ -11,4 +11,4 @@ |
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt | 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt |
12 | 12 | ||
13 | # Project target. | 13 | # Project target. |
14 | -target=android-19 | 14 | +target=android-20 | ... | ... |
-
Please register or login to post a comment