feat:修改强推
This commit is contained in:
+18
-1
@@ -175,7 +175,7 @@
|
|||||||
<up-overlay :show="bannerShow">
|
<up-overlay :show="bannerShow">
|
||||||
<view class="up_content" @tap.stop>
|
<view class="up_content" @tap.stop>
|
||||||
<view class="uni-banner">
|
<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="banner_box">
|
||||||
<view class="conter">{{ updateApkObj.content }}</view>
|
<view class="conter">{{ updateApkObj.content }}</view>
|
||||||
<view class="banner_foot" v-if="!bannerPercentageShow">
|
<view class="banner_foot" v-if="!bannerPercentageShow">
|
||||||
@@ -565,6 +565,23 @@ export default {
|
|||||||
});
|
});
|
||||||
// #endif
|
// #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) {
|
goUpdate(updateApkObj, platformType) {
|
||||||
|
|||||||
@@ -969,8 +969,18 @@ export default {
|
|||||||
// 获取规格模版数据
|
// 获取规格模版数据
|
||||||
async querySpecification() {
|
async querySpecification() {
|
||||||
let infoResp = null;
|
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 {
|
try {
|
||||||
infoResp = await getGoodsSpecsInfo({ id: this.id });
|
infoResp = await getGoodsSpecsInfo(params);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-6
@@ -1,10 +1,10 @@
|
|||||||
export const BASE_URL = "https://api.tbmall.xin"; //生产
|
// export const BASE_URL = "https://api.tbmall.xin"; //生产
|
||||||
export const MILD_BASE_URL = "https://agent.tbmall.xin/"; //中台生产
|
// export const MILD_BASE_URL = "https://agent.tbmall.xin/"; //中台生产
|
||||||
export const kefuBaseUrl = "https://admin.tbmall.xin/api";
|
// export const kefuBaseUrl = "https://admin.tbmall.xin/api";
|
||||||
|
|
||||||
// export const BASE_URL ='https://api.o.tbmall.xin'; // 本地测试
|
export const BASE_URL ='https://api.o.tbmall.xin'; // 本地测试
|
||||||
// export const MILD_BASE_URL = "https://agent.o.tbmall.xin/"; //中台测试
|
export const MILD_BASE_URL = "https://agent.o.tbmall.xin/"; //中台测试
|
||||||
// export const kefuBaseUrl = "https://admin.o.tbmall.xin/api";
|
export const kefuBaseUrl = "https://admin.o.tbmall.xin/api";
|
||||||
|
|
||||||
// https://h.o.tbmall.xin/#/
|
// https://h.o.tbmall.xin/#/
|
||||||
// 客服接口属于管理后台服务,用户端接口已在后端单独放行。
|
// 客服接口属于管理后台服务,用户端接口已在后端单独放行。
|
||||||
|
|||||||
Reference in New Issue
Block a user