Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //currWebSiteUserInfo = this.userBll.GetUserInfo(userBll.WebsiteOwner);
            currWebSiteInfo = bllMall.GetWebsiteInfoModelFromDataBase();
            if (string.IsNullOrEmpty(currWebSiteInfo.ProductImgRatio1))
            {
                currWebSiteInfo.ProductImgRatio1 = (600).ToString();
            }
            if (string.IsNullOrEmpty(currWebSiteInfo.ProductImgRatio2))
            {
                currWebSiteInfo.ProductImgRatio2 = (600).ToString();
            }
            WXMallIndexUrl = string.Format("http://{0}/customize/comeoncloud/Index.aspx?key=MallHome", Request.Url.Host);
            if (currWebSiteInfo != null)
            {
                if (currWebSiteInfo.MallTemplateId.Equals(1))//外卖
                {
                    WXMallIndexUrl = string.Format("http://{0}/App/Cation/wap/mall/IndexV2.aspx", Request.Url.Host);
                }
            }

            toolBars = bllCompanyWebSite.GetToolBarList(int.MaxValue, 1, bllMall.WebsiteOwner, null, null, false)
                       .OrderBy(p => p.KeyType).Select(p => p.KeyType).Distinct().ToList();

            slides      = bllSlide.GetCurrWebsiteAllTypeList();
            scoreConfig = bllScore.GetScoreConfig();
            if (scoreConfig == null)
            {
                scoreConfig = new BLLJIMP.Model.ScoreConfig();
            }
            CompanyWebsiteConfig = bllWebsite.GetCompanyWebsiteConfig();

            StoreSinceTimeJson = CompanyWebsiteConfig.StoreSinceTimeJson;
            if (string.IsNullOrEmpty(StoreSinceTimeJson))
            {
                StoreSinceTimeJson = "[]";
            }

            HomeDeliveryTimeJson = CompanyWebsiteConfig.HomeDeliveryTimeJson;
            if (string.IsNullOrEmpty(HomeDeliveryTimeJson))
            {
                HomeDeliveryTimeJson = "[]";
            }
        }