feat:修改强推

This commit is contained in:
2026-07-22 16:07:49 +08:00
parent a971f06267
commit 53f1ebba18
3 changed files with 35 additions and 8 deletions
+18 -1
View File
@@ -175,7 +175,7 @@
<up-overlay :show="bannerShow">
<view class="up_content" @tap.stop>
<view class="uni-banner">
<view class="close_btn" @click="bannerShow = false"></view>
<view class="close_btn" v-if="!updateApkObj.isForce" @click="onCloseBannerShow"></view>
<view class="banner_box">
<view class="conter">{{ updateApkObj.content }}</view>
<view class="banner_foot" v-if="!bannerPercentageShow">
@@ -565,6 +565,23 @@ export default {
});
// #endif
},
onCloseBannerShow() {
if(this.updateApkObj.isForce){
// #ifdef APP-PLUS
if (uni.getSystemInfoSync().platform === 'android') {
plus.runtime.quit();
} else {
uni.showToast({
title: '请先更新到最新版本',
icon: 'none',
duration: 2000,
});
}
// #endif
}else{
this.bannerShow = false;
}
},
// 安装
goUpdate(updateApkObj, platformType) {