pay.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. 'class' => '$v.class',
  43. 'data-pay' => '$v.pay_url',
  44. 'data-click' => 'pay(\'<{$v.pay_url}>\')',
  45. ),
  46. )
  47. )
  48. ->fetch(array('script@src', 0), Dever::assets('global.js'))
  49. ->append('body', '<script src="'.Dever::assets('lib/jquery/jquery.min.js', 'script').'"></script>')
  50. ->append('body', '<script src="'.Dever::assets('dever/core.js', 'script').'"></script>')
  51. ->append('body', '<script src="'.Dever::assets('config.js').'"></script>')
  52. ->append('body', '<script src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>')
  53. ->display();