From df481aebfb7a19eea5d6c02f93c6f5776b0fdc19 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 23 五月 2025 18:30:41 +0800
Subject: [PATCH] 界面大模式

---
 pages/login/index.vue |   40 ++++++++++++++++++----------------------
 1 files changed, 18 insertions(+), 22 deletions(-)

diff --git a/pages/login/index.vue b/pages/login/index.vue
index 67148bb..0406e93 100644
--- a/pages/login/index.vue
+++ b/pages/login/index.vue
@@ -1,5 +1,5 @@
 <template>
-	<view class="uni-page-login" style="width: 100vw;height: 64vh;">
+	<view class="uni-page-login " :class="largeMode?'large-mode':''" style="width: 100vw;height: 64vh;">
 		<div id="headr" class="mui-bar mui-bar-nav">
 			<image class="logo" src="../../images/login/mobox_log_200.png"></image>
 		</div>
@@ -13,7 +13,6 @@
 						<image class="logo_input" src="../../images/login/person_30.png"></image>
 					</label>
 					<input type="text" class="mui-input" v-model="userName" :placeholder="translateSys('input_login')">
-					<!-- <label class="mui-navigate-right" id="namsel"><image class="logo_icon" src="../../images/login/user-photo.png</image></label> -->
 				</div>
 				<div class="mui-input-row">
 					<label class="la_icon">
@@ -121,6 +120,9 @@
 				showBtns: true,
 				selectedClasses: "",
 				classesLst: [],
+				largeMode: false,
+
+
 			}
 		},
 		onShow() {
@@ -288,12 +290,15 @@
 			inputDialogToggle() {
 				// this.$refs.inputDialog.open()
 				const $this = this
+				
 				uni.navigateTo({
 					url: "./set",
 					events: {
 						exitSetEvent(val) {
 							$this.userServer = val;
 							$this.query(); //鐗堟湰鍗囩骇
+							$this.largeMode = 	getApp().globalData.largeMode 
+					
 						}
 					}
 				})
@@ -493,7 +498,7 @@
 						showCancel: false,
 						confirmText: this.translateSys('close')
 					});
-					
+
 					this.selectedClasses = ""
 					this.classesLst = []
 					// {
@@ -534,7 +539,8 @@
 			var url = utils.session.getValue('server');
 			var username = utils.session.getValue('account');
 			var userpwd = utils.session.getValue('password');
-
+			this.largeMode = utils.session.getValue('large_mode') ? true : false
+			getApp().globalData.largeMode = this.largeMode
 			var ischecked = false;
 			if (!this.userServer)
 				this.userServer = url;
@@ -666,32 +672,14 @@
 
 		.mui-input-row input {
 			font-family: 'Helvetica Neue', Helvetica, sans-serif;
-			font-size: 15px;
 			width: 480rpx;
-			/* float: right; */
 			margin-bottom: 0;
 			padding-left: 20rpx;
-			/* padding-right: 10rpx; */
-			/* line-height: 30rpx; */
-			height: 85rpx;
-			/* padding: 7px 40px 7px 0px; */
 			-webkit-user-select: text;
-			/* border: 0; */
-			/* border-radius: 0; */
 			box-shadow: none;
 			outline: 0;
 			background: 0 0;
 			-webkit-appearance: none;
-		}
-
-		.mui-input-group label.mui-navigate-right {
-			font-size: 25px;
-			float: right;
-			padding: 0;
-			width: 80rpx;
-			margin-right: 5rpx;
-			margin-top: -88rpx;
-			display: inline-block;
 		}
 
 		button.btn_login {
@@ -723,4 +711,12 @@
 
 		}
 	}
+	
+	.uni-page-login.large-mode{
+		.logo_input {
+			height: 54rpx;
+			width: 54rpx;
+		}
+	}
+	
 </style>
\ No newline at end of file

--
Gitblit v1.9.1