|
@@ -86,12 +86,19 @@ $(function () {
|
|
}
|
|
}
|
|
photo_num();
|
|
photo_num();
|
|
/* 获得焦点处理 */
|
|
/* 获得焦点处理 */
|
|
- $('#username,#customerName,#usePhoto,#photo_num').focus(function(){
|
|
|
|
|
|
+ $('#username,#customerName,#usePhoto').focus(function(){
|
|
let val = $(this).val();
|
|
let val = $(this).val();
|
|
- if(val.indexOf('用户名')>-1||val.indexOf('下划线')>-1||val.indexOf('客户')>-1||val.indexOf('手机')>-1||val.indexOf('验证码')>-1){
|
|
|
|
|
|
+ if(val.indexOf('用户名')>-1||val.indexOf('下划线')>-1||val.indexOf('客户')>-1||val.indexOf('手机')>-1){
|
|
$(this).val('').css({color:'#333'})
|
|
$(this).val('').css({color:'#333'})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+ $('#photo_num').focus(function(){
|
|
|
|
+ if(($(this).val()).indexOf('验证码')>-1){
|
|
|
|
+ $(this).val('')
|
|
|
|
+ }
|
|
|
|
+ $(this).css({color:'#333'})
|
|
|
|
+ })
|
|
$('#userpassword,#userpassword2').focus(function(){
|
|
$('#userpassword,#userpassword2').focus(function(){
|
|
let passVal =$(this).val();
|
|
let passVal =$(this).val();
|
|
if(passVal.indexOf('密码')){
|
|
if(passVal.indexOf('密码')){
|