Commit 56c1f811 authored by 黄奎's avatar 黄奎

页面修改

parent 098b817c
...@@ -3370,5 +3370,43 @@ namespace Mall.WebApi.Controllers.User ...@@ -3370,5 +3370,43 @@ namespace Mall.WebApi.Controllers.User
})); }));
} }
#endregion #endregion
/// <summary>
/// 获取收货地址列表
/// </summary>
/// <returns></returns>
[HttpPost]
[AllowAnonymous]
public ApiResult GetShippingAddressList()
{
var req = RequestParm;
RB_Member_ShippingAddress_Extend demodel = JsonConvert.DeserializeObject<RB_Member_ShippingAddress_Extend>(req.msg.ToString());
JObject parms = JObject.Parse(req.msg.ToString());
demodel.TenantId = req.TenantId;
demodel.MallBaseId = req.MallBaseId;
demodel.UserId = req.UserId;
//HK2020-09-09新增用户Id
if (parms.GetInt("NewUserId") > 0)
{
demodel.UserId = parms.GetInt("NewUserId");
}
var list = userModule.GetUserShippingAddressList(demodel);
return ApiResult.Success("", list.Select(x => new
{
x.Id,
x.Name,
x.Mobile,
x.Country,
x.Province,
x.City,
x.District,
x.DistrictAddress,
x.Address,
x.PostCode,
x.Lonlat,
x.IsDefault,
UpdateDate = x.UpdateDate.HasValue ? x.UpdateDate.Value.ToString("yyyy-MM-dd HH:mm:ss") : ""
}));
}
} }
} }
\ No newline at end of file
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