| | |
| | | |
| | | <view class="body"> |
| | | |
| | | <view class="headClass">新凯迪云制造</view> |
| | | <view class="headClass">智能制造云平台</view> |
| | | <view class="main"> |
| | | <view class="circle"> |
| | | <view class="circleBg"></view> |
| | |
| | | :disabled="!(usercode.trim().length>0&&userpassword.trim().length>0)" text="立即登录" |
| | | :loading="isDisabledSubmitButton" loadingText="正在登录,请稍等..." class="loginClass" |
| | | @click="gotoIndex"></u-button> |
| | | |
| | | <!-- <u--text :block='false' color='#0659ff' :size='14' @click="envConfigClick" class='envConfig' |
| | | text="环境配置"></u--text> --> |
| | | </view> |
| | | |
| | | <u-modal :show="isShow" :showCancelButton="isShowCancelButton" :showConfirmButton='false' title="" |
| | | @confirm='isShowConfirm' @cancel='isShowCancel'> |
| | | <view> |
| | | <view> |
| | | <u--text type="info" :size='32' :block='false' text="当前版本不是最新版本,请点击"></u--text> |
| | | </view> |
| | | <view> |
| | | <u--text :block='false' mode="link" :size='50' text="链接下载" :href="downloadUrl"></u--text> |
| | | </view> |
| | | </view> |
| | | </u-modal> |
| | | |
| | | </view> |
| | | |
| | |
| | | import { |
| | | LoginSave, |
| | | ForcedOffline, |
| | | AppUpgrade |
| | | } from '../../config/api.js'; |
| | | import { |
| | | decode |
| | |
| | | data() { |
| | | return { |
| | | // #ifdef H5 |
| | | usercode: '9999', |
| | | usercode: '', |
| | | // #endif |
| | | |
| | | // #ifdef APP-PLUS |
| | | usercode: '999', |
| | | usercode: '', |
| | | // #endif |
| | | |
| | | userpassword: '123', |
| | | userpassword: '', |
| | | isView: false, //密码是否可见 |
| | | |
| | | isDisabledSubmitButton: false, //提交按钮是否处于加载中 |
| | | |
| | | isShowCancelButton: false, |
| | | isShowCancelButton: true, |
| | | isShow: false, |
| | | downloadUrl: '', //下载地址 |
| | | |
| | |
| | | |
| | | }, |
| | | created() { |
| | | |
| | | this.getAppUpgrade() |
| | | }, |
| | | mounted() { |
| | | |
| | | console.log(this.$baseUrl) |
| | | }, |
| | | methods: { |
| | | getAppUpgrade() { |
| | | AppUpgrade().then(res => { |
| | | this.isShow = res.data[0].version !== this.$appVersion |
| | | if (res.data[0].version !== this.$appVersion) { // 说明与最新版本不匹配 |
| | | this.downloadUrl = this.$baseUrl.substring(0, 25) + '/APK/JLAPP.apk' |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | //密码是否查看 显示明文 |
| | | isViewClick() { |
| | | this.isView = !this.isView |
| | |
| | | url: '../xtsy/index' |
| | | }); |
| | | // uni.$u.toast(result.Message) |
| | | } |
| | | |
| | | } |
| | | |
| | | // else if (result.code === '302') { |
| | | // const data2 = { |
| | | // // token: uni.getStorageSync('Token'), |
| | |
| | | // } |
| | | // }) |
| | | // } |
| | | |
| | | else { |
| | | else { |
| | | this.isDisabledSubmitButton = false |
| | | } |
| | | }) |
| | |
| | | isShowCancel() { |
| | | this.isShow = false |
| | | }, |
| | | |
| | | |
| | | // 环境配置点击 |
| | | envConfigClick() { |
| | | uni.navigateTo({ |
| | | url: './hjpz' |
| | | }); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | font-size: 16px !important; |
| | | line-height: 20px !important; |
| | | } |
| | | |
| | | .envConfig { |
| | | position: absolute; |
| | | right: 0rpx; |
| | | bottom: -120rpx; |
| | | } |
| | | </style> |
| | | <style> |
| | | page { |