更新记录
1.0.0.0(2021-08-24) 下载此版本
第一次发插件,欢迎各位大佬指指点点
平台兼容性
uni-app
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
√ | √ | √ | √ | √ | √ | - | - | - |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
√ | √ | √ | √ | - | - | - | √ | - | √ | √ |
其他
多语言 | 暗黑模式 | 宽屏模式 |
---|---|---|
× | × | √ |
- ✨ ✨
- 小白第一次发插件,各位大佬轻喷
使用说明
- 解压下载的压缩包,将组件放在项目的components目录下
- 引用组件
import luckDraw from '../../components/luckDraw/luckDraw.vue'
使用示例
- HTML
<qyq-luckDraw @lottoLuckDraw="lottoLuckDraw" :cardList="cardList"></qyq-luckDraw>
- JS
<script>
import luckDraw from '../../components/luckDraw/luckDraw.vue'
export default {
data() {
return {
//卡片数组,reward为奖励,info为奖励信息
cardList:[
{
reward:"25.00",
info:"人民币"
},
{
reward:"25.00",
info:"人民币"
},
{
reward:"25.00",
info:"人民币"
},
{
reward:"25.00",
info:"人民币"
},
{
reward:"25.00",
info:"人民币"
},
{
reward:"25.00",
info:"人民币"
},
{
reward:"25.00",
info:"人民币"
},
{
reward:"25.00",
info:"人民币"
},
{
reward:"25.00",
info:"人民币"
}
]
}
},
components:{
luckDraw
},
onLoad() {
},
methods: {
//翻牌抽奖
lottoLuckDraw(index){
console.log(index)
}
}
}
</script>
参数说明
参数名 | 说明 | |
---|---|---|
lottoLuckDraw | 卡片点击事件 | |
cardList | 奖励列表 |
注意事项
由于本人技术有限,如果各位大佬要换背景图的话,卡片的背面图要预先用PS处理为平面镜像图才行