|
|
|
@ -33,6 +33,7 @@
|
|
|
|
|
<input type="hidden" name="isIOS13" value="<?php if($isIOS13):?>1<?php else:?>0<?php endif;?>">
|
|
|
|
|
<input type="hidden" name="isNewIos" value="<?php if($isNewIos):?>1<?php else:?>0<?php endif;?>">
|
|
|
|
|
<input type="hidden" name="supersign_status" value="{$game['supersign_status']}" id="supersign_status">
|
|
|
|
|
<input type="hidden" name="betaUrl" value="{$game['beta_url']}">
|
|
|
|
|
|
|
|
|
|
<?php if ($isWechat):?>
|
|
|
|
|
<?php if ($isAndroid):?>
|
|
|
|
@ -379,9 +380,9 @@
|
|
|
|
|
<div class="input-code">
|
|
|
|
|
<div>
|
|
|
|
|
<img src="__IMG__/20191225/yanzhengma.png" alt="">
|
|
|
|
|
<input id="verifyCode" name="verify_code" type="text" placeholder="请输入验证码">
|
|
|
|
|
<input name="verify_code" type="text" placeholder="请输入验证码">
|
|
|
|
|
</div>
|
|
|
|
|
<img src="/mobile.php?s=/Common/verify.html" alt="">
|
|
|
|
|
<img id="verifyCode" src="/mobile.php?s=/Common/verify.html" alt="">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="register-btn">
|
|
|
|
|
<div id="loginBtn" class="loginBtn">登录</div>
|
|
|
|
@ -394,7 +395,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<img src="__IMG__/20191225/kefu.png" alt="">
|
|
|
|
|
<span>联系客服</span>
|
|
|
|
|
<span class="service_qq">联系客服</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -423,7 +424,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div id="forgetGetPhoneCode" class="gain">获取验证码</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modification">修改密码</div>
|
|
|
|
|
<div id="modify-password" class="modification">修改密码</div>
|
|
|
|
|
<div class="register-forget">
|
|
|
|
|
<div>
|
|
|
|
|
<div>
|
|
|
|
@ -433,7 +434,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<img src="__IMG__/20191225/kefu.png" alt="">
|
|
|
|
|
<span>联系客服</span>
|
|
|
|
|
<span class="service_qq">联系客服</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -449,7 +450,7 @@
|
|
|
|
|
<div class="register-input">
|
|
|
|
|
<div class="input-box">
|
|
|
|
|
<img src="__IMG__/20191225/yonghu.png" alt="">
|
|
|
|
|
<input name="phone" type="text" placeholder="请输入手机号">
|
|
|
|
|
<input name="mobile" type="text" placeholder="请输入手机号">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-box">
|
|
|
|
|
<img src="__IMG__/20191225/mima.png" alt="">
|
|
|
|
@ -462,7 +463,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div id="getPhoneCode" class="gain">获取验证码</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="phonereg" class="modification">立即注册</div>
|
|
|
|
|
<div id="mobile-reg" class="modification">立即注册</div>
|
|
|
|
|
<div class="register-forget">
|
|
|
|
|
<div>
|
|
|
|
|
<div style="color:#292929;font-size: 0.22rem;">注册即表示同意</div>
|
|
|
|
@ -496,7 +497,7 @@
|
|
|
|
|
<img src="__IMG__/20191225/mima.png" alt="">
|
|
|
|
|
<input name="repassword" type="password" placeholder="请再次确认输入密码">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modification">立即注册</div>
|
|
|
|
|
<div id="normal-reg" class="modification">立即注册</div>
|
|
|
|
|
<div class="register-forget">
|
|
|
|
|
<div>
|
|
|
|
|
<div style="color:#292929;font-size: 0.22rem;">注册即表示同意</div>
|
|
|
|
@ -526,7 +527,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<a href="#" class="mounting-btn">点击安装TestFlight平台</a>
|
|
|
|
|
<div class="title-two">第二步:点击下方按钮安装游戏</div>
|
|
|
|
|
<a href="#" class="mounting-btn">点击安装游戏</a>
|
|
|
|
|
<a id="beta-url" href="#" class="mounting-btn">点击安装游戏</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -620,7 +621,7 @@ var PhoneObj = {
|
|
|
|
|
$("#getPhoneCode").on("click",function(){
|
|
|
|
|
//获取手机
|
|
|
|
|
var dom = $(this);
|
|
|
|
|
var phone = $('#phoneval').val();
|
|
|
|
|
var phone = $('#phone-register-box').find('[name=mobile]').val();
|
|
|
|
|
PhoneObj.sendPhoneCode(phone,function(){
|
|
|
|
|
PhoneObj.countDown(dom);
|
|
|
|
|
});
|
|
|
|
@ -628,7 +629,7 @@ var PhoneObj = {
|
|
|
|
|
$("#forgetGetPhoneCode").on("click",function(){
|
|
|
|
|
//获取手机
|
|
|
|
|
var dom = $(this);
|
|
|
|
|
var phone = $('#forgetPhoneval').val();
|
|
|
|
|
var phone = $('#forget-box').find('[name=mobile]').val();
|
|
|
|
|
PhoneObj.sendPhoneCode(phone,function(){
|
|
|
|
|
PhoneObj.countDown(dom);
|
|
|
|
|
});
|
|
|
|
@ -679,13 +680,22 @@ var PhoneObj = {
|
|
|
|
|
$("input").click(function(){
|
|
|
|
|
event.stopPropagation();
|
|
|
|
|
})
|
|
|
|
|
$(".service_qq").on("click",function(){
|
|
|
|
|
window.location.href = 'mqqwpa://im/chat?chat_type=wpa&uin={$serviceQQ}&version=1&src_type=web&web_src=oicqzone.com';
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
$('#verifyCode').on({
|
|
|
|
|
click: function () {
|
|
|
|
|
GetVerityCode()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
function GetVerityCode() {
|
|
|
|
|
//刷新验证码
|
|
|
|
|
$("#verifyCode").attr("src", "/mobile.php?s=/Common/verify.html&id=" + Math.random());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$("#phonereg").on("click",function(){
|
|
|
|
|
$("#mobile-reg").on("click",function(){
|
|
|
|
|
var box = $('#phone-register-box')
|
|
|
|
|
var phone = box.find('[name=mobile]').val()
|
|
|
|
|
var password = box.find('[name=password]').val()
|
|
|
|
@ -707,17 +717,17 @@ var PhoneObj = {
|
|
|
|
|
data:{
|
|
|
|
|
account: phone,
|
|
|
|
|
password: password,
|
|
|
|
|
code: verifyCode,
|
|
|
|
|
verify_code: verifyCode,
|
|
|
|
|
promote_id: promoteId,
|
|
|
|
|
game_id:gameId,
|
|
|
|
|
},
|
|
|
|
|
success: function (result) {
|
|
|
|
|
console.log(result)
|
|
|
|
|
if (result.return_code == 'fail') {
|
|
|
|
|
alert(result.return_msg);
|
|
|
|
|
if (result.code == '0000') {
|
|
|
|
|
$(".phone").hide();
|
|
|
|
|
$('.mounting').show();
|
|
|
|
|
$('#beta-url').attr('href', $('[name=betaUrl]').val())
|
|
|
|
|
} else {
|
|
|
|
|
$("#alert_box").show();
|
|
|
|
|
setTimeout(hideAndLogin,2500)
|
|
|
|
|
alert(result.msg)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
@ -749,7 +759,7 @@ var PhoneObj = {
|
|
|
|
|
url: 'mobile.php?s=/Common/login.html',
|
|
|
|
|
data: {
|
|
|
|
|
'account': account,
|
|
|
|
|
'password': window.btoa(password),
|
|
|
|
|
'password': password,
|
|
|
|
|
'verify_code': verifyCode,
|
|
|
|
|
'promote_id': promoteId,
|
|
|
|
|
},
|
|
|
|
@ -760,18 +770,20 @@ var PhoneObj = {
|
|
|
|
|
async: false,
|
|
|
|
|
cache: false,
|
|
|
|
|
success: function (result) {
|
|
|
|
|
if (result.code != 0) {
|
|
|
|
|
alert(result.msg);
|
|
|
|
|
GetVerityCode();
|
|
|
|
|
if (result.code == '0000') {
|
|
|
|
|
$('.login').hide();
|
|
|
|
|
$('.mounting').show();
|
|
|
|
|
$('#beta-url').attr('href', $('[name=betaUrl]').val())
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
alert(result.msg);
|
|
|
|
|
}
|
|
|
|
|
GetVerityCode();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
//普通注册
|
|
|
|
|
$("#userreg").on("click", function(){
|
|
|
|
|
$("#normal-reg").on("click", function(){
|
|
|
|
|
var box = $('#register-box')
|
|
|
|
|
var account = box.find('[name=account]').val()
|
|
|
|
|
var password = box.find('[name=password]').val()
|
|
|
|
@ -797,29 +809,27 @@ var PhoneObj = {
|
|
|
|
|
}
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: 'POST',
|
|
|
|
|
url: 'mobile.php?s=/Ssg/userRegister.html',
|
|
|
|
|
url: 'mobile.php?s=/Common/userRegister.html',
|
|
|
|
|
dataType: 'JSON',
|
|
|
|
|
data:{
|
|
|
|
|
account: account,
|
|
|
|
|
password: regpassword,
|
|
|
|
|
password: password,
|
|
|
|
|
promote_id: promoteId
|
|
|
|
|
},
|
|
|
|
|
success: function (result) {
|
|
|
|
|
if (result.return_code == 'fail') {
|
|
|
|
|
alert(result.return_msg);
|
|
|
|
|
if (result.code == '0000') {
|
|
|
|
|
$(".common").hide();
|
|
|
|
|
$('.mounting').show();
|
|
|
|
|
$('#beta-url').attr('href', $('[name=betaUrl]').val())
|
|
|
|
|
} else {
|
|
|
|
|
//成功
|
|
|
|
|
$("#alert_box").show();
|
|
|
|
|
setTimeout(hideAndLogin,2500)
|
|
|
|
|
// alert("注册并登陆成功");
|
|
|
|
|
// window.location.href = "mobile.php?s=/Ssg/index.html"
|
|
|
|
|
alert(result.msg)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
//忘记密码
|
|
|
|
|
$("#forgetBtn").on("click",function(){
|
|
|
|
|
$("#modify-password").on("click",function(){
|
|
|
|
|
var box = $('#forget-box')
|
|
|
|
|
var phone = box.find('[name=mobile]').val()
|
|
|
|
|
var password = box.find('[name=password]').val()
|
|
|
|
@ -844,13 +854,12 @@ var PhoneObj = {
|
|
|
|
|
verify_code: verifyCode
|
|
|
|
|
},
|
|
|
|
|
success: function (result) {
|
|
|
|
|
console.log(result)
|
|
|
|
|
if (result.return_code == 'fail') {
|
|
|
|
|
alert(result.return_msg);
|
|
|
|
|
if (result.code == '0000') {
|
|
|
|
|
alert('修改成功,请用新密码登录!')
|
|
|
|
|
$(".login").show();
|
|
|
|
|
$(".forgetPass").hide();
|
|
|
|
|
} else {
|
|
|
|
|
$("#alert_content").html("密码修改成功,系统将在三秒后自动登录");
|
|
|
|
|
$("#alert_box").show();
|
|
|
|
|
setTimeout(hideAndLogin,2500)
|
|
|
|
|
alert(result.msg)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|