From 1f3fc1f21e256c3c66d505f75b291583d454e04b Mon Sep 17 00:00:00 2001
From: caill <815519168@qq.com>
Date: Tue, 3 Jun 2025 08:57:46 +0800
Subject: [PATCH] home
---
pages/home/home_back.vue | 366 ---------------------------------------
pages/login/login.vue | 57 +++---
2 files changed, 30 insertions(+), 393 deletions(-)
delete mode 100644 pages/home/home_back.vue
diff --git a/pages/home/home_back.vue b/pages/home/home_back.vue
deleted file mode 100644
index 012c0f3..0000000
--- a/pages/home/home_back.vue
+++ /dev/null
@@ -1,366 +0,0 @@
-
-
-
-
-
-
-
- {{userName}}
- 欢迎进入铜箔手持系统!
-
-
-
- 退出
-
-
-
-
-
-
-
- 一期
- 二期
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 97e85f2..93737c6 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -1,23 +1,23 @@
- 欢迎来到
- 海亮铜箔手持系统!
+ {{$t('login.text1')}}
+ {{$t('login.text2')}}
-
+
-
+
- 记住用户名
+ {{$t('login.remember')}}
- 设置
- 升级版本
+ {{$t('login.settings')}}
+ {{$t('login.upgrade')}}
-
+
v{{version}}
@@ -50,7 +50,7 @@
//#ifdef APP-PLUS
// 获取本地应用资源版本号
plus.runtime.getProperty(plus.runtime.appid, (info) => {
- console.log(JSON.stringify(info));
+ // console.log(JSON.stringify(info));
this.version = info.version;
this.versionCode = info.versionCode ;
})
@@ -84,23 +84,23 @@
})
},
async toLogin() {
- // uni.redirectTo({
- // url: '/pages/home/home'
- // })
+ uni.redirectTo({
+ url: '/pages/home/home'
+ })
this.disabled = true
if (this.user === '') {
- uni.showToast({
- title: '用户名不能为空',
- icon: 'none'
- })
+ // uni.showToast({
+ // title: '用户名不能为空',
+ // icon: 'none'
+ // })
this.disabled = false
return
}
if (this.password === '') {
- uni.showToast({
- title: '密码不能为空',
- icon: 'none'
- })
+ // uni.showToast({
+ // title: '密码不能为空',
+ // icon: 'none'
+ // })
this.disabled = false
return
}
@@ -145,11 +145,11 @@