pay.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport"
  6. content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  7. <title>精美时尚</title>
  8. <link href="css/global.css?v=3f8cf811" rel="stylesheet"><link href="css/pay.css?v=3f8cf811" rel="stylesheet"></head>
  9. <body>
  10. <div class="container">
  11. <div>
  12. <div class="h1">正在购买《xxxx》</div>
  13. <div class='buytip' id="open">
  14. <p>查看购买说明</p>
  15. </div>
  16. <div class="list">
  17. <a class="item" href="#">
  18. <p>购买10本</p>
  19. <p>¥6</p>
  20. </a>
  21. <a class="item" bind-id="item" href="#">
  22. <p>购买10本</p>
  23. <p>¥6</p>
  24. </a>
  25. <a class="item" bind-id="item" href="#">
  26. <p>购买10本</p>
  27. <p>¥6</p>
  28. </a>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="mask fn-hide" id="layer">
  33. <div class="layer ">
  34. <h3 class="title">购买说明</h3>
  35. <div class="richtext">asdfsdf</div>
  36. <div class="btn-wrapper">
  37. <div class="button opposite" node-act="close">我知道了</div>
  38. </div>
  39. </div>
  40. </div>
  41. <div class="mask fn-hide" id="pay-layer">
  42. <div class="layer buy-result">
  43. <h3 class="title">购买提示</h3>
  44. <div class="res" id="buyyes">您已成功购买1000本电子刊</div>
  45. <div class="btn-wrapper">
  46. <a href="codedetail.html" class="button" id="viewcode">查看兑换码</a>
  47. <div class="button" node-act="close">继续购买</div>
  48. </div>
  49. </div>
  50. </div>
  51. <div id="pay"></div>
  52. <script type="text/javascript" src="js/global.js?v=3f8cf811"></script><script type="text/javascript" src="js/pay.js?v=3f8cf811"></script></body>
  53. <script>
  54. $(document).on('click', '[bind-id="item"]', function(){
  55. $(this).addClass('active').siblings('.item').removeClass('active');
  56. $('#pay-layer').show();
  57. });
  58. $('#open').on('click',function(){
  59. $('#layer').show();
  60. });
  61. $('[node-act="close"]').on('click',function(){
  62. $(this).closest('.mask').hide();
  63. });
  64. function pay(url)
  65. {
  66. $.get(url, function(t) {
  67. $("#pay").html(t);
  68. })
  69. }
  70. </script>
  71. </html>