From 992ef831b5f7c986edaa928373c47ba037fc1362 Mon Sep 17 00:00:00 2001
From: chenzhi <“chenzhi063@qq.com>
Date: Fri, 18 Oct 2019 15:24:54 +0800
Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=A0=81=E7=AE=80=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Mobile/Controller/SsgController.class.php | 3 +++
Application/Mobile/View/Ssg/login.html | 12 ++++++++----
Public/Mobile/css/ssg/common.css | 3 +++
3 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/Application/Mobile/Controller/SsgController.class.php b/Application/Mobile/Controller/SsgController.class.php
index 1a0ac4bfe..34f366eca 100644
--- a/Application/Mobile/Controller/SsgController.class.php
+++ b/Application/Mobile/Controller/SsgController.class.php
@@ -77,6 +77,7 @@ class SsgController extends BaseController {
if (!$verify->check(I("VerifyCode"))) {
$this->ajaxReturn(array("ErrorCode" => -97, "ResultMsg" => "验证码错误"));
}
+
$userApi = new MemberApi();
$user_id = $userApi->login($account, $password,1);//调用登录
$res_code = 0;
@@ -124,6 +125,8 @@ class SsgController extends BaseController {
'imageW' => 107, // 验证码图片宽度
'length' => 4, // 验证码位数
'fontttf' => '4.ttf', // 验证码字体,不设置随机获取
+ 'useCurve' => false, // 是否画混淆曲线
+ 'useNoise' => false, // 是否添加杂点
'useCurve' => false,
);
diff --git a/Application/Mobile/View/Ssg/login.html b/Application/Mobile/View/Ssg/login.html
index ac2342a03..caba64641 100644
--- a/Application/Mobile/View/Ssg/login.html
+++ b/Application/Mobile/View/Ssg/login.html
@@ -41,6 +41,7 @@
+
@@ -156,12 +157,11 @@
// initialSlide :2,
noSwiping : true,
})
-
var loginLock = false;
function GetVerityCode() {
//刷新验证码
$("#verifyCode").attr("src", "/mobile.php?s=/Ssg/verify.html&id=" + Math.random());
- }
+ }
$(".gophonreg").on("click",function() {
//去手机注册页
mySwiper.slideTo(1, 350, false);
@@ -180,7 +180,8 @@
$(".chatqq").on("click",function(){
window.location.href = 'mqqwpa://im/chat?chat_type=wpa&uin={$app_qq}&version=1&src_type=web&web_src=oicqzone.com';
})
- //获取登录密码
+ //获取验证码
+
//登陆
$("#loginbtn").on("click",function(){
@@ -204,7 +205,10 @@
alert("推广员ID不能为空");
return false;
}
-
+ if(userCode != verifyCode){
+ alert("验证码错误,请重新输入");
+ return false;
+ }
jQuery.ajax({
type: 'POST',
url: 'mobile.php?s=/Ssg/do_login.html',
diff --git a/Public/Mobile/css/ssg/common.css b/Public/Mobile/css/ssg/common.css
index 191673ba6..ab0fb4a18 100644
--- a/Public/Mobile/css/ssg/common.css
+++ b/Public/Mobile/css/ssg/common.css
@@ -465,6 +465,9 @@ font-size: .16rem;
.login-page .loginbox .verify-item .verify-img{
cursor:pointer;width:1.5rem;height: .7rem;margin-right:0px;
}
+/* .login-page .loginbox .verify-item .verify-img{
+ cursor:pointer;width:1.5rem;height: .7rem;margin-right:0px;
+} */
.login-page .loginbox .login-btn-group{
display: flex;width:100%;margin:.22rem auto 0;justify-content:center;align-items:center;font-size: .32rem;text-align: center;line-height:1.1rem;color: #fff;
}