feat:修改强推
This commit is contained in:
+18
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user