请问怎么解决的?
app.json的"usingComponents"配置了全局自定义组件 有的组jsEnginScriptError Component is not found in path "miniprogram-navigation-bar/index" (using by "components/advModal/modal");onAppRoute Error: Component is not found in path "miniprogram-navigation-bar/index" (using by "components/advModal/modal") at e (http://127.0.0.1:32741/appservice/__dev__/WAService.js:1:621161) at e (http://127.0.0.1:32741/appservice/__dev__/WAService.js:1:621347) at e (http://127.0.0.1:32741/appservice/__dev__/WAService.js:1:621347) at Q (http://127.0.0.1:32741/appservice/__dev__/WAService.js:1:621489) at Object.t.addView (http://127.0.0.1:32741/appservice/__dev__/WAService.js:1:622927) at Function.value (http://127.0.0.1:32741/appservice/__dev__/WAService.js:1:686609) at Et (http://127.0.0.1:32741/appservice/__dev__/WAService.js:1:701178) at Pt (http://127.0.0.1:32741/appservice/__dev__/WAService.js:1:702984) at At (http://127.0.0.1:32741/appservice/__dev__/WAService.js:1:704277) at Function.<anonymous> (http://127.0.0.1:32741/appservice/__dev__/WAService.js:1:705249) 引入全局自定义组件 其他的自定义组件报错了
2019-12-04目前发现的问题是 头像 基本上安卓可以画圆形图片,但是苹果不行[图片]
canvas 矩形上绘制圆形图片开发者工具正常,真机失败- 需求的场景描述(希望解决的问题) 画布上绘制矩形后,在该矩形上绘制圆形图片失败,原因是矩形和绘制的圆形重叠导致 // 画入海报背景 ctx.drawImage(海报背景图, 0, 0, that.myCanvasWidth, that.myCanvasHeight); ctx.draw() // 白色矩形 ctx.rect(12, that.myCanvasHeight - 130, that.myCanvasWidth - 24, 80) ctx.setFillStyle('white') // 切割成圆角矩形 that.drawRoundedRect(ctx, 12, that.myCanvasHeight - 130, that.myCanvasWidth - 24, 80, 4) ctx.clip() ctx.draw(true) // 圆形头像画入 ctx.save(); // 先保存状态 已便于画完圆再用 ctx.beginPath(); //开始绘制 //先画个圆 ctx.arc(45, that.myCanvasHeight - 90, 25, 0, Math.PI * 2) ctx.clip()//画了圆 再剪切 原始画布中剪切任意形状和尺寸。一旦剪切了某个区域,则所有之后的绘图都会被限制在被剪切的区域内 ctx.drawImage(头像图片, 20, that.myCanvasHeight - 115, 50, 50) // 推进去图片 ctx.restore(); //恢复之前保存的绘图上下文 恢复之前保存的绘图上下午即状态 可以继续绘制 ctx.draw(true) ctx.draw(true, setTimeout(function() { wx.canvasToTempFilePath({ x: 0, y: 0, destWidth: 375 * 3, destHeight: 550 * 3, canvasId: 'canvas', success: function(res) { that.imageTempPath = res.tempFilePath; //这就是生成的文件临时路径 }, fail: function(res) { console.log(res,'fail'); } }) that.$apply() }, 50)) })
2018-12-13