Showing
1 changed file
with
2 additions
and
2 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-08-29 14:31:20 | 2 | * @Date: 2022-08-29 14:31:20 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-03-06 10:09:15 | 4 | + * @LastEditTime: 2023-03-08 18:10:28 |
| 5 | * @FilePath: /data-table/src/components/TextField/index.vue | 5 | * @FilePath: /data-table/src/components/TextField/index.vue |
| 6 | * @Description: 单行文本输入框(微信扫描功能) | 6 | * @Description: 单行文本输入框(微信扫描功能) |
| 7 | --> | 7 | --> |
| ... | @@ -58,7 +58,7 @@ const clickRightIcon = async () => { | ... | @@ -58,7 +58,7 @@ const clickRightIcon = async () => { |
| 58 | wx.ready(() => { | 58 | wx.ready(() => { |
| 59 | wx.scanQRCode({ | 59 | wx.scanQRCode({ |
| 60 | needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果, | 60 | needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果, |
| 61 | - scanType: scanType(item.props.camera_scan_type), // 可以指定扫二维码还是一维码,默认二者都有 | 61 | + scanType: scanType(props.item.camera_scan_type), // 可以指定扫二维码还是一维码,默认二者都有 |
| 62 | success: function (res) { | 62 | success: function (res) { |
| 63 | if (res.errMsg === 'scanQRCode:ok') { | 63 | if (res.errMsg === 'scanQRCode:ok') { |
| 64 | let code = res.resultStr; | 64 | let code = res.resultStr; | ... | ... |
-
Please register or login to post a comment