mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 18:43:26 +08:00
【新增】商品详情新增sku价格区间展示,如【¥100~395】,选中单个sku后自动变更其具体价格
This commit is contained in:
@@ -538,6 +538,15 @@ namespace CoreCms.Net.Services
|
||||
model.freezeStock = getProductInfo.freezeStock;
|
||||
model.weight = getProductInfo.weight;
|
||||
|
||||
var minProduct = await _productsServices.QueryByClauseAsync(p => p.isDel == false && p.goodsId == id,
|
||||
p => p.price, OrderByType.Asc);
|
||||
|
||||
var maxProduct = await _productsServices.QueryByClauseAsync(p => p.isDel == false && p.goodsId == id,
|
||||
p => p.price, OrderByType.Desc);
|
||||
|
||||
model.minPrice = minProduct.price;
|
||||
model.maxPrice = maxProduct.price;
|
||||
|
||||
//获取品牌
|
||||
var brand = await _brandServices.QueryByIdAsync(model.brandId);
|
||||
model.brand = brand;
|
||||
|
||||
Reference in New Issue
Block a user