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 |   88 +++++++++++++++++--------------------------
 1 files changed, 35 insertions(+), 53 deletions(-)

diff --git a/pages/index/index.vue b/pages/index/index.vue
index 01c53d5..f4d5272 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,5 +1,5 @@
 <template>
-	<view class="uni-page-index">
+	<view class="uni-page-index" :class="largeMode?'large-mode':''">
 		<view class="area-list" v-if="isMobox3">
 			<view class="v-area" v-for="(area,index) in data">
 				<view class="area-name">{{ area.name }}</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"
@@ -52,6 +54,7 @@
 		},
 		data() {
 			return {
+				largeMode: getApp().globalData.largeMode || false,
 				title: 'Hello',
 				data: [],
 				isMobox3: getApp().globalData.isMobox3,
@@ -116,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"))
+					
 				}
 
 
@@ -144,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
 				}
 			},
@@ -183,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 +236,6 @@
 				// 	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}`)
 				else return t;
@@ -298,7 +272,6 @@
 				width: calc(100% - 40rpx);
 
 				.area-name {
-					font-size: 40rpx;
 					width: 100%;
 					padding: 10rpx;
 				}
@@ -313,7 +286,6 @@
 					.app {
 						padding: 20rpx 25rpx 15rpx 25rpx;
 						text-align: center;
-						font-size: 14px;
 						width: 125rpx;
 						display: flex;
 						flex-direction: column;
@@ -328,8 +300,8 @@
 
 							.ico {
 								color: #000000;
-								font-size: 40px;
 								line-height: 105rpx;
+								font-size: 24px;
 							}
 						}
 
@@ -343,17 +315,6 @@
 		}
 
 
-		.areaList li {
-			/* border: 1px solid #0062CC; */
-			list-style: none;
-			/* width: 120rpx; */
-			display: inline-block;
-			padding: 30rpx 10rpx 16rpx 10rpx;
-			text-align: center;
-			font-size: 14px;
-			width: 140rpx;
-			vertical-align: text-top;
-		}
 
 		.logo {
 			height: 120rpx;
@@ -366,10 +327,31 @@
 			border: 0px solid rgb(221, 221, 221);
 		}
 
-		.logo i {
-			color: #000000;
-			font-size: 40px;
-			line-height: 120rpx;
+	}
+
+	.uni-page-index.large-mode {
+		.area-name {
+			font-size: 30px;
 		}
+
+		.app {
+			padding: 20rpx 25rpx 15rpx 25rpx;
+			width: 175rpx  !important;
+
+			.logo {
+				height: 150rpx  !important;
+				width: 150rpx  !important;
+
+				.ico {
+					line-height: 150rpx  !important;
+					font-size: 30px  !important;
+				}
+			}
+
+			.app-name {
+				padding-top: 10rpx !important;
+			}
+		}
+
 	}
 </style>
\ No newline at end of file

--
Gitblit v1.9.1