|
@@ -7,12 +7,13 @@ import {updateUserProfile,findVersion} from "@/api/system/user.js"
|
|
|
export default {
|
|
|
data(){
|
|
|
return{
|
|
|
- platform:'Android'
|
|
|
+ platform:'Android',
|
|
|
+ appPort:'2', //appPort 1:物管端,2:用户端
|
|
|
}
|
|
|
},
|
|
|
onLaunch: function() {
|
|
|
// #ifdef APP
|
|
|
- // this.onlineWgt(); //版本更新
|
|
|
+ this.onlineWgt(); //版本更新
|
|
|
// #endif
|
|
|
this.initApp()
|
|
|
},
|
|
@@ -31,7 +32,8 @@ import {updateUserProfile,findVersion} from "@/api/system/user.js"
|
|
|
let that = this;
|
|
|
// console.log("aaaaaaa===versionCode", versionCode);
|
|
|
const parmas = {
|
|
|
- model: that.platform
|
|
|
+ model: that.platform,
|
|
|
+ appPort:that.appPort
|
|
|
}
|
|
|
findVersion(parmas).then(res => {
|
|
|
console.log(res)
|