home.php 867 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. $view
  3. ->set('name', 'index')
  4. ->import('inc/head')
  5. ->fetch('body@check', 'buy/data.checkLogin')
  6. ->fetch(array('.tab@href', 0), 'buy/base.config#list_link')
  7. ->fetch(array('.tab@href', 1), 'buy/base.config#my_link')
  8. # 循环
  9. ->loop
  10. (
  11. '.order',
  12. 'buy/buy.lists',
  13. array
  14. (
  15. '.name' => '$v.name',
  16. '.journal-no' => '$v.price',
  17. 'span' => '$v.pdate',
  18. 'img' => array
  19. (
  20. 'src' => '$v.pic_gd',
  21. ),
  22. '.button' => array
  23. (
  24. 'node-act' => '$v.act',
  25. 'data-src' => '$v.code',
  26. 'data-id' => '$v.id',
  27. 'html' => '$v.button'
  28. )
  29. )
  30. )
  31. # 暂无记录
  32. ->append('body', '<div id="page" dever-page-link="<{Dever::pageInfo()["link"]}>" dever-page-list=".pages" dever-page-call="init()"></div>')
  33. ->import('inc/foot')
  34. ->display();