Exemplo n.º 1
0
        // GET: Team
        public ActionResult Detail(int id = 0)
        {
            var pager = JL.Core.Common.PageReq.Create();
            var page  = jlService.MemberPage(pager);

            if (id > 0)
            {
                var member = jlService.GetMember(id);
                ViewBag.member = member;
            }

            return(View(page.Data));
        }
Exemplo n.º 2
0
        // GET: backend/Member
        public ActionResult Index(MemberSearchModel searchTo, int page = 0)
        {
            var filter = new JL.Core.Filters.MemberFilter();

            filter.NickName     = searchTo.NickName;
            filter.JoinTimeFrom = searchTo.JoinTimeFrom;
            filter.JoinTimeTo   = searchTo.JoinTimeTo;
            var pager = PageReq <JL.Core.Filters.MemberFilter> .Create(filter, page);

            // search page
            var data = jlService.MemberPage(pager);

            ViewBag.productQuery = searchTo;
            return(View(data));
        }
Exemplo n.º 3
0
        public ActionResult Index()
        {
            // 新品推荐
            var recommendProducts = jlService.GetProductsRecommends();

            ViewBag.RecommendProducts = recommendProducts;

            // 产品中心
            ProductFilter filter = new ProductFilter();

            filter.Status = 0;
            var productCenter = jlService.ProductPage(PageReq <ProductFilter> .Create(filter, pageSize: 6));

            ViewBag.ProductCenter = productCenter.Data;

            // 套装系列
            var pager = PageReq.Create(pageSize: 5);

            jlService.ProductCategoryPage(pager);

            // members
            MemberFilter mf      = new MemberFilter();
            var          members = jlService.MemberPage(PageReq <MemberFilter> .Create(mf, pageSize: 5));

            ViewBag.Members = members.Data;

            // 资讯中心
            ArticleFilter af = new ArticleFilter();

            af.Status = Consts.ArticleStatus_Published;
            var articlePager = PageReq <ArticleFilter> .Create(af, pageSize : 8);

            articlePager.OrderBy = " order by addtime desc ";
            var articles = jlService.ArticlePage(articlePager);

            ViewBag.Articles = articles.Data;

            return(View());
        }