diff --git a/Application/Home/Controller/HomeController.class.php b/Application/Home/Controller/HomeController.class.php index 04f863e2c..adc53ef6a 100644 --- a/Application/Home/Controller/HomeController.class.php +++ b/Application/Home/Controller/HomeController.class.php @@ -237,6 +237,9 @@ class HomeController extends Controller $downloadUrl = $applyService->getDownloadUrl($apply); } + $serviceQQ = M("config", "sys_")->field('value')->where("name='APP_QQ'")->find()['value']; + $this->assign("serviceQQ", $serviceQQ); + $this->assign('isNewIos', $isNewIos); $this->assign('downloadUrl', $downloadUrl); $this->assign('isIOS13', $isIOS13); diff --git a/Application/Home/View/default/Home/landingPage.html b/Application/Home/View/default/Home/landingPage.html index c5126a27a..cade98419 100644 --- a/Application/Home/View/default/Home/landingPage.html +++ b/Application/Home/View/default/Home/landingPage.html @@ -721,12 +721,10 @@ var PhoneObj = { game_id:gameId, }, success: function (result) { - console.log(result) - if (result.return_code == 'fail') { - alert(result.return_msg); + if (result.code == '0000') { + $('.mounting').show(); } else { - $("#alert_box").show(); - setTimeout(hideAndLogin,2500) + alert(result.msg) } } }) @@ -769,11 +767,11 @@ var PhoneObj = { async: false, cache: false, success: function (result) { - if (result.code != 0) { - alert(result.msg); + if (result.code == '0000') { + $('.mounting').show(); GetVerityCode(); } else { - + alert(result.msg); } } }); @@ -814,15 +812,11 @@ var PhoneObj = { promote_id: promoteId }, success: function (result) { - if (result.return_code == 'fail') { - alert(result.return_msg); - } else { - //成功 - $("#alert_box").show(); - setTimeout(hideAndLogin,2500) - // alert("注册并登陆成功"); - // window.location.href = "mobile.php?s=/Ssg/index.html" - } + if (result.code == '0000') { + $('.mounting').show(); + } else { + alert(result.msg) + } } }) @@ -853,13 +847,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) } } })