activity.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. $view
  3. ->set('name', 'activity')
  4. ->set('title', '活动')
  5. ->import('inc/head')
  6. # 活动
  7. ->loop
  8. (
  9. '.activity-module .swiper-slide',
  10. 'main/content.news|type=4',
  11. array
  12. (
  13. 'self' => array
  14. (
  15. 'img' => array
  16. (
  17. 'src' => '$v.small_pic',
  18. 'alt' => '$v.name',
  19. ),
  20. 'span' => array
  21. (
  22. 'html' => '$v.pdate_s',
  23. ),
  24. 'href' => '$v.link',
  25. 'title' => '$v.name',
  26. 'div' => array
  27. (
  28. 'h3' => array
  29. (
  30. 'html' => '$v.sname',
  31. ),
  32. 'p' => array
  33. (
  34. 'html' => '$v.info',
  35. ),
  36. ),
  37. ),
  38. )
  39. )
  40. # 广告
  41. ->loop
  42. (
  43. '.ad-swiper .swiper-slide',
  44. 'main/content.ad|key=act_ad&name=活动广告',
  45. array
  46. (
  47. 'a' => array
  48. (
  49. 'href' => '$v.link',
  50. 'title' => '$v.name',
  51. ),
  52. 'img' => array
  53. (
  54. 'src' => '$v.pic',
  55. 'alt' => '$v.name',
  56. ),
  57. )
  58. )
  59. ->fetch('.activity-module@style', 'main/content.news?type=4', 'none')
  60. ->append('body', '<div id="page" dever-page-link="<{Dever::pageInfo()["link"]}>" dever-page-list=".news-module"></div>')
  61. ->import('inc/foot')
  62. ->display();