xnr-detail.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. $view
  3. ->set('name', 'xnr-detail')
  4. ->set('title', 'main/content.getXnrOne#name')
  5. ->import('inc/head')
  6. ->fetch('body@test', '1')
  7. //->fetch(array('.avatar img@src', 0), 'main/content.getXnrOne#pic')
  8. ->loop
  9. (
  10. '.swiper-container .swiper-slide',
  11. 'main/content.getXnrOne_pic',
  12. array
  13. (
  14. 'a' => array
  15. (
  16. 'img' => array
  17. (
  18. 'src' => '$v',
  19. ),
  20. 'href' => 'javascript:;',
  21. ),
  22. )
  23. )
  24. ->fetch(array('.xnr-profile dt', 0), 'main/content.getXnrOne#sname')
  25. ->fetch(array('.xnr-profile b', 0), 'main/content.getXnrOne#sex')
  26. ->fetch(array('.xnr-profile b', 1), 'main/content.getXnrOne#age')
  27. ->fetch(array('.xnr-profile b', 2), 'main/content.getXnrOne#city')
  28. ->fetch(array('.xnr-profile b', 3), 'main/content.getXnrOne#waimao')
  29. ->fetch(array('.xnr-profile p', 0), 'main/content.getXnrOne#aihao')
  30. ->fetch(array('.xnr-profile p', 1), 'main/content.getXnrOne#info')
  31. ->fetch(array('.xnr-profile p', 2), 'main/content.getXnrOne#pdate')
  32. ->fetch(array('.xnr-profile p', 3), 'main/content.getXnrOne#creater_name')
  33. ->loop
  34. (
  35. '.links a',
  36. 'main/content.getXnrOne_news',
  37. array
  38. (
  39. 'self' => array
  40. (
  41. 'href' => '$v.link',
  42. 'title' => '$v.name',
  43. 'html' => '$v.name',
  44. 'class' => '$v.class',
  45. ),
  46. )
  47. )
  48. ->fetch('.links@style', 'main/content.getXnrOne_news', 'none')
  49. ->fetch('.shares .icon-weibo@href', 'main/content.getXnrOne#weibo')
  50. ->fetch('.shares .icon-bilibili@href', 'main/content.getXnrOne#bilibili')
  51. ->fetch('.shares .icon-douyin@href', 'main/content.getXnrOne#douyin')
  52. ->fetch('.shares .icon-ins@href', 'main/content.getXnrOne#ins_link')
  53. ->fetch('.shares .ins-layer', 'main/content.getXnrOne#ins')
  54. ->import('inc/foot')
  55. ->display();