|
@@ -1,8 +1,8 @@
|
|
|
-import '../css/bootstrap.less';
|
|
|
-import 'bootstrap/dist/js/bootstrap.js';
|
|
|
-import '../css/public.css';
|
|
|
-import '../css/registered.css';
|
|
|
-import './public.js'
|
|
|
+//import '../css/bootstrap.less';
|
|
|
+//import 'bootstrap/dist/js/bootstrap.js';
|
|
|
+//import '../css/public.css';
|
|
|
+//import '../css/registered.css';
|
|
|
+//import './public.js'
|
|
|
(function(){
|
|
|
//选择专家和企业时要切换
|
|
|
var panduan;
|
|
@@ -23,14 +23,23 @@ import './public.js'
|
|
|
$(".zhuangjiaName").css("display","block");
|
|
|
}
|
|
|
});
|
|
|
+ //点击账号后面那个×,清空账号
|
|
|
+ $(".log_del").click(function(){
|
|
|
+ $("#username").val("");
|
|
|
+ });
|
|
|
//修改单选框的样式
|
|
|
- $('#checks').attr('checked',false)
|
|
|
- $('.login_check label input').click(function(){
|
|
|
- var Cheack=$(this).prop('checked')
|
|
|
+ //$('.leibie input').css("display","none");
|
|
|
+ $(".leibie").css({"background":"url(../img/unchecked.jpg) no-repeat center left","background-size":"13px 13px"});
|
|
|
+ $('.leibie input').click(function(){
|
|
|
+ var Cheack=$(this).prop('checked');
|
|
|
if(Cheack){
|
|
|
- $(this).parent().css({"background":"url(../imgeck_lo.png) no-repeat center left","background-size":"25% 40%"})
|
|
|
+ //$(this).css("display","none");
|
|
|
+ $(".leibie").css({"background":"url(../img/unchecked.jpg) no-repeat center left","background-size":"13px 13px"});
|
|
|
+ $(this).parent().css({"background":"url(../img/checked.jpg) no-repeat center left","background-size":"13px 13px"})
|
|
|
}else{
|
|
|
- $(this).parent().css({"background":"url(../imgeck_lono.png) no-repeat center left","background-size":"25% 40%"})
|
|
|
+ // $(this).css("display","none");
|
|
|
+ $(".leibie").css({"background":"url(../img/unchecked.jpg) no-repeat center left","background-size":"13px 13px"});
|
|
|
+ $(this).parent().css({"background":"url(../img/unchecked.jpg) no-repeat center left","background-size":"13px 13px"})
|
|
|
}
|
|
|
});
|
|
|
//表单验证
|
|
@@ -111,9 +120,14 @@ import './public.js'
|
|
|
if (pho=='') {
|
|
|
$(this).val('');
|
|
|
$(this).attr('placeholder', '请输入您的手机号码');
|
|
|
+
|
|
|
} else if (!pho_pattern.test(pho)) {
|
|
|
$(this).val('');
|
|
|
$(this).attr('placeholder', '请输入正确的手机号码');
|
|
|
+
|
|
|
+ }else if(pho_pattern.test(pho)){
|
|
|
+ $('#photo').attr('disabled', false);
|
|
|
+ $("#photo").css("color","#F18101");
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -216,6 +230,49 @@ import './public.js'
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
+ var tt = 30;
|
|
|
+ $('#photo').click(function () {
|
|
|
+ //手机验证功能
|
|
|
+ var ophoto = $('#username').val();
|
|
|
+ var types = $('#zhuangjia').prop("checked") ? '1' : '0';
|
|
|
+ var phott = $('#piccode').val();
|
|
|
+ //验证码倒计时
|
|
|
+ $('#photo').attr('disabled', true);
|
|
|
+ $(this).attr('disabled', true);
|
|
|
+ var timer = setInterval(function () {
|
|
|
+ tt -= 1;
|
|
|
+ $('#photo').attr('disabled', true);
|
|
|
+ $(this).val(tt + ' s');
|
|
|
+ if (tt == 0) {
|
|
|
+ clearInterval(timer);
|
|
|
+ $('#photo').attr('disabled', false);
|
|
|
+ $(this).attr('disabled', false);
|
|
|
+ tt=30;
|
|
|
+ $(this).val('重新发送');
|
|
|
+ }
|
|
|
+ }.bind(this), 1000);
|
|
|
+
|
|
|
+ $.ajax({
|
|
|
+ type: "GET",
|
|
|
+ url: globalConfig.context + "/open/getMCode",
|
|
|
+ data: {
|
|
|
+ "mobile": ophoto,
|
|
|
+ "sign": false,
|
|
|
+ "type": types,
|
|
|
+ "verificationCode": phott
|
|
|
+ },
|
|
|
+ success: function (data) {
|
|
|
+ if (data.error && data.error.length) {
|
|
|
+ $('.msg span').html(data.error[0].message);
|
|
|
+ console.log(data.error[0].message);
|
|
|
+ } else {
|
|
|
+ console.log(data);
|
|
|
+ $('#photo').html("发送成功!")
|
|
|
+ }
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
})();
|
|
|
|
|
|
|