|
@ -77,7 +77,6 @@ $(document).ready(function(){
|
77
|
77
|
phoneNumber=true;
|
78
|
78
|
$this.removeClass("frmmsg-warning");
|
79
|
79
|
if(arg2==1) {
|
80
|
|
doClick();
|
81
|
80
|
getPhoneCode();
|
82
|
81
|
}
|
83
|
82
|
}
|
|
@ -94,7 +93,7 @@ $(document).ready(function(){
|
94
|
93
|
$(this).removeClass("frmmsg-warning");
|
95
|
94
|
})
|
96
|
95
|
$(".companysc").blur(function() {
|
97
|
|
var authCode = $(".companysc").val();
|
|
96
|
var authCode = $(this).val();
|
98
|
97
|
if(authCode.length == 0) {
|
99
|
98
|
$(".msgCmp03").find("span").text("请输入您收到的短信验证码");
|
100
|
99
|
phoneMa=false;
|
|
@ -128,6 +127,10 @@ $(document).ready(function(){
|
128
|
127
|
var second = Math.ceil(60 - (nowTime - clickTime) / 1000);
|
129
|
128
|
if(second > 0) {
|
130
|
129
|
$("#getcode").html(second + "s后重新获取");
|
|
130
|
if(second==1) {
|
|
131
|
$("#changImage").attr("src","/ajax/PictureVC?"+new Date().getTime());
|
|
132
|
$("#imgCode").val("");
|
|
133
|
}
|
131
|
134
|
} else {
|
132
|
135
|
clearInterval(Timer);
|
133
|
136
|
$("#getcode").html("免费获取验证码");
|
|
@ -135,25 +138,61 @@ $(document).ready(function(){
|
135
|
138
|
}
|
136
|
139
|
}, 1000);
|
137
|
140
|
}
|
|
141
|
$("#imgCode").on("blur",function(){
|
|
142
|
if($("#imgCode").val().length==0) {
|
|
143
|
$(".msgImage").text("请输入图形验证码");
|
|
144
|
return;
|
|
145
|
}else if($("#imgCode").val().length==4){
|
|
146
|
$(".msgImage").text("");
|
|
147
|
$(this).removeClass("frmmsg-warning");
|
|
148
|
}else{
|
|
149
|
$(".msgImage").text("图形验证码4位");
|
|
150
|
}
|
|
151
|
})
|
|
152
|
$("#imgCode").on("focus",function(){
|
|
153
|
$(".msgImage").text("");
|
|
154
|
$(this).removeClass("frmmsg-warning");
|
|
155
|
})
|
138
|
156
|
/*发送手机验证码*/
|
139
|
157
|
function getPhoneCode() {
|
|
158
|
if($("#imgCode").val().length==0) {
|
|
159
|
$(".msgImage").text("请输入图形验证码");
|
|
160
|
return;
|
|
161
|
}else if($("#imgCode").val().length==4){
|
|
162
|
$(".msgImage").text("");
|
|
163
|
$(this).removeClass("frmmsg-warning");
|
|
164
|
}else{
|
|
165
|
$(".msgImage").text("图形验证码4位");
|
|
166
|
return;
|
|
167
|
}
|
140
|
168
|
$.ajax("/ajax/regmobilephone", {
|
141
|
169
|
type: "get",
|
142
|
170
|
async: true,
|
143
|
171
|
success: function(data) {
|
144
|
172
|
if(data.success) {
|
145
|
173
|
state = data.data;
|
|
174
|
doClick();
|
|
175
|
}else{
|
|
176
|
if(data.code==20001) {
|
|
177
|
$(".msgImage").text("请输入正确的图形验证码");
|
|
178
|
$("#changImage").attr("src","/ajax/PictureVC?"+new Date().getTime());
|
|
179
|
}
|
146
|
180
|
}
|
147
|
181
|
},
|
148
|
182
|
error: function() {
|
149
|
183
|
$.MsgBox.Alert('message', '服务器连接超时')
|
150
|
184
|
},
|
151
|
185
|
data: {
|
152
|
|
"mobilePhone": $("#lp_phone").val()
|
|
186
|
"mobilePhone": $("#lp_phone").val(),
|
|
187
|
"vcode":$('#imgCode').val(),
|
153
|
188
|
},
|
154
|
189
|
dataType: 'json'
|
155
|
190
|
});
|
156
|
191
|
}
|
|
192
|
$("#changImage").on("click",function(){
|
|
193
|
$(this).attr("src","/ajax/PictureVC?"+new Date().getTime());
|
|
194
|
})
|
|
195
|
|
157
|
196
|
/*登录密码校验*/
|
158
|
197
|
|
159
|
198
|
$("#phone_password").focus(function(){
|
|
@ -185,7 +224,7 @@ $(document).ready(function(){
|
185
|
224
|
|
186
|
225
|
/*注册*/
|
187
|
226
|
$("#regMess").on("keyup","#yourName,#lp_phone,.companysc,#phone_password",function(){
|
188
|
|
if($("#yourName").val().length != 0 && $("#lp_phone").val().length != 0&&$(".companysc").val().length != 0&&$("#phone_password").val().length != 0) {
|
|
227
|
if($("#yourName").val().length != 0 && $("#lp_phone").val().length != 0&&$("#imgCode").val().length != 0&&$(".companysc").val().length != 0&&$("#phone_password").val().length != 0) {
|
189
|
228
|
$("#reg").removeAttr("disabled");
|
190
|
229
|
}else{
|
191
|
230
|
$("#reg").attr("disabled","disabled");
|