list.php 848 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. $view
  3. ->set('name', 'list')
  4. ->import('inc/head')
  5. ->fetch('.logo', 'buy/base.config#logotxt')
  6. ->fetch('.info-txt', 'buy/base.config#desc')
  7. ->fetch(array('.tab .li@href', 0), 'buy/base.config#list_link')
  8. ->fetch(array('.tab .li@href', 1), 'buy/base.config#my_link')
  9. # 循环
  10. ->loop
  11. (
  12. '.item',
  13. 'buy/buy.lists',
  14. array
  15. (
  16. 'h2' => '$v.name',
  17. '.price' => '$v.price',
  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. 'html' => '$v.button'
  27. )
  28. )
  29. )
  30. # 暂无记录
  31. ->append('body', '<div id="page" dever-page-link="<{Dever::pageInfo()["link"]}>" dever-page-list=".pages" dever-page-call="init()"></div>')
  32. ->import('inc/foot')
  33. ->display();