Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

原生微信小程序老虎机基础例子prizes中的数据全部不展示,切无报错 #481

Open
1098345576 opened this issue Apr 26, 2024 · 0 comments

Comments

@1098345576
Copy link

  • 你当前是什么框架(必填):原生微信小程序
  • 你使用的是哪个包(必填):"lucky-canvas/mini,
  • 你当前插件的版本(必填):"@lucky-canvas/mini": "0.0.7",
  • 当前环境是小程序还是浏览器(选填):小程序
  • 详细描述你的bug:原生微信小程序老虎机基础例子prizes中的数据全部不展示,切无报错。
    企业微信截图_17141008939798

/

  • 问题代码(重要):
Page({

    /**
     * 页面的初始数据
     */
    data: {
        blocks: [
            { padding: '10px', background: '#869cfa' },
            { padding: '10px', background: '#e9e8fe' },
        ],
        slots: [
            { order: [0, 1, 2] },
            { order: [2, 0, 1] },
            { order: [1, 2, 0] },
        ],
        prizes: [
            {
                background: '#bac5ee',
                borderRadius: '0px',
            },
            {
                background: '#bac5ee',
                borderRadius: '20px',
            },
            {
                background: '#bac5ee',
                borderRadius: Infinity,
            }
        ],
        defaultConfig: {
            rowSpacing: '10px',
            colSpacing: '10px'
        },
    },






<view>
  <slotMachine
    id="slot-machine"
    width="600rpx"
    height="600rpx"
    blocks="{{blocks}}"
    prizes="{{prizes}}"
    bindstart="start"
    bindend="end"
  />

</view>
![企业微信截图_17141007983503](https://github.com/buuing/lucky-canvas/assets/37390969/74a5e319-79d9-4e96-b8cf-761f7c49c100)

![企业微信截图_17141008357950](https://github.com/buuing/lucky-canvas/assets/37390969/ebc46729-bda1-45e4-b699-f617fac8bdfc)








// 代码开始, 别再放歪了行吗

// 代码结束
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant