|
@@ -23,10 +23,12 @@
|
|
|
<!-- 已加密的:{{lliPassword}} -->
|
|
|
</view>
|
|
|
<passwordLli ref="passLLiRef" :password="password" @lli-password="onLliPassword" />
|
|
|
+ <tip-dialog ref="tipDialogRef" :title="tipTitle" :content="tipContent"></tip-dialog>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
+ import {onShow} from '@dcloudio/uni-app';
|
|
|
import cacheManager from '@/utils/cacheManager.js'
|
|
|
import * as httpApi from "@/api/login.js"
|
|
|
import passwordLli from "@/components/password-lli/password-lli.vue";
|
|
@@ -34,6 +36,7 @@
|
|
|
import {toast} from "@/utils/common";
|
|
|
import {useIsCanBack} from "@/store/isCanBack.js"
|
|
|
import config from '../../../config.js'
|
|
|
+ import tipDialog from '@/components/dialog/tipDialog.vue';
|
|
|
|
|
|
|
|
|
const userName = ref('') // 用户名
|
|
@@ -45,7 +48,10 @@
|
|
|
const clearPwIcon= ref(false)
|
|
|
|
|
|
const store = useIsCanBack();
|
|
|
- const version = config.version;
|
|
|
+ const version = config.appInfo.version;
|
|
|
+ const tipDialogRef = ref(null);
|
|
|
+ const tipTitle = '升级提醒';
|
|
|
+ const tipContent = '您的APP不是最新版本,请升级至最新版本。';
|
|
|
|
|
|
// 加密
|
|
|
function handleUpdateLLiPassword() {
|
|
@@ -134,6 +140,19 @@
|
|
|
url: `/pages/admin/ShouYe/shouye`
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+ function getLoginInit(){
|
|
|
+ httpApi.getVersion({}).then(res => {
|
|
|
+ console.log(version,res,'version+res');
|
|
|
+ if(version!=res.data.version){
|
|
|
+ tipDialogRef.value.handleShow();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ onShow(() => {
|
|
|
+ // getLoginInit()
|
|
|
+ })
|
|
|
</script>
|
|
|
|
|
|
<style>
|