app.directive("loadTxmethods", [
"$location",
function($location) {
return {
restrict: "A",
template: `
请选择提款方式
温馨提示:银行卡单次最高限额100000元
温馨提示:支付宝单次最高限额50000元
`,
link: function(scope, element, attrs, ngModel) {
scope.getTxid = function(id){
scope.txid = id;
}
scope.showTxmethods= function(){
scope.connection.send(JSON.stringify({type:'bindCardList'}));
$('.loadTxmethods').show();
var txSubmit = document.querySelectorAll("footer.txSubmit");
angular.element(txSubmit).on("click", function(event) {
console.log(scope.txid)
});
}
scope.hideTxmethods = function(){
$('.loadTxmethods').hide();
scope.txid = "";
}
}
};
}
]);