알리페이 그에게 지불 코드 생성기

2031 단어
function gen() {
    var alipay_id = $('#alipay_id').val();
    var alipay_price = $('#alipay_price').val();
    var alipay_desc = $('#alipay_desc').val();
    var temp_text = '<form name="atool_alipay_form" style="padding-bottom: 0;border:none;" method="post" action="https://shenghuo.alipay.com/send/payment/fill.htm" target="_blank" accept-charset="GBK" onsubmit="document.charset=\'gbk\';"><input type="hidden" value="'+alipay_id+'" name="optEmail" /><input type="hidden" value="'+alipay_price+'" name="payAmount" /><input type="hidden" name="title" placeholder=" " value="'+alipay_desc+'" /><a href="javascript:javascript:document.atool_alipay_form.submit();" title=" " value=" " name="pay"> </a></form>';
                    var temp_img = '<form name="atool_alipay_form" style="padding-bottom: 0;border:none;" method="post" action="https://shenghuo.alipay.com/send/payment/fill.htm" target="_blank" accept-charset="GBK" onsubmit="document.charset=\'gbk\';"><input type="hidden" value="'+alipay_id+'" name="optEmail"><input type="hidden" value="'+alipay_price+'" name="payAmount"><input type="hidden" name="title" placeholder=" " value="'+alipay_desc+'"><input type="image" value=" " src="http://www.atool.org/res/alipay_1.png" name="pay"></form>'; 
                     
    $('#text_code').val(temp_text);
    $('#pic_code').val(temp_img);
    $('#prev').html('');
    $('#prev').append(temp_img);
    $('#prev').append(temp_text);
}

좋은 웹페이지 즐겨찾기