pay.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. $view
  3. ->set('name', 'pay')
  4. ->import('inc/head')
  5. ->fetch('.h1', 'buy/buy.info#buy')
  6. ->fetch('.richtext', 'buy/buy.info#buy_desc')
  7. //->fetch('#notice', 'buy/buy.info#buy_notice')
  8. //->fetch('#notices', 'buy/buy.info#buy_notices')
  9. ->fetch('#buyyes', 'buy/buy.info#buy_yes')
  10. ->fetch('#pay-layer@class', 'buy/buy.info#buy_class')
  11. ->fetch('#viewcode@href', 'buy/buy.info#buy_code')
  12. # 循环
  13. /*
  14. ->loop
  15. (
  16. '.code',
  17. 'buy/buy.buy',
  18. array
  19. (
  20. 'p|0' => '$v.name',
  21. 'p|1' => '$v.price',
  22. 'self' => array
  23. (
  24. 'href' => 'javascript:;',
  25. 'onclick' => 'pay(\'<{$v.pay_url}>\')',
  26. ),
  27. )
  28. )
  29. */
  30. # 循环
  31. ->loop
  32. (
  33. '.item',
  34. 'buy/buy.buys',
  35. array
  36. (
  37. 'p|0' => '$v.name',
  38. 'p|1' => '$v.price',
  39. 'self' => array
  40. (
  41. 'href' => 'javascript:;',
  42. 'onclick' => 'pay(\'<{$v.pay_url}>\')',
  43. ),
  44. )
  45. )
  46. ->fetch(array('script@src', 0), Dever::assets('global.js'))
  47. ->append('body', '<script src="'.Dever::assets('lib/jquery/jquery.min.js', 'script').'"></script>')
  48. ->append('body', '<script src="'.Dever::assets('dever/core.js', 'script').'"></script>')
  49. ->append('body', '<script src="'.Dever::assets('config.js').'"></script>')
  50. ->append('body', '<script src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>')
  51. ->display();