cuiqian2004
4 天以前 07925905f1a596e20e980de6d42db217abb753b0
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;
      }