自定义转盘背景图的话,通过bgImg将背景图传入,这里注意:图片等分扇形的个数应该与奖品列表长度一致。 由于canvas渲染第一个扇形是水平位置开始,所以背景切图可能会与奖品位置错位。通过bgDeg调整背景图角度即可。 Show Me Code 背景图与canvas渲染出转盘的默认角度有错位: 调整背景图角度: <template> <wheel-drawer ...
master BranchesTags uniapp-canvas-drawer/App.vue Go to file Copy path quanweiwang提交代码 Latest commita9cd7e5on Aug 30, 2019History 1contributor executable file17 lines (16 sloc)254 Bytes RawBlame <script> exportdefault{ onLaunch:function() { ...