示例#1
0
        public ActionResult NearShopBranchSetting()
        {
            var shopBranchTagInfos        = ShopBranchApplication.GetAllShopBranchTagInfos();
            List <SelectListItem> tagList = new List <SelectListItem> {
                new SelectListItem
                {
                    Selected = true,
                    Value    = 0.ToString(),
                    Text     = "请选择..."
                }
            };

            foreach (var item in shopBranchTagInfos)
            {
                tagList.Add(new SelectListItem
                {
                    Selected = false,
                    Value    = item.Id.ToString(),
                    Text     = item.Title
                });
            }
            ViewBag.ShopBranchTags = tagList;
            //轮播图
            ViewBag.imageAds = _iSlideAdsService.GetSlidAdsOrInit(0, Entities.SlideAdInfo.SlideAdType.NearShopBranchSpecial).ToList();
            //门店授权
            ViewBag.IsOpenStore = SiteSettingApplication.SiteSettings.IsOpenStore;
            return(View(SiteSettingApplication.SiteSettings));
        }