ソースを参照

增加用户注册

HW 3 年 前
コミット
6b160d3891

+ 51 - 0
html/HN/common.html

@@ -18,6 +18,8 @@
     <th:block th:replace="${link}" />
     <!-- 全局样式(包括头部、底部) -->
     <link rel="stylesheet" th:href="${portalHost+'/css/main.css'}">
+    <!--  注册弹窗  -->
+    <link rel="stylesheet" th:href="${portalHost+'/css/register.css'}">
     <!-- 自定义动画样式 -->
     <link rel="stylesheet" th:href="${portalHost+'/css/ke_animation.css'}">
 <body>
@@ -67,6 +69,7 @@
             <span>全国免费咨询</span>
             <em>400-8800-962</em>
         </div>
+        <button class="submit-button" style="margin-top: 18px;" id="register">注册会员</button>
         <div class="product-serve">
             <div class="list">
                 <div class="">
@@ -522,6 +525,53 @@
         </div>
 
     </div>
+
+    <div class="registered">
+        <div class="reg_con">
+            <form action="" method="post" id="form_register">
+                <div class="clear_first"></div>
+                <div class="zhuce">
+                    <div class="regist">
+                        <span id="registeredClose" style="
+                            position: absolute;
+                            right: 10px;
+                            font-size: 26px;
+                            top: -5px;
+                            cursor: pointer;
+                        ">×</span>
+                        <div class="titleUser">
+                            <p >用户注册</p>
+                        </div>
+                        <div class="zhuce_input">
+                            <input type="text" name="photo" placeholder="请输入手机号码" id="usePhoto" autocomplete="off"/>
+                            <span class="star"> * </span>
+                            <span class="Tips "></span>
+                        </div>
+                        <div class="zhuce_input">
+                            <input type="password" name="userPassword" placeholder="请输入密码" id="userpassword" autocomplete="off"/>
+                            <span class="star"> * </span>
+                            <span class="Tips"></span>
+                        </div>
+                        <div class="zhuce_input">
+                            <input type="password" name="userPassword2" placeholder="确认密码" id="userpassword2" autocomplete="off"/>
+                            <span class="star"> * </span>
+                            <span class="Tips"></span>
+                        </div>
+                        <div class="zhuce_input">
+                            <input type="text" name="userName" placeholder="请输入昵称"  id="username" autocomplete="off"/>
+                            <span class="star"> * </span>
+                            <span class="Tips"></span>
+                        </div>
+                        <div class="submit">
+                            <input type="submit" class="sub" value="注册"/>
+                        </div>
+                    </div>
+
+                </div>
+            </form>
+        </div>
+    </div>
+
     <!-- 手机底部导航 end-->
 </th:block>
 <th:block th:fragment="footer(scripts,type)">
@@ -529,6 +579,7 @@
     <script th:if="${type}!='houtai'" th:src="${portalHost+'/js/jquery/jquery-2.2.4.min.js'}"></script>
     <!-- 导航栏效果、回到顶部 -->
     <script th:if="${type}!='houtai'" th:src="${portalHost+'/js/secode.js'}"></script>
+    <script th:if="${type}!='houtai'" th:src="${portalHost+'/js/register.js'}"></script>
     <script th:inline="javascript">
         /*<![CDATA[*/
         window.globalConfig = {};

+ 206 - 0
package/hn-gw-portal/portal/1.0.14/css/register.css

