没有人遇到过吗
小程序打包的时候,引入了一个阿里云的验证码2.0插件,大小超过推荐的200k了,一直提示代码超包?"plugins" : { "AliyunCaptcha": { "version": "2.3.0", "provider": "wxbe275ff84246f1a4" } }, [图片] 不使用这个插件的情况下,是能正常发布的,有遇到过类似问题成功解决的朋友们吗? [图片][图片] 插件是在分包里加载的
09-16以防万一,更新一个最简单的 //获取用户设备信息,屏幕宽度 tt.getSystemInfo({ success: res => { console.log(res, 'getSystemInfo') that.setData({ screenWidth: res.screenWidth, screenHeight: res.screenHeight, pixelRatio: res.pixelRatio, }) console.log(that.data.pixelRatio, that.data.screenWidth, that.data.screenHeight) } }) // 创建canvas wx.canvasToTempFilePath({ canvasId: 'canvasId', // canvasId width: that.data.screenWidth, // 输出canvas画布的宽 height: that.data.screenHeight, // 输出canvas画布的高 destWidth: that.data.screenWidth * that.data.pixelRatio, // 输出canvas画布的宽 * 设备像素比 destHeight: that.data.screenHeight * that.data.pixelRatio, // 输出canvas画布的高 * 设备像素比 success: (res) => { console.log(res) }, fail: (err) => { console.log(err) } })
微信小游戏canvas绘制文字,在真机显示模糊问题使用微信小游戏canvas绘制文字,感觉是分辨率问题,进行了拉伸。模拟器的 在模拟器中显示很清晰,在真机显示模糊问题。 模拟器显示 [图片] 真机显示[图片]
2021-01-29