| | |
| | | |
| | | <a href="javascript:;" class="SetServer" @click="inputDialogToggle">{{translateSys('set')}}</a> |
| | | <a href="javascript:;" class="SetServer" @click="clickSetLanguage">{{translateSys('language')}}</a> |
| | | |
| | | <!-- <div class="mui-input-row"> |
| | | <label class="la_icon"><image class="logo_input" src="../../images/login/svr_30.png"></image></label> |
| | | <input type="text" class="mui-input" v-model="userServer" placeholder="服务器地址"> |
| | | <label class="mui-navigate-right" id="sersel"><image class="logo_icon" src="../../images/login/sel_left.png" ></image></label> |
| | | </div> --> |
| | | <div class="mui-input-row"> |
| | | <label class="la_icon"> |
| | | <image class="logo_input" src="../../images/login/person_30.png"></image> |
| | |
| | | </label> |
| | | </checkbox-group> |
| | | </form> |
| | | <button id='login' type="default" @tap="logind" class="btn_login">{{translateSys("start_login")}}</button> |
| | | <button id='login' :disabled="btnLoading" type="default" @tap="onClickLogin" |
| | | class="btn_login">{{translateSys("start_login")}}</button> |
| | | <p style="float:right; margin: 10px 10px;color:#c8c7cc"> |
| | | <span>{{translateSys('version')}}:</span> |
| | | <span>{{version}}</span> |
| | |
| | | </uni-popup> |
| | | <!-- 版本升级弹窗结束 --> |
| | | </view> |
| | | |
| | | <!-- <button @click="onClickWms">登录wms</button> |
| | | <view class="webview"> |
| | | <web-view ref="webview" src="http://115.29.185.26:5000/mobox3/#/"></web-view> |
| | | </view> --> |
| | | </view> |
| | | |
| | | </template> |
| | |
| | | login, |
| | | getApkVersionInfo |
| | | } from "@/api/index.js" |
| | | import buttonClickMixin from '@/mixins/button-click.js'; |
| | | |
| | | import utils from "@/js/utils.js" |
| | | export default { |
| | | mixins: [buttonClickMixin], |
| | | components: { |
| | | cmdProgress |
| | | }, |
| | |
| | | title: this.translateSys("tip"), |
| | | content: this.translate("tip_no_web_server"), |
| | | showCancel: false, |
| | | confirmText: this.translateSys('cancel') |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | title: this.translateSys("error"), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | } |
| | | |
| | |
| | | console.log(e.target); |
| | | utils.session.setValue('account', ''); |
| | | utils.session.setValue('password', ''); |
| | | if (e.target.value[0] == '1') { |
| | | if (e.detail.value[0] == '1') { |
| | | utils.session.setValue('account', this.userName); |
| | | utils.session.setValue('password', this.userPwd); |
| | | } |
| | |
| | | // ((expiredays==null)?'':';expires='+exdate.toGMTString()); |
| | | |
| | | // }, |
| | | onClickLogin() { |
| | | this.handleButtonClick((done) => { |
| | | this.logind() |
| | | setTimeout(() => { |
| | | done(); // 重置状态 |
| | | }, 1000); |
| | | }); |
| | | }, |
| | | async logind() { |
| | | try { |
| | | if (!this.userServer) { |
| | |
| | | title: this.translateSys('tip'), |
| | | content: this.translate('tip_no_web_server'), |
| | | showCancel: false, |
| | | confirmText: this.translateSys('cancel') |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | title: this.translateSys('tip'), |
| | | content: this.translate('tip_no_user_account'), |
| | | showCancel: false, |
| | | confirmText: this.translateSys('cancel') |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | title: this.translateSys('tip'), |
| | | content: this.translate('tip_no_user_password'), |
| | | showCancel: false, |
| | | confirmText: this.translateSys('cancel') |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | title: this.translateSys("error"), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | } |
| | | |
| | | }, |
| | | onClickWms() { |
| | | let otherAppSchemeURL = "testapp://pages/index/index"; // 替换为目标app的scheme URL |
| | | plus.runtime.openURL(otherAppSchemeURL, function(error) { |
| | | console.error('打开应用失败: ', error); |
| | | }, "uni.TeatApp"); |
| | | }, |
| | | translate(t) { |
| | | if (typeof this.$t == "function") return this.$t(`page.${t}`) |
| | |
| | | else return t; |
| | | }, |
| | | }, |
| | | onLoad() { |
| | | onLoad(options) { |
| | | //获取mac地址 |
| | | |
| | | var url = utils.session.getValue('server'); |
| | | var username = utils.session.getValue('account'); |
| | | var userpwd = utils.session.getValue('password'); |
| | |
| | | console.log('Android设备的deviceId:', deviceId); |
| | | plus.runtime.getProperty(plus.runtime.appid, (info) => { |
| | | // console.log(info); |
| | | this.$data.version = info.version; |
| | | this.version = info.version; |
| | | }); |
| | | } |
| | | } |