@@ -0,0 +1,206 @@
+a,a:focus.a:hover{
+    outline: none;
+    text-decoration: none
+}
+/*registered页面container的css*/
+.registered{
+    display: none;
+    position: fixed;
+    z-index: 10000;
+    top: 0;
+    left: 0;
+    right: 0;
+    bottom: 0;
+    background: rgba(0,0,0,.5);
+
+}
+input:-webkit-autofill,
+input:-webkit-autofill:hover,
+input:-webkit-autofill:focus,
+input:-webkit-autofill:active {
+    -webkit-transition-delay: 9999s;
+    -webkit-transition: color 9999s ease-out, background-color 9999s ease-out;
+}
+a:focus,a,a:hover {
+	text-decoration: none;
+}
+
+
+.reg_con{width:1200px;height:770px;}
+.clear_first{width:100%;height:1px;}
+.zhuce{width:1200px;height:535px;margin:0 auto;margin-top:56px;
+    position: relative;}
+.shadow{width:775px;height:25px;margin:0 auto;margin-top:-3px;}
+.regist{width:450px;height:87%;padding:0 35px;box-sizing: border-box;
+    position: absolute;top:0px;right:0;background: #fff; box-shadow: 0 0 10px rgb(90, 90, 90);}
+.zhuce_input{width:95%;height:50px;position: relative;
+    margin-bottom:10px;line-height:50px;background: #eeeeee}
+
+.zhuce_input>select{border:none;width:200px;height:36px;color:#707070; background: transparent;
+    outline: none;}
+.zhuce_input>input{border:none;width: 200px;}
+.zhuce_input>img{width:40px;height:30px;}
+.log_del{margin-left:15px;}
+.yanzheng{width:255px;height:40px;position: relative;margin-bottom:10px;}
+.yanzhengma{width:165px;height:40px;border:1px solid #E5E5E5;
+    line-height: 38px;display:inline-block;margin-right:10px;}
+.yanzhengma>input{border:none;padding-left:10px;}
+.yanzhengma_cont{display:inline-block;width:80px;height:40px;line-height: 38px;
+    position: absolute;top:0;right:0;}
+
+
+.yanzhengma_cont>img{width:100%;height:100%;border: none;}
+.cellcode{width:255px;height:40px;position: relative;margin-bottom:10px;}
+.cellcode>div{width:165px;height:40px;border:1px solid #E5E5E5;
+    line-height: 38px;display:inline-block;margin-right:10px;}
+input{padding-left:10px;}
+.cellcode>a{color:#F18101;}
+#photo{position: absolute;right:30px;top:0;width: 100px;;color:#ccc;display: inline-block;padding-left: 0;background: none;text-align: center;border:none}
+#photo_num{position: absolute;left: 60px;top:0;width:170px;display: inline-block;color:#383838;height: 50px;line-height: 50px;border: none}
+.leibie{width:120px;height:30px;display:inline-block;color:#F18101;font-size: 1.4rem;
+    line-height: 28px;font-weight: bold;padding-left: 20px;position: relative;}
+.leibie input{display:inline-block;width:15px;height:15px;margin-right: 5px;position: absolute;
+    top:5px;left:0;visibility: hidden;}
+.login_check .qiye_lab,.login_check .zhuangjia_lab{height:34px;}
+.businessName{width:255px;height:40px;border:1px solid #E5E5E5;
+    margin-bottom:10px;line-height:38px;}
+.linkmanName{width:255px;height:40px;border:1px solid #E5E5E5;
+    margin-bottom:10px;line-height:38px;}
+.zhuangjiaName{width:255px;height:40px;border:1px solid #E5E5E5;
+    margin-bottom:10px;line-height:38px;display:none;}
+#business,#linkman,#man{width:250px;}
+.submit{width:100%;height:50px;
+    margin-bottom:10px;line-height:50px;}
+.submit>input{cursor: pointer;border:none;width:100%;height:100%;background-color: #fe6e42;color:#fff;
+    font-size: 18px;font-weight: bold;letter-spacing:10px;}
+.protocol{width:255px;height:30px;line-height: 20px;}
+.protocol a{color:#4dbcf8;font-weight: 400;display: inline-block;margin-left: 10px;}
+#protocol{visibility: hidden;}
+.denglu{width:400px;height:20px;text-align: right;display: inline-block;
+    position: absolute;top:0;left:0;}
+.denglu>a{color:#F18101;}
+.huodong{position: absolute;top:20px;left:0;}
+.login_{width: 100%;background: rgba(6,6,6,.4);position: fixed; display: none;height: 100%;
+    top: 0;left: 0;z-index: 999;}
+.login_close_{position: absolute;top:21%;right: 576px;width: 24px;
+    height: 22px;z-index: 2000;cursor: pointer;}
+.login_main_{width:800px;height:60%;background-color: #fff;position: absolute;top: 20%;left: 50%;margin-left: -400px;
+    padding: 20px 50px;overflow-y: auto;box-shadow: 0 4px 10px 0 #777;}
+.title_{line-height: 50px;}
+.longin_foot{line-height: 50px;}
+.regist .zhuce_input:first-child input{
+    width: 180px;
+}
+.star{
+    font-size: 24px;
+    position: absolute;
+    right: 0;
+    top: 5px;
+    color: red;
+    margin-right: -20px;
+}
+.zhuce_input input{
+    width: 280px;
+    height: 50px;
+    line-height: 50px;
+    background: transparent;
+}
+
+
+
+
+
+
+
+
+.zhuce_input>img{
+    width: 22px;
+    display: inline-block;
+    height: 22px;
+    margin-left: 20px;
+    vertical-align: top;
+    margin-top: 14px;
+    margin-right: 12px;
+}
+/* //登陆页面 */
+
+.zhuce_input .log_del{width: 16px ;height: 16px;position: absolute; top: 10px;right: 10px;}
+.log_del:hover{cursor: pointer;}
+.login_uesr{margin-bottom: 20px;}
+
+.head_login:focus{text-decoration: none;}
+/*底部定制*/
+.bottom{margin-top:0;}
+
+.glyphicon-user,.glyphicon-phone{
+    vertical-align: top;
+    margin-top: 10px;
+    font-size: 18px;
+    padding: 0 10px;
+    border-right: 1px solid #E5E5E5;
+}
+
+
+.zhuce_input{
+    margin-top: 10px;
+}
+
+.regist .titleUser{
+    margin-top: 18px;
+    border: none;
+    border-bottom: 1px solid #efefef;
+    height: 44px;
+}
+.regist .titleUser p:nth-child(1){
+    float: left;
+    font-size: 24px;
+    color: #666666;
+}
+.regist .titleUser p:nth-child(2){
+    float: right;
+    font-size: 14px;
+    color: #666666;
+    vertical-align: bottom;
+    margin-top: 10px;
+}
+.regist .titleUser p a{
+    color: #2ca7f3;
+
+}
+.Tips{
+    position: absolute;
+    padding: 0 20px;
+    top: -30px;
+    right: 30px;
+    height: 40px;
+    line-height: 40px;
+    font-size: 14px;
+    color: rgb(241, 52, 61);
+    border-radius: 5px;
+    background: rgba(255,255,255,.9);
+    color: rgb(248, 78, 78);
+    z-index: 111;
+    box-shadow: 0 0 10px #ccc;
+    display: none;
+}
+.Tips.active{
+    display: block;
+}
+.Tips::before{
+    content: '';
+    display: inline-block;
+    width: 10px;
+    height: 10px;
+    background: rgba(255,255,255,.9);
+    position: absolute;
+    top: 35px;
+    left: 70px;
+    transform: rotate(45deg);
+    z-index: 110;
+}
+.text_center p,.text_top,.text_bottom,.text_bottom a,.text_top a{
+    color: #383838
+}
+.text_bottom a:hover{
+    color: #2ca7f3;
+}

File diff suppressed because it is too large
+ 108 - 5
package/hn-gw-portal/portal/1.0.14/js/page.js


+ 230 - 0
package/hn-gw-portal/portal/1.0.14/js/register.js

@@ -0,0 +1,230 @@
+$(function () {
+    //查看技淘网协议
+    var hht = $(window).height();
+    $('.login_').height(hht);
+    //登陆
+    var hht = $(window).height();
+    $('.login').hide();
+    //点击账号后面那个×,清空账号
+    $(".log_del").click(function () {
+        $("#username").focus().val("").css('color','#666');
+    });
+
+    $("#register").click(function () {
+        $(".registered").css('display','block')
+    });
+
+    $("#registeredClose").click(function () {
+        $(".registered").css('display','none')
+    });
+
+    //手机号码
+    let oldPhoto='';
+    var phopoVal=[];
+    $('#photo').attr('disabled', true);
+    function photo1() {
+        var pho_pattern = /^1[2|3|4|5|6|7|8|9][0-9]{9}$/;
+        $("#usePhoto").keyup(function () {
+            oldPhoto = $(this).val();
+            if (pho_pattern.test(oldPhoto)) {
+                tipFun.call(this,false,'')
+                $('#photo').attr('disabled', false);
+                $("#photo").css("color", "#F18101");
+            } else  {
+                tipFun.call(this,true,'请填写正确的手机号码')
+                $('#photo').attr('disabled', true);
+                $("#photo").css("color", "#ccc");
+            }
+        });
+        $("#usePhoto").blur(function(){
+            if (pho_pattern.test(oldPhoto)) {
+                tipFun.call(this,false,'')
+            } else  {
+                tipFun.call(this,true,'请填写正确的手机号码')
+            }
+        })
+    }
+    photo1();
+    //手机验证码
+    function photo_num() {
+        $('#photo_num').blur(function () {
+            var phoa = $(this).val().trim();
+            if (phoa == '') {
+                tipFun.call(this,true,'验证码不能为空')
+            }else{
+                tipFun.call(this,false,'')
+            }
+        })
+    }
+    photo_num();
+    /*失去焦点处理 */
+    blurFun();
+    /* 提示框函数处理 */
+    function tipFun(state,txt){
+        let _this=this;
+        if(state){
+            $(_this).siblings('.Tips').text(txt);
+            $(_this).siblings('.Tips').addClass('active')
+        }else{
+            $(_this).siblings('.Tips').text('');
+            $(_this).siblings('.Tips').removeClass('active')
+        }
+    }
+    function blurFun(){
+        $('#username').blur(function(){
+            if(!$(this).val().trim()){
+                tipFun.call(this,true,'请填写用户名')
+            }else {
+                tipFun.call(this,false,'')
+            }
+        })
+        $('#userpassword').blur(function () {
+            var pass_pattern = /^[a-zA-Z\d_]{6,12}$/;
+            var pass1 = $(this).val().trim();
+            var tt = $('#userpassword2').val().trim();
+            if (!pass1|| !(pass_pattern.test(pass1))) {
+                tipFun.call(this,true,'请输入6-12位数的密码')
+            }else if(pass1===tt){
+                tipFun.call($('#userpassword2'),false,'');
+            }else{
+                tipFun.call(this,false,'')
+                tipFun.call($('#userpassword2'),true,'两次密码不一致');
+            }
+        });
+        $('#customerName').blur(function(){
+            if(!$(this).val().trim()){
+                tipFun.call(this,true,'请填写客户名称')
+            }else{
+                tipFun.call(this,false,'')
+            }
+        });
+
+        $('#userpassword2').blur(function () {
+            var orepeat = $(this).val();
+            var passw = $('#userpassword').val();
+            if (passw !== orepeat || passw == '') {
+                tipFun.call(this,true,'两次密码不一致')
+            }else{
+                tipFun.call(this,false,'')
+            }
+        });
+    }
+    function initVal(){
+        $('#protocol').prop("checked", false)
+        $(this).prop('checked', false)
+        $(this).parent().addClass('cheackeds_no').removeClass('cheackeds');
+        $('.sub').attr('disabled', true)
+        $('.sub').css({
+            background: '#CCCCCC',
+            border: 'none'
+        })
+    }
+    //表单提交
+    if(window.location.search.indexOf('code')>-1){
+       let code =  (window.location.search).split('=');
+        $('#beInviteCode').val(code[1]);
+    }
+    $("#form_register").submit(function (e) {
+        e.preventDefault();
+        var user = $("#username").val(),
+            usePhoto = $('#usePhoto').val(),
+            password1 = $("#userpassword").val(),
+            password2 = $("#userpassword2").val();
+            if(!usePhoto){
+                tipFun.call($('#usePhoto'),true,'手机号码不能为空.')
+                return ;
+            }
+            if(!password1){
+                tipFun.call($('#userpassword'),true,'密码不能为空.')
+                return ;
+            }
+            if(password1!==password2){
+                tipFun.call($('#userpassword2'),true,'两次密码不一致');
+                return;
+            };
+            if(!user){
+                tipFun.call($('#username'),true,'昵称不能为空');
+                return;
+            };
+            alert("恭喜您!注册成功");
+            $("#username").val('')
+            $("#usePhoto").val('')
+            $("#userpassword").val('')
+            $("#userpassword2").val('')
+            $(".registered").css('display','none')
+    })
+    agreement();
+    function agreement(){
+        $('.head_login_').click(function(){
+            $('.login_').show();
+        })
+        $('.login_close_').click(function(){
+            $('.login_').hide();
+        })
+    }
+    var tt = 30;
+
+    $('#photo').click(function () {
+        phopoVal=[];
+        var ophoto = $('#usePhoto').val().trim();
+        if (ophoto) {
+            phopoVal.push(ophoto);
+            $.ajax({
+                type: "GET",
+                url: globalConfig.context + "/open/getMCode",
+                data: {
+                    "mobile": ophoto,
+                    "sign": false,
+                },
+                success: function (data) {
+                    if (data.error && data.error.length) {
+                        msg(data.error[0].message);
+                    } else {
+                        //验证码倒计时
+                        $('#photo').attr('disabled', true);
+                        var timer = setInterval(function () {
+                            tt -= 1;
+                            $('#photo').val("发送" + '(' + tt + 's' + ')');
+                            $('#photo').css({
+                                color: '#cccccc'
+                            })
+                            if (tt == 0) {
+                                clearInterval(timer);
+                                $('#photo').attr('disabled', false);
+                                tt = 30;
+                                $('#photo').css({
+                                    color: '#f18101'
+                                })
+                                $('#photo').val('重新发送');
+                            }
+                        }.bind(this), 1000);
+                        msg('发送成功');
+                    }
+                    return true;
+                }
+            });
+        } else {
+            msg('请填写手机号码!');
+        }
+    });
+    //提示框渐隐函数
+    function msg(mess) {
+        if($('.smg').hasClass('active')){
+			return ;
+		}
+        $('.smg').addClass('active')
+        $('#msg').val(mess);
+        setTimeout(function () {
+            $('.smg').removeClass('active')
+            $('#msg').val('');
+        }, 2000)
+    }
+    //注册 底部图片处理
+    footerImg()
+    function footerImg(){
+        $('.cont_left img').css('display','none');
+        $('.cont_center img').css('display','none');
+        $('.cont_left div').css('display','block');
+        $('.cont_center div').css('display','block');
+    }
+});

+ 2 - 0
package/hn-gw-portal/portal/原版未压缩/js/page.js

@@ -16,6 +16,8 @@ function page_ctrl(data_obj) {
     //插入放页码的div
     $(obj_box).html('<div class="page_ctrl"></div>');
 
+    $('.page_activitiesPage').css({display:'none'});    //首次进入隐藏翻页组件
+
     function page_even() {
         //只能传达数字
         var regPos = /^\d+$/;

+ 230 - 0
package/hn-gw-portal/portal/原版未压缩/js/register.js

@@ -0,0 +1,230 @@
+$(function () {
+    //查看技淘网协议
+    var hht = $(window).height();
+    $('.login_').height(hht);
+    //登陆
+    var hht = $(window).height();
+    $('.login').hide();
+    //点击账号后面那个×,清空账号
+    $(".log_del").click(function () {
+        $("#username").focus().val("").css('color','#666');
+    });
+
+    $("#register").click(function () {
+        $(".registered").css('display','block')
+    });
+
+    $("#registeredClose").click(function () {
+        $(".registered").css('display','none')
+    });
+
+    //手机号码
+    let oldPhoto='';
+    var phopoVal=[];
+    $('#photo').attr('disabled', true);
+    function photo1() {
+        var pho_pattern = /^1[2|3|4|5|6|7|8|9][0-9]{9}$/;
+        $("#usePhoto").keyup(function () {
+            oldPhoto = $(this).val();
+            if (pho_pattern.test(oldPhoto)) {
+                tipFun.call(this,false,'')
+                $('#photo').attr('disabled', false);
+                $("#photo").css("color", "#F18101");
+            } else  {
+                tipFun.call(this,true,'请填写正确的手机号码')
+                $('#photo').attr('disabled', true);
+                $("#photo").css("color", "#ccc");
+            }
+        });
+        $("#usePhoto").blur(function(){
+            if (pho_pattern.test(oldPhoto)) {
+                tipFun.call(this,false,'')
+            } else  {
+                tipFun.call(this,true,'请填写正确的手机号码')
+            }
+        })
+    }
+    photo1();
+    //手机验证码
+    function photo_num() {
+        $('#photo_num').blur(function () {
+            var phoa = $(this).val().trim();
+            if (phoa == '') {
+                tipFun.call(this,true,'验证码不能为空')
+            }else{
+                tipFun.call(this,false,'')
+            }
+        })
+    }
+    photo_num();
+    /*失去焦点处理 */
+    blurFun();
+    /* 提示框函数处理 */
+    function tipFun(state,txt){
+        let _this=this;
+        if(state){
+            $(_this).siblings('.Tips').text(txt);
+            $(_this).siblings('.Tips').addClass('active')
+        }else{
+            $(_this).siblings('.Tips').text('');
+            $(_this).siblings('.Tips').removeClass('active')
+        }
+    }
+    function blurFun(){
+        $('#username').blur(function(){
+            if(!$(this).val().trim()){
+                tipFun.call(this,true,'请填写用户名')
+            }else {
+                tipFun.call(this,false,'')
+            }
+        })
+        $('#userpassword').blur(function () {
+            var pass_pattern = /^[a-zA-Z\d_]{6,12}$/;
+            var pass1 = $(this).val().trim();
+            var tt = $('#userpassword2').val().trim();
+            if (!pass1|| !(pass_pattern.test(pass1))) {
+                tipFun.call(this,true,'请输入6-12位数的密码')
+            }else if(pass1===tt){
+                tipFun.call($('#userpassword2'),false,'');
+            }else{
+                tipFun.call(this,false,'')
+                tipFun.call($('#userpassword2'),true,'两次密码不一致');
+            }
+        });
+        $('#customerName').blur(function(){
+            if(!$(this).val().trim()){
+                tipFun.call(this,true,'请填写客户名称')
+            }else{
+                tipFun.call(this,false,'')
+            }
+        });
+
+        $('#userpassword2').blur(function () {
+            var orepeat = $(this).val();
+            var passw = $('#userpassword').val();
+            if (passw !== orepeat || passw == '') {
+                tipFun.call(this,true,'两次密码不一致')
+            }else{
+                tipFun.call(this,false,'')
+            }
+        });
+    }
+    function initVal(){
+        $('#protocol').prop("checked", false)
+        $(this).prop('checked', false)
+        $(this).parent().addClass('cheackeds_no').removeClass('cheackeds');
+        $('.sub').attr('disabled', true)
+        $('.sub').css({
+            background: '#CCCCCC',
+            border: 'none'
+        })
+    }
+    //表单提交
+    if(window.location.search.indexOf('code')>-1){
+       let code =  (window.location.search).split('=');
+        $('#beInviteCode').val(code[1]);
+    }
+    $("#form_register").submit(function (e) {
+        e.preventDefault();
+        var user = $("#username").val(),
+            usePhoto = $('#usePhoto').val(),
+            password1 = $("#userpassword").val(),
+            password2 = $("#userpassword2").val();
+            if(!usePhoto){
+                tipFun.call($('#usePhoto'),true,'手机号码不能为空.')
+                return ;
+            }
+            if(!password1){
+                tipFun.call($('#userpassword'),true,'密码不能为空.')
+                return ;
+            }
+            if(password1!==password2){
+                tipFun.call($('#userpassword2'),true,'两次密码不一致');
+                return;
+            };
+            if(!user){
+                tipFun.call($('#username'),true,'昵称不能为空');
+                return;
+            };
+            alert("恭喜您!注册成功");
+            $("#username").val('')
+            $("#usePhoto").val('')
+            $("#userpassword").val('')
+            $("#userpassword2").val('')
+            $(".registered").css('display','none')
+    })
+    agreement();
+    function agreement(){
+        $('.head_login_').click(function(){
+            $('.login_').show();
+        })
+        $('.login_close_').click(function(){
+            $('.login_').hide();
+        })
+    }
+    var tt = 30;
+
+    $('#photo').click(function () {
+        phopoVal=[];
+        var ophoto = $('#usePhoto').val().trim();
+        if (ophoto) {
+            phopoVal.push(ophoto);
+            $.ajax({
+                type: "GET",
+                url: globalConfig.context + "/open/getMCode",
+                data: {
+                    "mobile": ophoto,
+                    "sign": false,
+                },
+                success: function (data) {
+                    if (data.error && data.error.length) {
+                        msg(data.error[0].message);
+                    } else {
+                        //验证码倒计时
+                        $('#photo').attr('disabled', true);
+                        var timer = setInterval(function () {
+                            tt -= 1;
+                            $('#photo').val("发送" + '(' + tt + 's' + ')');
+                            $('#photo').css({
+                                color: '#cccccc'
+                            })
+                            if (tt == 0) {
+                                clearInterval(timer);
+                                $('#photo').attr('disabled', false);
+                                tt = 30;
+                                $('#photo').css({
+                                    color: '#f18101'
+                                })
+                                $('#photo').val('重新发送');
+                            }
+                        }.bind(this), 1000);
+                        msg('发送成功');
+                    }
+                    return true;
+                }
+            });
+        } else {
+            msg('请填写手机号码!');
+        }
+    });
+    //提示框渐隐函数
+    function msg(mess) {
+        if($('.smg').hasClass('active')){
+			return ;
+		}
+        $('.smg').addClass('active')
+        $('#msg').val(mess);
+        setTimeout(function () {
+            $('.smg').removeClass('active')
+            $('#msg').val('');
+        }, 2000)
+    }
+    //注册 底部图片处理
+    footerImg()
+    function footerImg(){
+        $('.cont_left img').css('display','none');
+        $('.cont_center img').css('display','none');
+        $('.cont_left div').css('display','block');
+        $('.cont_center div').css('display','block');
+    }
+});