list_code.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. $view
  3. ->set('name', 'list')
  4. ->import('inc/head')
  5. ->fetch(array('.title', 0), 'service/base.config#title')
  6. ->fetch('.logo@style', 'service/base.config#bglogo')
  7. ->fetch('.logo', 'service/base.config#name')
  8. ->fetch('.info-txt', 'service/base.config#desc')
  9. //->fetch('.richtext', 'service/base.config#code_desc')
  10. ->fetch(array('.tab .li@href', 0), 'service/base.config#list_link')
  11. ->fetch(array('.tab .li@href', 1), 'service/base.config#my_link')
  12. # 循环
  13. ->loop
  14. (
  15. '.item',
  16. 'service/buy.lists',
  17. array
  18. (
  19. 'h2' => '$v.name',
  20. '.price' => '$v.price',
  21. '.num' => '$v.ding',
  22. 'img' => array
  23. (
  24. 'src' => '$v.pic_gd',
  25. ),
  26. '.button' => array
  27. (
  28. 'onclick' => 'pay(\'<{$v.pay_url}>\')',
  29. )
  30. )
  31. )
  32. # 暂无记录
  33. ->append('body', '<div id="page" dever-page-link="<{Dever::pageInfo()["link"]}>" dever-page-list=".pages"></div>')
  34. ->import('inc/foot')
  35. ->display();