Commit 047596d5 authored by 黄奎's avatar 黄奎

页面修改

parent dfdf6f3a
......@@ -180,6 +180,7 @@ namespace Mall.WebApi.Controllers
var lastItem = new GoodsDetailsItem2();
if (tempGood != null && tempGood.Id > 0)
{
lastItem.id = tempGood.Id;
lastItem.name = tempGood.Name;
lastItem.price = Math.Round((tempGood?.SellingPrice??0), 2);
lastItem.picUrl = tempGood?.CoverImage != null ? Common.Config.GetFileUrl(tempGood.CoverImage) : "";
......@@ -266,6 +267,7 @@ namespace Mall.WebApi.Controllers
var childItem = new GoodsDetailsItem2();
if (tempGood != null && tempGood.Id > 0)
{
childItem.id = tempGood.Id;
childItem.name = tempGood?.Name ?? "";
childItem.price = Math.Round((tempGood?.SellingPrice ?? 0), 2);
childItem.picUrl = tempGood?.CoverImage != null ? Common.Config.GetFileUrl(tempGood.CoverImage) : "";
......
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