main.py 440 B

1234567891011121314151617
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """
  4. demeter web page
  5. name:main.py
  6. author:rabin
  7. """
  8. from __load__ import *
  9. class index_path(Load):
  10. @Web.setting
  11. def get(self):
  12. # 获取焦点图
  13. self.data['focus'] = self.service('common').list('web_article', search={'category_id':2})
  14. # 获取系统优势
  15. self.data['youshi'] = self.service('common').list('web_article', search={'category_id':3})
  16. self.view("index.html")