版本1.3.4
This commit is contained in:
@@ -50,38 +50,12 @@
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.getUserInfo()
|
||||
// let url = '/pages/station-info/scan-camera/scan-camera'
|
||||
// uni.redirectTo({
|
||||
// url: url
|
||||
// })
|
||||
},
|
||||
onReady(option) {
|
||||
const updateManager = uni.getUpdateManager();
|
||||
|
||||
updateManager.onCheckForUpdate(function(res) {
|
||||
// 请求完新版本信息的回调
|
||||
console.log('请求完新版本信息的回调', res.hasUpdate);
|
||||
});
|
||||
|
||||
updateManager.onUpdateReady(function(res) {
|
||||
uni.showModal({
|
||||
title: '更新提示',
|
||||
content: '新版本已经准备好,是否重启应用?',
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
|
||||
updateManager.applyUpdate();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
updateManager.onUpdateFailed(function(res) {
|
||||
// 新的版本下载失败
|
||||
});
|
||||
|
||||
|
||||
uni.redirectTo({
|
||||
url: '../../packageOrders/pages/printTicket/printTicket'
|
||||
})
|
||||
},
|
||||
|
||||
onShow() {
|
||||
uni.setStorageSync('orderType',null)
|
||||
// uni.preloadPage({url: "/pages/station-info/scan-camera/scan-camera"});
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
<text class="color-000">版本号</text>
|
||||
</view>
|
||||
<view class="action">
|
||||
<text class="text-grey text-sm">1.3.3.8</text>
|
||||
<text class="text-grey text-sm">1.3.4</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user