Browse Source

修改 app 版本判断字段

master
邓宏 2 years ago
parent
commit
f53f8a4d8c
  1. 6
      pages/home/login.vue

6
pages/home/login.vue

@ -88,7 +88,7 @@ export default {
loginType:"mobile",
},
appVersion:"",
versionCode:"",
appDownLoadUrl:"",
isShowModal:false,
modalOptions:{
@ -112,7 +112,7 @@ export default {
//#ifdef APP-PLUS
this.getVersion()
plus.runtime.getProperty(plus.runtime.appid, async info=>{
this.appVersion = info.version
this.versionCode = info.versionCode
})
//#endif
},
@ -140,7 +140,7 @@ export default {
params:{type:1}
})
if(res.statu){
if(res.data.appVersion!=this.appVersion){
if(res.data.appVersionCode!=this.versionCode){
this.isShowModal=true
this.appDownLoadUrl=host("version",res.data.appDownloadUrl)
}

Loading…
Cancel
Save