【修复】修复非登录情况下,商品详情价格显示异常的问题。

This commit is contained in:
大灰灰
2022-06-21 22:27:45 +08:00
parent 25167908c4
commit 7990dad738

View File

@@ -662,6 +662,13 @@
let products = res.data.product;
_this.goodsInfo = info;
//价格区间
if (res.data.minPrice != res.data.maxPrice) {
this.priceSection = res.data.minPrice + '~' + res.data.maxPrice;
} else {
this.priceSection = products.price;
}
if (_this.goodsInfo.album) {
var albums = [];
for (var i = 0; i < _this.goodsInfo.album.length; i++) {