收藏
回答

运行绘制的图片没有显示,还是一样空白。调用都是成功了 不管是图片路径还是接口返回 请问是怎么回事呢?

wx.getImageInfo({
            src: "https://data025.wwson.com/uploads/20200328/1cd5ec212c7ae5e2fab20476a5d5d73a.jpg",//e.data.shareimgurl,
            success: function(a) {
                console.log(a)
                console.log(e.data.info)
                var t = a.path;
                e.data.info;
                new n("qrcode/getQrcode", {
                    openid: wx.getStorageSync("token")
                }).then(function(a) {
                    1 == a.data.code ? wx.getImageInfo({
                        src: a.data.data,
                        success: function(a) {
                            var n = a.path, o = wx.createCanvasContext("trueCard");
                            o.drawImage(t, 0, 0, 800, 1422), 
                            o.drawImage(e.data.logo, 312, 400, 180, 180), o.drawImage(n, 312, 1040, 180, 180), 
                            o.draw();
                            var i = wx.createCanvasContext("card");
                            i.drawImage(t, 0, 0, 200, 356), 
                            i.drawImage(e.data.logo, 78, 100, 45, 45),
                            i.drawImage(n, 78, 260, 45, 45), 
                            i.draw(), wx.hideLoading();
                        }
                    }) : wx.showToast({
                        title: "网络拥挤,稍后再试",
                        icon: "none"
                    });
                });
            }
        });
回答关注问题邀请回答
收藏
登录 后发表内容
问题标签