|
|
@ -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) |
|
|
|
} |
|
|
|