From 54a7df532e4fd82a1462edd4475403ed9b2be0cc Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期四, 10 四月 2025 14:20:40 +0800
Subject: [PATCH] 添加接口地址更改

---
 代码管理/NEWCode/WIDESEAWCS_PDA/pages/login/login.vue |   56 ++++++++++++++++++++++++++++++++++++--------------------
 1 files changed, 36 insertions(+), 20 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/pages/login/login.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/pages/login/login.vue"
index c93ff55..0be57d2 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/pages/login/login.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/pages/login/login.vue"
@@ -1,8 +1,12 @@
 <template>
 	<view class="login">
+		<view class="tools">
+			<uni-icons  size="48rpx" color="#292C39" @click="doScan"></uni-icons>
+			<uni-icons type="gear-filled" size="48rpx" color="#292C39" @click="goSetAddress"></uni-icons>
+		</view>
 		<view class="login-main">
 			<text class="login-main-title">娆㈣繋鐧诲綍</text>
-			<view class="login-main-subtitle">鑰�鑳芥柊鑳芥簮PDA绋嬪簭</view>
+			<view class="login-main-subtitle">璧i攱鏂拌兘婧怭DA绋嬪簭</view>
 			<view class="login-main-body">
 				<!-- <login-input key="username" v-model="user" clearable placeholder="鐢ㄦ埛鍚�"
 					:maxlength="20"></login-input> -->
@@ -17,11 +21,11 @@
 						:maxlength="10"></uni-easyinput>
 					<view class="canvas-img-code" @click="refresh()">
 						<img :src="validCodeBase64" :style="{ width: width + 'px', height: height + 'px' }"
-							class="login-validCode-img"/>
-						  <!-- <img v-show="validCodeBase64 != ''" :src="validCodeBase64" :style="{ width: width + 'px', height: height + 'px' }"/> -->
+							class="login-validCode-img" />
+						<!-- <img v-show="validCodeBase64 != ''" :src="validCodeBase64" :style="{ width: width + 'px', height: height + 'px' }"/> -->
 					</view>
 				</view>
-		
+
 				<u-button type="success" size="default" shape="circle" :ripple="true" ripple-bg-color="#909399"
 					@click="login">
 					鐧诲綍
@@ -48,13 +52,17 @@
 				SYS_DEFAULT_CAPTCHA_OPEN: true,
 				validCodeBase64: '',
 				validCodeReqNo: '',
-				code:'1234'
+				code: '1234'
 			}
 		},
 		onLoad(options) {
 			this.configSysBaseList()
 		},
 		methods: {
+			//璺宠浆鍒癝etAddress椤甸潰
+			goSetAddress() {
+				this.$u.route('/pages/SetAddress/SetAddress');
+			},
 			configSysBaseList() {
 				// this.$u.get('/api/User/getVierificationCode', null).then(res => {
 				// 	if (res.code == 200) {
@@ -67,19 +75,19 @@
 				// 				}
 				// 			}
 				// 		})
-						//濡傛灉楠岃瘉鐮佸紑鍏虫槸寮�灏卞姞杞介獙璇佺爜
-						if (this.SYS_DEFAULT_CAPTCHA_OPEN) {
-							this.loginCaptcha()
-						}
-					// }
-				 // })
+				//濡傛灉楠岃瘉鐮佸紑鍏虫槸寮�灏卞姞杞介獙璇佺爜
+				if (this.SYS_DEFAULT_CAPTCHA_OPEN) {
+					this.loginCaptcha()
+				}
+				// }
+				// })
 			},
 			loginCaptcha() {
 				this.$u.get('/api/User/getVierificationCode', null).then(res => {
-				
-					this.validCodeBase64 =  "data:image/png;base64," + res.img;
+
+					this.validCodeBase64 = "data:image/png;base64," + res.img;
 					this.validCodeReqNo = res.uuid
-	
+
 				})
 			},
 			refresh() {
@@ -104,12 +112,12 @@
 					// 	UserName: this.user,
 					// 	VerificationCode: this.SYS_DEFAULT_CAPTCHA_OPEN ? this.code : null
 					// }
-					this.$u.post('/api/User/login', 
-					{UUID: this.validCodeReqNo,
-					passWord: this.pass,
-					userName: this.user,
-					verificationCode: this.code}
-					).then(res => {
+					this.$u.post('/api/User/login', {
+						UUID: this.validCodeReqNo,
+						passWord: this.pass,
+						userName: this.user,
+						verificationCode: this.code
+					}).then(res => {
 						console.log(res)
 						this.$t.message.toast("鐧诲綍鎴愬姛")
 						this.$t.message.closeLoading()
@@ -136,6 +144,14 @@
 </script>
 
 <style lang="scss" scoped>
+	.tools {
+		display: flex;
+		justify-content: space-between;
+		margin-bottom: 32rpx;
+		box-sizing: border-box;
+		padding: 0 12rpx;
+	}
+
 	.login {
 		// font-family: PingFangSC-Regular, PingFang SC;
 		// background-color: $color-white;

--
Gitblit v1.9.3