forked from hedada-hc/taobaoMiao
-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.html
66 lines (66 loc) · 2.04 KB
/
login.html
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
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#login{
outline: none;
border:none;
width: 100px;
height: 25px;
color: #ffffff;
background: -webkit-linear-gradient(left,#ff9000,#ff5000) no-repeat;
border-radius:35px;
cursor: pointer;
margin: 20px;
float: left;
}
#pwd{
font-size: inherit;
width: 200px;
height: 25px;
margin-top:16px;
outline: none;
border: 0;
color: #333;
border-bottom: 1px solid #ff5000;
float: left;
margin-left: 16px;
}
i{
display: block;
width: 100%;
float: left;
border-bottom: 1px solid #efefef;
}
.info{
display: block;
font-size: 13px;
color: #999999;
text-align: center;
line-height: 25px;
}
</style>
<script>
require('module').globalPaths.push('<%= htmlWebpackPlugin.options.nodeModules.replace(/\\/g, '\\\\') %>')
</script>
</head>
<body>
<span class="info">登录完成以后请填写"支付密码"然后点击"已完成登录"</span>
<input type="password" name="" id="pwd" placeholder="请输入支付密码">
<button id="login">已完成登录</button>
<i></i>
<webview src="https://login.m.taobao.com/login.htm" style="width:400px; height:600px"></webview>
</body>
<script type="text/javascript">
if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')
var ipc = require("electron").ipcRenderer;
document.getElementById('login').onclick = function(){
var pwd = document.getElementById("pwd").value;
if(pwd.length >= 6){
ipc.send("getCookie",pwd);
}else{
alert("请填写支付密码,或支付填写正确的6位数支付密码");
}
}
</script>
</html>