public ActionResult MovieTimes() { //没有绑定公众号的,初始化一个临时的设置对象用于UI显示 //此时UI是不允许编辑的 MovieTimesViewModel model = new MovieTimesViewModel(); if (String.IsNullOrEmpty(DomainContext.AppId) == false) { model.Settings = _movieManager.GetSettings(UserContext.User.Domain, DomainContext.AppId); } else { model.Settings = new MovieSettingsEntity(); } return(View(model)); }
public ActionResult MovieTimes(string domainId) { DateTime date = DateTime.Parse(DateTime.Now.ToShortDateString()); string strDate = Request.QueryString["date"]; if (String.IsNullOrEmpty(strDate) == false) { date = DateTime.Parse(strDate); } MovieTimesViewModel model = new MovieTimesViewModel(); model.MovieList = _movieManager.GetMovieTimes(DomainContext.Domain.Id, DomainContext.AppId, date); model.Settings = _movieManager.GetSettings(DomainContext.Domain.Id, DomainContext.AppId); model.JsApiConfig = DomainContext.GetJsApiConfig(HttpContext.Request.Url.ToString()); model.JsApiConfig.JsApiList.Add("onMenuShareTimeline"); model.JsApiConfig.JsApiList.Add("onMenuShareAppMessage"); return(View(model)); }