<view class='bannerHead' catchtap='getDes' data-curmodule='dx' >
<canvas id="canvas" type="2d" style="width:730rpx;height:350rpx"></canvas>
</view>
wx.createSelectorQuery().select('#canvas').node(res => {
const canvas = res.node;
const context = canvas.getContext('2d');
wx.getImageInfo({
src:'https://leukehelp.bj.bcebos.com/banner-1.json',
success:res => {
console.log(res)
},
fail: rej => {
console.log(rej)
}
})
lottie.setup(canvas)
lottie.loadAnimation({
loop: true,
autoplay: true,
path:'https://leukehelp.bj.bcebos.com/banner-1.json',
rendererSettings: {
context,
},
})
}).exec()
我也遇到这个问题,开发工具上不失帧,真机预览就失帧
你好,麻烦具体描述问题流程,提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
机型:Xiaomi-Redmi Note 7
微信版本:7.0.9
基础库版本:2.9.4