diff --git a/resources/views/material/user/aopf2f.tpl b/resources/views/material/user/aopf2f.tpl index c8e5da32..570e82f3 100644 --- a/resources/views/material/user/aopf2f.tpl +++ b/resources/views/material/user/aopf2f.tpl @@ -29,12 +29,12 @@ if (data.ret) { console.log(data); pid = data.pid; - $("#qrarea").html('
'); + $("#qrarea").html(''); $("#readytopay").modal('hide'); new QRCode("qrcode", { render: "canvas", - width: 100, - height: 100, + width: 200, + height: 200, text: encodeURI(data.qrcode) }); $('#qrcode').attr('href',data.qrcode); diff --git a/resources/views/material/user/doiam.tpl b/resources/views/material/user/doiam.tpl index f6e46604..de5334e3 100644 --- a/resources/views/material/user/doiam.tpl +++ b/resources/views/material/user/doiam.tpl @@ -40,6 +40,7 @@ window.onload = function(){ $(".type").click(function(){ type = $(this).data("pay"); }); + type= 'alipay' $("#submit").click(function(){ var price = parseFloat($("#amount").val()); console.log("将要使用"+type+"方法充值"+price+"元"); @@ -84,30 +85,6 @@ window.onload = function(){ } } }); - function f(){ - $.ajax({ - type: "POST", - url: "/payment/status", - dataType: "json", - data: { - pid:pid - }, - success: function (data) { - if (data.result) { - console.log(data); - $("#alipay").modal('hide'); - $("#result").modal(); - $("#msg").html("充值成功!"); - window.setTimeout("location.href=window.location.href", {$config['jump_delay']}); - } - }, - error: function (jqXHR) { - console.log(jqXHR); - } - }); - tid = setTimeout(f, 1000); //循环调用触发setTimeout - } - }); }