index.html 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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=a54dd0df" rel="stylesheet"><link href="css/index.css?v=a54dd0df" rel="stylesheet"></head>
  9. <body>
  10. <div class='orderlist'>
  11. <div class='order'>
  12. <img src='http://7.jstyle.cn/1/2019/03/06/91e4fb0f002311e72cd285706e71d800.jpg' />
  13. <div class='info'>
  14. <div class='journal-no'>100本 ¥798.00</div>
  15. <div class='name'>欢乐阳光BOY王鹤棣</div>
  16. <div class='price'>
  17. <span>2019.6.30 15:20</span>
  18. <a href='javascript:;' node-act="subscribe" class='button'>订阅</a>
  19. </div>
  20. </div>
  21. </div>
  22. <div class='order'>
  23. <img src='http://7.jstyle.cn/1/2019/03/06/91e4fb0f002311e72cd285706e71d800.jpg' />
  24. <div class='info'>
  25. <div class='journal-no'>100本 ¥798.00</div>
  26. <div class='name'>欢乐阳光BOY王鹤棣</div>
  27. <div class='price'>
  28. <span>2019.6.30 15:20</span>
  29. <a href='javascript:;' node-act="read" class='button read'>阅读</a>
  30. </div>
  31. </div>
  32. </div>
  33. <div class='order'>
  34. <img src='http://7.jstyle.cn/1/2019/03/06/91e4fb0f002311e72cd285706e71d800.jpg' />
  35. <div class='info'>
  36. <div class='journal-no'>100本 ¥798.00</div>
  37. <div class='name'>欢乐阳光BOY王鹤棣</div>
  38. <div class='price'>
  39. <span>2019.6.30 15:20</span>
  40. <a href='javascript:;' node-act="subscribe" class='button'>订阅</a>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. <div class='footer'>
  46. <a href="index.html" class='tab tab-home active'>首页</a>
  47. <a href="list.html" class='tab tab-code'>兑换码</a>
  48. </div>
  49. <div class="mask fn-hide" id="buylayermask"></div>
  50. <div class="buy-layer" id="buylayer">
  51. <form bindsubmit='doBuy'>
  52. <div class="tit ">正在购买</div>
  53. <div class='msg' node-act="buytip">查看购买说明</div>
  54. <div class="list">
  55. <div class="item active" data-id="1">
  56. <span class='name'>购买1本</span>
  57. <span>¥8.00</span>
  58. </div>
  59. <div class="item" data-id="2">
  60. <span class='name'>购买1本</span>
  61. <span>¥8.00</span>
  62. </div>
  63. <div class="item" data-id="3">
  64. <span class='name'>购买1本</span>
  65. <span>¥8.00</span>
  66. </div>
  67. <div class="item" data-id="4">
  68. <span class='name'>购买1本</span>
  69. <span>¥8.00</span>
  70. </div>
  71. <div class="item" data-id="5">
  72. <span class='name'>购买1本</span>
  73. <span>¥8.00</span>
  74. </div>
  75. <div class="item" data-id="6">
  76. <span class='name'>购买1本</span>
  77. <span>¥8.00</span>
  78. </div>
  79. </div>
  80. <div class="btn-wrapper ">
  81. <div class="button cancel" node-act="hideBuy">取消</div>
  82. <div class="button primary " node-act="doBuy">确认</div>
  83. </div>
  84. </form>
  85. </div>
  86. <div class="mask fn-hide" id="buytip">
  87. <div class="buytip-layer layer ">
  88. <div class='buy-tit'>购买说明</div>
  89. <div class="p">
  90. 1、购买成功后可直接点击【阅读】 查看阅读内容; <br />
  91. 2、电子刊为虚拟商品,如无系统问题,购买后不可退换; <br />
  92. 3、如有其他使用问题可咨询在线客服。
  93. </div>
  94. <div class="btn-wrapper">
  95. <div class="button" node-act="hideTip">我知道了</div>
  96. </div>
  97. </div>
  98. </div>
  99. <div class="mask fn-hide" id="layer">
  100. <div class="layer read-layer">
  101. <div class="qrcode-wrap">
  102. <img src="images/qrcode.png" alt="" class="default" id="code">
  103. <p>长按识别小程序阅读电子刊</p>
  104. </div>
  105. <a href="javascript:;" class="btn-close" id="close"></a>
  106. </div>
  107. </div>
  108. <div id="pay"></div>
  109. <script type="text/javascript" src="js/global.js?v=a54dd0df"></script><script type="text/javascript" src="js/index.js?v=a54dd0df"></script></body>
  110. <script>
  111. let buyid = 1;
  112. var payStatus = false;
  113. $('[node-act="read"]').on('click', function () {
  114. $('#code').attr('src',$(this).data('src'));
  115. $('#layer').show();
  116. })
  117. $('#close').on('click', function () {
  118. $('#layer').hide();
  119. });
  120. $('[node-act="subscribe"]').on('click', function () {
  121. var url = $(this).data('src');
  122. $('#buylayer').html('加载中...');
  123. $('#buylayermask').show();
  124. $.get(url, function(t)
  125. {
  126. $('#buylayer').html(t);
  127. $('#buylayer').addClass('slidein')
  128. })
  129. })
  130. $('[node-act="jump"]').on('click', function () {
  131. var url = $(this).data('src');
  132. location.href = url;
  133. })
  134. $('#buylayer').on('click','.list .item',function(){
  135. $(this).addClass('active').siblings().removeClass('active');
  136. buyid = $(this).data('id');
  137. })
  138. function pay(url)
  139. {
  140. $.get(url, function(t) {
  141. $("#pay").html(t);
  142. payStatus = false;
  143. $('[node-act="doBuy"]').html('确认');
  144. })
  145. }
  146. </script>
  147. </html>