-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpay.html
More file actions
96 lines (90 loc) · 2.81 KB
/
pay.html
File metadata and controls
96 lines (90 loc) · 2.81 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/config.js"></script>
<script type="text/javascript" src="js/shareViews.js"></script>
<script type="text/javascript" src="js/herohelper.js"></script>
<script type="text/javascript" src="js/hero.js"></script>
<script type="text/javascript" src="js/ethjs.min.js"></script>
<script type="text/javascript" src="js/fu.js"></script>
<script type="text/javascript">
var abi = Eth.abi
var tokenABI = window.fuABI
var inpoutByteCode = abi.encodeMethod(tokenABI[7], [localStorage.address])
Hero.viewWillAppear = function(){
setTimeout(function(){
Hero.datas({name:'tipLbl',text:'大佬 \n\n送我一个区块链福吧! \n\n方法: 发送0.1 eth ~ 0.5 eth到luckybaby.eth,在附加信息中填写: ' + inpoutByteCode});
},200)
}
Hero.on = function(json){
if (json.click === 'copy') {
window.copyTextToClipboard(inpoutByteCode);
};
}
Hero.ui = {
version:0,
backgroundColor:'ffffff',
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:'HeroTextView',
frame:{x:'16',r:'16',y:'230',h:'120'},
text:'使用您的钱包,转账0.01~0.05 ETH 到 luckybaby.eth, 购买福签,每0.01 ETH对应 5枚福签,其中Hero Node福的概率为1/43,其它福的概率较高,理论上是投入0.43 ETH 可获得 0.5 ETH回报',
size:16,
enable:false,
textColor:'aaaaaa',
},
{
class:'HeroButton',
frame:{r:'16',x:'16',h:'55',y:'380'},
title:'知道了',
backgroundColor:'bd3a53',
titleColor:'eeeeee',
click:{command:'back'}
},
{
class:'HeroLabel',
frame:{x:'16',r:'16',y:'460',h:'20'},
text:'将下面这句话发送给您的朋友,让TA帮你购买福签',
size:12,
textColor:'aaaaaa',
},
{
class:'HeroTextView',
frame:{x:'16',r:'16',y:'480',h:'140'},
text:'',
size:12,
name: 'tipLbl',
textColor:'aaaaaa',
},
{
class:'HeroButton',
frame:{r:'16',w:'60',h:'30',y:'650'},
title:'复制',
backgroundColor:'bd3a53',
titleColor:'eeeeee',
click:{click:'copy'}
},
{
class:'HeroToast',
name:'toast'
}
],
}
</script>
</head>
</html>