w-ui-v1 1.0.70 → 1.0.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-ui-v1",
3
- "version": "1.0.70",
3
+ "version": "1.0.72",
4
4
  "description": "w-ui",
5
5
  "author": "wgxshh",
6
6
  "license": "ISC",
@@ -66,18 +66,19 @@ const closeBarcode=()=>{
66
66
 
67
67
  const stopBarcode=()=>{
68
68
  // #ifdef APP-PLUS
69
- //建议在页面onHide方法里调用
69
+ ///手动调用
70
70
  //停止扫描
71
71
  //接口scanStop(UniJSCallback callback)
72
+ globalEvent.removeEventListener('iDataBarcodeEvent')
72
73
  barcodeModel.scanStop((ret) => {
73
74
  console.log(ret)
74
75
  });
75
- globalEvent.removeEventListener('iDataBarcodeEvent')
76
+
76
77
  // #endif
77
78
  }
78
79
  const startBarcode=()=>{
79
80
  // #ifdef APP-PLUS
80
- //建议在页面onShow方法里调用
81
+ //手动调用
81
82
  //开始扫描
82
83
  //接口scanStop(UniJSCallback callback)
83
84
  barcodeModel.scanStart((ret) => {