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

Loading…
Cancel
Save