From 09e14592dd06c4c2037e2b172ac77a2e290f9db9 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 05 九月 2025 19:01:09 +0800
Subject: [PATCH] form input pdaScanOnly
---
pages/index/index.vue | 43 ++++++++-----------------------------------
1 files changed, 8 insertions(+), 35 deletions(-)
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 65923ce..6dba341 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -37,6 +37,8 @@
Base64
} from '@/js/Base64.js';
import utils from "@/js/utils.js"
+ import {showInfo,
+ showError} from "@/js/Page.js"
import {
areaFunc
} from "@/api/index.js"
@@ -102,7 +104,7 @@
const area = list[i]
area.app_type = appType
const areaApp = await this.GetFuncTree(i, area)
- console.log(areaApp)
+ //console.log(areaApp)
if (areaApp) {
list2.push(areaApp)
}
@@ -117,16 +119,8 @@
}
} catch (ex) {
console.log(ex);
- let exStr = JSON.stringify(ex)
- if (exStr == "{}")
- exStr = ex
- let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
- uni.showModal({
- title: this.translateSys("error"),
- content: tip,
- showCancel: false,
- confirmText: this.translateSys('close')
- });
+ showError(ex,this.translateSys("error"))
+
}
@@ -145,17 +139,7 @@
else
return undefined
} catch (ex) {
- console.log(ex);
- let exStr = JSON.stringify(ex)
- if (exStr == "{}")
- exStr = ex
- let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
- uni.showModal({
- title: this.translateSys("error"),
- content: tip,
- showCancel: false,
- confirmText: this.translateSys('close')
- });
+ showError( tip)
return undefined
}
},
@@ -184,12 +168,8 @@
}
if (!param) {
- uni.showModal({
- title: this.translateSys("tip"),
- content: this.translate('tip_no_app_param'),
- showCancel: false,
- confirmText: this.translateSys('close')
- });
+ showInfo(this.translate('tip_no_app_param'))
+
return;
}
if (defCode == '3018') {
@@ -255,13 +235,6 @@
// uni.redirectTo({
// url:'../index/index?args=9999999999'
// });
- },
- ontap(e) { //鎵爜鍔熻兘
- // console.log(e.target)
- getApp().onScan((result) => {
- // console.log(result.decodedata);
- this.data[e.target.dataset['key']] = result.decodedata;
- })
},
translate(t) {
if (typeof this.$t == "function") return this.$t(`page.${t}`)
--
Gitblit v1.9.1