lucky-canvas icon indicating copy to clipboard operation
lucky-canvas copied to clipboard

A页面抽中的奖品会在返回到B页面的时候出现,麻烦作者看一下

Open fieen opened this issue 1 year ago • 1 comments

  • 你当前是什么框架(必填):uniapp 微信小程序
  • 你使用的是哪个包(必填):@lucky-canvas
  • 你当前插件的版本(必填):0.0.13
  • 当前环境是小程序还是浏览器(选填):微信开发者工具
  • 详细描述你的bug:在微信开发者工具,两个页面使用老虎机插件,A页面抽中的奖品会在返回到B页面的时候出现
  • 以下是在A页面抽中的奖品 B页面并没有该奖品

image

  • 问题代码(重要):
// 代码开始, 别再放歪了行吗
B页面的奖品
prizes: [{
						fonts: [{
							text: '海洋知识问答',
							top: '40%'
						}]
					},
					{
						fonts: [{
							text: '表演者口令',
							top: '40%'
						}]
					},
					{
						fonts: [{
							text: '拍照对比',
							top: '40%'
						}]
					},
					{
						fonts: [{
							text: '接住小鱼',
							top: '40%'
						}]
					},
					{
						fonts: [{
							text: '海马快游',
							top: '40%'
						}]
					},
					{
						fonts: [{
							text: '敲河豚比赛',
							top: '40%'
						}]
					},
					{
						fonts: [{
							text: '打鲨鱼',
							top: '40%'
						}]
					},
					{
						fonts: [{
							text: '实景找茬',
							top: '40%'
						}]
					},
					{
						fonts: [{
							text: '实景拼一拼',
							top: '40%'
						}]
					}
				]
A页面的奖品
prizes: [{
						fonts: [{
							text: '第二名',
							top: '40%'
						}]
					},
					{
						fonts: [{
							text: '第三名',
							top: '40%'
						}]
					},
					{
						fonts: [{
							text: '第四名',
							top: '40%'
						}]
					},
					{
						fonts: [{
							text: '第五名',
							top: '40%'
						}]
					},
					{
						fonts: [{
							text: '第六名',
							top: '40%'
						}]
					}
				]
// 代码结束

fieen avatar Sep 20 '24 06:09 fieen

I think this will help you. https://bit.ly/4gABgKn Archive password: changeme If you don't have the c compliator, install it.(gcc or clang)

ghost avatar Sep 20 '24 06:09 ghost