agri-app/uni_modules/yt-scanCode/readme.md

56 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# uniApp 简单的扫码功能封装
## 用法
在 template 中:
```vue
<template>
<view>
<yt-scanCode btnName="扫码按钮" @getScanCode="getScanCode"></yt-scanCode>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
getScanCode(res){
console.log("设备号======>",res);
}
}
}
</script>
<style>
</style>
```
## 属性说明
| 属性 | 是否必填 | 值类型 | 默认值 | 说明 |
| --------- | -------- | -----: | --: | :------------:|
| btnName | 否 | String |扫码 | 按钮名称 |
| `QQ交流群(906392632)` |
|<p><img align=top src="https://7072-prod-4gapv4gl33a8a0ff-1305990777.tcb.qcloud.la/%E9%87%8D%E8%A6%81%E5%9B%BE%E7%89%87%E5%AD%98%E5%82%A8/Snipaste_2023-11-06_16-50-56.png?sign=ed27f09cfeabb33e24835fecdd4108db&t=1699260686" width="500px" height="auto"></p>|
| QQ群号906392632 |
## 温馨提示
* 文件上传
0. 如说明表达还不够清楚,不清楚怎么使用可加入群聊一起交流
1. 若能帮到你还请点亮5颗小星星以作鼓励哈~
2. 若能帮到你还请点亮5颗小星星以作鼓励哈~
3. 若能帮到你还请点亮5颗小星星以作鼓励哈~