From e92aeae89a7430b326ab2157ed5004cc5c87d659 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 28 十一月 2025 18:21:56 +0800
Subject: [PATCH] 75
---
pages/index/index.vue | 38 +++++++++-----------------------------
1 files changed, 9 insertions(+), 29 deletions(-)
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 05e6f38..74d65ae 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -9,7 +9,7 @@
:style="{'background-color':app.bk_color,'color':app.bk_color}">
<text class="ico" :class="app.img_font_style" :style="{'color':app.txt_color}"></text>
</a>
- <view @click="onClickApp(app)" class="app-name">{{app.name}}</view>
+ <view @click="onClickApp(app)" class="app-name">{{ (app.list_name || app.name)}}</view>
</view>
</view>
</view>
@@ -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') {
--
Gitblit v1.9.1