cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!doctype html>
<html>
<head>
<meta charset="utf-8">
[#include "/business/wechat/include/title.html" /]
[#include "/business/wechat/include/wheader.html" /]
<script type="text/javascript">
    $(function(){
        $("#bind").click(function() {
            var username = $.trim($("#username").val());
            var ime = app.getIme();
            if($.util.isEmpty(username)) {
                popupTips("请输入账户", 1000);
                return;
            }
            
            var password = $.trim($("#password").val());
            if($.util.isEmpty(password)) {
                popupTips("请输入密码", 1000);
                return;
            }
            
            $.post("${base}/wechat/doClientCustomerBind.html",{"username":username,"password":password,"ime":ime},function(data,textStatus) {
                
                if(data=="1") {
                    popupTips("登录成功", 1000);
                    app.loginSuccess();
                    window.location.href="${base}/uwyw/uhome.html";
                } else {
                    popupTips(data,1000);
                }
            })
        });
        
        $("#username,#password").keyup(function() {
            var username = $.trim($("#username").val());
            var password = $.trim($("#password").val());
            if(!$.util.isEmpty(username) && !$.util.isEmpty(password)) {
                $("#unbind").hide();
                $("#bind").show();
            } else {
                $("#unbind").show();
                $("#bind").hide();
            }
        });
    })
    
    
    
</script>
</head>
 
 
<body class="loginbg">
<section>
    <header class="loginlogo"></header>
    <div class="loginwrap">
        <p><input type="text" placeholder="请输入您的账号" name="username" id="username"/></p>
        <p><input type="password" placeholder="请输入您的密码" name="password" id="password" /></p>
    </div>
    <button type="button" class="loginbtn2" id="unbind"/><span>登录</span></button>
    <button type="button" class="loginbtn2 " id="bind" style="display:none;"/><span class="white">登录</span></button>
</section>
</body>
 
 
    
 
</html>