From 7662665a4f88da0f8afa804bd4a34dfbefc1fb56 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 29 八月 2025 15:17:59 +0800
Subject: [PATCH] get_pre_page_subtable_next_row
---
pages/index/index.vue | 34 +++++++---------------------------
1 files changed, 7 insertions(+), 27 deletions(-)
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 05e6f38..f4d5272 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"
@@ -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') {
--
Gitblit v1.9.1