| | |
| | | <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> |
| | |
| | | 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('/'); |
| | |
| | | |
| | | } catch (ex) { |
| | | // console.log(ex); |
| | | showError(ex,this.translateSys("error")); |
| | | showError(ex, this.translateSys("error")); |
| | | |
| | | } |
| | | |
| | |
| | | //下载成功,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; |
| | | } |
| | | }) |
| | |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | clickSetLanguage() { |
| | | uni.navigateTo({ |
| | | url: './language' |
| | | }); |
| | | }, |
| | | |
| | | dialogInputConfirm(val) { |
| | |
| | | |
| | | } catch (ex) { |
| | | hideLoading() |
| | | showError(ex,this.translateSys("error")); |
| | | showError(ex, this.translateSys("error")); |
| | | } |
| | | |
| | | }, |
| | |
| | | |
| | | |
| | | } catch (ex) { |
| | | showError(ex,this.translateSys("error")); |
| | | |
| | | showError(ex, this.translateSys("error")); |
| | | |
| | | this.selectedClasses = "" |
| | | this.classesLst = [] |
| | | // { |
| | |
| | | clickSelectClass(item) { |
| | | this.selectedClasses = item.text |
| | | }, |
| | | |
| | | |
| | | translate(t) { |
| | | if (typeof this.$t == "function") return this.$t(`page.${t}`) |
| | | else return t; |
| | |
| | | background-repeat: no-repeat !important; */ |
| | | } |
| | | |
| | | .SetServer { |
| | | .set-language, |
| | | .set-server { |
| | | float: left; |
| | | margin-left: 20rpx; |
| | | } |