From 377722df8f97989ca6c4252f909243c9b8b0d340 Mon Sep 17 00:00:00 2001
From: jt <jt@activesoft.com>
Date: 星期四, 04 八月 2022 10:22:57 +0800
Subject: [PATCH] test

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

diff --git a/pages/login/index.vue b/pages/login/index.vue
index 3286684..dea3ef1 100644
--- a/pages/login/index.vue
+++ b/pages/login/index.vue
@@ -146,8 +146,11 @@
 					</label>
 				</checkbox-group>
 			</form>
-				<button id='login' type="default" @tap="logind" class="btn_login">{{login}}</button>
-			</div>
+			<button id='login' type="default" @tap="logind" class="btn_login">{{login}}</button>
+			<p style="float:right; margin: 10px 10px;color:#c8c7cc">
+				<span>鐗堟湰鍙凤細</span>
+				<span>{{version}}</span>
+			</p>
 			<div class="" style="text-align: center;background: white;border-top: 0px solid #C0C0C0;color: #7cd0f8;position: absolute;bottom: 0;width: 100%;height: 24px;padding-top:3px;font-size: 11px;">
 			</div>
 		</div>
@@ -191,6 +194,7 @@
 				userName:account,
 				userPwd:password,
 				ischecked:ischecked,
+				version:"1.0.0",
 			}
 		},
 		// computed: mapState({
@@ -252,6 +256,18 @@
 				
 			// },
 			logind(){
+				if(!this.userServer){
+					uni.showModal({title:"鎻愮ず",content:"鏈緭鍏ョ綉绔欏湴鍧�紝璇烽噸鏂伴厤缃緭鍏ワ紒",showCancel:false,confirmText:"鍙栨秷"});
+					return;
+				}
+				if(!this.userName){
+					uni.showModal({title:"鎻愮ず",content:"鏈緭鍏ョ敤鎴峰悕锛岃閲嶆柊杈撳叆锛�,showCancel:false,confirmText:"鍙栨秷"});
+					return;
+				}
+				if(!this.userPwd){
+					uni.showModal({title:"鎻愮ず",content:"鏈緭鍏ュ瘑鐮侊紝璇烽噸鏂拌緭鍏ワ紒",showCancel:false,confirmText:"鍙栨秷"});
+					return;
+				}
 				//妫�煡 "鐧诲綍鐘舵�/閿佸睆鐘舵�" 缁撴潫
 				var loginInfo = {
 					server: this.userServer,
@@ -294,7 +310,10 @@
 			}
 		},
 		onLoad() {
-			
+			plus.runtime.getProperty(plus.runtime.appid,(info)=>{
+				// console.log(info);
+				this.$data.version=info.version;
+			});
 		}
 	}
 </script>

--
Gitblit v1.9.1