董佳音

修改登录注册提示信息

... ... @@ -1093,6 +1093,7 @@
<input id="permitSign" class="permitSignIcon" type="checkbox">
<label for="permitSign"></label>
<span class="permitSignMsg">我已阅读并接受用户协议</span>
<p class="errorTit" id="errorTitLogin"></p>
</li>
<li class="btnUsersignLi usersignLi">
<button id="signBtn" class="btnUsersign btnHover">注册</button>
... ... @@ -1123,7 +1124,7 @@
</p>
<li class="btnUsersignLi usersignLi">
<button class="btnUsersign btnHover" id="userLoginBtn">提交</button>
<p class="errorTit" id="errorTit"></p>
<p class="errorTit" id="errorTitSign"></p>
</li>
<p class="forgetPasswordBtn nowSignBtn" id="nowUserSign">
... ...
... ... @@ -237,7 +237,12 @@ class LoginOrRegister extends Ape {
success:function(_data){
console.log(_data,'成功')
//注册成功后 跳转登录界面
if(_data && _data.code == 200){
alert('注册成功')
that._successSign(_data);
}else{
alert(_data.returnData.data.msg)
}
},
error:function(error){
console.log(error,'失败')
... ... @@ -288,9 +293,9 @@ class LoginOrRegister extends Ape {
timeout:5000,
success:function(_data){
loger.log('登录返回数据',_data)
if(_data || _data.code == 200){
ClassDataProxy.userType = ClassDataProxy.USER_TYPE_1;
//ClassDataProxy.userType= _data.returnData.data.userType;
if(_data && _data.code == 200){
alert('登录成功')
ClassDataProxy.userType= _data.returnData.data.userType;
ClassDataProxy.loginName =_name.value;
ClassDataProxy.password = _passWord.value;
ClassDataProxy.token =_data.returnData.data.token
... ... @@ -304,6 +309,9 @@ class LoginOrRegister extends Ape {
window.localStorage.setItem('status', ClassDataProxy.status);
that.successLogin();
}else{
alert(_data.returnData.data.msg)
}
},
error:function(error){
... ...