|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="normal-login-container">
|
|
<view class="normal-login-container">
|
|
|
|
|
|
|
|
|
|
+ <view style="position: fixed;left: 10px;z-index: 999999;top:30px;font-size: 10px;">{{i18('版本')}}:{{version}}</view>
|
|
|
<view style="position: fixed;right: 10px;z-index: 999999;top:30px" @click="changeLocale">
|
|
<view style="position: fixed;right: 10px;z-index: 999999;top:30px" @click="changeLocale">
|
|
|
{{ $t('login.language') }}:{{localeConfig[locale]}}<uni-icons type="gear" size="15"></uni-icons>
|
|
{{ $t('login.language') }}:{{localeConfig[locale]}}<uni-icons type="gear" size="15"></uni-icons>
|
|
|
</view>
|
|
</view>
|
|
@@ -100,7 +101,7 @@
|
|
|
<u-picker @cancel="cancelLocale" :show="showLocale" keyName="label" :columns="localeList" @confirm="changeLanguage"></u-picker>
|
|
<u-picker @cancel="cancelLocale" :show="showLocale" keyName="label" :columns="localeList" @confirm="changeLanguage"></u-picker>
|
|
|
<u-popup :zoom="false" :show="showStatus" :mask-close-able="false" mode="center" :closeable="false" border-radius="14" height="150rpx">
|
|
<u-popup :zoom="false" :show="showStatus" :mask-close-able="false" mode="center" :closeable="false" border-radius="14" height="150rpx">
|
|
|
<view style="margin:20rpx">
|
|
<view style="margin:20rpx">
|
|
|
- {{i18('检测到有新版本,请点击下载')}}
|
|
|
|
|
|
|
+ {{i18('检测到有新版本,请点击下载')}} {{newVerson}}
|
|
|
</view>
|
|
</view>
|
|
|
<view v-if="!isShowProgress" style="text-align: center;text-decoration: underline;margin:10px" @click="downloadFile">
|
|
<view v-if="!isShowProgress" style="text-align: center;text-decoration: underline;margin:10px" @click="downloadFile">
|
|
|
{{i18('立即下载')}}
|
|
{{i18('立即下载')}}
|
|
@@ -125,6 +126,8 @@
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ version:"",
|
|
|
|
|
+ newVerson:"",
|
|
|
showLocale:false,
|
|
showLocale:false,
|
|
|
localeList:[[{"label":"简体中文","id":"zh-Hans"},{"label":"英文","id":"en"}]],
|
|
localeList:[[{"label":"简体中文","id":"zh-Hans"},{"label":"英文","id":"en"}]],
|
|
|
localeConfig:{"zh-Hans":"简体中文","en":"英文"},
|
|
localeConfig:{"zh-Hans":"简体中文","en":"英文"},
|
|
@@ -211,6 +214,7 @@
|
|
|
let appBaseInfo = uni.getAppBaseInfo();
|
|
let appBaseInfo = uni.getAppBaseInfo();
|
|
|
let appVersionCode = appBaseInfo.appVersionCode;
|
|
let appVersionCode = appBaseInfo.appVersionCode;
|
|
|
this.appVersionCode = appVersionCode;
|
|
this.appVersionCode = appVersionCode;
|
|
|
|
|
+ this.version = appVersionCode;
|
|
|
let self = this;
|
|
let self = this;
|
|
|
checkVersion({"versionCode":appVersionCode}).then(res=>{
|
|
checkVersion({"versionCode":appVersionCode}).then(res=>{
|
|
|
let cz_app_version =res.data;
|
|
let cz_app_version =res.data;
|
|
@@ -222,6 +226,7 @@
|
|
|
let url = cz_app_version.down_url;
|
|
let url = cz_app_version.down_url;
|
|
|
self.downloadUrl = url;
|
|
self.downloadUrl = url;
|
|
|
if(onlineVersion>appVersionCode){
|
|
if(onlineVersion>appVersionCode){
|
|
|
|
|
+ self.newVerson = onlineVersion;
|
|
|
self.showStatus = true;
|
|
self.showStatus = true;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|