|
@ -112,6 +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=>{ |
|
|
|
|
|
console.log("app ",info) |
|
|
this.versionCode = info.versionCode |
|
|
this.versionCode = info.versionCode |
|
|
}) |
|
|
}) |
|
|
//#endif |
|
|
//#endif |
|
@ -123,8 +124,8 @@ export default { |
|
|
body:this.formData |
|
|
body:this.formData |
|
|
}) |
|
|
}) |
|
|
if(res.statu){ |
|
|
if(res.statu){ |
|
|
this.$store.commit("setUserInfo",res.data) |
|
|
this.$store.dispatch("getUserInfo",res.data.token) |
|
|
uni.switchTab({url:'/pages/home/index'}) |
|
|
// uni.switchTab({url:'/pages/home/index'}) |
|
|
}else{ |
|
|
}else{ |
|
|
uni.showModal({ |
|
|
uni.showModal({ |
|
|
title:"提示", |
|
|
title:"提示", |
|
@ -140,6 +141,7 @@ export default { |
|
|
params:{type:1} |
|
|
params:{type:1} |
|
|
}) |
|
|
}) |
|
|
if(res.statu){ |
|
|
if(res.statu){ |
|
|
|
|
|
console.log(res.data.appVersionCode,'----appVersion--') |
|
|
if(res.data.appVersionCode!=this.versionCode){ |
|
|
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) |
|
|