-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.html
More file actions
96 lines (91 loc) · 2.07 KB
/
home.html
File metadata and controls
96 lines (91 loc) · 2.07 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="js/hero.js"></script>
<script type="text/javascript" src="js/config.js"></script>
<script type="text/javascript" src="js/herohelper.js"></script>
<script type="text/javascript">
Hero.on = function(data){
if (data.click === 'join') {
if (Hero.ui2Data.address.length === 42) {
localStorage.address = Hero.ui2Data.address;
Hero.command('goto:'+path+'zz_superEntry.html');
}else{
Hero.datas({name:'toast',text:'erc20钱包地址是42位长度字符串'});
}
};
};
Hero.viewWillAppear = function() {
};
Hero.viewWillDisAppear = function() {
};
Hero.viewDidload = function() {
};
Hero.ui = {
version:-1,
tintColor:'000000',
nav:{
title:"区块链-集五福",
navigationBarHidden:true
},
views:
[
{
class:'HeroImageView',
frame:{w:'1x',h:'200'},
image:path+'images/background.jpg'
},
{
class:'HeroImageView',
frame:{x:'0.5x-150',y:'40',w:'300',h:'90'},
image:path+'images/2018.png'
},
{
class:'UIView',
frame:{x:'16',r:'16',y:'0.5x+20',h:'1'},
backgroundColor:'999999'
},
{
class:'HeroLabel',
frame:{x:'16',w:'300',y:'0.5x+32',h:'20'},
textColor:'999999',
size:12,
text:'只需输入钱包地址即可,安全放心'
},
{
class:'HeroButton',
title:'查看奖池',
titleColor:'999999',
size:12,
frame:{r:'10',w:'80',y:'0.5x+32',h:'30'},
click:{command:'goto:'+path+'/dalao.html'}
},
{
class:'HeroTextField',
name:'address',
text:localStorage.address,
frame:{x:'16',y:'0.5x-22',r:'16',h:'44'},
placeHolder:'我的钱包地址',
color:'ffffff',
textColor:'ffffff',
tintColor:'ffffff',
textFieldDidEditing:{textfield:'change'},
},
{
class:'HeroButton',
frame:{r:'16',x:'16',y:'0.5x+80',h:'44'},
title:'参与集福 瓜分大奖',
backgroundColor:'bd3a53',
titleColor:'eeeeee',
cornerRadius:6,
click:{click:'join'}
},
{
class:'HeroToast',
name:'toast'
}
]
};
</script>
</head>
</html>