/// <summary> /// 模板编辑 /// </summary> /// <param name="tName"></param> /// <returns></returns> public ActionResult EditTemplate(int client = 2, string tName = "t1") { VTemplateEditModel model = new VTemplateEditModel(); model.Name = tName; model.ClientType = (VTemplateClientTypes)client; model.IsShowPrvPage = true; switch (model.ClientType) { case VTemplateClientTypes.SellerWapSpecial: model.IsShowTitle = true; model.IsShowTags = true; model.IsShowPrvPage = false; model.IsShowIcon = true; break; } long shopid = CurrentSellerManager.ShopId; model.ShopId = shopid; var tmpobj = _iVShopService.GetVShopByShopId(shopid); if (tmpobj == null) { throw new Himall.Core.HimallException("未开通微店"); } long vshopid = tmpobj.Id; model.VShopId = vshopid; return(View(model)); }
public ActionResult HomePageSetting() { var model = new VTemplateEditModel(); model.ClientType = VTemplateClientTypes.WXSmallProgram; model.Name = "smallprog"; //门店授权 ViewBag.IsOpenStore = SiteSettingApplication.SiteSettings != null && SiteSettingApplication.SiteSettings.IsOpenStore; VTemplateHelper.DownloadTemplate("", model.ClientType, 0); return(View(model)); }
public ActionResult AppHomePageSetting() { VTemplateEditModel model = new VTemplateEditModel { ClientType = VTemplateClientTypes.AppIndex, Name = "APP" }; ((dynamic)base.ViewBag).IsOpenStore = (SiteSettingApplication.GetSiteSettings() != null) && SiteSettingApplication.GetSiteSettings().IsOpenStore; return(base.View(model)); }
/// <summary> /// 模板编辑 /// </summary> /// <param name="client"></param> /// <param name="tName"></param> /// <returns></returns> public ActionResult EditTemplate(int client = 1, string tName = "t1") { VTemplateEditModel model = new VTemplateEditModel(); model.Name = tName; model.ClientType = (VTemplateClientTypes)client; model.IsShowPrvPage = true; switch (model.ClientType) { case VTemplateClientTypes.WapSpecial: case VTemplateClientTypes.SellerWapSpecial: model.IsShowTitle = true; model.IsShowTags = true; model.IsShowPrvPage = false; model.IsShowIcon = true; break; } //门店授权 ViewBag.IsOpenStore = SiteSettingApplication.GetSiteSettings() != null && SiteSettingApplication.GetSiteSettings().IsOpenStore; return(View(model)); }
/// <summary> /// 模板编辑 /// </summary> /// <param name="client"></param> /// <param name="tName"></param> /// <returns></returns> public ActionResult EditTemplate(int client = 1, string tName = "t1") { VTemplateEditModel model = new VTemplateEditModel(); model.Name = tName; model.ClientType = (VTemplateClientTypes)client; model.IsShowPrvPage = true; string templateName = "EditTemplate"; switch (model.ClientType) { case VTemplateClientTypes.WapSpecial: case VTemplateClientTypes.SellerWapSpecial: model.IsShowTitle = true; model.IsShowTags = true; model.IsShowPrvPage = false; model.IsShowIcon = true; break; case VTemplateClientTypes.AppSpecial: model.IsShowTitle = true; model.IsShowTags = true; model.IsShowPrvPage = false; model.IsShowIcon = true; templateName = "EditTemplate-AppTopic"; break; case VTemplateClientTypes.WXSmallProgramSpecial: model.IsShowTitle = true; model.IsShowTags = true; model.IsShowPrvPage = false; model.IsShowIcon = true; templateName = "EditTemplate-AppletTopic"; break; } //门店授权 ViewBag.IsOpenStore = SiteSettingApplication.SiteSettings != null && SiteSettingApplication.SiteSettings.IsOpenStore; VTemplateHelper.DownloadTemplate(model.Name, model.ClientType); return(View(templateName, model)); }