From 03627defbc56d0498e7778523da255eb972db6a4 Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期四, 04 十二月 2025 10:25:03 +0800
Subject: [PATCH] 删除 安装包
---
qrcodeScaner/utils/scanner.js | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/qrcodeScaner/utils/scanner.js b/qrcodeScaner/utils/scanner.js
new file mode 100644
index 0000000..acbe392
--- /dev/null
+++ b/qrcodeScaner/utils/scanner.js
@@ -0,0 +1,28 @@
+const mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
+const mpaasScan = () =>{
+ return new Promise((resolve, reject) => {
+ mpaasScanModule.mpaasScan({
+ // 鎵爜璇嗗埆绫诲瀷锛屽弬鏁板彲澶氶�夛紝qrCode銆乥arCode锛屼笉璁剧疆锛岄粯璁よ瘑鍒墍鏈�
+ //'scanType': ['qrCode','barCode'],
+ // 鏄惁闅愯棌鐩稿唽锛岄粯璁alse涓嶉殣钘�
+ 'hideAlbum': true,
+ //ios闇�瑕佽缃繖涓弬鏁帮紝鍙敮鎸佷腑鑻辨枃 zh-Hans銆乪n锛岄粯璁や腑鏂�
+ 'language' : 'zh-Hans',
+ //鐩稿唽閫夋嫨鐓х墖璇嗗埆閿欒鎻愮ず(ios)
+ 'failedMsg': '鏈瘑鍒埌浜岀淮鐮侊紝璇烽噸璇�',
+ //Android鏀寔鍏ㄥ睆闇�瑕佽缃鍙傛暟
+ 'screenType': 'full' ,
+ 'timeoutInterval':'15', //璁剧疆瓒呮椂鏃堕棿
+ 'timeoutText':'鏈瘑鍒埌浜岀淮鐮侊紵', //瓒呮椂鎻愰啋鏂囨湰
+ },
+ (ret) => {
+ if(ret.resp_code===1000){
+ resolve(ret.resp_result)
+ }else{
+ reject(new Error(ret.resp_message))
+ }
+ })
+ })
+ }
+
+export default mpaasScan;
\ No newline at end of file
--
Gitblit v1.8.0