xuguohong

更新目录为sys..

Showing 35 changed files with 973 additions and 329 deletions
......@@ -2,13 +2,13 @@
<config>
<sdkconfig
YA_APPID="58abba4954c21d1275766755"
YA_APPKEY="28ed3cfdcd40d081a5e8dd761f7e344b"
YA_APPID="58db653e0184553d610527d6"
YA_APPKEY="28e614d62b8d4e74757cbf3e15ce5596"
channelparameter1=""
channelparameter2=""
custom=""
gamechannelid=""
gamesimplename="fytx_test"
gamesimplename="qyj1"
logincheckurl="http://login.public.sdk.gzyouai.com/logincheck/check"
paycheckurl="http://pay.public.sdk.gzyouai.com/paycheck/confirm"
payorderurl="http://pay.public.sdk.gzyouai.com/paycheck/create"
......
......@@ -2,7 +2,7 @@
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="viewport" content="width=device-width, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
......@@ -10,22 +10,20 @@
<meta name="screen-orientation" content="portrait">
<meta name="full-screen" content="yes">
<meta http-equiv="x-ua-compatible" content="IE=edge" />
<link href="skin/login.css?v=20150923001" type="text/css" rel="stylesheet" />
<title>
手游平台支付
</title>
<style>
h4,p{font-size: 24px;
font-weight: normal;
padding: 0 20px;font-family: "微软雅黑"; width: 100%;}
p{ text-indent: 2em;}
</style>
</head>
<body>
<!-- 协议模块 -->
<section id="agreement">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div>
<div class="new-sdk-content">
<h3>网络服务协议</h3>
<div class="content-main">
<div class="mask"></div>
<div class="horizontal" style="height: 220px;">
<h4>1. 账号服务条款的接受</h4>
<p>1.1 账号由上海星玩网络科技(以下简称“星玩”)及其关联公司所有并合法运营,星玩及其关联公司并在本用户服务协议的条款和要求下提供服务。</p>
<p>1.2 当用户访问、浏览及使用账号提供的各项服务、业务时,用户便表明其接受了本服务协议的条款,并同意受本服务协议的约束,用户并保证其提交的信息真实、准确、及时和完整;若用户不同意本协议条款的,请停止注册程序。</p>
......@@ -183,20 +181,6 @@
<h4>21. 生效条件</h4>
<p>本协议自用户访问、浏览及使用账号之时开始生效。</p>
</div>
</div>
<div class="only-btn inline-btn">
<a href="login.html#register" class="submit btn-orange">确定</a>
<div class="agreement l" style="margin-right: 0;">
<div class="checkbox checkbox-2 l" >
<i class="iconfont icon-xuanzhong"></i>
</div>
<p class="l">已阅读</p>
</div>
</div>
</div>
</section>
<!-- end -->
<script type="text/javascript" src="js/fastclick.min.1.0.js?20150923001"></script>
<script type="text/javascript" src="js/zepto.min.js?20150923001"></script>
......@@ -208,6 +192,10 @@
});
</script>
<script type="text/javascript" src="js/core.min.js?20150923001" ></script>
<script type="text/javascript" src="js/simpScroller-min.js"></script>
<script>
simpScroller(document.querySelector(".horizontal"), {});
</script>
</body>
</html>
\ No newline at end of file
......
......@@ -88,9 +88,14 @@ function initMatching(){
if (!Core.sdk_w) Core.sdk_w = 600;
_scale = 1;
if (ratio > 1.5){
_scale = 2.3 / ratio;
} else if (ratio < 1) {
if(ratio == 2){//5、6、6s(2.4)
_scale = 2.4 / ratio;
if(userAgent.indexOf('iPad') != -1){
_scale = 2 / ratio;
}
}else if(ratio >2.5){//6s plus
_scale = 2.7 / ratio;
}else if (ratio < 1) {
_scale = 1.5 / ratio;
} else {
_scale = 1;
......@@ -105,7 +110,6 @@ function initMatching(){
Core.ios_w = _w;
$('meta[name="viewport"]').attr('content','width=' + _w + ',maximum-scale=' + _scale + ',user-scalable=no');
//$('<meta name="viewport" content="maximum-scale=' + _scale + '"/>').appendTo(_head);
//$('<meta name="viewport" content="width=' + _w + '"/>').appendTo(_head);
......@@ -141,7 +145,8 @@ function initMatching(){
Core.PLATFORM_NAME = '星玩';
Core.server = 'http://sdk.shxingwan.com';
Core.server = 'https://sdk.shxingwan.com';
var lastServer = localStorage.getItem('last_server');
if(lastServer && lastServer.indexOf('http:')==0){
if(Core.isFile){
......@@ -191,11 +196,10 @@ function initMatching(){
var _w = null;
if (Core.isIos) {
$('html').attr('data-useragent', 'ios');
if (!Core.sdk_w) Core.sdk_w = 600;
_scale = 1;
if (ratio > 1.5){
_scale = 2 / ratio;
if (ratio > 1.5){//6s plus,
_scale = 2.8 / ratio;
} else if (ratio < 1) {
_scale = 1.5 / ratio;
} else {
......@@ -211,7 +215,6 @@ function initMatching(){
Core.ios_w = _w;
$('meta[name="viewport"]').attr('content','width=' + _w + ',maximum-scale=' + _scale + ',user-scalable=no');
//$('<meta name="viewport" content="maximum-scale=' + _scale + '"/>').appendTo(_head);
//$('<meta name="viewport" content="width=' + _w + '"/>').appendTo(_head);
......@@ -328,7 +331,8 @@ function initMatching(){
core.updateMod = function(modId) {
if (!modId in modules) {
console.error('没有对应的模块id的section:' + modId);
return;
modId = 'home'
//return;
}
location.hash = "#" + modId + '&force';
}
......@@ -511,7 +515,7 @@ function initMatching(){
var options = {
type: action_method,
url: Core.get_url(post_url),
url: post_url,
dataType: 'json',
contentType: "application/x-www-form-urlencoded; charset=utf-8",
data: param,
......@@ -600,7 +604,7 @@ function initMatching(){
$obj[0].disabled = true;
}
Core.showTips('加载中...', true, 5000);
$.ajax(options);
Core.ajax(options);
return false;
}
......@@ -610,9 +614,7 @@ function initMatching(){
Core.showTips('请求已提交,请稍候。');
return;
}
if(Core.isFile){
path = core.server + path;
}
var options = {
type: "get",
url: path,
......@@ -632,7 +634,7 @@ function initMatching(){
}
$obj.data('disabled', true);
Core.showTips('加载中...', true, 5000);
$.ajax(options);
Core.ajax(options);
return false;
}
......@@ -662,9 +664,7 @@ function initMatching(){
dataType = 'json';
}
var data_result = '';
if(Core.isFile){
data_url = core.server + data_url;
}
var options = {
type: "get",
url: data_url,
......@@ -710,7 +710,7 @@ function initMatching(){
}
}
Core.showTips('加载中...', true, 5000);
$.ajax(options);
Core.ajax(options);
}
// 判断用户是否登录,使用两个
core.isAuths = function() {
......
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|";
function IsIdCard(idcard)
{
idcard = idcard.toUpperCase();
var area={11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江",
31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北",
43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏",
61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",91:"国外"};
var retflag=false;
var idcard,Y,JYM;
var S,M;
var idcard_array = new Array();
idcard_array = idcard.split("");
//地区检验
if(area[parseInt(idcard.substr(0,2))]==null) return false;
//身份号码位数及格式检验
switch(idcard.length)
{
case 15:
if ((parseInt(idcard.substr(6,2))+1900) % 4 == 0 ||
((parseInt(idcard.substr(6,2))+1900) % 100 == 0 && (parseInt(idcard.substr(6,2))+1900) % 4 == 0 ))
{
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}$/;//测试出生日期的合法性
}
else
{
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}$/;//测试出生日期的合法性
}
if(ereg.test(idcard)) return true;
else return false;
break;
case 18:
//18位身份号码检测
//出生日期的合法性检查
//闰年月日:((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]))
//平年月日:((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]))
if ( parseInt(idcard.substr(6,4)) % 4 == 0 ||
(parseInt(idcard.substr(6,4)) % 100 == 0 &&parseInt(idcard.substr(6,4))%4 == 0 ))
{
ereg=/^[1-9][0-9]{5}19[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]$/;//闰年出生日期的合法性正则表达式
}
else
{
ereg=/^[1-9][0-9]{5}19[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]$/;//平年出生日期的合法性正则表达式
}
if(ereg.test(idcard))
{//测试出生日期的合法性
//计算校验位
S = (parseInt(idcard_array[0]) + parseInt(idcard_array[10])) * 7
+ (parseInt(idcard_array[1]) + parseInt(idcard_array[11])) * 9
+ (parseInt(idcard_array[2]) + parseInt(idcard_array[12])) * 10
+ (parseInt(idcard_array[3]) + parseInt(idcard_array[13])) * 5
+ (parseInt(idcard_array[4]) + parseInt(idcard_array[14])) * 8
+ (parseInt(idcard_array[5]) + parseInt(idcard_array[15])) * 4
+ (parseInt(idcard_array[6]) + parseInt(idcard_array[16])) * 2
+ parseInt(idcard_array[7]) * 1
+ parseInt(idcard_array[8]) * 6
+ parseInt(idcard_array[9]) * 3 ;
Y = S % 11;
M = "F";
JYM = "10X98765432";
M = JYM.substr(Y,1);//判断校验位
if(M == idcard_array[17]) true; //检测ID的校验位
else return false;
}
else return false;
break;
default:
return false;
break;
}
return true;
}
\ No newline at end of file
......@@ -69,12 +69,9 @@
//如果不尝试自动登录,直接初始化界面
if (!tryAutoLogin)
goInit();
//请求数据
if (Core.isFile) {
url = Core.server + url;
}
$.ajax({
Core.ajax({
type: 'GET',
url: url + '?' + params,
dataType: 'json',
......
......@@ -57,7 +57,9 @@
Core.showMod('login');
}
Home.prototype.show_after = function(){
$('#login').hide()
}
Core.registerMod('home', Home);
// 帮助信息模块
......@@ -164,6 +166,7 @@
Core.updateMod('frame');
return false;
});
}
Login.prototype.cache = function(n, p) {
......@@ -250,10 +253,10 @@
$(".pwd_box").children(".step-tab").css("display","block");
$(".pwd_box").children(".step-box").css("display","none");
});
if (names != null) {
var names = JSON.parse(names);
var userIdx = JSON.parse(user_indexs);
if (names != null) {
delete names["undefined"];
this.$c.find('.drop-down').show();
......@@ -271,11 +274,15 @@
this.$c.find("input#js_login_username").val(initUserName);
this.$c.find("input#js_login_password").val(Core.user_names[initUserName]);
}
}else{
this.$c.find("input#js_login_username").val(Core.first_user);
this.$c.find("input#js_login_password").val(Core.first_password);
}
if (Core.Data.other_login && this.other_login) {
if(Core.Data.other_login.length > 0){
this.$c.find(".other-login-bx").removeClass("hide");
}
//设置第三方登录显示
for (var i = 0, l = Core.Data.other_login.length; i < l; i++) {
this.$c.find('.' + Core.Data.other_login[i]).removeClass('hide');
......@@ -287,6 +294,14 @@
this.$c.find("input#js_login_password").val(loginPassword);
}
var old_pwd = localStorage.getItem('old_pwd');
if(Core.Data.new_pwd != "" && Core.Data.new_pwd == old_pwd & Core.user_names != null){
this.$c.find("input#js_login_password").val(Core.user_names[this.$c.find("input#js_login_username").val()]);
console.log($("input#js_login_password").val());
}
$("#find_pwd").find(".user-center span").html("找回密码");
}
Core.registerMod('login', Login);
......@@ -365,11 +380,18 @@
that.$c.on('click', '[type=submit],.submit', function(e) {
e.preventDefault();
if (that.$c.find('.checkbox-2').length>0 ){
Core.ajax_do(that.$c.find('.ajax'), that.register_cb,
that);
} else{
if(/[A-Z]/.test(that.$c.find("input[name='username']").val())){
Core.showTips("账号不能有大写字母!");
}else if(/[A-Z]/.test(that.$c.find("input[name='password']").val())){
Core.showTips("密码不能有大写字母!");
}else if(!that.$c.find('.checkbox-2').length>0){
Core.showTips('请同意'+Core.PLATFORM_NAME+'网络协议',1);
}else{
//如果是游客的话则调用安卓截屏方法
if (that.$c.find('[name="username"]').val() == that.$c.find('[name="old_usernmae"]').val() && window.android != undefined && window.android.screenShot != undefined ){
window.android.screenShot();
}
Core.ajax_do(that.$c.find('.ajax'), that.register_cb, that);
}
return false;
});
......@@ -391,6 +413,7 @@
that.$c.find('[name="old_usernmae"]').val(random_name)
that.$c.find('[name="password"]').val(random_passwd)
that.$c.find('[name="type"]').val(-1)
}
Register.prototype.cache = Login.prototype.cache;
......@@ -404,7 +427,7 @@
Core.updateMod('home');
}
Register.prototype.show_after = function() {
this.set_random()
this.set_random();
}
Core.registerMod('register', Register);
......@@ -443,7 +466,7 @@
Core.inherit(Find_pwd, Module);
Find_pwd.prototype.bind = function() {
var that = this;
var pwd_header=["手机找回密码","密保找回密码","邮箱找回密码","联系客服","重置密码","找回密码"];
var pwd_header=["手机找回密码","密保找回密码","联系客服","重置密码","找回密码"];
var pwd_header_back = {
0 : '<a href="#login" class="lefticon"><i class="iconfont icon-fanhui"></i></a>',
1 : '<a href="javascript:;" class="lefticon back-btn"><i class="iconfont icon-fanhui"></i></a>'
......@@ -484,7 +507,6 @@
$("#js_kefu_qq").href = "http://wpa.qq.com/msgrd?v=3&uin=2739920773&site=qq&menu=yes";
$("#js_player").href = "http://wpa.qq.com/msgrd?v=3&uin=167355030&site=qq&menu=yes";
}
that.$c.on("click","#js_findPSW_getcode",function(){//找回密码获取验证码
var $self = $(this)
phone = $("#js_findPSW_mobile").val();
......@@ -516,7 +538,8 @@
var code = that.$c.find("#js_findPSW_ranks").val(),
accout = $("#js_findPSW_accout").val(),
phoneTest = $("#js_findPSW_mobile").val(),
iphoneReg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
//iphoneReg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
iphoneReg = /^1(3|4|5|7|8)\d{9}$/;
if($.trim(accout) == ""){
Core.showTips('请输入账号!', false);
return false;
......@@ -553,6 +576,9 @@
}
});
});
that.$c.on("click","#returnhome",function(){
that.$c.find(".user-center span").html("找回密码");
});
that.$c.on("click","#js_confirm_resetnewpsw",function(){
var NewPsw = that.$c.find("#js_reset_newpsw").val(),
NewKey = that.$c.find("input[name='pwd_code']").val(),
......@@ -570,6 +596,8 @@
$("input[name='loginPassword']").val(NewPsw);
names[account] = NewPsw;
localStorage.setItem('user_names',JSON.stringify(names));
Core.user_names = names;
$("#js_reset_newpsw").val("");
setTimeout(function() {
Core.updateMod('login');
}, 500);
......@@ -599,6 +627,11 @@
that.$c.on('click', '.pwd_box .step-tab li a', function(e) {
var ipar = $(this).parent("li"),
iIndex = ipar.index();
that.$c.find("#js_findPSW_ranks").val("");
$("#js_findPSW_accout").val("");
$("#js_findPSW_mobile").val("");
that.$c.find('.step-tab').hide().siblings(".step-box").show().children("div").eq(iIndex).removeClass("hide").addClass("fn-icon-2").siblings("div").addClass("hide").removeClass("fn-icon-2");
that.$c.find(".user-center span").html(pwd_header[iIndex]);
that.$c.find(".user-center a").replaceWith(pwd_header_back[1]);
......@@ -606,13 +639,13 @@
that.$c.on('click', '.user-center a.back-btn', function(e) {
$(this).parents(".new-sdk-container").find(".step-box").hide().siblings(".step-tab").show();
that.$c.find(".user-center span").html(pwd_header[5]);
that.$c.find(".user-center span").html(pwd_header[4]);
that.$c.find(".user-center a").replaceWith(pwd_header_back[0]);
});
that.$c.on('click', '.pwd_box a.kefu_subbtn', function(e) {
$(this).parents(".step-box").hide().siblings(".step-tab").show();
that.$c.find(".user-center span").html(pwd_header[5]);
that.$c.find(".user-center span").html(pwd_header[4]);
that.$c.find(".user-center a").replaceWith(pwd_header_back[1]);
});
......@@ -762,7 +795,7 @@
var that = this;
var SendMsg = {
mobileReg : function(iphone){
var iphoneReg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/,
var iphoneReg = /^1(3|4|5|7|8)\d{9}$/,
phoneTest = $(iphone).val();
if($.trim(phoneTest) == ""){
Core.showTips('请输入手机号码!', false);
......@@ -893,6 +926,8 @@
if(res.code === 0){
Core.showTips('解绑成功!', true);
Core.Data.bind_phone = "";
$("#js_iphone").val("");
$("#js_ranks").val("");
setTimeout(function() {
Core.updateMod('home');
}, 500);
......@@ -912,6 +947,97 @@
}
Core.registerMod('unbindMobile', UnBindMobile);
//实名认证
var IdentityCard = function(modId) {
Module.call(this, modId);
}
// 继承基础模块
Core.inherit(IdentityCard, Module);
IdentityCard.prototype.bind = function() {
var that = this;
this.$c.on('click', '.submit', function() {
var identityCard = that.$c.find("input[name='identity_card']").val(),//身份证
compellationName = that.$c.find("input[name='compellation_name']").val(),//姓名
compellationNameReg = /^[\u4e00-\u9fa5]{2,10}$/i;//2-10位汉字
if($.trim(identityCard) == ""){
Core.showTips("请输入身份证号码",false);
return false;
}else if(IsIdCard(identityCard) == false){
Core.showTips("请输入正确的身份证信息",false);
return false;
}else if($.trim(compellationName) == ""){
Core.showTips("请输入姓名",false);
return false;
}else if(!compellationNameReg.test(compellationName)){
Core.showTips("请输入正确的中文姓名",false);
return false;
}
Core.ajax({
type:"post",
url:"/user/bind_identity_card?identity_card="+identityCard+"&compellation_name="+compellationName,
data:{format:"json"},
dataType:"json",
success:function(res){
if(res.code === 0){
Core.showTips('认证成功!', true);
Core.Data.compellation_name = compellationName;
Core.Data.identity_card = identityCard;
setTimeout(function() {
Core.updateMod('home');
}, 500);
}else{
Core.showTips(res.msg, true);
}
}
});
});
}
IdentityCard.prototype.show_after = function(){
}
Core.registerMod('identityCard', IdentityCard);
//已认证
var IdentityCardOk = function(modId) {
Module.call(this, modId);
}
// 继承基础模块
Core.inherit(IdentityCardOk, Module);
IdentityCardOk.prototype.show_after = function(){
var compellation_name = Core.Data.compellation_name,//姓名
identity_card = Core.Data.identity_card;//身份证
if(compellation_name.length == 2){
var getBefore = compellation_name.substring(0,1),
nameHtml = getBefore+"*";
}else if(compellation_name.length == 3){
var getBefore = compellation_name.substring(0,1),
nameHtml = getBefore+"**";
}else if(compellation_name.length == 4){
var getBefore = compellation_name.substring(0,2),
nameHtml = getBefore+"**";
}else if(compellation_name.length > 4){
var getBefore = compellation_name.substring(0,2),
starNum = compellation_name.length,
star = "";
for(var i = 0;i<starNum - 2;i++){
star += "*";
}
nameHtml = getBefore+star;
};
if(identity_card.length == 15){
var getBefore = identity_card.substring(0,1),
getAfter = identity_card.substring(14,15),
cardHtml = getBefore+"*************"+getAfter;
}else if(identity_card.length == 18){
var getBefore = identity_card.substring(0,1),
getAfter = identity_card.substring(17,18),
cardHtml = getBefore+"****************"+getAfter;
};
this.$c.find(".compellation_name").html(nameHtml);
this.$c.find(".identity_card").html(cardHtml);
};
Core.registerMod('identityCard_ok', IdentityCardOk);
// Mail模块
var Mail = function(modId) {
Module.call(this, modId);
......@@ -982,24 +1108,27 @@
});
}
Answer_question.prototype.aq_cb = function(data) {
console.log(data);
var code = data.code;
var msg = data.msg;
var name = localStorage.getItem('user_names');
Core.updateData(msg);
Core.Data.new_pwd = msg.password;
name = JSON.parse(name);
if(name == null){
name = null;
}else{
name = JSON.parse(name);
}
name[msg.nickname] = msg.password;
}
localStorage.setItem('user_names',JSON.stringify(name));
Core.user_names = name;
// 强制更新显示重置密码模块
Core.updateMod('reset_pwd');
Core.showTips('重置成功.',true,1000)
Core.showTips('重置成功.',true,1000);
localStorage.setItem('old_pwd',Core.Data.new_pwd);
}
Core.registerMod('answer_question', Answer_question);
......@@ -1012,7 +1141,14 @@
var that = this;
that.$c.on('click', '[type=submit],.submit', function(e) {
e.preventDefault();
if(/[A-Z]/.test(that.$c.find("input[name='username']").val())){
Core.showTips("账号不能有大写字母!");
}else if(/[A-Z]/.test(that.$c.find("input[name='newpwd']").val())){
Core.showTips("密码不能有大写字母!");
}else{
Core.ajax_do(that.$c.find('.ajax'), that.modify_cb, that);
}
return false;
});
that.$c.on('click', '.op-logout', function(e) {
......@@ -1310,11 +1446,11 @@
var names = localStorage.getItem("user_names"),
userIndexs = localStorage.getItem("user_indexs");
if (names == null)
names = null;
else {
names = JSON.parse(names);
if (names == null){
names = null
}
else {
delete names["undefined"];
var user_indexs = [];
for (var item in names){//遍历对象,排序
......
......@@ -17,6 +17,7 @@
}
Core.inherit(Home, Module);
Home.prototype.bind = function() {
$('#loading').click(function(){$(this).hide()})
var that = this;
that.$c.on('click', 'input[type=button]', function(e) {
// 更新要兑换的元宝
......@@ -30,6 +31,7 @@
Core.Data.money = Core.Data.youai_star / Core.Data.rate;
Core.updateMod('exchange');
} else {
// 用户游爱星不足够兑换,进入充值渠道列表
Core.Data.money = youai_star_need / Core.Data.rate;
Core.Data.youai_star = youai_star_need;
......@@ -38,7 +40,12 @@
return false;
});
}
Home.prototype.show_after = function(){
setTimeout(function(){
$('#back-btn').show();
},3000)
}
Core.registerMod('home', Home);
/**
......@@ -143,7 +150,7 @@
var reload = false;
var list = Core.Data.game_pay_channel_list;
var $c = $(e.target);
var id = $c.attr('data-id');
var id = $(this).attr('data-id');
for ( var index in list) {
var item = list[index];
if (id == item.id) {
......@@ -908,22 +915,23 @@
Core.Data.enter_amount = Core.Data.enter_game_amount / Core.Data.exchange_rate;
Core.Data.pay_again = 0;
}
if (Core.Data.enter_game_amount > 0
&& Core.Data.enter_amount <= Core.Data.total_amount) {
// 需要进入兑换页面
Core.start_page = "exchange";
Core.Data.game_amount = Core.Data.enter_game_amount;
Core.Data.youai_star = Core.Data.enter_amount;
Core.Data.money = Core.Data.youai_star / Core.Data.rate;
} else if (Core.Data.enter_game_amount > 0) {
//if (Core.Data.enter_game_amount > 0
// && Core.Data.enter_amount <= Core.Data.total_amount) {
// // 需要进入兑换页面
// Core.start_page = "exchange";
// Core.Data.game_amount = Core.Data.enter_game_amount;
// Core.Data.youai_star = Core.Data.enter_amount;
// Core.Data.money = Core.Data.youai_star / Core.Data.rate;
//} else
//if (Core.Data.enter_game_amount > 0) {
// 需要进入渠道充值页面
Core.start_page = "channel_list";
Core.Data.game_amount = Core.Data.enter_game_amount;
Core.Data.youai_star = Core.Data.enter_amount;
Core.Data.money = Core.Data.youai_star / Core.Data.rate;
} else {
// 没有输入充值数量,进入选择数量的界面
}
//} else {
// // 没有输入充值数量,进入选择数量的界面
//}
}
function onBridgeReady() {
......
/*!
** create by zhangxinxu(.com) 2013-07-15
** a simple method for custom scrolling
** it can be used on both mobile and parts desktop browser IE9+/FF/Chrome/...
*/
var simpScroller=(function(){var c=!((window.DocumentTouch&&document instanceof window.DocumentTouch)||"ontouchstart" in window)*1,b={start:["touchstart","mousedown"][c],move:["touchmove","mousemove"][c],end:["touchend","mouseup"][c]};var a=function(e,l,f){var n="top",o="Top",p="height",g="Height",d="pageY";if(l=="horizontal"){n="left";o="Left";p="width";g="Width";d="pageX"}var i=null;if(f.hideScrollBar==false){i=document.createElement("div");i.className="scroller_"+l;f.container.appendChild(i)}var m=e["client"+g],h=0;var j=function(){if(i==null){return}var r=i.style[p].replace("px",""),q=e["scroll"+o]/(h-m)*(m-r);if(m-r-q<=0){q=m-r}i.style[n]=q+"px"};var k={};e.addEventListener(b.start,function(q){h=this["scroll"+g];k[d]=q.touches?q.touches[0][d]:q[d];k[n]=this["scroll"+o];document.moveFollow=true;if(i&&h>m){i.style.opacity=1;i.style[p]=(m*m/h)+"px";j()}c&&q.preventDefault()});e.addEventListener(b.move,function(q){if(c==false||(document.moveFollow==true)){this["scroll"+o]=k[n]+(k[d]-(q.touches?q.touches[0][d]:q[d]));j();f.onScroll.call(this,q)}q.preventDefault()});e.addEventListener(b.end,function(q){i&&(i.style.opacity=0)});if(c==true){document.addEventListener("mouseup",function(){this.moveFollow=false})}};return function(d,f){f=f||{};var j=new Object({verticalScroll:true,horizontalScroll:false,hideScrollBar:false,onScroll:function(){}}),g;for(g in f){j[g]=f[g]}if(window.getComputedStyle(d).position=="static"){d.style.position="relative"}var i=d.childNodes,e=document.createDocumentFragment();[].slice.call(i).forEach(function(k){e.appendChild(k)});var h=document.createElement("div");h.style.height="100%";h.style.width="100%";h.style.overflow="hidden";d.appendChild(h);h.appendChild(e);j.container=d;if(j.verticalScroll==true){a(h,"vertical",j)}if(j.horizontalScroll==true){a(h,"horizontal",j)}}})();
\ No newline at end of file
......@@ -33,7 +33,7 @@
<span></span>
</div>
<!-- 登录模块 -->
<section id="login" class="hide" data-replace="1">
<section id="login" class="" data-replace="1">
<div class="new-sdk-container">
<div class="new-container-box">
<div class="SDK-titlebox"></div>
......@@ -49,7 +49,7 @@
<i class="iconfont icon-xiangxia"></i>
</div>
</div>
<div class="pull-box">
<div class="pull-box horizontall">
<ul class="drop-ul">
</ul>
......@@ -60,17 +60,17 @@
<div class="iright"><input type="password" name="password" placeholder="请输入密码" id="js_login_password"></div>
</div>
<div class="other-login clearfix">
<!--<p>第三方登录
<a title="新浪微博帐号登录" data-replace="href" href="/user/auth2/sina/login/?next=/static/sdk_3/login.html&app_id={app_id}" class="sina hide">
<p class="other-login-bx hide">第三方登录
<a title="新浪微博帐号登录" data-replace="href" href="/user/auth2/sina/login/?next=/static/sdk/login.html&app_id={app_id}" class="sina hide">
<i class=" iconfont icon-unie61d"></i>
</a>
<a title="QQ号码登录" data-replace="href" href="/user/auth2/qq/login/?next=/static/sdk_3/login.html&app_id={app_id}" class="qq iframe hide">
<a title="QQ号码登录" data-replace="href" href="/user/auth2/qq/login/?next=/static/sdk/login.html&app_id={app_id}" class="qq iframe hide">
</a>
<a title="微信登录" data-replace="href" href="sdk://weixinlogin?app_id={app_id}&next=/static/sdk_3/login.html" class="weixin hide">
<a title="微信登录" data-replace="href" href="sdk://weixinlogin?app_id={app_id}&next=/static/sdk/login.html" class="weixin hide">
</a>
</p>-->
</p>
<label><a href="#find_pwd" class="forgetpsw">找回密码</a></label>
<div class="clear"></div>
......@@ -136,9 +136,9 @@
<div class="ileft">账号:</div>
<div class="iright">
<input type="text" name="username" placeholder="帐号由3-18个英文、数字、点、减号、下划线组成" required>
<div class="bottom-icon drop-down">
<!--<div class="bottom-icon drop-down">
<i class="iconfont icon-xiangxia"></i>
</div>
</div>-->
</div>
</div>
<div class="inputbox clearfix">
......@@ -150,7 +150,7 @@
<div class="checkbox checkbox-2 l" >
<i class="iconfont icon-xuanzhong"></i>
</div>
<p class="l">接受<a href="agreement.html">网络服务协议</a></p>
<p class="l">接受<a href="#agreement">网络服务协议</a></p>
</span>
</div>
......@@ -173,14 +173,12 @@
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div>
<div class="new-sdk-content">
<div class="new-sdk-content" style="overflow: hidden;">
<h3>网络服务协议</h3>
<div class="content-main">
<p>欢迎申请手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p>
<h4>一、账号注册</h4>
<p>欢迎申请手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p>
<h4>二、账号注册</h4>
<p>欢迎申请手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p>
<div class="content-main" style="height: 220px;">
<iframe src="agreement.html" name="myiframe" id="iframepage" frameborder="0" scrolling="auto" width="100%"></iframe>
</div>
</div>
......@@ -254,6 +252,10 @@
<!-- end -->
<section id="message_detail" class="hide" data-attr="dot">
</section>
<section id="identityCard" class="hide" data-attr="dot">
</section>
<section id="identityCard_ok" class="hide" data-attr="dot">
</section>
<!-- 找回密码模块 -->
<section id="find_pwd" class="hide" data-replace="1">
<input type="hidden" name="pwd_code" value="">
......@@ -290,7 +292,7 @@
</div>
<ul class="inline-btn" style="margin-top: 15px;">
<li style="background: none;"><a class="larg btn btn-orange" value="" id="js_findPSW_confirm">确定</a></li>
<li style="background: none; border-radius: 20px;"><a class="btn" href="#home">返回</a></li>
<li style="background: none; border-radius: 20px;"><a class="btn" href="#home" id="returnhome">返回</a></li>
</ul>
</div>
</div>
......@@ -313,7 +315,7 @@
</div>-->
<div class="function-list-content hide">
<div class="pwd_txt">
<div class="default_text" style="display: none;">
<div class="default_text">
<p>客服QQ:<a href="javascript:;" id="js_kefu_qq"></a></p>
<p>客服电话:<a href="tel:"></a></p>
<p>玩家交流群:<a href="javascript:;" id="js_player"></a></p>
......@@ -433,7 +435,7 @@
</div>
</div>
</div>
{{?? Core.Data.is_guest == 2}}
{{?? Core.Data.is_guest == 2}}<!--1:游客登录;2:第三方登录;0:正式用户登录-->
<div class="user-center-box">
<div class="top clearfix" style="border-bottom: none;">
<div class="pull-left txt w_45">
......@@ -444,18 +446,24 @@
<a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
</div>
</div>
<ul class="list-item clearfix">
{{? Core.Data.bind_phone === ""}}
<ul class="list-item clearfix">
<li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
{{??}}
<li><a href="#unbindMobile">解绑手机</a></li>
{{?}}
<!--<li><a href="#mail">绑定邮箱</a></li>-->
<li><a href="#mibao">设置密保</a></li>
<li><a href="#modify_pwd">修改密码</a></li>
</ul>
</div>
{{??}}
<ul class="list-item clearfix">
<li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li>
<li style="width:50%;"><a href="#mibao">设置密保</a></li>
</ul>
<ul class="list-item clearfix" style="border-top:none;">
<li style="width:50%;"><a href="#modify_pwd">修改密码</a></li>
<li style="width:50%;"><a href="#identityCard">实名认证</a></li>
</ul>
{{?}}
</div>
{{?? Core.Data.is_guest == 0}}
<div class="user-center-box">
<div class="top clearfix" style="border-bottom: none;">
<div class="pull-left txt w_45">
......@@ -466,16 +474,40 @@
<a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
</div>
</div>
{{? Core.Data.bind_phone === ""}}
<ul class="list-item clearfix">
<li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
<li><a href="#mibao">设置密保</a></li>
<li><a href="#modify_pwd">修改密码</a></li>
</ul>
{{??}}
<ul class="list-item clearfix">
<li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li>
<li style="width:50%;"><a href="#mibao">设置密保</a></li>
</ul>
<ul class="list-item clearfix" style="border-top:none;">
<li style="width:50%;"><a href="#modify_pwd">修改密码</a></li>
{{? Core.Data.compellation_name === "" && Core.Data.identity_card === ""}}
<li style="width:50%;"><a href="#identityCard">实名认证</a></li>
{{??}}
<li style="width:50%;position:relative;"><a href="#identityCard_ok">实名认证
<span style="position:absolute;right:5px;top:5px;color:#fff;background:#ff9600;padding:3px 10px;border-radius:10px;font-size:20px;">已认证</span>
</a></li>
{{?}}
</ul>
{{?}}
<!--<ul class="list-item clearfix">
{{? Core.Data.bind_phone === ""}}
<li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
{{??}}
<li><a href="#unbindMobile">解绑手机</a></li>
<li><a href="#">实名认证</a></li>
{{?}}
<!--<li><a href="#mail">绑定邮箱</a></li> -->
<li><a href="#mibao">设置密保</a></li>
<li><a href="#modify_pwd">修改密码</a></li>
</ul>
</ul>-->
</div>
{{?}}
......@@ -610,6 +642,28 @@
</script>
<script id="identityCard_template" type="text/x-jquery-tmpl" >
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
实名认证
</div>
<form action="/user/bind_identity_card" method="post" class="ajax" onkeydown="if(event.keyCode==13) return false;" >
<div class="new-sdk-box">
<div class="input" style="padding:0 25px;"><input type="text" name="identity_card" required placeholder="请输入注册身份证号码" style="text-align: left;"></div>
<div class="input" style="padding:0 25px;"><input type="text" name="compellation_name" required placeholder="请输入姓名" style="text-align: left;"></div>
</div>
<ul class="inline-btn">
<li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">提交</a></li>
</ul>
</form>
</div>
</script>
<script id="mibao_template" type="text/x-jquery-tmpl" >
{{? Core.Data.safe_question == "" }}
<div class="new-sdk-container">
......@@ -620,21 +674,25 @@
</a>
设置密保
</div>
<form action="/sdk/set_mibao" mthod="post" class="ajax" todo="mibao_callback" >
<form action="/sdk/set_mibao" mthod="post" class="ajax" todo="mibao_callback" onkeydown="if(event.keyCode==13) return false;" >
<div class="new-sdk-box">
<div class="input select" style="padding: 25px;">
<div class="input select" style="padding:0 25px; position: relative;">
<select name="question" class="" >
{{~ Core.Data.question_list :item:index }}
<option value='{{=item}}'>{{=item}}</option>
{{~}}
</select>
<i class="iconfont icon-xiangxia" style="
position: absolute;
right: -25px;
top: 21px;
"></i>
</div>
<div class="input" style="padding:0 25px;"><input type="text" name="answer" required placeholder="输入密保保护答案" style="text-align: left;"></div>
<p style="color: #595757; font-size: 18px; margin-top: 10px;">设置密保,能通过回答问题找回忘记的密码</p>
</div>
<ul class="inline-btn">
<li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange ">保存设置</a></li>
<li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">保存设置</a></li>
</ul>
</form>
</div>
......@@ -663,7 +721,7 @@
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#login" class="lefticon">
<a href="#login" class="lefticon back-btn">
<i class="iconfont icon-fanhui"></i>
</a>
密保找回密码
......@@ -817,6 +875,23 @@
</div>
</div>
</script>
<script id="identityCard_ok_template" type="text/x-jquery-tmpl">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
实名认证
</div>
<div class="new-sdk-box">
<div class="acount-name">
<p style="margin-top: 0;">姓名:<span class="compellation_name"></span></p>
<p>身份证:<span class="identity_card"></span></p>
</div>
</div>
</div>
</script>
<script id="message_detail_template" type="text/x-jquery-tmpl">
<div class="header">
<a class="btn pull-left op-back" href="#message">返回</a>
......@@ -921,6 +996,7 @@
<script type="text/javascript" src="js/doT.min.js?20150923001" ></script>
<script type="text/javascript" src="js/iscroll.min.1.0.js?20150923001" ></script>
<script type="text/javascript">
window.isGetData = 0;
$(function() {
FastClick.attach(document.body);
......@@ -929,13 +1005,14 @@ FastClick.attach(document.body);
<script type="text/javascript" src="js/core.min.js?20150923001" ></script>
<script type="text/javascript" src="js/login.min.js?2016111" ></script>
<script type="text/javascript" src="js/loader.min.js?20150923001"></script>
<script type="text/javascript" src="js/simpScroller-min.js"></script>
<script type="text/javascript" src="js/identity_id.js" ></script>
<script type="text/javascript">
window.onload = window.onresize = initMatching;
(function(){
getData('/sdk/login/json');
})();
simpScroller(document.querySelector(".horizontall"), {});
// $(document).ready(function(){
// setTimeout(function(){Core.showTips($("meta[name='viewport']")[0].getAttribute("content"));}, 2000)
// })
......
......@@ -160,29 +160,28 @@
<div class="container">
<div class="box_info_center">
<h2 class="align-left">
请选择要充值{{=Core.Data.game_unit_name || ''}}的数量
</h2>
<p class="align-left text-muted">
注:充值 <span class="text-info">1</span>元可购买 <span class="text-info">{{=Core.Data.exchange_rate*Core.Data.rate || ''}}</span>{{=Core.Data.game_unit || ''}}{{=Core.Data.game_unit_name || ''}}
</p>
<div class="amount_level align-left" >
{{~ Core.Data.amount_level :item:index }}
{{? parseInt(item) }}
<input type="button" value="{{=parseInt(item)}}" class="btn" data="{{=item}}" />
{{?}}
{{~}}
</div>
<br>
<p class="align-left text-success tips9133">
{{? Core.Data.pay_only != 1 }}
{{? Core.Data.is_guest == 1}}
亲爱的<span class="text-info">游客</span>玩家,为确保账号资金安全,请先<a href="#modify_pwd">免费升级账号</a>再充值。
{{??}}
{{? Core.Data.vip > 0}}
{{??}}
{{?}}
{{?}}
{{?}}
</p>
<br>
<div class="amount_level align-left" >
<a href="javascript:Core.finishPay()" id="back-btn" class="btn larg conBtn " style="text-align: center;display:none">请返回游戏</a>
<br>
</div>
</div>
</div>
</script>
......@@ -202,7 +201,7 @@
</form>
<p class="text-warning align-left">游客账号是系统临时生成,存在风险,为了您的账号安全建议升级永久账号。</p>
{{??}}
<p class="text-success align-left">您的账号已经成功升级成手游平台永久账号,登录<a href="sdk://open?url=http://m.9133.com">9133.com</a>可以了解更多特权。</p>
<p class="text-success align-left">您的账号已经成功升级成手游平台永久账号</p>
{{?}}
</div>
</div>
......@@ -234,7 +233,7 @@
<p>
<input class="larg" type="text" name="pay_message" placeholder="给他留言···" />
</p>
<input class="larg btn" type="submit" value="发起代付" />
<p class="align-left small"><span class="error">*</span>注:手游平台登录帐号,不是游戏角色名称</p>
</div>
</div>
......@@ -269,7 +268,7 @@
<input type="number" name="vdcode" id="vdcode" required="" placeholder="输入验证码">
<img id="vdimgck1" src="{{=Core.server}}/validate_code/" onclick="this.src=this.src+'?'+(new Date()).getTime()" style="cursor: pointer;" alt="看不清?点击更换" />
</div>
<input class="larg btn" type="submit" value="确认兑换" />
<hr/>
<div class="clearfix">
<a href="#channel_list&force" class="btn width100" >使用支付宝、银行卡、神州行充值</a>
......@@ -312,7 +311,7 @@
<div class="channel_list align-left" >
{{? Core.Data.youai_star <= Core.Data.total_amount }}
/*<a href="#exchange" class="btn btn-block">游爱星兑换 <span style="float:right;color:#d2d2d2">></span></a>*/
<!--<a href="#exchange" class="btn btn-block">游爱星兑换 <span style="float:right;color:#d2d2d2"></span></a>-->
{{?}}
{{~Core.Data.game_pay_channel_list :item:index }}
{{?item.name}}
......@@ -383,7 +382,7 @@
<input type="hidden" name="role_name" value="{{=Core.Data.role_name}}" />
{{? Core.Data.current_pay_channel }}
<input type="hidden" name="pay_channel_id" value="{{=Core.Data.current_pay_channel.id}}" />
{{?}}
<input type="hidden" name="game_amount" value="{{? Core.Data.game_amount}}{{=Core.Data.game_amount}}{{?}}" />
<input type="hidden" name="money" value="{{=Core.Data.money}}" />
<div class="require_input ">
......@@ -435,6 +434,7 @@
<input class="larg btn zhifubaoBtn" type="submit" value="前往付款" />
{{?}}
</div>
{{?}}
</form>
</div>
......@@ -516,26 +516,10 @@
</div>
<div class="container align-left">
<div class="box_info_center">
<p id="share" class="clearfix">
<span>分享到:</span>
<a class="s_qzone" href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey" title="QQ空间"></a>
<a class="s_tqq" data-appkey="0af6f17f08f3ab2b52c6df3a3ed9b60b" href="http://share.v.t.qq.com/index.php" title="腾讯微博"></a>
</p>
<p id="share_weixin" class="clearfix">
<span>分享到微信:</span>
点击右上角按钮,选择“<span class="text-info">发送给朋友</span>”或者“<span class="text-info">分享到朋友圈</span>”即可完成分享;
</p>
<div class="fs_box invite_box">
<h3 class="text-info">奖励说明:</h3>
<p>
1.成功邀请好友一起玩游戏,您可获得<span class="text-info">5{{=Core.Data.game_unit_name}}</span>的奖励。
</p>
<p>
2.好友若充值(限前10),您可获得<span class="text-info">5%</span>充值奖励。
</p>
<p>
3.好友首次充值,因被您邀请可额外获得<span class="text-info">10%</span>充值返利。
</p>
</div>
</div>
</div>
......@@ -564,11 +548,11 @@
</ol>
</div>
<div class="sec sec_invtite">
<p class="title-fs">方式二:邀请好友可获得{{=Core.Data.game_unit_name}}&nbsp;&nbsp;<a href="#invite_friend">立即去邀请</a></p>
</div>
{{??}}
<div class="sec sec_invtite">
<p class="title-fs">方式一:邀请好友可获得{{=Core.Data.game_unit_name}}&nbsp;&nbsp;<a href="#invite_friend">立即去邀请</a></p>
</div>
{{?}}
</div>
......@@ -805,6 +789,11 @@ FastClick.attach(document.body);
(function(){
getData('/sdk/pay/json');
})();
$(function(){
if (Core.isIos) {
$('meta[name="viewport"]').attr('content','width=800,maximum-scale=1,user-scalable=no');
}
});
</script>
</body>
......
date:2017-4-11
author
:lizenghua
instructions
:与星玩SDK同步
date:2017-4-12
author:lizenghua
instructions:修复当账户及密码为空时(本地存储的账号密码数据为空),通过密保找回密码时一直处于加载中无法跳转的问题
date:2017-4-21
author:lizenghua
instructions:
1、当用户是正式用户并绑定了手机后进行实名认证;身份证校验js:identity_id.js
改动的文件有:login.html、login.js(同步在sdk_xingwan、sdk_6)
2、改动注释了pay.js里面的911行到918行:进入sdk要购买的游戏币>0时强制进入渠道充值页面(已同步在sdk_xingwan、sdk_6)
date:2017-4-24
author:lizenghua
instructions:
1、处理绑定手机的手机验证规则(176),
2、手机找回密码中重置密码残留旧密码问题
date:2017-5-3
author:lizenghua
instructions:
1、注释掉pay.html中的“游爱星”兑换入口
2、处理支付方式切换中出现 input_item 为undefind 的bug (将383行的{{?}}移至435行)
3、去掉设置密保中select默认的下拉图标(login.css)
4、如果没有第三方登录则隐藏掉“第三方登录”字眼
date:2017-5-8
author:lizenghua
instructions:处理支付方式点击支付图标出现 input_item 为undefind 的bug(将150行$c改成$(this))
date:2017-5-12
author:lizenghua
instructions:与游娱同步
\ No newline at end of file
......@@ -27,6 +27,11 @@ a:focus {
outline:thin dotted; /* 处理“outline”在Chrome浏览器中和其它浏览器之间的不一致 */
}
.red{ color: red;}
select{
-moz-appearance: none;
-webkit-appearance:none;
appearance:none;
}
/*字体图标*/
@font-face {font-family: "iconfont";
src: url('../font/iconfont.eot?t=1468997064'); /* IE9*/
......@@ -287,8 +292,8 @@ body{
}
.new-sdk-container .new-sdk-box .input select{
width: 100%;
height: 38px;
line-height: 38px;
height: 88px;
line-height: 88px;
background: none;
border: none;
color: #434343;
......@@ -678,7 +683,8 @@ body{
display: none;
font-family: 宋体;
max-height: 11em;
overflow-y: scroll;
/*overflow-y: scroll;*/
height: 150px;
}
.new-sdk-container .pull-box ul{
margin-left: 65px;
......@@ -914,11 +920,11 @@ button.close {
}
.user-center a{
position: absolute;
right: 37px;
bottom:17px;
right: 27px;
bottom:7px;
color: #ff9600;
font-size: 24px;
padding:10px;
}
.user-center a.lefticon{
right: auto;
......@@ -1168,6 +1174,7 @@ input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
font-size: 24px;
font-family: "Microsoft YaHei","微软雅黑";
vertical-align: -webkit-baseline-middle;
padding: 10px;
}
.pwd_box .step-box .question-input-box{
background: #fff;
......
#!/bin/sh
#js css压缩,生成更新包打包
CDN_SERVER='http://youyu.9133.com/static'
CDN_SERVER='http://cdn.9133.com/static'
DIR_PATH="$( cd "$( dirname "$0" )" && pwd )"
......
20161117
\ No newline at end of file
20170111
......
SERVER_URL=http://sdk.shxingwan.com
CDN_SERVER_URL=http://sdk.shxingwan.com
SDK_TYPE=.sys_config_xingwan
\ No newline at end of file
......
......@@ -2,7 +2,7 @@
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="viewport" content="width=device-width, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
......@@ -10,22 +10,20 @@
<meta name="screen-orientation" content="portrait">
<meta name="full-screen" content="yes">
<meta http-equiv="x-ua-compatible" content="IE=edge" />
<link href="skin/login.css?v=20150923001" type="text/css" rel="stylesheet" />
<title>
手游平台支付
</title>
<style>
h4,p{font-size: 24px;
font-weight: normal;
padding: 0 20px;font-family: "微软雅黑"; width: 100%;}
p{ text-indent: 2em;}
</style>
</head>
<body>
<!-- 协议模块 -->
<section id="agreement">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div>
<div class="new-sdk-content">
<h3>网络服务协议</h3>
<div class="content-main">
<div class="mask"></div>
<div class="horizontal" style="height: 220px;">
<h4>1. 账号服务条款的接受</h4>
<p>1.1 账号由上海星玩网络科技(以下简称“星玩”)及其关联公司所有并合法运营,星玩及其关联公司并在本用户服务协议的条款和要求下提供服务。</p>
<p>1.2 当用户访问、浏览及使用账号提供的各项服务、业务时,用户便表明其接受了本服务协议的条款,并同意受本服务协议的约束,用户并保证其提交的信息真实、准确、及时和完整;若用户不同意本协议条款的,请停止注册程序。</p>
......@@ -183,20 +181,6 @@
<h4>21. 生效条件</h4>
<p>本协议自用户访问、浏览及使用账号之时开始生效。</p>
</div>
</div>
<div class="only-btn inline-btn">
<a href="login.html#register" class="submit btn-orange">确定</a>
<div class="agreement l" style="margin-right: 0;">
<div class="checkbox checkbox-2 l" >
<i class="iconfont icon-xuanzhong"></i>
</div>
<p class="l">已阅读</p>
</div>
</div>
</div>
</section>
<!-- end -->
<script type="text/javascript" src="js/fastclick.min.1.0.js?20150923001"></script>
<script type="text/javascript" src="js/zepto.min.js?20150923001"></script>
......@@ -208,6 +192,10 @@
});
</script>
<script type="text/javascript" src="js/core.min.js?20150923001" ></script>
<script type="text/javascript" src="js/simpScroller-min.js"></script>
<script>
simpScroller(document.querySelector(".horizontal"), {});
</script>
</body>
</html>
\ No newline at end of file
......
......@@ -88,9 +88,14 @@ function initMatching(){
if (!Core.sdk_w) Core.sdk_w = 600;
_scale = 1;
if (ratio > 1.5){
_scale = 2.3 / ratio;
} else if (ratio < 1) {
if(ratio == 2){//5、6、6s(2.4)
_scale = 2.4 / ratio;
if(userAgent.indexOf('iPad') != -1){
_scale = 2 / ratio;
}
}else if(ratio >2.5){//6s plus
_scale = 2.7 / ratio;
}else if (ratio < 1) {
_scale = 1.5 / ratio;
} else {
_scale = 1;
......@@ -105,7 +110,6 @@ function initMatching(){
Core.ios_w = _w;
$('meta[name="viewport"]').attr('content','width=' + _w + ',maximum-scale=' + _scale + ',user-scalable=no');
//$('<meta name="viewport" content="maximum-scale=' + _scale + '"/>').appendTo(_head);
//$('<meta name="viewport" content="width=' + _w + '"/>').appendTo(_head);
......@@ -141,7 +145,8 @@ function initMatching(){
Core.PLATFORM_NAME = '星玩';
Core.server = 'http://sdk.shxingwan.com';
Core.server = 'https://sdk.shxingwan.com';
var lastServer = localStorage.getItem('last_server');
if(lastServer && lastServer.indexOf('http:')==0){
if(Core.isFile){
......@@ -191,11 +196,10 @@ function initMatching(){
var _w = null;
if (Core.isIos) {
$('html').attr('data-useragent', 'ios');
if (!Core.sdk_w) Core.sdk_w = 600;
_scale = 1;
if (ratio > 1.5){
_scale = 2 / ratio;
if (ratio > 1.5){//6s plus,
_scale = 2.8 / ratio;
} else if (ratio < 1) {
_scale = 1.5 / ratio;
} else {
......@@ -211,7 +215,6 @@ function initMatching(){
Core.ios_w = _w;
$('meta[name="viewport"]').attr('content','width=' + _w + ',maximum-scale=' + _scale + ',user-scalable=no');
//$('<meta name="viewport" content="maximum-scale=' + _scale + '"/>').appendTo(_head);
//$('<meta name="viewport" content="width=' + _w + '"/>').appendTo(_head);
......@@ -328,7 +331,8 @@ function initMatching(){
core.updateMod = function(modId) {
if (!modId in modules) {
console.error('没有对应的模块id的section:' + modId);
return;
modId = 'home'
//return;
}
location.hash = "#" + modId + '&force';
}
......@@ -511,7 +515,7 @@ function initMatching(){
var options = {
type: action_method,
url: Core.get_url(post_url),
url: post_url,
dataType: 'json',
contentType: "application/x-www-form-urlencoded; charset=utf-8",
data: param,
......@@ -600,7 +604,7 @@ function initMatching(){
$obj[0].disabled = true;
}
Core.showTips('加载中...', true, 5000);
$.ajax(options);
Core.ajax(options);
return false;
}
......@@ -610,9 +614,7 @@ function initMatching(){
Core.showTips('请求已提交,请稍候。');
return;
}
if(Core.isFile){
path = core.server + path;
}
var options = {
type: "get",
url: path,
......@@ -632,7 +634,7 @@ function initMatching(){
}
$obj.data('disabled', true);
Core.showTips('加载中...', true, 5000);
$.ajax(options);
Core.ajax(options);
return false;
}
......@@ -662,9 +664,7 @@ function initMatching(){
dataType = 'json';
}
var data_result = '';
if(Core.isFile){
data_url = core.server + data_url;
}
var options = {
type: "get",
url: data_url,
......@@ -710,7 +710,7 @@ function initMatching(){
}
}
Core.showTips('加载中...', true, 5000);
$.ajax(options);
Core.ajax(options);
}
// 判断用户是否登录,使用两个
core.isAuths = function() {
......
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|";
function IsIdCard(idcard)
{
idcard = idcard.toUpperCase();
var area={11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江",
31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北",
43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏",
61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",91:"国外"};
var retflag=false;
var idcard,Y,JYM;
var S,M;
var idcard_array = new Array();
idcard_array = idcard.split("");
//地区检验
if(area[parseInt(idcard.substr(0,2))]==null) return false;
//身份号码位数及格式检验
switch(idcard.length)
{
case 15:
if ((parseInt(idcard.substr(6,2))+1900) % 4 == 0 ||
((parseInt(idcard.substr(6,2))+1900) % 100 == 0 && (parseInt(idcard.substr(6,2))+1900) % 4 == 0 ))
{
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}$/;//测试出生日期的合法性
}
else
{
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}$/;//测试出生日期的合法性
}
if(ereg.test(idcard)) return true;
else return false;
break;
case 18:
//18位身份号码检测
//出生日期的合法性检查
//闰年月日:((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]))
//平年月日:((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]))
if ( parseInt(idcard.substr(6,4)) % 4 == 0 ||
(parseInt(idcard.substr(6,4)) % 100 == 0 &&parseInt(idcard.substr(6,4))%4 == 0 ))
{
ereg=/^[1-9][0-9]{5}19[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]$/;//闰年出生日期的合法性正则表达式
}
else
{
ereg=/^[1-9][0-9]{5}19[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]$/;//平年出生日期的合法性正则表达式
}
if(ereg.test(idcard))
{//测试出生日期的合法性
//计算校验位
S = (parseInt(idcard_array[0]) + parseInt(idcard_array[10])) * 7
+ (parseInt(idcard_array[1]) + parseInt(idcard_array[11])) * 9
+ (parseInt(idcard_array[2]) + parseInt(idcard_array[12])) * 10
+ (parseInt(idcard_array[3]) + parseInt(idcard_array[13])) * 5
+ (parseInt(idcard_array[4]) + parseInt(idcard_array[14])) * 8
+ (parseInt(idcard_array[5]) + parseInt(idcard_array[15])) * 4
+ (parseInt(idcard_array[6]) + parseInt(idcard_array[16])) * 2
+ parseInt(idcard_array[7]) * 1
+ parseInt(idcard_array[8]) * 6
+ parseInt(idcard_array[9]) * 3 ;
Y = S % 11;
M = "F";
JYM = "10X98765432";
M = JYM.substr(Y,1);//判断校验位
if(M == idcard_array[17]) true; //检测ID的校验位
else return false;
}
else return false;
break;
default:
return false;
break;
}
return true;
}
\ No newline at end of file
......@@ -69,12 +69,9 @@
//如果不尝试自动登录,直接初始化界面
if (!tryAutoLogin)
goInit();
//请求数据
if (Core.isFile) {
url = Core.server + url;
}
$.ajax({
Core.ajax({
type: 'GET',
url: url + '?' + params,
dataType: 'json',
......
......@@ -57,7 +57,9 @@
Core.showMod('login');
}
Home.prototype.show_after = function(){
$('#login').hide()
}
Core.registerMod('home', Home);
// 帮助信息模块
......@@ -164,6 +166,7 @@
Core.updateMod('frame');
return false;
});
}
Login.prototype.cache = function(n, p) {
......@@ -250,10 +253,10 @@
$(".pwd_box").children(".step-tab").css("display","block");
$(".pwd_box").children(".step-box").css("display","none");
});
if (names != null) {
var names = JSON.parse(names);
var userIdx = JSON.parse(user_indexs);
if (names != null) {
delete names["undefined"];
this.$c.find('.drop-down').show();
......@@ -271,11 +274,15 @@
this.$c.find("input#js_login_username").val(initUserName);
this.$c.find("input#js_login_password").val(Core.user_names[initUserName]);
}
}else{
this.$c.find("input#js_login_username").val(Core.first_user);
this.$c.find("input#js_login_password").val(Core.first_password);
}
if (Core.Data.other_login && this.other_login) {
if(Core.Data.other_login.length > 0){
this.$c.find(".other-login-bx").removeClass("hide");
}
//设置第三方登录显示
for (var i = 0, l = Core.Data.other_login.length; i < l; i++) {
this.$c.find('.' + Core.Data.other_login[i]).removeClass('hide');
......@@ -287,6 +294,14 @@
this.$c.find("input#js_login_password").val(loginPassword);
}
var old_pwd = localStorage.getItem('old_pwd');
if(Core.Data.new_pwd != "" && Core.Data.new_pwd == old_pwd & Core.user_names != null){
this.$c.find("input#js_login_password").val(Core.user_names[this.$c.find("input#js_login_username").val()]);
console.log($("input#js_login_password").val());
}
$("#find_pwd").find(".user-center span").html("找回密码");
}
Core.registerMod('login', Login);
......@@ -365,11 +380,18 @@
that.$c.on('click', '[type=submit],.submit', function(e) {
e.preventDefault();
if (that.$c.find('.checkbox-2').length>0 ){
Core.ajax_do(that.$c.find('.ajax'), that.register_cb,
that);
} else{
if(/[A-Z]/.test(that.$c.find("input[name='username']").val())){
Core.showTips("账号不能有大写字母!");
}else if(/[A-Z]/.test(that.$c.find("input[name='password']").val())){
Core.showTips("密码不能有大写字母!");
}else if(!that.$c.find('.checkbox-2').length>0){
Core.showTips('请同意'+Core.PLATFORM_NAME+'网络协议',1);
}else{
//如果是游客的话则调用安卓截屏方法
if (that.$c.find('[name="username"]').val() == that.$c.find('[name="old_usernmae"]').val() && window.android != undefined && window.android.screenShot != undefined ){
window.android.screenShot();
}
Core.ajax_do(that.$c.find('.ajax'), that.register_cb, that);
}
return false;
});
......@@ -391,6 +413,7 @@
that.$c.find('[name="old_usernmae"]').val(random_name)
that.$c.find('[name="password"]').val(random_passwd)
that.$c.find('[name="type"]').val(-1)
}
Register.prototype.cache = Login.prototype.cache;
......@@ -404,7 +427,7 @@
Core.updateMod('home');
}
Register.prototype.show_after = function() {
this.set_random()
this.set_random();
}
Core.registerMod('register', Register);
......@@ -443,7 +466,7 @@
Core.inherit(Find_pwd, Module);
Find_pwd.prototype.bind = function() {
var that = this;
var pwd_header=["手机找回密码","密保找回密码","邮箱找回密码","联系客服","重置密码","找回密码"];
var pwd_header=["手机找回密码","密保找回密码","联系客服","重置密码","找回密码"];
var pwd_header_back = {
0 : '<a href="#login" class="lefticon"><i class="iconfont icon-fanhui"></i></a>',
1 : '<a href="javascript:;" class="lefticon back-btn"><i class="iconfont icon-fanhui"></i></a>'
......@@ -484,7 +507,6 @@
$("#js_kefu_qq").href = "http://wpa.qq.com/msgrd?v=3&uin=2739920773&site=qq&menu=yes";
$("#js_player").href = "http://wpa.qq.com/msgrd?v=3&uin=167355030&site=qq&menu=yes";
}
that.$c.on("click","#js_findPSW_getcode",function(){//找回密码获取验证码
var $self = $(this)
phone = $("#js_findPSW_mobile").val();
......@@ -516,7 +538,8 @@
var code = that.$c.find("#js_findPSW_ranks").val(),
accout = $("#js_findPSW_accout").val(),
phoneTest = $("#js_findPSW_mobile").val(),
iphoneReg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
//iphoneReg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
iphoneReg = /^1(3|4|5|7|8)\d{9}$/;
if($.trim(accout) == ""){
Core.showTips('请输入账号!', false);
return false;
......@@ -553,6 +576,9 @@
}
});
});
that.$c.on("click","#returnhome",function(){
that.$c.find(".user-center span").html("找回密码");
});
that.$c.on("click","#js_confirm_resetnewpsw",function(){
var NewPsw = that.$c.find("#js_reset_newpsw").val(),
NewKey = that.$c.find("input[name='pwd_code']").val(),
......@@ -570,6 +596,8 @@
$("input[name='loginPassword']").val(NewPsw);
names[account] = NewPsw;
localStorage.setItem('user_names',JSON.stringify(names));
Core.user_names = names;
$("#js_reset_newpsw").val("");
setTimeout(function() {
Core.updateMod('login');
}, 500);
......@@ -599,6 +627,11 @@
that.$c.on('click', '.pwd_box .step-tab li a', function(e) {
var ipar = $(this).parent("li"),
iIndex = ipar.index();
that.$c.find("#js_findPSW_ranks").val("");
$("#js_findPSW_accout").val("");
$("#js_findPSW_mobile").val("");
that.$c.find('.step-tab').hide().siblings(".step-box").show().children("div").eq(iIndex).removeClass("hide").addClass("fn-icon-2").siblings("div").addClass("hide").removeClass("fn-icon-2");
that.$c.find(".user-center span").html(pwd_header[iIndex]);
that.$c.find(".user-center a").replaceWith(pwd_header_back[1]);
......@@ -606,13 +639,13 @@
that.$c.on('click', '.user-center a.back-btn', function(e) {
$(this).parents(".new-sdk-container").find(".step-box").hide().siblings(".step-tab").show();
that.$c.find(".user-center span").html(pwd_header[5]);
that.$c.find(".user-center span").html(pwd_header[4]);
that.$c.find(".user-center a").replaceWith(pwd_header_back[0]);
});
that.$c.on('click', '.pwd_box a.kefu_subbtn', function(e) {
$(this).parents(".step-box").hide().siblings(".step-tab").show();
that.$c.find(".user-center span").html(pwd_header[5]);
that.$c.find(".user-center span").html(pwd_header[4]);
that.$c.find(".user-center a").replaceWith(pwd_header_back[1]);
});
......@@ -762,7 +795,7 @@
var that = this;
var SendMsg = {
mobileReg : function(iphone){
var iphoneReg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/,
var iphoneReg = /^1(3|4|5|7|8)\d{9}$/,
phoneTest = $(iphone).val();
if($.trim(phoneTest) == ""){
Core.showTips('请输入手机号码!', false);
......@@ -893,6 +926,8 @@
if(res.code === 0){
Core.showTips('解绑成功!', true);
Core.Data.bind_phone = "";
$("#js_iphone").val("");
$("#js_ranks").val("");
setTimeout(function() {
Core.updateMod('home');
}, 500);
......@@ -912,6 +947,97 @@
}
Core.registerMod('unbindMobile', UnBindMobile);
//实名认证
var IdentityCard = function(modId) {
Module.call(this, modId);
}
// 继承基础模块
Core.inherit(IdentityCard, Module);
IdentityCard.prototype.bind = function() {
var that = this;
this.$c.on('click', '.submit', function() {
var identityCard = that.$c.find("input[name='identity_card']").val(),//身份证
compellationName = that.$c.find("input[name='compellation_name']").val(),//姓名
compellationNameReg = /^[\u4e00-\u9fa5]{2,10}$/i;//2-10位汉字
if($.trim(identityCard) == ""){
Core.showTips("请输入身份证号码",false);
return false;
}else if(IsIdCard(identityCard) == false){
Core.showTips("请输入正确的身份证信息",false);
return false;
}else if($.trim(compellationName) == ""){
Core.showTips("请输入姓名",false);
return false;
}else if(!compellationNameReg.test(compellationName)){
Core.showTips("请输入正确的中文姓名",false);
return false;
}
Core.ajax({
type:"post",
url:"/user/bind_identity_card?identity_card="+identityCard+"&compellation_name="+compellationName,
data:{format:"json"},
dataType:"json",
success:function(res){
if(res.code === 0){
Core.showTips('认证成功!', true);
Core.Data.compellation_name = compellationName;
Core.Data.identity_card = identityCard;
setTimeout(function() {
Core.updateMod('home');
}, 500);
}else{
Core.showTips(res.msg, true);
}
}
});
});
}
IdentityCard.prototype.show_after = function(){
}
Core.registerMod('identityCard', IdentityCard);
//已认证
var IdentityCardOk = function(modId) {
Module.call(this, modId);
}
// 继承基础模块
Core.inherit(IdentityCardOk, Module);
IdentityCardOk.prototype.show_after = function(){
var compellation_name = Core.Data.compellation_name,//姓名
identity_card = Core.Data.identity_card;//身份证
if(compellation_name.length == 2){
var getBefore = compellation_name.substring(0,1),
nameHtml = getBefore+"*";
}else if(compellation_name.length == 3){
var getBefore = compellation_name.substring(0,1),
nameHtml = getBefore+"**";
}else if(compellation_name.length == 4){
var getBefore = compellation_name.substring(0,2),
nameHtml = getBefore+"**";
}else if(compellation_name.length > 4){
var getBefore = compellation_name.substring(0,2),
starNum = compellation_name.length,
star = "";
for(var i = 0;i<starNum - 2;i++){
star += "*";
}
nameHtml = getBefore+star;
};
if(identity_card.length == 15){
var getBefore = identity_card.substring(0,1),
getAfter = identity_card.substring(14,15),
cardHtml = getBefore+"*************"+getAfter;
}else if(identity_card.length == 18){
var getBefore = identity_card.substring(0,1),
getAfter = identity_card.substring(17,18),
cardHtml = getBefore+"****************"+getAfter;
};
this.$c.find(".compellation_name").html(nameHtml);
this.$c.find(".identity_card").html(cardHtml);
};
Core.registerMod('identityCard_ok', IdentityCardOk);
// Mail模块
var Mail = function(modId) {
Module.call(this, modId);
......@@ -982,24 +1108,27 @@
});
}
Answer_question.prototype.aq_cb = function(data) {
console.log(data);
var code = data.code;
var msg = data.msg;
var name = localStorage.getItem('user_names');
Core.updateData(msg);
Core.Data.new_pwd = msg.password;
name = JSON.parse(name);
if(name == null){
name = null;
}else{
name = JSON.parse(name);
}
name[msg.nickname] = msg.password;
}
localStorage.setItem('user_names',JSON.stringify(name));
Core.user_names = name;
// 强制更新显示重置密码模块
Core.updateMod('reset_pwd');
Core.showTips('重置成功.',true,1000)
Core.showTips('重置成功.',true,1000);
localStorage.setItem('old_pwd',Core.Data.new_pwd);
}
Core.registerMod('answer_question', Answer_question);
......@@ -1012,7 +1141,14 @@
var that = this;
that.$c.on('click', '[type=submit],.submit', function(e) {
e.preventDefault();
if(/[A-Z]/.test(that.$c.find("input[name='username']").val())){
Core.showTips("账号不能有大写字母!");
}else if(/[A-Z]/.test(that.$c.find("input[name='newpwd']").val())){
Core.showTips("密码不能有大写字母!");
}else{
Core.ajax_do(that.$c.find('.ajax'), that.modify_cb, that);
}
return false;
});
that.$c.on('click', '.op-logout', function(e) {
......@@ -1310,11 +1446,11 @@
var names = localStorage.getItem("user_names"),
userIndexs = localStorage.getItem("user_indexs");
if (names == null)
names = null;
else {
names = JSON.parse(names);
if (names == null){
names = null
}
else {
delete names["undefined"];
var user_indexs = [];
for (var item in names){//遍历对象,排序
......
......@@ -17,6 +17,7 @@
}
Core.inherit(Home, Module);
Home.prototype.bind = function() {
$('#loading').click(function(){$(this).hide()})
var that = this;
that.$c.on('click', 'input[type=button]', function(e) {
// 更新要兑换的元宝
......@@ -30,6 +31,7 @@
Core.Data.money = Core.Data.youai_star / Core.Data.rate;
Core.updateMod('exchange');
} else {
// 用户游爱星不足够兑换,进入充值渠道列表
Core.Data.money = youai_star_need / Core.Data.rate;
Core.Data.youai_star = youai_star_need;
......@@ -38,7 +40,12 @@
return false;
});
}
Home.prototype.show_after = function(){
setTimeout(function(){
$('#back-btn').show();
},3000)
}
Core.registerMod('home', Home);
/**
......@@ -143,7 +150,7 @@
var reload = false;
var list = Core.Data.game_pay_channel_list;
var $c = $(e.target);
var id = $c.attr('data-id');
var id = $(this).attr('data-id');
for ( var index in list) {
var item = list[index];
if (id == item.id) {
......@@ -908,22 +915,23 @@
Core.Data.enter_amount = Core.Data.enter_game_amount / Core.Data.exchange_rate;
Core.Data.pay_again = 0;
}
if (Core.Data.enter_game_amount > 0
&& Core.Data.enter_amount <= Core.Data.total_amount) {
// 需要进入兑换页面
Core.start_page = "exchange";
Core.Data.game_amount = Core.Data.enter_game_amount;
Core.Data.youai_star = Core.Data.enter_amount;
Core.Data.money = Core.Data.youai_star / Core.Data.rate;
} else if (Core.Data.enter_game_amount > 0) {
//if (Core.Data.enter_game_amount > 0
// && Core.Data.enter_amount <= Core.Data.total_amount) {
// // 需要进入兑换页面
// Core.start_page = "exchange";
// Core.Data.game_amount = Core.Data.enter_game_amount;
// Core.Data.youai_star = Core.Data.enter_amount;
// Core.Data.money = Core.Data.youai_star / Core.Data.rate;
//} else
//if (Core.Data.enter_game_amount > 0) {
// 需要进入渠道充值页面
Core.start_page = "channel_list";
Core.Data.game_amount = Core.Data.enter_game_amount;
Core.Data.youai_star = Core.Data.enter_amount;
Core.Data.money = Core.Data.youai_star / Core.Data.rate;
} else {
// 没有输入充值数量,进入选择数量的界面
}
//} else {
// // 没有输入充值数量,进入选择数量的界面
//}
}
function onBridgeReady() {
......
/*!
** create by zhangxinxu(.com) 2013-07-15
** a simple method for custom scrolling
** it can be used on both mobile and parts desktop browser IE9+/FF/Chrome/...
*/
var simpScroller=(function(){var c=!((window.DocumentTouch&&document instanceof window.DocumentTouch)||"ontouchstart" in window)*1,b={start:["touchstart","mousedown"][c],move:["touchmove","mousemove"][c],end:["touchend","mouseup"][c]};var a=function(e,l,f){var n="top",o="Top",p="height",g="Height",d="pageY";if(l=="horizontal"){n="left";o="Left";p="width";g="Width";d="pageX"}var i=null;if(f.hideScrollBar==false){i=document.createElement("div");i.className="scroller_"+l;f.container.appendChild(i)}var m=e["client"+g],h=0;var j=function(){if(i==null){return}var r=i.style[p].replace("px",""),q=e["scroll"+o]/(h-m)*(m-r);if(m-r-q<=0){q=m-r}i.style[n]=q+"px"};var k={};e.addEventListener(b.start,function(q){h=this["scroll"+g];k[d]=q.touches?q.touches[0][d]:q[d];k[n]=this["scroll"+o];document.moveFollow=true;if(i&&h>m){i.style.opacity=1;i.style[p]=(m*m/h)+"px";j()}c&&q.preventDefault()});e.addEventListener(b.move,function(q){if(c==false||(document.moveFollow==true)){this["scroll"+o]=k[n]+(k[d]-(q.touches?q.touches[0][d]:q[d]));j();f.onScroll.call(this,q)}q.preventDefault()});e.addEventListener(b.end,function(q){i&&(i.style.opacity=0)});if(c==true){document.addEventListener("mouseup",function(){this.moveFollow=false})}};return function(d,f){f=f||{};var j=new Object({verticalScroll:true,horizontalScroll:false,hideScrollBar:false,onScroll:function(){}}),g;for(g in f){j[g]=f[g]}if(window.getComputedStyle(d).position=="static"){d.style.position="relative"}var i=d.childNodes,e=document.createDocumentFragment();[].slice.call(i).forEach(function(k){e.appendChild(k)});var h=document.createElement("div");h.style.height="100%";h.style.width="100%";h.style.overflow="hidden";d.appendChild(h);h.appendChild(e);j.container=d;if(j.verticalScroll==true){a(h,"vertical",j)}if(j.horizontalScroll==true){a(h,"horizontal",j)}}})();
\ No newline at end of file
......@@ -33,7 +33,7 @@
<span></span>
</div>
<!-- 登录模块 -->
<section id="login" class="hide" data-replace="1">
<section id="login" class="" data-replace="1">
<div class="new-sdk-container">
<div class="new-container-box">
<div class="SDK-titlebox"></div>
......@@ -49,7 +49,7 @@
<i class="iconfont icon-xiangxia"></i>
</div>
</div>
<div class="pull-box">
<div class="pull-box horizontall">
<ul class="drop-ul">
</ul>
......@@ -60,17 +60,17 @@
<div class="iright"><input type="password" name="password" placeholder="请输入密码" id="js_login_password"></div>
</div>
<div class="other-login clearfix">
<!--<p>第三方登录
<a title="新浪微博帐号登录" data-replace="href" href="/user/auth2/sina/login/?next=/static/sdk_3/login.html&app_id={app_id}" class="sina hide">
<p class="other-login-bx hide">第三方登录
<a title="新浪微博帐号登录" data-replace="href" href="/user/auth2/sina/login/?next=/static/sdk/login.html&app_id={app_id}" class="sina hide">
<i class=" iconfont icon-unie61d"></i>
</a>
<a title="QQ号码登录" data-replace="href" href="/user/auth2/qq/login/?next=/static/sdk_3/login.html&app_id={app_id}" class="qq iframe hide">
<a title="QQ号码登录" data-replace="href" href="/user/auth2/qq/login/?next=/static/sdk/login.html&app_id={app_id}" class="qq iframe hide">
</a>
<a title="微信登录" data-replace="href" href="sdk://weixinlogin?app_id={app_id}&next=/static/sdk_3/login.html" class="weixin hide">
<a title="微信登录" data-replace="href" href="sdk://weixinlogin?app_id={app_id}&next=/static/sdk/login.html" class="weixin hide">
</a>
</p>-->
</p>
<label><a href="#find_pwd" class="forgetpsw">找回密码</a></label>
<div class="clear"></div>
......@@ -136,9 +136,9 @@
<div class="ileft">账号:</div>
<div class="iright">
<input type="text" name="username" placeholder="帐号由3-18个英文、数字、点、减号、下划线组成" required>
<div class="bottom-icon drop-down">
<!--<div class="bottom-icon drop-down">
<i class="iconfont icon-xiangxia"></i>
</div>
</div>-->
</div>
</div>
<div class="inputbox clearfix">
......@@ -150,7 +150,7 @@
<div class="checkbox checkbox-2 l" >
<i class="iconfont icon-xuanzhong"></i>
</div>
<p class="l">接受<a href="agreement.html">网络服务协议</a></p>
<p class="l">接受<a href="#agreement">网络服务协议</a></p>
</span>
</div>
......@@ -173,14 +173,12 @@
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="new-sdk-logo"><a href="#"><img src="images/new-sdk-logo.png"></a></div>
<div class="new-sdk-content">
<div class="new-sdk-content" style="overflow: hidden;">
<h3>网络服务协议</h3>
<div class="content-main">
<p>欢迎申请手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p>
<h4>一、账号注册</h4>
<p>欢迎申请手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p>
<h4>二、账号注册</h4>
<p>欢迎申请手游平台(下列简称为”本平台“)提供的服务。请仔细阅读以下全部内容。如用户不同意本服务条款任意内容,请不要注册或使用本平台服务。一旦注册成功,即表示用户与平台已达成协议,自愿接受本服务条款的所有内容。此后,用户不得以阅读本服务条款内容作任何形式的抗辩。</p>
<div class="content-main" style="height: 220px;">
<iframe src="agreement.html" name="myiframe" id="iframepage" frameborder="0" scrolling="auto" width="100%"></iframe>
</div>
</div>
......@@ -254,6 +252,10 @@
<!-- end -->
<section id="message_detail" class="hide" data-attr="dot">
</section>
<section id="identityCard" class="hide" data-attr="dot">
</section>
<section id="identityCard_ok" class="hide" data-attr="dot">
</section>
<!-- 找回密码模块 -->
<section id="find_pwd" class="hide" data-replace="1">
<input type="hidden" name="pwd_code" value="">
......@@ -290,7 +292,7 @@
</div>
<ul class="inline-btn" style="margin-top: 15px;">
<li style="background: none;"><a class="larg btn btn-orange" value="" id="js_findPSW_confirm">确定</a></li>
<li style="background: none; border-radius: 20px;"><a class="btn" href="#home">返回</a></li>
<li style="background: none; border-radius: 20px;"><a class="btn" href="#home" id="returnhome">返回</a></li>
</ul>
</div>
</div>
......@@ -313,7 +315,7 @@
</div>-->
<div class="function-list-content hide">
<div class="pwd_txt">
<div class="default_text" style="display: none;">
<div class="default_text">
<p>客服QQ:<a href="javascript:;" id="js_kefu_qq"></a></p>
<p>客服电话:<a href="tel:"></a></p>
<p>玩家交流群:<a href="javascript:;" id="js_player"></a></p>
......@@ -433,7 +435,7 @@
</div>
</div>
</div>
{{?? Core.Data.is_guest == 2}}
{{?? Core.Data.is_guest == 2}}<!--1:游客登录;2:第三方登录;0:正式用户登录-->
<div class="user-center-box">
<div class="top clearfix" style="border-bottom: none;">
<div class="pull-left txt w_45">
......@@ -444,18 +446,24 @@
<a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
</div>
</div>
<ul class="list-item clearfix">
{{? Core.Data.bind_phone === ""}}
<ul class="list-item clearfix">
<li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
{{??}}
<li><a href="#unbindMobile">解绑手机</a></li>
{{?}}
<!--<li><a href="#mail">绑定邮箱</a></li>-->
<li><a href="#mibao">设置密保</a></li>
<li><a href="#modify_pwd">修改密码</a></li>
</ul>
</div>
{{??}}
<ul class="list-item clearfix">
<li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li>
<li style="width:50%;"><a href="#mibao">设置密保</a></li>
</ul>
<ul class="list-item clearfix" style="border-top:none;">
<li style="width:50%;"><a href="#modify_pwd">修改密码</a></li>
<li style="width:50%;"><a href="#identityCard">实名认证</a></li>
</ul>
{{?}}
</div>
{{?? Core.Data.is_guest == 0}}
<div class="user-center-box">
<div class="top clearfix" style="border-bottom: none;">
<div class="pull-left txt w_45">
......@@ -466,16 +474,40 @@
<a href="javascript:Core.finishLogin()" class="btn btn-orange">进入游戏</a>
</div>
</div>
{{? Core.Data.bind_phone === ""}}
<ul class="list-item clearfix">
<li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
<li><a href="#mibao">设置密保</a></li>
<li><a href="#modify_pwd">修改密码</a></li>
</ul>
{{??}}
<ul class="list-item clearfix">
<li style="width:50%;"><a href="#unbindMobile">解绑手机</a></li>
<li style="width:50%;"><a href="#mibao">设置密保</a></li>
</ul>
<ul class="list-item clearfix" style="border-top:none;">
<li style="width:50%;"><a href="#modify_pwd">修改密码</a></li>
{{? Core.Data.compellation_name === "" && Core.Data.identity_card === ""}}
<li style="width:50%;"><a href="#identityCard">实名认证</a></li>
{{??}}
<li style="width:50%;position:relative;"><a href="#identityCard_ok">实名认证
<span style="position:absolute;right:5px;top:5px;color:#fff;background:#ff9600;padding:3px 10px;border-radius:10px;font-size:20px;">已认证</span>
</a></li>
{{?}}
</ul>
{{?}}
<!--<ul class="list-item clearfix">
{{? Core.Data.bind_phone === ""}}
<li style="position: relative;"><a href="#bindMobile">绑定手机</a><span class="redround"></span></li>
{{??}}
<li><a href="#unbindMobile">解绑手机</a></li>
<li><a href="#">实名认证</a></li>
{{?}}
<!--<li><a href="#mail">绑定邮箱</a></li> -->
<li><a href="#mibao">设置密保</a></li>
<li><a href="#modify_pwd">修改密码</a></li>
</ul>
</ul>-->
</div>
{{?}}
......@@ -610,6 +642,28 @@
</script>
<script id="identityCard_template" type="text/x-jquery-tmpl" >
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
实名认证
</div>
<form action="/user/bind_identity_card" method="post" class="ajax" onkeydown="if(event.keyCode==13) return false;" >
<div class="new-sdk-box">
<div class="input" style="padding:0 25px;"><input type="text" name="identity_card" required placeholder="请输入注册身份证号码" style="text-align: left;"></div>
<div class="input" style="padding:0 25px;"><input type="text" name="compellation_name" required placeholder="请输入姓名" style="text-align: left;"></div>
</div>
<ul class="inline-btn">
<li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">提交</a></li>
</ul>
</form>
</div>
</script>
<script id="mibao_template" type="text/x-jquery-tmpl" >
{{? Core.Data.safe_question == "" }}
<div class="new-sdk-container">
......@@ -620,21 +674,25 @@
</a>
设置密保
</div>
<form action="/sdk/set_mibao" mthod="post" class="ajax" todo="mibao_callback" >
<form action="/sdk/set_mibao" mthod="post" class="ajax" todo="mibao_callback" onkeydown="if(event.keyCode==13) return false;" >
<div class="new-sdk-box">
<div class="input select" style="padding: 25px;">
<div class="input select" style="padding:0 25px; position: relative;">
<select name="question" class="" >
{{~ Core.Data.question_list :item:index }}
<option value='{{=item}}'>{{=item}}</option>
{{~}}
</select>
<i class="iconfont icon-xiangxia" style="
position: absolute;
right: -25px;
top: 21px;
"></i>
</div>
<div class="input" style="padding:0 25px;"><input type="text" name="answer" required placeholder="输入密保保护答案" style="text-align: left;"></div>
<p style="color: #595757; font-size: 18px; margin-top: 10px;">设置密保,能通过回答问题找回忘记的密码</p>
</div>
<ul class="inline-btn">
<li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange ">保存设置</a></li>
<li style="padding: 1em 0; float: none; margin: 0 auto;"><a class="submit btn larg btn-orange" autocomplete="off">保存设置</a></li>
</ul>
</form>
</div>
......@@ -663,7 +721,7 @@
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#login" class="lefticon">
<a href="#login" class="lefticon back-btn">
<i class="iconfont icon-fanhui"></i>
</a>
密保找回密码
......@@ -817,6 +875,23 @@
</div>
</div>
</script>
<script id="identityCard_ok_template" type="text/x-jquery-tmpl">
<div class="new-sdk-container">
<div class="SDK-titlebox"></div>
<div class="user-center">
<a href="#home" class="lefticon">
<i class="iconfont icon-fanhui"></i>
</a>
实名认证
</div>
<div class="new-sdk-box">
<div class="acount-name">
<p style="margin-top: 0;">姓名:<span class="compellation_name"></span></p>
<p>身份证:<span class="identity_card"></span></p>
</div>
</div>
</div>
</script>
<script id="message_detail_template" type="text/x-jquery-tmpl">
<div class="header">
<a class="btn pull-left op-back" href="#message">返回</a>
......@@ -921,6 +996,7 @@
<script type="text/javascript" src="js/doT.min.js?20150923001" ></script>
<script type="text/javascript" src="js/iscroll.min.1.0.js?20150923001" ></script>
<script type="text/javascript">
window.isGetData = 0;
$(function() {
FastClick.attach(document.body);
......@@ -929,13 +1005,14 @@ FastClick.attach(document.body);
<script type="text/javascript" src="js/core.min.js?20150923001" ></script>
<script type="text/javascript" src="js/login.min.js?2016111" ></script>
<script type="text/javascript" src="js/loader.min.js?20150923001"></script>
<script type="text/javascript" src="js/simpScroller-min.js"></script>
<script type="text/javascript" src="js/identity_id.js" ></script>
<script type="text/javascript">
window.onload = window.onresize = initMatching;
(function(){
getData('/sdk/login/json');
})();
simpScroller(document.querySelector(".horizontall"), {});
// $(document).ready(function(){
// setTimeout(function(){Core.showTips($("meta[name='viewport']")[0].getAttribute("content"));}, 2000)
// })
......
......@@ -160,29 +160,28 @@
<div class="container">
<div class="box_info_center">
<h2 class="align-left">
请选择要充值{{=Core.Data.game_unit_name || ''}}的数量
</h2>
<p class="align-left text-muted">
注:充值 <span class="text-info">1</span>元可购买 <span class="text-info">{{=Core.Data.exchange_rate*Core.Data.rate || ''}}</span>{{=Core.Data.game_unit || ''}}{{=Core.Data.game_unit_name || ''}}
</p>
<div class="amount_level align-left" >
{{~ Core.Data.amount_level :item:index }}
{{? parseInt(item) }}
<input type="button" value="{{=parseInt(item)}}" class="btn" data="{{=item}}" />
{{?}}
{{~}}
</div>
<br>
<p class="align-left text-success tips9133">
{{? Core.Data.pay_only != 1 }}
{{? Core.Data.is_guest == 1}}
亲爱的<span class="text-info">游客</span>玩家,为确保账号资金安全,请先<a href="#modify_pwd">免费升级账号</a>再充值。
{{??}}
{{? Core.Data.vip > 0}}
{{??}}
{{?}}
{{?}}
{{?}}
</p>
<br>
<div class="amount_level align-left" >
<a href="javascript:Core.finishPay()" id="back-btn" class="btn larg conBtn " style="text-align: center;display:none">请返回游戏</a>
<br>
</div>
</div>
</div>
</script>
......@@ -202,7 +201,7 @@
</form>
<p class="text-warning align-left">游客账号是系统临时生成,存在风险,为了您的账号安全建议升级永久账号。</p>
{{??}}
<p class="text-success align-left">您的账号已经成功升级成手游平台永久账号,登录<a href="sdk://open?url=http://m.9133.com">9133.com</a>可以了解更多特权。</p>
<p class="text-success align-left">您的账号已经成功升级成手游平台永久账号</p>
{{?}}
</div>
</div>
......@@ -234,7 +233,7 @@
<p>
<input class="larg" type="text" name="pay_message" placeholder="给他留言···" />
</p>
<input class="larg btn" type="submit" value="发起代付" />
<p class="align-left small"><span class="error">*</span>注:手游平台登录帐号,不是游戏角色名称</p>
</div>
</div>
......@@ -269,7 +268,7 @@
<input type="number" name="vdcode" id="vdcode" required="" placeholder="输入验证码">
<img id="vdimgck1" src="{{=Core.server}}/validate_code/" onclick="this.src=this.src+'?'+(new Date()).getTime()" style="cursor: pointer;" alt="看不清?点击更换" />
</div>
<input class="larg btn" type="submit" value="确认兑换" />
<hr/>
<div class="clearfix">
<a href="#channel_list&force" class="btn width100" >使用支付宝、银行卡、神州行充值</a>
......@@ -312,7 +311,7 @@
<div class="channel_list align-left" >
{{? Core.Data.youai_star <= Core.Data.total_amount }}
/*<a href="#exchange" class="btn btn-block">游爱星兑换 <span style="float:right;color:#d2d2d2">></span></a>*/
<!--<a href="#exchange" class="btn btn-block">游爱星兑换 <span style="float:right;color:#d2d2d2"></span></a>-->
{{?}}
{{~Core.Data.game_pay_channel_list :item:index }}
{{?item.name}}
......@@ -383,7 +382,7 @@
<input type="hidden" name="role_name" value="{{=Core.Data.role_name}}" />
{{? Core.Data.current_pay_channel }}
<input type="hidden" name="pay_channel_id" value="{{=Core.Data.current_pay_channel.id}}" />
{{?}}
<input type="hidden" name="game_amount" value="{{? Core.Data.game_amount}}{{=Core.Data.game_amount}}{{?}}" />
<input type="hidden" name="money" value="{{=Core.Data.money}}" />
<div class="require_input ">
......@@ -435,6 +434,7 @@
<input class="larg btn zhifubaoBtn" type="submit" value="前往付款" />
{{?}}
</div>
{{?}}
</form>
</div>
......@@ -516,26 +516,10 @@
</div>
<div class="container align-left">
<div class="box_info_center">
<p id="share" class="clearfix">
<span>分享到:</span>
<a class="s_qzone" href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey" title="QQ空间"></a>
<a class="s_tqq" data-appkey="0af6f17f08f3ab2b52c6df3a3ed9b60b" href="http://share.v.t.qq.com/index.php" title="腾讯微博"></a>
</p>
<p id="share_weixin" class="clearfix">
<span>分享到微信:</span>
点击右上角按钮,选择“<span class="text-info">发送给朋友</span>”或者“<span class="text-info">分享到朋友圈</span>”即可完成分享;
</p>
<div class="fs_box invite_box">
<h3 class="text-info">奖励说明:</h3>
<p>
1.成功邀请好友一起玩游戏,您可获得<span class="text-info">5{{=Core.Data.game_unit_name}}</span>的奖励。
</p>
<p>
2.好友若充值(限前10),您可获得<span class="text-info">5%</span>充值奖励。
</p>
<p>
3.好友首次充值,因被您邀请可额外获得<span class="text-info">10%</span>充值返利。
</p>
</div>
</div>
</div>
......@@ -564,11 +548,11 @@
</ol>
</div>
<div class="sec sec_invtite">
<p class="title-fs">方式二:邀请好友可获得{{=Core.Data.game_unit_name}}&nbsp;&nbsp;<a href="#invite_friend">立即去邀请</a></p>
</div>
{{??}}
<div class="sec sec_invtite">
<p class="title-fs">方式一:邀请好友可获得{{=Core.Data.game_unit_name}}&nbsp;&nbsp;<a href="#invite_friend">立即去邀请</a></p>
</div>
{{?}}
</div>
......@@ -805,6 +789,11 @@ FastClick.attach(document.body);
(function(){
getData('/sdk/pay/json');
})();
$(function(){
if (Core.isIos) {
$('meta[name="viewport"]').attr('content','width=800,maximum-scale=1,user-scalable=no');
}
});
</script>
</body>
......
date:2017-4-11
author
:lizenghua
instructions
:与星玩SDK同步
date:2017-4-12
author:lizenghua
instructions:修复当账户及密码为空时(本地存储的账号密码数据为空),通过密保找回密码时一直处于加载中无法跳转的问题
date:2017-4-21
author:lizenghua
instructions:
1、当用户是正式用户并绑定了手机后进行实名认证;身份证校验js:identity_id.js
改动的文件有:login.html、login.js(同步在sdk_xingwan、sdk_6)
2、改动注释了pay.js里面的911行到918行:进入sdk要购买的游戏币>0时强制进入渠道充值页面(已同步在sdk_xingwan、sdk_6)
date:2017-4-24
author:lizenghua
instructions:
1、处理绑定手机的手机验证规则(176),
2、手机找回密码中重置密码残留旧密码问题
date:2017-5-3
author:lizenghua
instructions:
1、注释掉pay.html中的“游爱星”兑换入口
2、处理支付方式切换中出现 input_item 为undefind 的bug (将383行的{{?}}移至435行)
3、去掉设置密保中select默认的下拉图标(login.css)
4、如果没有第三方登录则隐藏掉“第三方登录”字眼
date:2017-5-8
author:lizenghua
instructions:处理支付方式点击支付图标出现 input_item 为undefind 的bug(将150行$c改成$(this))
date:2017-5-12
author:lizenghua
instructions:与游娱同步
\ No newline at end of file
......@@ -27,6 +27,11 @@ a:focus {
outline:thin dotted; /* 处理“outline”在Chrome浏览器中和其它浏览器之间的不一致 */
}
.red{ color: red;}
select{
-moz-appearance: none;
-webkit-appearance:none;
appearance:none;
}
/*字体图标*/
@font-face {font-family: "iconfont";
src: url('../font/iconfont.eot?t=1468997064'); /* IE9*/
......@@ -287,8 +292,8 @@ body{
}
.new-sdk-container .new-sdk-box .input select{
width: 100%;
height: 38px;
line-height: 38px;
height: 88px;
line-height: 88px;
background: none;
border: none;
color: #434343;
......@@ -678,7 +683,8 @@ body{
display: none;
font-family: 宋体;
max-height: 11em;
overflow-y: scroll;
/*overflow-y: scroll;*/
height: 150px;
}
.new-sdk-container .pull-box ul{
margin-left: 65px;
......@@ -914,11 +920,11 @@ button.close {
}
.user-center a{
position: absolute;
right: 37px;
bottom:17px;
right: 27px;
bottom:7px;
color: #ff9600;
font-size: 24px;
padding:10px;
}
.user-center a.lefticon{
right: auto;
......@@ -1168,6 +1174,7 @@ input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
font-size: 24px;
font-family: "Microsoft YaHei","微软雅黑";
vertical-align: -webkit-baseline-middle;
padding: 10px;
}
.pwd_box .step-box .question-input-box{
background: #fff;
......
#!/bin/sh
#js css压缩,生成更新包打包
CDN_SERVER='http://youyu.9133.com/static'
CDN_SERVER='http://cdn.9133.com/static'
DIR_PATH="$( cd "$( dirname "$0" )" && pwd )"
......
20161117
\ No newline at end of file
20170111
......
SERVER_URL=http://sdk.shxingwan.com
CDN_SERVER_URL=http://sdk.shxingwan.com
SDK_TYPE=.sys_config_xingwan
\ No newline at end of file
......