|
|
|
@ -86,6 +86,9 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function register(){
|
|
|
|
|
if($("#loginUpButton").hasClass('loginUpDisableButton')){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if($login_correct && $mail_correct && $passwd_correct && $passwd_comfirm_correct && $("#read_and_confirm").attr("checked") == 'checked'){
|
|
|
|
|
$("#main_reg_form").submit();
|
|
|
|
|
}else{
|
|
|
|
@ -182,6 +185,16 @@
|
|
|
|
|
$('#main_login_form').submit();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function changeRegisterBtn(checkbox){
|
|
|
|
|
if(checkbox.checked == true){
|
|
|
|
|
$("#loginUpButton").removeClass('loginUpDisableButton');
|
|
|
|
|
$("#loginUpButton").addClass('loginUpButton');
|
|
|
|
|
}else{
|
|
|
|
|
$("#loginUpButton").removeClass('loginUpButton')
|
|
|
|
|
$("#loginUpButton").addClass('loginUpDisableButton');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<div class="loginContentContainer">
|
|
|
|
|
<div class="loginContent">
|
|
|
|
@ -270,11 +283,11 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="loginSignOption">
|
|
|
|
|
<div class="fl mt3 mr5">
|
|
|
|
|
<input type="checkbox" id="read_and_confirm"/>
|
|
|
|
|
<input type="checkbox" id="read_and_confirm" onchange="changeRegisterBtn(this);"/>
|
|
|
|
|
</div>
|
|
|
|
|
我已阅读并接受<a href="<%= agreement_path %>" class="newsBlue"><u>Trustie服务协议</u></a>条款</div>
|
|
|
|
|
<div class="loginUpButton">
|
|
|
|
|
<a href="javascript:void(0);" class="c_white db" id="regist_btn" onclick="register();">注册</a>
|
|
|
|
|
<div class="loginUpDisableButton" id="loginUpButton">
|
|
|
|
|
<a href="javascript:void(0);" class="c_white db" id="regist_btn" onclick="register();" >注册</a>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|