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) {
|
||||
|
||||
@@ -969,8 +969,18 @@ export default {
|
||||
// 获取规格模版数据
|
||||
async querySpecification() {
|
||||
let infoResp = null;
|
||||
const params = {
|
||||
id: this.id,
|
||||
};
|
||||
if (this.isCoupon) {
|
||||
params.type = -1;
|
||||
}
|
||||
if (this.activedType === 'seckill') {
|
||||
params.activityId = this.activityId;
|
||||
params.activityType = 'seckill';
|
||||
}
|
||||
try {
|
||||
infoResp = await getGoodsSpecsInfo({ id: this.id });
|
||||
infoResp = await getGoodsSpecsInfo(params);
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user