list_code.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. # 循环
  11. ->loop
  12. (
  13. '.item',
  14. 'service/buy.lists',
  15. array
  16. (
  17. 'h2' => '$v.name',
  18. '.price' => '$v.price',
  19. '.num' => '$v.ding',
  20. 'img' => array
  21. (
  22. 'src' => '$v.pic_gd',
  23. ),
  24. '.button' => array
  25. (
  26. 'onclick' => 'pay(\'<{$v.pay_url}>\')',
  27. )
  28. )
  29. )
  30. ->loop
  31. (
  32. '.item2',
  33. 'service/buy.lists_code',
  34. array
  35. (
  36. 'img' => array
  37. (
  38. 'src' => '$v.pic_gd',
  39. ),
  40. 'h2' => '$v.name',
  41. '.code' => '$v.code_string',
  42. '.opposite' => array
  43. (
  44. 'node-pic' => '$v.code_pic',
  45. ),
  46. 'span' => '$v.code',
  47. )
  48. )
  49. # 暂无记录
  50. ->append('body', '<div id="page" dever-page-link="<{Dever::pageInfo()["link"]}>" dever-page-list=".pages"></div>')
  51. ->import('inc/foot')
  52. ->display();