|
|
|
@ -79,13 +79,13 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="btn mui-row" v-if="coin.tokenSymbol != 'DIA' && coin.tokenSymbol != 'TIN' "> |
|
|
|
|
<div class="mui-col-sm-6 mui-col-xs-6"> |
|
|
|
|
<div class="mui-col-sm-4 mui-col-xs-4"> |
|
|
|
|
<div class="btn-recharge" id="btn-recharge">{{langue.addCredit}}</div> |
|
|
|
|
</div> |
|
|
|
|
<!--<div class="mui-col-sm-4 mui-col-xs-4"> |
|
|
|
|
<div class="mui-col-sm-4 mui-col-xs-4"> |
|
|
|
|
<div class="btn-withdraw" id="btn-withdraw">{{langue.withdrawCoin}}</div> |
|
|
|
|
</div>--> |
|
|
|
|
<div class="mui-col-sm-6 mui-col-xs-6"> |
|
|
|
|
</div> |
|
|
|
|
<div class="mui-col-sm-4 mui-col-xs-4"> |
|
|
|
|
<div class="btn-transfer" id="btn-transfer">{{langue.transfer}}</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -279,6 +279,19 @@ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function recharge() { |
|
|
|
|
walletApi.getRecharge({ |
|
|
|
|
walletType: dataInfo.coin.walletType, |
|
|
|
|
moduleType: dataInfo.coin.moduleType, |
|
|
|
|
addr: dataInfo.coin.addr |
|
|
|
|
}, |
|
|
|
|
function(data) { |
|
|
|
|
app.toast(data.msg) |
|
|
|
|
console.log(data.msg) |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 记录页面监听 |
|
|
|
|
mui(".transaction-data-record").on("tap", "li", function() { |
|
|
|
|
var index = this.getAttribute('data-index'); |
|
|
|
@ -289,35 +302,30 @@ |
|
|
|
|
}); |
|
|
|
|
// 提币划转事件 |
|
|
|
|
document.getElementById('btn-transfer').addEventListener('tap', function() { |
|
|
|
|
// if(dataInfo.coin.tokenSymbol == 'PC') { |
|
|
|
|
// mui.toast("敬请期待"); |
|
|
|
|
// } else { |
|
|
|
|
app.openWin('extract_coin_to_token.html', 'extract_coin_to_token.html', '', { |
|
|
|
|
index: dataInfo.coin.coinIndex, |
|
|
|
|
coin: dataInfo.coin |
|
|
|
|
}); |
|
|
|
|
// } |
|
|
|
|
app.openWin('extract_coin_to_token.html', 'extract_coin_to_token.html', '', { |
|
|
|
|
index: dataInfo.coin.coinIndex, |
|
|
|
|
coin: dataInfo.coin |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// 提币点击事件 |
|
|
|
|
// document.getElementById('btn-withdraw').addEventListener('tap', function() { |
|
|
|
|
// app.openWin('withdraw.html', 'withdraw.html', '', { |
|
|
|
|
// index: dataInfo.coin.coinIndex, |
|
|
|
|
// coin: dataInfo.coin |
|
|
|
|
// }); |
|
|
|
|
// |
|
|
|
|
// }); |
|
|
|
|
document.getElementById('btn-withdraw').addEventListener('tap', function() { |
|
|
|
|
app.openWin('withdraw.html', 'withdraw.html', '', { |
|
|
|
|
index: dataInfo.coin.coinIndex, |
|
|
|
|
coin: dataInfo.coin |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
// 充值点击事件 |
|
|
|
|
document.getElementById('btn-recharge').addEventListener('tap', function() { |
|
|
|
|
// if(dataInfo.coin.tokenSymbol == 'PC') { |
|
|
|
|
// mui.toast("敬请期待"); |
|
|
|
|
// } else { |
|
|
|
|
app.openWin('recharge.html', 'recharge.html', '', { |
|
|
|
|
index: dataInfo.coin.coinIndex, |
|
|
|
|
coin: dataInfo.coin |
|
|
|
|
}); |
|
|
|
|
// } |
|
|
|
|
console.log() |
|
|
|
|
console.log(JSON.stringify(dataInfo.coin)); |
|
|
|
|
recharge(); |
|
|
|
|
// app.openWin('recharge.html', 'recharge.html', '', { |
|
|
|
|
// index: dataInfo.coin.coinIndex, |
|
|
|
|
// coin: dataInfo.coin |
|
|
|
|
// }); |
|
|
|
|
}); |
|
|
|
|
// 国际化统一方法 |
|
|
|
|
window.addEventListener('switchLangueData', function(e) { |
|
|
|
|