|
@@ -137,7 +137,7 @@
|
|
<image src="../../static/images/myimg/gengduo1@3x.png" class="arrow"></image>
|
|
<image src="../../static/images/myimg/gengduo1@3x.png" class="arrow"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="flex flex-space-between" @click="goDetailPage('/pages/mine/index1')">
|
|
|
|
|
|
+ <!-- <view class="flex flex-space-between" @click="goDetailPage('/pages/mine/index1')">
|
|
<view class="flex align-center">
|
|
<view class="flex align-center">
|
|
<image class="img" src="@/static/images/mine/set.png" mode='widthFix'>
|
|
<image class="img" src="@/static/images/mine/set.png" mode='widthFix'>
|
|
</image>
|
|
</image>
|
|
@@ -146,7 +146,7 @@
|
|
<view>
|
|
<view>
|
|
<image src="../../static/images/myimg/gengduo1@3x.png" class="arrow"></image>
|
|
<image src="../../static/images/myimg/gengduo1@3x.png" class="arrow"></image>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
|
|
+ </view> -->
|
|
<!--<view class="flex flex-space-between" @click="goDetailPage('/pages/mine/evaluate')">
|
|
<!--<view class="flex flex-space-between" @click="goDetailPage('/pages/mine/evaluate')">
|
|
<view class="flex align-center">
|
|
<view class="flex align-center">
|
|
<image class="img" src="@/static/images/mine/set.png" mode='widthFix'>
|
|
<image class="img" src="@/static/images/mine/set.png" mode='widthFix'>
|
|
@@ -198,8 +198,14 @@
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
// #ifdef APP-PLUS
|
|
// #ifdef APP-PLUS
|
|
- this.version = plus.runtime.version
|
|
|
|
- this.checkVersion()
|
|
|
|
|
|
+ plus.runtime.getProperty(plus.runtime.appid, (info) => {
|
|
|
|
+ //版本号
|
|
|
|
+ this.version = info.version;
|
|
|
|
+ console.log("当前版本为:", this.version)
|
|
|
|
+ this.checkVersion()
|
|
|
|
+ })
|
|
|
|
+ // this.version = plus.runtime.version
|
|
|
|
+ // this.checkVersion()
|
|
// #endif
|
|
// #endif
|
|
uni.setTabBarItem({
|
|
uni.setTabBarItem({
|
|
index: 0,
|
|
index: 0,
|
|
@@ -287,15 +293,16 @@
|
|
url: baseUrlNew + '/appVersion/selectInfo',
|
|
url: baseUrlNew + '/appVersion/selectInfo',
|
|
data: {
|
|
data: {
|
|
appid: plus.runtime.appid,
|
|
appid: plus.runtime.appid,
|
|
- version: plus.runtime.version,
|
|
|
|
|
|
+ version: this.version,
|
|
imei: "1",
|
|
imei: "1",
|
|
type: 'sj'
|
|
type: 'sj'
|
|
},
|
|
},
|
|
method: 'GET',
|
|
method: 'GET',
|
|
success: (res) => {
|
|
success: (res) => {
|
|
- var versionNo = plus.runtime.version
|
|
|
|
- if (versionNo == res.data.data.version) {
|
|
|
|
- this.version = "当前为最新版" + res.data.data.version
|
|
|
|
|
|
+ console.log("查看1111",this.version)
|
|
|
|
+ console.log("查看11111",res)
|
|
|
|
+ if (!res.data.data.version) {//有返回值证明需要更新 没有则不需要
|
|
|
|
+ this.version = "当前为最新版" + this.version
|
|
} else {
|
|
} else {
|
|
this.version = "发现新版本,立即更新"
|
|
this.version = "发现新版本,立即更新"
|
|
}
|
|
}
|