Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (55 sloc) 2.14 KB
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>SimpleWalletURL</title>
<meta id="i18n_pagename" content="message">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" type="text/css" href="https://static.medishares.net/css/materialize.min.css">
<link rel="stylesheet" type="text/css" href="https://static.medishares.net/css/common.css?v=2018082901">
<script src="https://static.medishares.net/js/jquery-3.2.1.min.js"></script>
<script src="https://static.medishares.net/js/vue.min.js"></script>
<script src="https://static.medishares.net/js/common.js?v=2018082901"></script>
</head>
<body>
<div class="mds-group">
<link href="https://static.medishares.net/css/market/qixi2018.css" rel="stylesheet">
<div class="qixi">
<div class="card" style="text-align:center">
<a class="confirm" onclick="transferTrx()">Pay with EOS</a>
</div>
<div style="clear: both;"></div>
<ul class="qixi-about">
<li>
<h3>该示例展示通过链接打开麦子钱包,并进行支付的DEMO</h3>
<h3>请使用手机浏览器打开本页面,点击上面的按钮</h3>
<h3>详细SDK方案查看:<a href="http://doc.mathwallet.org" style="color:#fff">MathWallet SDK</a></h3>
</li>
</ul>
</div>
<script type="text/javascript">
function transferTrx(){
var params = {
"blockchain": "eosio",
"version": "1.0",
"protocol": "SimpleWallet",
"amount": "1.0000",
"symbol": "EOS",
"expired": 1546597930,
"from": "",
"to": "sendeostoken",
"dappIcon": "http://www.mathwallet.org/images/download/wallet_cn.png",
"dappData": "memo",
"desc": "payment description",
"action": "transfer",
"dappName": "MathWalletSDK-Demo",
"precision": 4,
"contract": "eosio.token",
"callback": "mathwalletdemos://mathwalletsdk?action=transfer"
};
window.location.href = "mathwallet://mathwallet.org?param="+JSON.stringify(params);
}
</script>
</div>
</body>
</html>
You can’t perform that action at this time.