def load_more(offset=0, keyword=None, type=1): if keyword != None: news = query.search(keyword, offset, PC=__ISPC()) else: news = query.newslist(offset, type=type, PC=__ISPC()) if len(news) == 0: return '' return render_template('front/newsFactory.html', list=news)
def health(): return render_template('front/health.html', list=query.newslist(type=5, PC=__ISPC()), hots=query.hotList(type=5))
def meizhuang(): return render_template('front/meizhuang.html', list=query.newslist(type=4, PC=__ISPC()), hots=query.hotList(type=4))
def beiyun(): return render_template('front/beiyun.html', list=query.newslist(type=3, PC=__ISPC()), hots=query.hotList(type=3))
def education(): return render_template('front/education.html', list=query.newslist(type=2, PC=__ISPC()), hots=query.hotList(type=2))
def dayima(): return render_template('front/dayima.html', list=query.newslist(type=1, PC=__ISPC()), hots=query.hotList(type=1))
def index(): return render_template('front/index.html', list=query.newslist(type=6, PC=__ISPC()), hots=query.hotList(type=6), banners=query.banner())