Commit 5aa994d1 authored by 黄奎's avatar 黄奎

页面修改

parent 71a37d5e
......@@ -288,6 +288,8 @@ namespace Mall.WebApi.Controllers.MallBase
{
foreach (var model in list)
{
var eduData = productModule.ParsingEduJsonModule(model.EduJsonData);
#region 组装价格
List<object> priceList = new List<object>();
if (model.IsCustomSpecification == 1)
......@@ -439,7 +441,7 @@ namespace Mall.WebApi.Controllers.MallBase
level_price = memberprice,
edudata= jsonItem,
price = (model.SellingPrice ?? 0).ToString("#0.00"),
price_content = "¥" + (model.SellingPrice ?? 0).ToString("#0.00"),
price_content = "¥" + ((model.SellingPrice ?? 0) + (eduData?.BookPrice ?? 0)).ToString("#0.00"),
is_sales = model.GoodsStatus,
sales = "已售" + model.SalesNum + "件",
freeShippingName = model.FreeShippingModel.Name,
......@@ -1358,6 +1360,8 @@ namespace Mall.WebApi.Controllers.MallBase
}
#endregion
var eduData = productModule.ParsingEduJsonModule(model.EduJsonData);
var tempPrice = (model.SellingPrice ?? 0) + (eduData?.BookPrice ?? 0);
RList.Add(new
{
id = model.Id,
......@@ -1371,8 +1375,8 @@ namespace Mall.WebApi.Controllers.MallBase
is_negotiable = model.IsGoodsNegotiable,
is_level = model.EnjoyMember,
level_price = memberprice,
price = (model.SellingPrice ?? 0).ToString("#0.00"),
price_content = "¥" + (model.SellingPrice ?? 0).ToString("#0.00"),
price = (tempPrice).ToString("#0.00"),
price_content = "¥" + (tempPrice).ToString("#0.00"),
is_sales = model.GoodsStatus,
sales = "已售" + model.SalesNum + "件",
attr_groups = model.SpecificationList.Select(x => new
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment