From 9314df38af921dc7d72279e8c452badcd5e22d94 Mon Sep 17 00:00:00 2001
From: jt <jt@activesoft.com>
Date: 星期三, 04 一月 2023 15:20:31 +0800
Subject: [PATCH] test
---
pages/login/index.vue | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/pages/login/index.vue b/pages/login/index.vue
index c09b8e8..470b9fc 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({
@@ -277,7 +281,7 @@
this.$data.login="loading......";
//鐧诲綍
this.$store.dispatch('login',loginInfo).then(success=>{
- // console.log(success);
+ console.log(success);
if (success.code == '00000') {
//璁剧疆鍏ㄥ眬鍙傛暟锛歶ser-鐢ㄦ埛淇℃伅
uni.setStorageSync('server',loginInfo.server);
@@ -299,14 +303,17 @@
this.login="寮�鐧诲綍";
}
}).catch(ex=>{
- // console.log(ex);
+ console.log(ex);
uni.showModal({title:"閿欒",content:ex.errMsg,showCancel:false,confirmText:"鍙栨秷"});
this.login="寮�鐧诲綍";
});
}
},
onLoad() {
-
+ plus.runtime.getProperty(plus.runtime.appid,(info)=>{
+ // console.log(info);
+ this.$data.version=info.version;
+ });
}
}
</script>
--
Gitblit v1.9.1