function handleResult(url, res, data, isDeposit) {
    if (res.code === 0) {
        if ('SCAN_WEIXIN' === data.field.payMethodType || 'SCAN_ALIPAY' === data.field.payMethodType) {
            $("#qrCode").append('<div ></div>');
            jQuery('#code').qrcode({
                render: "table",
                text: res.data.respMap.payInfo
            });
            layer.open({
                title: '请扫描二维码支付',
                type: 1,
                content: $('#code'),
                yes: function () {
                    $('#code').empty();
                    layer.closeAll();
                },
                cancel: function () {
                    $('#code').empty();
                    layer.closeAll();
                }
            });
        }else if ('CODEPAY_W' === data.field.payMethodType) {
            layer.open({
                title: '提示信息',
                content: res.data.respMap.payStatus,
                yes: function () {           
                    layer.closeAll();
                },
                cancel: function () {
                    layer.closeAll();
                }
            });

 通过这个方法即可将二维码串转换成二维码的形式。

相关文章:

  • 2022-02-08
  • 2021-07-21
  • 2021-11-07
  • 2021-09-12
  • 2021-09-12
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-12-19
  • 2022-12-23
  • 2021-07-02
相关资源
相似解决方案