view.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. $view
  3. ->import('inc/head')
  4. ->set('info', 'task/info.one')
  5. ->set('title', '$info.name')
  6. ->set('name', 'task')
  7. ->fetch('header .back@href', '<{Dever::url("task/list", "main")}>')
  8. ->render('info', array
  9. (
  10. '.wrapper' => array
  11. (
  12. 'dt' => '$v.name',
  13. '.ico-jc' => '$v.cate.name',
  14. '.ico-person' => '<{$v.user_num}>人领取',
  15. '.ico-time' => '任务到期:<{$v.edate_str}>',
  16. '.tk-coin' => array
  17. (
  18. 'span|0' => '$v.list_score',
  19. ),
  20. '.tk-coin' => array
  21. (
  22. 'span|1' => '$v.list_group_score',
  23. ),
  24. '.tk-article' => '$v.content',
  25. '.ctrls|0' => array
  26. (
  27. 'section' => '$v.button.desc',
  28. 'a' => array
  29. (
  30. 'class' => '$v.button.class',
  31. 'href' => '$v.button.link',
  32. ),
  33. ),
  34. '.ctrls|1' => array
  35. (
  36. 'style' => 'display:none',
  37. ),
  38. ),
  39. ))
  40. ->import('inc/foot')
  41. ->display();