public ActionResult ShowDetail(FightGroupActiveModel data, int hst = 1, DateTime?etime = null) { FightGroupShowDetailModel model = new FightGroupShowDetailModel(); if (data == null) { throw new HimallException("错误的活动信息"); } //data.InitProductImages(); model.ActiveData = data; model.LimitedHourShowType = hst; if (etime.HasValue) { model.EndBuildGroupTime = etime.Value; } model.ProductMiniPriceByUser = model.ActiveData.MiniSalePrice; var shopInfo = ShopApplication.GetShop(data.ShopId); if (shopInfo.IsSelf) { decimal discount = 1M; if (CurrentUser != null) { discount = CurrentUser.MemberDiscount; } model.ProductMiniPriceByUser = model.ProductMiniPriceByUser * discount; } return(View(model)); }
public ActionResult ShowDetail(FightGroupActiveModel data, int hst = 1, DateTime?etime = new DateTime?()) { FightGroupShowDetailModel model = new FightGroupShowDetailModel(); if (data == null) { throw new HimallException("错误的活动信息"); } model.ActiveData = data; model.LimitedHourShowType = hst; if (etime.HasValue) { model.EndBuildGroupTime = etime.Value; } model.ProductMiniPriceByUser = model.ActiveData.MiniSalePrice; if (ShopApplication.GetShop(data.ShopId, false).IsSelf) { decimal memberDiscount = 1M; if (base.CurrentUser != null) { memberDiscount = base.CurrentUser.MemberDiscount; } model.ProductMiniPriceByUser *= memberDiscount; } return(base.View(model)); }
public ActionResult ShowActionHead(FightGroupActiveModel data) { FightGroupShowDetailModel model = new FightGroupShowDetailModel(); if (data == null) { throw new HimallException("错误的活动信息"); } data.InitProductImages(); model.ActiveData = data; return(View(model)); }