diff --git a/App.vue b/App.vue index 26d8505..3b22289 100644 --- a/App.vue +++ b/App.vue @@ -13,7 +13,10 @@ diff --git a/manifest.json b/manifest.json index 37c36e6..72f8c91 100644 --- a/manifest.json +++ b/manifest.json @@ -17,7 +17,9 @@ "delay" : 0 }, /* 模块配置 */ - "modules" : {}, + "modules" : { + "SQLite" : {} + }, /* 应用发布信息 */ "distribute" : { /* android打包配置 */ @@ -40,7 +42,7 @@ "" ], "minSdkVersion" : 21, - "targetSdkVersion" : 28 + "targetSdkVersion" : 32 }, /* ios打包配置 */ "ios" : { @@ -52,43 +54,10 @@ } }, "nativePlugins" : { - "Mpaas-Scan" : { - "AppId" : "ALIPUB292A079010931", - "License" : "KXaY6vzdsbbpso9o+9XOdpbiWPfgWstqa2NFfXVxEJZ4sVFaH33wvGUvLELnwibqFU3LEeWQPm+nW5TOfHNIOVnrUVji+bZoDuRTvPGFnVupqKpZRiF3kNB76pXHy9LuqAkH0h/eI44ZapbQNj15/Jma4WR5bffSdNKuTUnbDiaQSpBp9A38TGeWJ222eQL+RjGvFm15MZntBou93IspOnN58cDAvk75A6hUydJupKqYDl7UgQurm5pRKvB0UMYQOFcymuUVJH6N8a8pyJkvgP98oy3MskMcdJtYAzbjbdQi8/4ZuhPwbjqhVqzM3Pq2ebA2QcH/zbGT4LuvnQKXLw==", - "WorkspaceId" : "default", - "__plugin_info__" : { - "name" : "支付宝原生扫码插件", - "description" : "支付宝原生扫码组件,包体积仅0.7MB,15分钟即可完成接入。同时,mPaaS提供「扫码分析」大盘", - "platforms" : "Android,iOS", - "url" : "https://ext.dcloud.net.cn/plugin?id=2636", - "android_package_name" : "uni.UNI44D25EC", - "ios_bundle_id" : "", - "isCloud" : true, - "bought" : 1, - "pid" : "2636", - "parameters" : { - "AppId" : { - "des" : "Android平台的AppId,请填写Android的config文件中的appId对应的值", - "key" : "mobilegw.appid", - "value" : "" - }, - "License" : { - "des" : "Android平台的License,,请填写Android的config文件中的mpaasConfigLicense对应的值", - "key" : "mpaasConfigLicense", - "value" : "" - }, - "WorkspaceId" : { - "des" : "Android平台的WorkspaceId,请填写Android的config文件中的workspaceId对应的值", - "key" : "workspaceId", - "value" : "" - } - } - } - }, - "scanCode" : { + "JY-MLScanSDK" : { "__plugin_info__" : { - "name" : "scanCode", - "description" : "测试插件流程", + "name" : "JY-MLScanSDK模块", + "description" : "JY-MLScanSDK", "platforms" : "Android", "url" : "", "android_package_name" : "", diff --git a/nativeplugins/JY-MLScanSDK/android/jy-mlscansdk-release.aar b/nativeplugins/JY-MLScanSDK/android/jy-mlscansdk-release.aar new file mode 100644 index 0000000..cb10842 Binary files /dev/null and b/nativeplugins/JY-MLScanSDK/android/jy-mlscansdk-release.aar differ diff --git a/nativeplugins/JY-MLScanSDK/android/mlkit-scanner-release.aar b/nativeplugins/JY-MLScanSDK/android/mlkit-scanner-release.aar new file mode 100644 index 0000000..e08b633 Binary files /dev/null and b/nativeplugins/JY-MLScanSDK/android/mlkit-scanner-release.aar differ diff --git a/nativeplugins/JY-MLScanSDK/package.json b/nativeplugins/JY-MLScanSDK/package.json new file mode 100644 index 0000000..d8f6f5a --- /dev/null +++ b/nativeplugins/JY-MLScanSDK/package.json @@ -0,0 +1,28 @@ +{ + "name": "JY-MLScanSDK模块", + "id": "JY-MLScanSDK", + "version": "1.0.0", + "description": "JY-MLScanSDK", + "_dp_type": "nativeplugin", + "_dp_nativeplugin": { + "android": { + "plugins": [{ + "type": "module", + "name": "JY-MLScanSDK", + "class": "com.jiyi.jy_mlscansdk.JYMLScanSDKModule" + }], + "integrateType": "aar", + "dependencies": [ + "com.google.mlkit:barcode-scanning:16.2.0", + "androidx.camera:camera-core:1.0.1", + "androidx.camera:camera-camera2:1.0.1", + "androidx.camera:camera-lifecycle:1.0.1", + "androidx.camera:camera-view:1.0.0-alpha25" + ], + "compileOptions": { + "sourceCompatibility": "1.8", + "targetCompatibility": "1.8" + } + } + } +} diff --git a/nativeplugins/test/android/scanCode-release.aar b/nativeplugins/test/android/scanCode-release.aar deleted file mode 100644 index 16bdba2..0000000 Binary files a/nativeplugins/test/android/scanCode-release.aar and /dev/null differ diff --git a/nativeplugins/test/package.json b/nativeplugins/test/package.json deleted file mode 100644 index e5246b6..0000000 --- a/nativeplugins/test/package.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "scanCode", - "id": "scanCode", - "version": "0.0.1", - "description": "测试插件流程", - "_dp_type":"nativeplugin", - "_dp_nativeplugin":{ - "android": { - "plugins": [ - { - "type": "module", - "name": "scanCode", - "class": "cn.bnyer.scancode.scanCode" - } - ], - "integrateType": "aar", - "parameters": { - - }, - "dependencies": [] - } - } -} \ No newline at end of file diff --git a/pages/scan/Barcode.vue b/pages/scan/Barcode.vue index ec0404f..8e05d8f 100644 --- a/pages/scan/Barcode.vue +++ b/pages/scan/Barcode.vue @@ -2,7 +2,9 @@ - 我是扫码内容部分 + + {{ barcodeInfo.ssid }} + @@ -29,6 +31,7 @@ data() { return { col: 3, + barcodeInfo:{}, fastToolList:[ { "index": 0, @@ -48,11 +51,17 @@ ] } }, - onLoad() { - + onLoad(option) { + let that = this; + that.initData(option); }, methods: { - + initData(option){ + let that = this; + let data = JSON.parse(option.data); + that.barcodeInfo = data; + console.log('barcodeInfo',that.barcodeInfo) + } } } diff --git a/pages/scan/Book.vue b/pages/scan/Book.vue index 7801124..18d9c59 100644 --- a/pages/scan/Book.vue +++ b/pages/scan/Book.vue @@ -2,7 +2,9 @@ - 我是扫码内容部分 + + {{ bookInfo.display }} + @@ -29,6 +31,7 @@ data() { return { col: 4, + bookInfo:{}, fastToolList:[ { "index": 0, @@ -53,13 +56,16 @@ ] } }, - onLoad() { - this.loadPage(); + onLoad(option) { + let that = this; + that.initData(option); }, methods: { - - loadPage(){ - console.log('11111') + initData(option){ + let that = this; + let data = JSON.parse(option.data); + that.bookInfo = data; + console.log('bookInfo',that.bookInfo) } } } diff --git a/pages/scan/Calendar.vue b/pages/scan/Calendar.vue index 9fce0da..07d10e7 100644 --- a/pages/scan/Calendar.vue +++ b/pages/scan/Calendar.vue @@ -2,7 +2,13 @@ - 我是扫码内容部分 + + Subject: {{ calendarInfo.summary }} + Start: {{ calendarInfo.start }} + End: {{ calendarInfo.end }} + Note: {{ calendarInfo.desc }} + Address: {{ calendarInfo.location }} + @@ -29,6 +35,7 @@ data() { return { col: 4, + calendarInfo:{}, fastToolList:[ { "index": 0, @@ -53,11 +60,17 @@ ] } }, - onLoad() { - + onLoad(option) { + let that = this; + that.initData(option); }, methods: { - + initData(option){ + let that = this; + let data = JSON.parse(option.data); + that.calendarInfo = data; + console.log('calendarInfo',that.calendarInfo) + } } } @@ -84,8 +97,8 @@ background-color: #141b29; color: #fff; //border: 2px solid yellow; - height: 80px; - text-align: center; + height: 120px; + text-align: start; } .listItem{ diff --git a/pages/scan/Contacts.vue b/pages/scan/Contacts.vue index f97c23c..e2a30a0 100644 --- a/pages/scan/Contacts.vue +++ b/pages/scan/Contacts.vue @@ -2,7 +2,14 @@ - 我是扫码内容部分 + + Name: {{ contactsInfo.name.formattedName }} + Tel: {{ contactsInfo.phones[0].number }} + E-mail: {{ contactsInfo.emails[0].address }} + Address: {{ contactsInfo.addresses[0].addressLines[0] }} + Note: {{ contactsInfo.title }} + Org: {{ contactsInfo.organization }} + @@ -29,6 +36,7 @@ data() { return { col: 4, + contactsInfo:{}, fastToolList:[ { "index": 0, @@ -53,11 +61,17 @@ ] } }, - onLoad() { - + onLoad(option) { + let that = this; + that.initData(option); }, methods: { - + initData(option){ + let that = this; + let data = JSON.parse(option.data); + that.contactsInfo = data; + console.log('contactsInfo',that.contactsInfo) + } } } @@ -84,8 +98,8 @@ background-color: #141b29; color: #fff; //border: 2px solid yellow; - height: 80px; - text-align: center; + height: 180px; + text-align: start; } .listItem{ diff --git a/pages/scan/Email.vue b/pages/scan/Email.vue index c3628de..209f13f 100644 --- a/pages/scan/Email.vue +++ b/pages/scan/Email.vue @@ -2,7 +2,11 @@ - 我是扫码内容部分 + + To: {{ emailInfo.address }} + Subject: {{ emailInfo.subject }} + Content: {{ emailInfo.body }} + @@ -29,6 +33,7 @@ data() { return { col: 4, + emailInfo:{}, fastToolList:[ { "index": 0, @@ -53,11 +58,17 @@ ] } }, - onLoad() { - + onLoad(option) { + let that = this; + that.initData(option); }, methods: { - + initData(option){ + let that = this; + let data = JSON.parse(option.data); + that.emailInfo = data; + console.log('emailInfo',that.emailInfo) + } } } @@ -85,7 +96,7 @@ color: #fff; //border: 2px solid yellow; height: 80px; - text-align: center; + text-align: start; } .listItem{ diff --git a/pages/scan/Location.vue b/pages/scan/Location.vue index 6490ecb..52b907b 100644 --- a/pages/scan/Location.vue +++ b/pages/scan/Location.vue @@ -2,7 +2,10 @@ - 我是扫码内容部分 + + Lng: {{ locationInfo.lng }} + Lat: {{ locationInfo.lat }} + @@ -29,6 +32,7 @@ data() { return { col: 4, + locationInfo:{}, fastToolList:[ { "index": 0, @@ -53,11 +57,17 @@ ] } }, - onLoad() { - + onLoad(option) { + let that = this; + that.initData(option); }, methods: { - + initData(option){ + let that = this; + let data = JSON.parse(option.data); + that.locationInfo = data; + console.log('locationInfo',that.locationInfo) + } } } @@ -85,7 +95,7 @@ color: #fff; //border: 2px solid yellow; height: 80px; - text-align: center; + text-align: start; } .listItem{ diff --git a/pages/scan/Product.vue b/pages/scan/Product.vue index a94e66e..914bddf 100644 --- a/pages/scan/Product.vue +++ b/pages/scan/Product.vue @@ -2,7 +2,9 @@ - 我是扫码内容部分 + + code: {{ productInfo.display }} + @@ -29,6 +31,7 @@ data() { return { col: 3, + productInfo:{}, fastToolList:[ { "index": 0, @@ -48,11 +51,17 @@ ] } }, - onLoad() { - + onLoad(option) { + let that = this; + that.initData(option); }, methods: { - + initData(option){ + let that = this; + let data = JSON.parse(option.data); + that.productInfo = data; + console.log('productInfo',that.productInfo) + } } } diff --git a/pages/scan/Scan.nvue b/pages/scan/Scan.nvue index 177df92..19585f0 100644 --- a/pages/scan/Scan.nvue +++ b/pages/scan/Scan.nvue @@ -1,5 +1,5 @@ diff --git a/pages/scan/Sms.vue b/pages/scan/Sms.vue index 1ee5c9b..c1bf400 100644 --- a/pages/scan/Sms.vue +++ b/pages/scan/Sms.vue @@ -2,7 +2,10 @@ - 我是扫码内容部分 + + Tel: {{ smsInfo.phoneNumber }} + Content: {{ smsInfo.message }} + @@ -29,6 +32,7 @@ data() { return { col: 4, + smsInfo:{}, fastToolList:[ { "index": 0, @@ -53,11 +57,17 @@ ] } }, - onLoad() { - + onLoad(option) { + let that = this; + that.initData(option); }, methods: { - + initData(option){ + let that = this; + let data = JSON.parse(option.data); + that.smsInfo = data; + console.log('smsInfo',that.smsInfo) + } } } @@ -85,7 +95,7 @@ color: #fff; //border: 2px solid yellow; height: 80px; - text-align: center; + text-align: start; } .listItem{ diff --git a/pages/scan/Tel.vue b/pages/scan/Tel.vue index dced38c..c27efb8 100644 --- a/pages/scan/Tel.vue +++ b/pages/scan/Tel.vue @@ -2,7 +2,9 @@ - 我是扫码内容部分 + + Telephone number: {{ telInfo.number }} + @@ -29,6 +31,7 @@ data() { return { col: 4, + telInfo:{}, fastToolList:[ { "index": 0, @@ -53,11 +56,17 @@ ] } }, - onLoad() { - + onLoad(option) { + let that = this; + that.initData(option); }, methods: { - + initData(option){ + let that = this; + let data = JSON.parse(option.data); + that.telInfo = data; + console.log('telInfo',that.telInfo) + } } } @@ -85,7 +94,7 @@ color: #fff; //border: 2px solid yellow; height: 80px; - text-align: center; + text-align: start; } .listItem{ diff --git a/pages/scan/Text.vue b/pages/scan/Text.vue index a097b8a..34c3fd7 100644 --- a/pages/scan/Text.vue +++ b/pages/scan/Text.vue @@ -2,7 +2,9 @@ - 我是扫码内容部分 + + {{ textInfo.display }} + @@ -29,6 +31,7 @@ data() { return { col: 4, + textInfo:{}, fastToolList:[ { "index": 0, @@ -53,11 +56,17 @@ ] } }, - onLoad() { - + onLoad(option) { + let that = this; + that.initData(option); }, methods: { - + initData(option){ + let that = this; + let data = JSON.parse(option.data); + that.textInfo = data; + console.log('textInfo',that.textInfo) + } } } @@ -85,7 +94,7 @@ color: #fff; //border: 2px solid yellow; height: 80px; - text-align: center; + text-align: start; } .listItem{ diff --git a/pages/scan/Url.vue b/pages/scan/Url.vue index 049e66a..57bf6c3 100644 --- a/pages/scan/Url.vue +++ b/pages/scan/Url.vue @@ -2,7 +2,10 @@ - 我是扫码内容部分 + + Title: {{ urlInfo.title }} + Url: {{ urlInfo.url }} + @@ -29,6 +32,7 @@ data() { return { col: 3, + urlInfo:{}, fastToolList:[ { "index": 0, @@ -48,11 +52,17 @@ ] } }, - onLoad() { - + onLoad(option) { + let that = this; + that.initData(option); }, methods: { - + initData(option){ + let that = this; + let data = JSON.parse(option.data); + that.urlInfo = data; + console.log('urlInfo',that.urlInfo) + } } } @@ -79,7 +89,7 @@ background-color: #141b29; color: #fff; //border: 2px solid yellow; - height: 80px; + height: 180px; text-align: center; } diff --git a/pages/scan/Wifi.vue b/pages/scan/Wifi.vue index 08886d8..89d73b3 100644 --- a/pages/scan/Wifi.vue +++ b/pages/scan/Wifi.vue @@ -2,7 +2,10 @@ - 我是扫码内容部分 + + Network name: {{ wifiInfo.ssid }} + Password: {{ wifiInfo.password }} + @@ -29,6 +32,7 @@ data() { return { col: 4, + wifiInfo:{}, fastToolList:[ { "index": 0, @@ -53,17 +57,25 @@ ] } }, - onLoad() { - + onLoad(option) { + let that = this; + that.initData(option); }, methods: { - + initData(option){ + let that = this; + let data = JSON.parse(option.data); + that.wifiInfo = data; + console.log('wifiInfo',that.wifiInfo) + console.log('password',that.wifiInfo.password) + console.log('ssid',that.wifiInfo.ssid) + } } } + \ No newline at end of file