From 07925905f1a596e20e980de6d42db217abb753b0 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 12 十二月 2025 18:06:11 +0800
Subject: [PATCH] plugin
---
pages/login/index.vue | 34 +++++++++++++++++-----------------
1 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/pages/login/index.vue b/pages/login/index.vue
index 4eae444..a2810b5 100644
--- a/pages/login/index.vue
+++ b/pages/login/index.vue
@@ -6,8 +6,12 @@
<div class="mui-content">
<form id='login-form' class="mui-input-group">
- <a href="javascript:;" class="SetServer" @click="inputDialogToggle">{{translateSys('set')}}</a>
- <a href="javascript:;" class="SetServer" @click="clickSetLanguage">{{translateSys('language')}}</a>
+ <a href="javascript:;" class="set-server" @click="inputDialogToggle">{{translateSys('set')}}</a>
+ <navigator class="set-language" url="./language">
+ <a href="javascript:;">{{translateSys('language')}}</a>
+ </navigator>
+
+
<div class="mui-input-row">
<label class="la_icon">
<image class="logo_input" src="../../images/login/person_30.png"></image>
@@ -161,8 +165,8 @@
try {
if (!this.userServer) {
- showInfo( this.translate('tip_no_web_server'));
-
+ showInfo(this.translate('tip_no_web_server'));
+
return;
}
// var ser = this.userServer.toLowerCase().split('/');
@@ -179,7 +183,7 @@
} catch (ex) {
// console.log(ex);
- showError(ex,this.translateSys("error"));
+ showError(ex, this.translateSys("error"));
}
@@ -244,12 +248,12 @@
//涓嬭浇鎴愬姛,d.filename鏄枃浠跺湪淇濆瓨鍦ㄦ湰鍦扮殑鐩稿璺緞锛屼娇鐢ㄤ笅闈㈢殑API鍙浆涓哄钩鍙扮粷瀵硅矾寰� var fileSaveUrl = plus.io.convertLocalFileSystemURL(d.filename);
plus.runtime.openFile(d.filename); //閫夋嫨杞欢鎵撳紑鏂囦欢
- showInfo( this.translate('update_success'));
+ showInfo(this.translate('update_success'));
_this.$refs.promotion.close();
} else {
//涓嬭浇澶辫触
plus.downloader.clear(); //娓呴櫎涓嬭浇浠诲姟
- showInfo( this.translate('update_fail'));
+ showInfo(this.translate('update_fail'));
_this.showBtns = false;
}
})
@@ -286,11 +290,6 @@
}
}
})
- },
- clickSetLanguage() {
- uni.navigateTo({
- url: './language'
- });
},
dialogInputConfirm(val) {
@@ -399,7 +398,7 @@
} catch (ex) {
hideLoading()
- showError(ex,this.translateSys("error"));
+ showError(ex, this.translateSys("error"));
}
},
@@ -444,8 +443,8 @@
} catch (ex) {
- showError(ex,this.translateSys("error"));
-
+ showError(ex, this.translateSys("error"));
+
this.selectedClasses = ""
this.classesLst = []
// {
@@ -471,7 +470,7 @@
clickSelectClass(item) {
this.selectedClasses = item.text
},
-
+
translate(t) {
if (typeof this.$t == "function") return this.$t(`page.${t}`)
else return t;
@@ -543,7 +542,8 @@
background-repeat: no-repeat !important; */
}
- .SetServer {
+ .set-language,
+ .set-server {
float: left;
margin-left: 20rpx;
}
--
Gitblit v1.9.1