|
@@ -111,7 +111,7 @@
|
|
|
content: '您确定要退出吗?',
|
|
|
headUrl: "../../static/img/myimg/YongHu@3x.png",
|
|
|
username: "",
|
|
|
- wechatNo:'',
|
|
|
+ wechatNo: '',
|
|
|
gridList: [{
|
|
|
num: 0,
|
|
|
name: '退出登录',
|
|
@@ -130,9 +130,17 @@
|
|
|
onShow() {
|
|
|
this.getList()
|
|
|
// #ifdef APP-PLUS
|
|
|
- this.version = plus.runtime.version
|
|
|
- console.log("当前版本为:", plus.runtime.version)
|
|
|
- this.checkVersion()
|
|
|
+ plus.runtime.getProperty(plus.runtime.appid, (info) => {
|
|
|
+ //版本号
|
|
|
+ this.version = info.version;
|
|
|
+ console.log("当前版本为:", this.version)
|
|
|
+ this.checkVersion()
|
|
|
+ //appid
|
|
|
+ // this.appID = info.appid;
|
|
|
+ })
|
|
|
+ // this.version = plus.runtime.version
|
|
|
+ // console.log("当前版本为:", plus.runtime)
|
|
|
+ // this.checkVersion()
|
|
|
// #endif
|
|
|
},
|
|
|
onLoad() {},
|
|
@@ -152,13 +160,12 @@
|
|
|
url: baseUrlNew + '/appVersion/selectInfo',
|
|
|
data: {
|
|
|
appid: plus.runtime.appid,
|
|
|
- version: plus.runtime.version,
|
|
|
+ version: this.version,
|
|
|
imei: "1",
|
|
|
},
|
|
|
method: 'GET',
|
|
|
success: (res) => {
|
|
|
- var versionNo = plus.runtime.version
|
|
|
- if (versionNo == res.data.data.version) {
|
|
|
+ if (this.version == res.data.data.version) {
|
|
|
this.version = "当前为最新版" + res.data.data.version
|
|
|
} else {
|
|
|
this.version = "发现新版本,立即更新"
|
|
@@ -174,7 +181,7 @@
|
|
|
url: 'https://api2.eliangeyun.com/appVersion/selectInfo',
|
|
|
data: {
|
|
|
appid: plus.runtime.appid,
|
|
|
- version: plus.runtime.version,
|
|
|
+ version: this.version,
|
|
|
imei: "1"
|
|
|
},
|
|
|
method: 'GET',
|
|
@@ -341,12 +348,12 @@
|
|
|
this.headUrl = "../../static/img/myimg/YongHu@3x.png"
|
|
|
}
|
|
|
this.username = this.userInfo.userName
|
|
|
- if(!uni.getStorageSync('userInfo').wechatNo){
|
|
|
+ if (!uni.getStorageSync('userInfo').wechatNo) {
|
|
|
this.wechatNo = this.userInfo.userName
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.wechatNo = this.userInfo.wechatNo
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
switchPicture() {
|
|
|
uni.navigateTo({
|