【修复】修复在未登录情况下,市场价格显示错误的问题,以及非代理显示代理价格异常的问题。

This commit is contained in:
大灰灰
2023-01-13 01:08:52 +08:00
parent 214670e99b
commit 715624344d

View File

@@ -730,8 +730,18 @@
console.log(res.otherData.agentProducts);
_this.agentProducts = res.otherData.agentProducts;
}
_this.userAgentGrade = res.otherData.userAgentGrade;
_this.userAgent = res.otherData.userAgent;
if (res.otherData && res.otherData.userAgentGrade) {
_this.userAgentGrade = res.otherData.userAgentGrade;
} else {
_this.userAgentGrade = null;
}
if (res.otherData && res.otherData.userAgent) {
_this.userAgent = res.otherData.userAgent;
} else {
_this.userAgent = null;
}
//价格区间
if (res.data.minPrice != res.data.maxPrice) {
@@ -782,11 +792,23 @@
_this.product = res.data.product;
_this.goodsSkuInfo = res.data.skuList;
if (res.otherData && res.otherData.userAgentGrade) {
_this.userAgentGrade = res.otherData.userAgentGrade;
} else {
_this.userAgentGrade = null;
}
if (res.otherData && res.otherData.userAgent) {
_this.userAgent = res.otherData.userAgent;
} else {
_this.userAgent = null;
}
//价格区间
if (res.data.minPrice != res.data.maxPrice) {
_this.priceSection = res.data.minPrice + '~' + res.data.maxPrice;
} else {
_this.priceSection = res.data.product.price;
_this.priceSection = res.data.product.mktprice;
}
if (_this.goodsInfo.album) {