zhoubapi999

Results comments of zhoubapi999

解决了,自定义组件得当前页面得this进去,修改如下: wxbarcode.barcode('barcode', res.data.data.active_code, 620, 150, this); // 生成条形码 function barc(id, code, width, height, that) { barcode.code128(wx.createCanvasContext(id, that), code, convert_length(width), convert_length(height)) }