fhtwins
//首先要判断用户录入的手机号是不是中国移动的,不是直接给出提示,并终止登录
    if($("#cmUsername1").val().isMobile())//手机号码
    {
        jQuery.ajax({
                    async: false,//必须同步!!
                    url: G_CTX_ROOT+"/query/isJSorHNMobile",
                    data: {mobile: $("#cmUsername1").val()},
                    dataType: "json",
                    success: function (json) {
                        if(json.data == -1)
                        {
                            jQuery.isChinaMobile = false;
                        }
                        else
                        {
                            jQuery.isChinaMobile = true;
                        }
                    },
                    error: function (err) {
                        jQuery.isChinaMobile = true;
                    }
         });
        
        if(!jQuery.isChinaMobile && jQuery.isChinaMobile!=undefined)
        {
            try {showTipError(newForm,"请输入中国移动手机号码"); } catch (e) {}
            //$(".mo-form-widght-pb0").hide();
            return false;
        }
    }    

 

分类:

技术点:

相关文章:

  • 2021-12-07
  • 2020-01-03
  • 2021-04-13
  • 2021-06-21
  • 2021-10-29
  • 2021-10-07
  • 2021-11-14
  • 2021-11-07
猜你喜欢
  • 2021-11-05
  • 2021-10-14
  • 2021-12-10
  • 2021-10-26
  • 2021-11-03
  • 2021-09-16
  • 2021-10-16
相关资源
相似解决方案